AgentSkillsCN

scaffold-pipeline

为脚手架提示流程提供管道排序上下文。当用户询问脚手架序列、下一步该运行哪个命令,或探讨管道排序时,此技能将自动激活。

SKILL.md
--- frontmatter
name: scaffold-pipeline
description: Provides pipeline ordering context for the scaffold prompt pipeline. Auto-activates when users ask about scaffolding sequence, which command to run next, or pipeline ordering.

Scaffold Pipeline Reference

This skill provides context about the scaffold prompt pipeline ordering. When the user asks about which command to run next, what order to follow, or how the pipeline works, use this reference.

Pipeline Order

#PhaseCommandNotes
1Product Definition/scaffold:create-prdInteractive — requires user input
2Product Definition/scaffold:prd-gap-analysisLast chance to strengthen PRD
3Project Foundation/scaffold:beadsCreates CLAUDE.md — run first in Phase 2
4Project Foundation/scaffold:tech-stackDrives all technical decisions
5Project Foundation/scaffold:claude-code-permissionsEnables autonomous agents
6Project Foundation/scaffold:coding-standardsReferences tech-stack.md
7Project Foundation/scaffold:tddReferences tech-stack.md + coding-standards.md
8Project Foundation/scaffold:project-structureReferences all Phase 2 docs
9Dev Environment/scaffold:dev-env-setupCreates lint/test/install commands
10Dev Environment/scaffold:design-system(optional) Frontend projects only
11Dev Environment/scaffold:git-workflowReferences dev-setup.md
11.5Dev Environment/scaffold:multi-model-review(optional) Requires ChatGPT Pro
12Testing/scaffold:add-playwright(optional) Web apps only
13Testing/scaffold:add-maestro(optional) Mobile/Expo apps only
14Stories & Planning/scaffold:user-storiesCovers every PRD feature
15Stories & Planning/scaffold:user-stories-gapsUX improvements
15.5Stories & Planning/scaffold:user-stories-multi-model-review(optional) Requires Codex/Gemini CLI
16Stories & Planning/scaffold:platform-parity-review(optional) Multi-platform projects
17Consolidation/scaffold:claude-md-optimizationRun BEFORE workflow-audit
18Consolidation/scaffold:workflow-auditRun AFTER claude-md-optimization
19Implementation/scaffold:implementation-planCreates full task graph
20Implementation/scaffold:implementation-plan-reviewSecond pass for quality
20.5Implementation/scaffold:multi-model-review-tasks(optional) Requires Codex/Gemini CLI
21Implementation/scaffold:single-agent-startSingle-agent execution loop
21Implementation/scaffold:multi-agent-startMulti-agent — one per worktree

Standalone Commands

CommandWhen to Use
/scaffold:single-agent-resumeResume work after a break
/scaffold:multi-agent-resumeResume multi-agent work after a break
/scaffold:new-enhancementAdd a feature to an existing project
/scaffold:quick-taskCreate a focused task for a bug fix, refactor, or small improvement
/scaffold:prompt-pipelineShow the full pipeline reference

Key Dependencies

code
PRD → Tech Stack → Coding Standards → TDD Standards → Project Structure
                                                            ↓
PRD → User Stories → Implementation Plan → Execution
                                    ↓
Dev Setup → Git Workflow → Claude.md Optimization → Workflow Audit
                                                            ↓
                                              Implementation Plan Review

Critical Ordering Constraints

  1. Beads Setup before everything else in Phase 2 — creates CLAUDE.md
  2. Tech Stack before Permissions, Coding Standards, and TDD — they reference it
  3. Dev Setup before Git Workflow — Git Workflow references lint/test commands
  4. Claude.md Optimization before Workflow Audit — optimize first, verify second
  5. Implementation Plan before Implementation Plan Review — can't review what doesn't exist

Completion Detection

When checking pipeline status, use these detection criteria:

#StepCheck file existsTracking comment to search for
1PRD Creationdocs/plan.md<!-- scaffold:prd
2PRD Gap Analysisdocs/plan.md<!-- scaffold:prd-gap-analysis
3Beads Setup.beads/ directoryN/A
4Tech Stackdocs/tech-stack.md<!-- scaffold:tech-stack
5Claude Code Permissions.claude/settings.jsonN/A
6Coding Standardsdocs/coding-standards.md<!-- scaffold:coding-standards
7TDD Standardsdocs/tdd-standards.md<!-- scaffold:tdd-standards
8Project Structuredocs/project-structure.md<!-- scaffold:project-structure
9Dev Env Setupdocs/dev-setup.md<!-- scaffold:dev-setup
10Design Systemdocs/design-system.md<!-- scaffold:design-system
11Git Workflowdocs/git-workflow.md<!-- scaffold:git-workflow
11.5Multi-Model ReviewAGENTS.md + .github/workflows/code-review-*.yml<!-- scaffold:multi-model-review
12PlaywrightPlaywright config file// scaffold:playwright
13Maestromaestro/config.yaml# scaffold:maestro
14User Storiesdocs/user-stories.md<!-- scaffold:user-stories
15User Stories Gapsdocs/user-stories.md<!-- scaffold:user-stories-gaps
15.5User Stories MMRdocs/reviews/user-stories/review-summary.md<!-- scaffold:user-stories-mmr
16Platform Paritydocs/user-stories.md<!-- scaffold:platform-parity
17Claude.md OptimizationCLAUDE.md<!-- scaffold:claude-md-optimization
18Workflow AuditCLAUDE.md<!-- scaffold:workflow-audit
19Implementation Plandocs/implementation-plan.md<!-- scaffold:implementation-plan
20Impl Plan Reviewdocs/implementation-plan.md<!-- scaffold:implementation-plan-review
20.5Impl Plan MMRdocs/reviews/implementation-plan/review-summary.md<!-- scaffold:implementation-plan-mmr

Detection rules:

  • If the file exists → step was likely run (even without tracking comment — older projects lack them)
  • If the tracking comment exists in the file → step was definitively run
  • For update-only steps (2, 15, 16, 17, 18, 20): file existence alone only confirms the prerequisite ran; check for the specific tracking comment to confirm the update step itself