PactKit

Overview

CommandAgentDescription
/project-initSystem ArchitectInitialize project scaffolding and governance
/project-planSystem ArchitectAnalyze requirements, create Spec and Story
/project-actSenior DeveloperImplement code per Spec with TDD
/project-checkQA Engineer6-phase deep audit
/project-doneRepo MaintainerRegression gate, archive, commit
/project-traceCode ExplorerCall graph tracing, sequence diagram
/project-drawVisual ArchitectGenerate Draw.io XML diagrams
/project-doctorSystem MedicConfiguration drift detection
/project-sprintTeam LeadAutomated PDCA orchestration
/project-reviewQA EngineerPR code review with checklists
/project-hotfixSenior DeveloperFast-track fix bypassing PDCA
/project-releaseRepo MaintainerVersion bump, archive, git tag
/project-designProduct DesignerPRD generation, story decomposition

PDCA Core Commands

/project-plan

Analyze requirements and produce a Spec.

/project-plan "Add user authentication with OAuth2"

Runs: Init Guard → visual scan → logic trace → design update → Spec creation → Board entry.

Init Guard: Before proceeding, this command automatically checks for .claude/pactkit.yaml, docs/product/sprint_board.md, and docs/architecture/graphs/. If any are missing, it runs /project-init first — so you never have to worry about forgetting to initialize.

/project-act

Implement code per Spec using strict TDD.

/project-act STORY-001

Runs: read Spec → detect stack → write tests (RED) → implement (GREEN) → verify suite.

/project-check

Run a 6-phase deep audit.

/project-check

Runs: security scan → test case gen → layer decision → execution → Spec alignment → verdict.

/project-done

Finalize delivery with regression gate and conventional commit.

/project-done

Runs: cleanup → regression gate → board hygiene → archive → commit.

Automation

/project-sprint

Run the full PDCA cycle in one command.

/project-sprint "Add user authentication"

Orchestrates Plan → Act → Check → Done automatically using a multi-agent team. Requires the Opus model.

/project-hotfix

Fast-track fix that bypasses the full PDCA cycle.

/project-hotfix "Fix typo in README"

Skips TDD and Spec creation. Suitable for typos, configuration changes, and minor fixes.

Analysis Commands

/project-trace

Deep code tracing and execution flow analysis.

/project-trace "How does the login flow work?"

Produces a Mermaid sequence diagram and an archaeologist report with patterns, tech debt, and key files.

/project-draw

Generate Draw.io XML architecture diagrams.

/project-draw "System architecture overview"

Supports three diagram types: architecture, dataflow, and deployment.

/project-doctor

Diagnose project health status.

/project-doctor

Checks: Init Guard → PactKit config, architecture graphs, Spec-Board linkage, test suite.

Init Guard: If the project hasn't been initialized, Doctor detects the missing markers and offers you a choice — auto-fix with /project-init, or continue the diagnosis as-is.

Review and Design

/project-review

PR code review with structured report.

/project-review 42

Reviews with SOLID, security, and quality checklists. Outputs APPROVE or REQUEST_CHANGES.

/project-design

Greenfield product design for new projects.

/project-design "Build a task management app"

Generates PRD, decomposes into Specs, and populates the Sprint Board.

/project-release

Version bump, archive, and git tag.

/project-release

Updates version number, saves architecture snapshot, and creates a git tag.

/project-init

Initialize project scaffolding and governance structure.

/project-init

Sets up the directory structure, architecture graphs, and initial governance files.

On this page