tc-core
Phase 1Workspace orchestration: initialize, inspect, journal, and recommend.
/tc:init- Copy the workspace template into .test-commander/. Idempotent — existing files preserved.
/tc:status- Print a read-only snapshot: per-bucket file counts, populated counts, per-phase status.
/tc:journal- Append a timestamped narrative entry to today's journal. Append-only.
/tc:next- Read the workspace state and recommend the next /tc:* command for this project.
tc-requirements
Phase 2Requirements quality: rubric review, INVEST, acceptance criteria, coverage, and test-idea seeds.
/tc:review-requirements- Run the 16-dimension rubric on uploaded requirements; emit a review plus open questions.
/tc:review-user-stories- INVEST review of user stories: independent, negotiable, valuable, estimable, small, testable.
/tc:review-acceptance-criteria- Review acceptance criteria for testability, completeness, and clarity.
/tc:requirements-coverage- Build the requirement coverage map across the workspace.
/tc:requirements-to-tests- Seed a tc-test-idea/v1 file for every requirement (skip-not-overwrite).
tc-knowledge
Phase 3Project knowledge ingestion: five helpers extract structured artifacts with file:line provenance.
/tc:learn-from-docs- Extract entities, terms, and user journeys from uploaded documents.
/tc:learn-from-specs- Extract endpoints and contracts from API specifications.
/tc:learn-from-code- Extract modules and business rules from source, each with path:line provenance.
/tc:learn-from-api- Extract behavior from recorded API traffic.
/tc:learn-from-tests- Extract existing coverage from the project's current tests.
tc-explore
Phase 4Charter-based exploratory testing against a recorded Playwright session.
/tc:create-charter- Scope an exploratory session against the project knowledge and risk areas.
/tc:explore- Classify each recorded event into six universal observation types and six anomaly categories.
/tc:session-summary- Synthesize the exploration session summary with a charter-coverage matrix.
/tc:test-ideas- Enrich the Phase-2 test-idea seeds with the exploration findings.
tc-bdd
Phase 5BDD generation and review with machine-readable traceability tags.
/tc:generate-bdd- Render one Gherkin scenario per enrichment candidate with @req:/@cs: provenance.
/tc:review-bdd- Run a six-category universal BDD quality rubric.
tc-traceability
Phase 5The cross-cutting map tying requirements to the scenarios that exercise them.
/tc:traceability-map- Rebuild the requirement and scenario-level traceability chains.
tc-build-framework
Phase 6The lazily-scaffolded Playwright + TypeScript framework.
/tc:build-framework- Scaffold the project-root tests/ tree, playwright.config.ts, and package.json only when first needed (D8).
tc-automation-plan
Phase 6The strategic gate before any code is generated.
/tc:automation-plan- Score every scenario against a seven-factor suitability rubric: automate / consider / manual.
tc-automate
Phase 6Generate and mechanically review the automation.
/tc:automate- Generate page objects, fixtures, and specs with @req:/@cs: provenance and fixture-mediated data.
/tc:review-automation- Mechanically review the generated suite for quality and framework compliance.
tc-test-data
Phase 6The data discipline (D6): nothing inlined in test code.
/tc:generate-test-data- Populate test-data/ seed JSON and a per-area spec consumed via fixtures.
tc-run
Phase 7Execution and failure triage.
/tc:run- Orchestrate suite execution; capture per-run records and route evidence per config policy.
/tc:analyze-results- Classify failures by responsible layer without weakening assertions or adding sleeps.
tc-quality-report
Phase 7The quality report and release-readiness gate.
/tc:report- Write the current quality report and snapshot a copy to committed history.
/tc:quality-gate- Evaluate release-readiness against project-defined thresholds; separate facts from interpretation.
tc-evidence
Phase 7Runtime, not commands: the evidence indexer that routes screenshots, traces, and logs into evidence/ per the config policy.
runtime — no /tc:* commands
tc-learning
Phase 8The governed learning loop — nothing promoted silently.
/tc:learn- Open and seed the governed lessons inbox.
/tc:learn-from-failures- Derive candidate lessons from test failures.
/tc:learn-from-exploration- Derive candidate lessons from exploration sessions.
/tc:learn-from-feedback- Derive candidate lessons from human feedback.
/tc:review-lessons- Review candidate lessons: accept, reject, or flag for human review.
/tc:promote-lessons- Promote accepted lessons into project guidance — every promotion visible in git diff.
tc-visualize
Phase 9Visual documentation: eight diagram types, infographics, and a deterministic renderer.
/tc:visualize- Generate the workspace's full diagram set.
/tc:diagram-architecture- Architecture diagram (Mermaid source).
/tc:diagram-coverage- Coverage diagram.
/tc:diagram-flow- User-flow diagram.
/tc:diagram-risk- Risk diagram.
/tc:diagram-sequence- Sequence diagram.
/tc:diagram-state- State diagram.
/tc:diagram-test-strategy- Test-strategy diagram.
/tc:diagram-traceability- Traceability diagram.
/tc:generate-infographic- Build a quality-report infographic.
/tc:render-visuals- Render Mermaid sources to SVG/PNG deterministically (degrades gracefully without the CLI).
tc-web
Phase 10The read-only web console over the committed workspace.
/tc:web-init- Provision the console config (.web/console.json) inside the workspace. Idempotent.
/tc:web-start- Bring up the console stack (Next.js + FastAPI) on docker compose. Read-only.
/tc:web-sync- Reconcile the SQLite index with the workspace (a clean rebuild).
/tc:web-index-artifacts- Rebuild the index from the workspace into .web/index.db.
/tc:web-export- Export the console view as a deterministic static bundle.
tc-governance
Phase 10.5Runtime, not commands: the controlled-execution pipeline behind the console's /api/execute — intent → plan → permission policy → approval gate → bounded execution → output validation → audit. Default deny; no backdoor.
runtime — no /tc:* commands
tc-mcp
Phase 11Runtime, not commands: an expanded Runtime API (apps/api) and a schema-first MCP server (apps/mcp). Both are alternative front-ends to the same governed pipeline; the seven permission levels are enforced server-side.
runtime — no /tc:* commands
tc-sandbox
Phase 12On-demand, team-accessible environments launched from GitHub Actions, governed and safe-by-default.
/tc:sandbox-init- Write the sandbox config (provider, target, allow-list, private-range block). Skip-not-overwrite.
/tc:sandbox-launch- Launch the sandbox via its provider and persist state. Idempotent; dry-run by default.
/tc:sandbox-status- Report the persisted sandbox state (none / running / stopped).
/tc:sandbox-sync- Push the committed workspace into the sandbox.
/tc:sandbox-stop- Tear the sandbox down. Idempotent.
/tc:sandbox-export- Write a shareable bundle of endpoints, labels, and status.
tc-continuous-quality
Phase 13The continuous quality agent: watch → analyze → propose → PR, gated by the autonomy mode.
/tc:watch-changes- Detect changed files from a pull-request or push diff.
/tc:impact-analysis- Map changed files to impacted features and requirements (deterministic; never invents impact).
/tc:coverage-gap-analysis- Find impacted features that lack coverage (never invents coverage).
/tc:propose-tests- Propose BDD/automation for the gaps — safe-write; never opens a PR.
/tc:create-test-pr- Open a clearly-labeled PR through the pipeline; gated by the autonomy mode.
/tc:continuous-quality-check- Run the whole loop under the configured autonomy mode.