From core-claude-plugin
Build features with TDD workflow using sequential-thinking and full agent chain
npx claudepluginhub metasaver/metasaver-marketplace --plugin core-claude-plugin# Build Command Execute builds through sequential-thinking planning and complete agent chain workflow. **Use when:** You know what you want to build. For exploration/planning, use `/architect` instead. --- ## Entry Handling When /build is invoked, ALWAYS proceed to Phase 1 regardless of prompt content. --- ## Phase 1: Planning (Sequential Thinking) **Use:** sequential-thinking MCP tool Plan the approach using sequential-thinking MCP tool: 1. Analyze the prompt to understand scope and requirements 2. Identify target repositories and reference patterns 3. Outline high-level implemen...
/buildGuides feature implementation via phased workflow with approval gates: understand requirements, design options, load skills, build, verify, test, and track progress in tasks/todo.md.
/bmad-pilotOrchestrates AI development team to build project from description, with repo scanning, architecture, planning, coding, and QA phases plus user confirmations. Options: --skip-tests, --direct-dev, --skip-scan.
/buildExecutes implementation plan from docs/plans/ using TDD (RED-GREEN-REFACTOR), parallel agents for independent tasks, and 2-stage code reviews. Produces code, tests, atomic git commits, and review reports.
/buildingExecutes implementation plans through gated phases: Load plan, setup tracking, execute sections, verify tests, report status. Uses git worktrees for isolation.
/autoAnalyzes task and auto-executes optimal strategy: direct execution, hybrid PRD generation, worktree development, or mega-plan orchestration. Supports --flow quick/standard/full.
/buildImplements next planned task incrementally via TDD: write failing test, minimal implementation, full tests/build verification, commit changes.
Share bugs, ideas, or general feedback.
Execute builds through sequential-thinking planning and complete agent chain workflow.
Use when: You know what you want to build. For exploration/planning, use /architect instead.
When /build is invoked, ALWAYS proceed to Phase 1 regardless of prompt content.
Use: sequential-thinking MCP tool
Plan the approach using sequential-thinking MCP tool:
This creates the mental model for the full workflow.
Follow: /skill analysis-phase
Spawn scope-check agent to identify target and reference repositories. Use scope-check agent results directly. Proceed with identified targets immediately.
Output: scope: { targets[], references[] }
Follow: /skill requirements-phase
EA uses AskUserQuestion until 100% understanding, then creates PRD:
Enterprise Architect (EA) → AskUserQuestion loop until fully understood
→ Creates PRD (prd-creation skill)
→ Reviewer → validates PRD (document-validation)
→ (fix if needed, loop back to EA)
→ Business Analyst (BA) → extracts epics and story outlines
Skills used internally:
/skill prd-creation (EA creates PRD)/skill document-validation (Reviewer validates)Output: PRD + Epics + Story outlines (NO HITL - continues to Design)
Enforcement Gate (MANDATORY):
checkPhaseRequirements(projectFolder, 3) from /skill state-managementprd.md exists in project folderFollow: /skill design-phase
Agents use AskUserQuestion for any clarifications, then create all docs:
Architect → annotates PRD with implementation details
→ BA → creates story outlines
→ PM → creates execution plan (execution-plan-creation)
→ Reviewer → validates execution plan (document-validation)
→ (fix if needed, loop back to PM)
→ BA → fills story details (user-story-creation)
→ Architect → adds Architecture sections
→ Reviewer → validates stories (document-validation)
→ (fix if needed, loop back to BA)
Skills used internally:
/skill execution-plan-creation (PM creates plan)/skill user-story-creation (BA fills stories)/skill document-validation (Reviewer validates)Output: Execution plan + Complete user stories (NO HITL - continues to Approval)
Enforcement Gate - Execution Plan (MANDATORY):
checkPhaseRequirements(projectFolder, 5) from /skill state-managementexecution-plan.md exists in project folderEnforcement Gate - User Stories (MANDATORY):
checkPhaseRequirements(projectFolder, 6) from /skill state-managementuser-stories/ folder is populated (at least 1 file)Follow: /skill hitl-approval
SINGLE approval gate for all documentation:
Present to user:
Use AskUserQuestion:
Follow: /skill execution-phase
TDD-paired wave-based execution:
/compact to free contextWave Checkpoint Flow:
/skill workflow-postmortem mode=log (30 seconds max)/compact to manage context windowFollow: /skill validation-phase
On failure: Return to Execution for fixes.
Follow: /skill structure-check, /skill dry-check
Three checks (PARALLEL):
agents/config/ in audit modeOn failure: Return to Execution for fixes, re-run Validation, re-run Standards Audit, loop until pass.
Follow: /skill workflow-postmortem mode=summary
Run /skill workflow-postmortem mode=summary to generate final summary. This reads the accumulated wave logs from docs/epics/{project}/post-mortem.md and presents a summary to the user.
Output: Summary of issues logged across waves (count by category, patterns identified).
Follow: /skill report-phase
BA + PM produce final build report with:
/build "add logging to service"
→ Planning → Analysis → Requirements (EA asks questions → PRD → Reviewer) → Design (Architect → BA → PM → Reviewer) → HITL (approve all docs) → Execution → Validation → Standards Audit → Postmortem → Report
/build "refactor auth module"
→ Planning → Analysis → Requirements → Design → HITL → Execution (waves) → Validation → Standards Audit → Postmortem → Report
/build "multi-tenant SaaS"
→ Planning → Analysis → Requirements → Design → HITL → Wave1 → Wave2 → ... → Validation → Standards Audit → Summary → Report
# Wave checkpoint flow (no HITL between waves):
Wave1: Task(spawn tester) → Task(spawn coder) → /skill workflow-postmortem mode=log → /compact
Wave2: Task(spawn tester) → Task(spawn coder) → /skill workflow-postmortem mode=log → /compact
End: /skill workflow-postmortem mode=summary → Report
# Spawning agents with Task tool:
Task: subagent_type="core-claude-plugin:generic:tester" prompt="Execute /skill tdd-execution for story X"
→ (tester creates test file)
Task: subagent_type="core-claude-plugin:generic:coder" prompt="Implement against tests from story X"
→ (coder implements feature)
/skill workflow-postmortem mode=log BEFORE compact at each wave checkpoint.docs/epics/{project}/post-mortem.md./skill workflow-postmortem mode=summary AFTER Standards Audit, BEFORE Report.subagent_type="general-purpose" with prompt "Execute /skill repomix-cache-refresh"/architect command for innovation or vibe check workflows.checkPhaseRequirements(projectFolder, 3) after Requirements phase. Verify prd.md exists before continuing to Design.checkPhaseRequirements(projectFolder, 5) after execution plan creation. Verify execution-plan.md exists before story creation.checkPhaseRequirements(projectFolder, 6) after story creation. Verify user-stories/ folder is populated before HITL Approval./skill state-management for all checkPhaseRequirements calls.