|
| 1 | +--- |
| 2 | +name: dev-lifecycle |
| 3 | +description: Full software development lifecycle workflow covering requirements, design, planning, implementation, testing, and code review. Use this skill when a user wants to build a new feature end-to-end, clarify or document requirements, review requirements or design docs, execute a feature plan, check implementation against design, perform code review, or write tests. Triggers on requests like "new feature", "add requirement", "review requirements", "review design", "execute plan", "check implementation", "code review", "write tests", or any structured SDLC workflow. |
| 4 | +--- |
| 5 | + |
| 6 | +# Dev Lifecycle |
| 7 | + |
| 8 | +Structured development lifecycle from requirements through testing. Each phase produces documentation in `docs/ai/` and feeds into the next. |
| 9 | + |
| 10 | +## Phases |
| 11 | + |
| 12 | +| # | Phase | Reference | Trigger | |
| 13 | +|---|-------|-----------|---------| |
| 14 | +| 1 | **New Requirement** | [references/new-requirement.md](references/new-requirement.md) | User wants to add a feature or define a requirement | |
| 15 | +| 2 | **Review Requirements** | [references/review-requirements.md](references/review-requirements.md) | Requirements doc exists and needs validation | |
| 16 | +| 3 | **Review Design** | [references/review-design.md](references/review-design.md) | Design doc exists and needs validation | |
| 17 | +| 4 | **Execute Plan** | [references/execute-plan.md](references/execute-plan.md) | Planning doc exists and user is ready to implement | |
| 18 | +| 5 | **Check Implementation** | [references/check-implementation.md](references/check-implementation.md) | Code changes exist and need validation against design | |
| 19 | +| 6 | **Code Review** | [references/code-review.md](references/code-review.md) | Changes are ready for pre-push review | |
| 20 | +| 7 | **Write Tests** | [references/writing-test.md](references/writing-test.md) | Feature needs unit/integration/E2E tests | |
| 21 | + |
| 22 | +## Phase Selection |
| 23 | + |
| 24 | +1. If the user has no docs yet and wants to build something new → start at **Phase 1**. |
| 25 | +2. If requirements doc exists but hasn't been reviewed → **Phase 2**. |
| 26 | +3. If design doc exists but hasn't been reviewed → **Phase 3**. |
| 27 | +4. If planning doc exists and user says "implement" or "execute" → **Phase 4**. |
| 28 | +5. If code is written and user wants to verify against design → **Phase 5**. |
| 29 | +6. If code is ready to push → **Phase 6**. |
| 30 | +7. If user asks for tests at any point → **Phase 7**. |
| 31 | + |
| 32 | +When starting a new feature end-to-end, walk through phases 1→2→3→4→5→7→6 sequentially. Load only the reference file for the current phase. |
| 33 | + |
| 34 | +## Documentation Structure |
| 35 | + |
| 36 | +All phase docs live under `docs/ai/`: |
| 37 | + |
| 38 | +``` |
| 39 | +docs/ai/ |
| 40 | +├── requirements/feature-{name}.md |
| 41 | +├── design/feature-{name}.md |
| 42 | +├── planning/feature-{name}.md |
| 43 | +├── implementation/feature-{name}.md |
| 44 | +└── testing/feature-{name}.md |
| 45 | +``` |
| 46 | + |
| 47 | +Each feature doc is created by copying the corresponding `README.md` template in that directory, preserving frontmatter and section headings. |
| 48 | + |
| 49 | +## Operating Rules |
| 50 | + |
| 51 | +- Read the relevant phase reference file before guiding the user through that phase. |
| 52 | +- Always read existing docs in `docs/ai/` before making changes. |
| 53 | +- Keep diffs minimal; avoid unrelated edits. |
| 54 | +- Use mermaid diagrams for architecture and data-flow visuals. |
| 55 | +- After each phase, summarize what was produced and suggest the next phase. |
| 56 | +- If blocked, surface the issue and suggest alternatives before escalating. |
| 57 | + |
| 58 | +## Supplementary Workflows |
| 59 | + |
| 60 | +These can be invoked at any point during the lifecycle: |
| 61 | + |
| 62 | +- **Debug**: Structured debugging with root cause analysis before code changes. |
| 63 | +- **Update Planning**: Reconcile planning docs with current implementation progress. |
| 64 | +- **Simplify Implementation**: Analyze and reduce complexity in existing code. |
| 65 | +- **Capture Knowledge**: Document understanding of a code entry point. |
| 66 | +- **Remember**: Store reusable guidance in the knowledge memory service. |
0 commit comments