sdlc-pipeline
Use when user wants to run the complete end-to-end feature development pipeline. Triggers on "run sdlc pipeline", "start pipeline", "full feature workflow", "full lifecycle", "kick off pipeline", "/sd
Files5
View on GitHubSKILL.md.claude/skills/sdlc-pipeline/SKILL.md
GitHubSDLC Pipeline Orchestrator
You are the pipeline conductor for the TriStar project (Triangle Smart Targeting and Real-Time Activation). Chain phase skills together in sequence, manage checkpoints, enforce iteration limits, and handle gated flow control. You do NOT implement any phase methodology -- delegate to specialized skills.
BEFORE EXECUTING ANY PHASE: Read
references/execution-flow.mdfor the full [1]-[10] per-phase instructions.
Critical Path -- Execute This Checklist
For each phase in order (1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9 -> 10):
- Invoke the phase skill via
Skilltool (except Phase 5 which is inline) - Validate the output artifact exists and has required fields
- Update
pipeline_state.json: set phase status = "completed", set current_phase = next phase name - Print summary text, then call
AskUserQuestiontool for approval - On approval: invoke next phase immediately (no filler text)
10 phases, 10 state entries, 10 checkpoints. If you count fewer, something is wrong.
Phases: requirements -> architecture -> design-review -> impl-planning -> implementation -> simplify -> review -> verification -> risk -> pr
CRITICAL: Skill Delegation Rules
You MUST invoke each phase skill using the Skill tool. Do not inline phase logic. Do not skip skill invocation. Do not write phase artifacts yourself.
Phase 1 (Requirements) is especially strict:
- You MUST invoke the
sdlc-requirementsskill via the Skill tool. Do NOT perform requirements analysis yourself. - The requirements skill will ask the user clarifying questions. Do NOT skip this interrogation.
- The requirements skill will present a draft plan for user confirmation before writing
problem_spec.md.
Phase 6 (Simplify) delegates to the simplify skill:
- Invoke
simplifyvia the Skill tool after Phase 5 completes. - After simplify returns, append a
## Simplificationsection toimpl_manifest.md.
Phase 7 (Review) uses code-review skill:
- The code-review skill auto-detects file types (TypeScript/React vs Python/FastAPI) and applies the appropriate checklist.
Phase 8 (Verification) chains multiple checks:
- First: invoke
sdlc-verifyfor engineering verification (requirement coverage + test pass rate) - Then: invoke
security-scanfor security audit - Then: for offer-related code, invoke
loyalty-fraud-detectionskill (existing TriStar skill) - Then: for activation-related code, invoke
semantic-context-matchingskill (existing TriStar skill) - Verification fails if any domain skill flags severity === 'critical'
Iron Laws
- NEVER INLINE PHASE LOGIC -- always invoke phases via the Skill tool, no exceptions.
- NEVER WRITE
problem_spec.mdYOURSELF -- onlysdlc-requirementsmay produce it. - NEVER PROCEED PAST A "reject" DESIGN REVIEW -- feed findings back to
sdlc-architecture. - NEVER SKIP THE INCREMENTAL TESTING PROTOCOL DURING IMPLEMENTATION -- test after each file change.
- NEVER EXCEED ITERATION LIMITS SILENTLY -- halt and report when limits are reached.
- NEVER SKIP PHASE 10 (PR CREATION) -- the pipeline is NOT complete until a PR is created.
Overview
Orchestrates a complete SDLC workflow from requirements through PR creation for the TriStar project. Each phase is owned by a dedicated skill. The orchestrator runs in gated mode.
Arguments
| Argument | Required | Description |
|---|---|---|
--feature=<name> |
Yes | Feature name (e.g., designer-ui, hub-state). Used in paths, branches, PR titles. |
--resume |
No | Restart from last saved checkpoint. |
--from=<phase> |
No | Start from: requirements|architecture|design-review|impl-planning|implementation|simplify|review|verification|risk|pr. |
--waves |
No | Force wave-based parallel execution for Phase 5. |
Validation
--featuremust be a valid kebab-case identifier--resumerequires.claude/checkpoints/<feature>/pipeline_state.jsonto exist--frommust be one of the ten valid phase names
Directory Structure
Create before first phase if absent:
docs/artifacts/<feature>/ # Spec artifacts (problem_spec.md, design_spec.md, design_review.md)
.claude/checkpoints/<feature>/ # Execution artifacts (impl_manifest.md, verification_report.md, risk_assessment.md, pipeline_state.json)
Phase Definitions
| # | Phase | Skill Invoked | Output Artifact | Location |
|---|---|---|---|---|
| 1 | Requirements | sdlc-requirements |
problem_spec.md |
docs/artifacts/<feature>/ |
| 2 | Architecture | sdlc-architecture |
design_spec.md |
docs/artifacts/<feature>/ |
| 3 | Design Review | sdlc-design-review |
design_review.md |
docs/artifacts/<feature>/ |
| 4 | Impl Planning | sdlc-impl-planning |
implementation_plan.md |
docs/artifacts/<feature>/ |
| 5 | Implementation | (inline -- main agent) | impl_manifest.md |
.claude/checkpoints/<feature>/ |
| 6 | Simplify | simplify |
## Simplification in manifest |
.claude/checkpoints/<feature>/ |
| 7 | Review | code-review + generate-tests + security-scan |
findings | (in context) |
| 8 | Verification | sdlc-verify + security-scan + loyalty-fraud-detection + semantic-context-matching |
verification_report.md |
.claude/checkpoints/<feature>/ |
| 9 | Risk Assessment | sdlc-risk |
risk_assessment.md |
.claude/checkpoints/<feature>/ |
| 10 | PR Creation | create-pr |
PR URL | GitHub |
Gate Behavior
After each phase, use AskUserQuestion tool to present the gate with three options:
- "Approve and continue" -> proceed to next phase IMMEDIATELY
- "Stop pipeline" -> save checkpoint, print resume command
- "Revise" -> re-run current phase with feedback
After receiving "Approve and continue", the very next action MUST be invoking the next phase's skill. No summaries, no filler text. Just go.
Resume Logic
- Read
.claude/checkpoints/<feature>/pipeline_state.json - Display phase status table
- Identify last completed phase
- Load all completed phase artifacts
- Resume from next pending phase
Iteration Limits
| Loop | Max | Trigger |
|---|---|---|
| Design review rejects architecture | 3 | verdict = "reject" |
| Spec review requires implementation fixes | 2 | spec_compliant = false |
| Risk requires implementation fixes | 3 | recommendation = "fix_first" |
| Risk requires architecture redesign | 2 | recommendation = "redesign" |
Required Artifact Sections
| Artifact | Required Sections |
|---|---|
problem_spec.md |
## Meta, ## Problem Statement, ## Requirements, ## Acceptance Criteria, ## Constraints, ## Non-Goals, ## Assumptions, ## Edge Cases, ## Backward Compatibility, ## Glossary |
design_spec.md |
## Meta, ## Problem Spec Reference, ## Current Architecture, ## Architecture, ## API Contracts, ## Data Models, ## Decisions (ADRs), ## Implementation Guidelines, ## Testing Strategy, ## Security Considerations |
design_review.md |
## Meta, ## Summary, ## Findings, ## Sign-Off |
implementation_plan.md |
## Implementation Steps, ## Pipeline Continuation, ## Pre-Implementation Baseline |
impl_manifest.md |
## Summary, ## Baseline Test Counts, ## Final Test Counts, ## Files Created, ## Files Modified, ## Test Files, ## Simplification |
verification_report.md |
## Meta, ## Summary, ## Requirement Coverage, ## Test Results, ## Recommendations |
risk_assessment.md |
## Meta, ## Summary, ## Failure Modes, ## Sign-Off |
References
- Execution flow (full per-phase instructions):
references/execution-flow.md - Pipeline state JSON schema:
references/pipeline-state-schema.md - Artifact digest template:
references/artifact-digest.md - Subagent dispatch templates:
appendix/subagent-prompts.md - Phase skills:
sdlc-requirements,sdlc-architecture,sdlc-design-review,sdlc-impl-planning,sdlc-verify,sdlc-risk - Review skills:
code-review,security-scan,generate-tests - Domain skills:
loyalty-fraud-detection,semantic-context-matching - PR skill:
create-pr| Checkpoint utility:sdlc-checkpoint