Overview#
cc-pipeline is an orchestration plugin that manages the Cocode team's project lifecycle through a 7-stage pipeline. It coordinates existing plugins (cc-bmad, cc-spec-clarity, cc-pm-*, cc-dev-cycle) from above without modifying them.
Pipeline Flow#
âââââââââââââââ âââââââââââââââ âââââââââââââââ âââââââââââââââ
â Discovery âââââķâSpecificationâââââķâ Planning âââââķâ Design â
â (Analysis) â â(Spec Verify)â â (Planning) â â (Design) â
âââââââââââââââ âââââââââââââââ âââââââââââââââ âââââââââââââââ
â â â
Specification Analysis Gate Solutioning Gate
Gate â â
â âââââââââââââââ âââââââââââââââ
â â Launch ââââââ Development â
â â (Launch) â â(Development)â
â âââââââââââââââ âââââââââââââââ
â â
âââââââââââââââ â Implementation
âEpic Creationâââââââââââââ Gate
â (Creation) â
âââââââââââââââ
â
Planning Gate
Getting Started#
New Project#
/project " project description "
This command:
- Generates project slug
- Automatically determines BMAD level
- Sequentially executes 7 stages (skippable stages auto-determined)
Individual Stage Entry#
Each stage can be executed independently:
/project:discover " feature description "
/project:specify " feature description "
/project:plan
/project:design
/project:epic
/project:develop --epic 42
/project:launch
Previous stage artifacts are automatically referenced if available.
Stage Details#
Stage 1: Discovery (Analysis)#
Performs user research, competitive analysis, and ideation.
- Source: cc-pm-discovery, cc-pm-strategy, cc-bmad
- Artifacts:
docs/discovery-{slug}.md - Skip: Level 0-1
Stage 2: Specification (Spec Verification)#
Exposes hidden assumptions through Socratic interviews, then creates Seed specs and ambiguity evaluation to secure implementation-quality specifications.
-
Source: cc-spec-clarity (
/spec:interview,/spec:seed,/spec:ambiguity,/spec:evaluate) - Agents: contrarian (contrarian review), simplifier (complexity reduction) â parallel execution
- Gate: Specification Gate
-
Artifacts:
docs/seed-spec-{slug}.md,docs/socratic-discovery-{slug}.md,docs/decision-log-{slug}.md,docs/spec-evaluation-{slug}.md - Skip: Level 0-1
Stage 3: Planning#
Writes product briefs, PRD/technical specifications, and defines BDD Acceptance Criteria.
- Source: cc-bmad, cc-pm-strategy
- Gate: Analysis Gate
-
Artifacts:
docs/prd-{slug}.md,docs/tech-spec-{slug}.md,docs/bdd-{slug}.md
Stage 4: Design#
Designs architecture and UX, then performs parallel review.
- Source: cc-bmad (Architect + UX Designer personas)
- Gate: Solutioning Gate
-
Artifacts:
docs/architecture-{slug}.md,docs/ux-spec-{slug}.md - Skip: Level 0
Stage 5: Epic Creation#
Creates ZenHub Epics and Stories based on design artifacts.
- Source: cc-dev-cycle, cc-bmad
- Gate: Planning Gate
- Artifacts: ZenHub Epic + linked Stories
- Skip: Level 0
Stage 6: Development#
Iterates through Stories within an Epic, executing the 13-step development cycle for each.
- Source: cc-dev-cycle, cc-bmad
- Gate: Implementation Gate (per Story)
- Artifacts: Implementation code + PR
-
Parallel mode:
--paralleloption for parallel development of independent Stories via Agent Teams
Stage 7: Launch#
Establishes GTM strategy, messaging, and analytics plan.
- Source: cc-pm-gtm, cc-pm-analytics
-
Artifacts:
docs/gtm-{slug}.md,docs/analytics-plan-{slug}.md - Skip: Level 0-1
BMAD Level Guide#
Level 0: Hotfix (Simple Bug Fix)#
Planning â Development
Skips Discovery, Specification, Design, Epic Creation, and Launch.
Level 1: Minor Feature (Small-scale Feature Addition)#
Planning â Design â Epic Creation â Development
Skips Discovery, Specification, and Launch.
Level 2-3: Feature / Major Feature#
Discovery â Specification â Planning â Design â Epic Creation â Development â Launch
Executes the full pipeline.
Level 4: New Project#
Discovery (deep) â Specification â Planning â Design â Epic Creation â Development â Launch
Executes Discovery in deep mode.
Gates#
Each gate is a quality checkpoint.
Specification Gate (Specification â Planning)#
- Ambiguity score âĪ 0.2
- Convergence âĨ 0.95
- Contrarian unresolved Critical: 0
- Consensus: 3/3 unanimous
Analysis Gate (Planning â Design)#
- Requirement clarity
- Scope appropriateness
- Acceptance Criteria testability
Solutioning Gate (Design â Epic Creation)#
- Architect: Clean Architecture, DI, API, security
- UX Designer: CoUI, layout, interaction, accessibility
Planning Gate (Epic Creation â Development)#
- Epic/Story structure
- Story points
- Labeling
- Dependencies
Implementation Gate (Development, per Story)#
- Lint passed
- Tests passed
- Code review passed
- Branch naming convention
State Management#
Pipeline state is stored in .pipeline/{slug}.yaml.
# Check status
/pipeline:status
# Specific project
/pipeline:status community
# All projects
/pipeline:status --all
Artifact Management#
All artifacts are stored in the project's docs/ directory:
| Stage | Artifacts |
|---|---|
| Discovery | docs/discovery-{slug}.md |
| Specification |
docs/seed-spec-{slug}.md
,
docs/socratic-discovery-{slug}.md
,
docs/decision-log-{slug}.md
,
docs/spec-evaluation-{slug}.md
|
| Planning |
docs/prd-{slug}.md
,
docs/tech-spec-{slug}.md
,
docs/bdd-{slug}.md
|
| Design | docs/architecture-{slug}.md, docs/ux-spec-{slug}.md |
| Epic Creation | ZenHub Epic + Stories (issue numbers) |
| Development | Implementation code + PR |
| Launch | docs/gtm-{slug}.md, docs/analytics-plan-{slug}.md |
Suspend and Resume#
The pipeline can be suspended and resumed at any time:
# Check status after suspension
/pipeline:status community
# Resume from Design stage
/project --from design " community feature "
The state file records the last position, so previous artifacts are automatically referenced.
Dependent Plugins#
| Plugin | Stages Used | Role |
|---|---|---|
| cc-bmad | 1, 3-6 | Methodology, gates, personas |
| cc-spec-clarity | 2 | Spec clarity verification, Specification Gate |
| cc-pm-discovery | 1 | User research |
| cc-pm-strategy | 1, 3 | Product strategy |
| cc-pm-gtm | 7 | Go-to-Market |
| cc-pm-analytics | 7 | Data analytics |
| cc-dev-cycle | 5-6 | Development cycle |