dev-lifecycle
GitHub协调AI DevKit结构化SDLC各阶段技能,管理从需求到审查的全生命周期。执行前验证并安装所需技能,支持任务追踪与计划制定,确保按序调用开发、设计、测试等模块。
Trigger Scenarios
Install
npx skills add codeaholicguy/ai-devkit --skill dev-lifecycle -g -y
SKILL.md
Frontmatter
{
"name": "dev-lifecycle",
"description": "AI DevKit · Orchestrator for structured SDLC phase skills. Use when the user wants to run the full lifecycle or choose the next phase across requirements, design, planning, implementation, testing, and review."
}
Dev Lifecycle
Coordinate the phase-specific AI DevKit skills instead of running phase details directly.
Required phase skills:
dev-worktreefor feature workspace setup and resume.dev-requirementsfor phases 1-2: new requirement and requirements review.dev-designfor phase 3: design review.dev-planningfor phases 4 and 6: initial task planning and updates after implementation tasks.dev-implementationfor phases 5 and 7: execute plan and check implementation.dev-testingfor phase 8: write tests and verify coverage.dev-reviewfor phase 9: final code review.
Supporting skills:
memoryfor reusable project knowledge during clarification.tddfor implementation tasks.verifybefore completing implementation, implementation checks, testing claims, and review readiness.taskfor optional progress tracing when the task command is usable.
Startup Validation
At the beginning of every dev-lifecycle run:
- Run
npx ai-devkit@latest skill listto inspect currently installed project skills. - Confirm the listed skills include all required phase skills and supporting skills.
- If any required skill is missing, run
npx ai-devkit@latest skill add --built-into install all AI DevKit built-in skills. Then rerunnpx ai-devkit@latest skill list. - If installation fails or a required skill is still missing, stop and report the missing skill names and command output summary. Do not run a phase without its skill.
- Run
npx ai-devkit@latest lintto verify the configured AI docs structure. - If working on a specific feature, run
npx ai-devkit@latest lint --feature <name>. - If lint fails because project docs are not initialized, run
npx ai-devkit@latest init -a -e claude --built-in --yes, then rerun lint. - Probe optional task tracing availability:
- With a feature:
npx ai-devkit@latest task list --name <feature-name> --json - Without a feature:
npx ai-devkit@latest task list --json - Treat task tracing as available only if the read probe exits 0. If it fails, record task tracing as unavailable with the failed command and reason, then continue without task logging.
- Never block lifecycle work only because the task command is missing or unusable.
- With a feature:
- When working on a specific feature and task tracing is available:
- Load and follow
taskbefore executing a phase. - Initialize or show the task named after the feature, mark active work, and emit phase/progress/next/blocker/evidence events per
task. - Sequence task mutations; do not batch or parallelize mutations for the same feature.
- Load and follow
Plan Before Execution
Before executing any phase:
- Identify the target feature, current docs state, branch/worktree context, and likely next phase.
- Propose a concise plan that names the phase skill to use, the docs/files to read, commands to run, expected edits, task tracing status and planned task events if tracing is available, and verification evidence.
- Wait for user approval before executing the plan unless the user already gave explicit approval for that exact phase execution.
- After approval, load and follow only the selected phase skill plus any explicitly required supporting skills. If tracing is available, the
taskskill is explicitly required.
Phase Routing
| Phase | Route to | When |
|---|---|---|
| Setup. Workspace | dev-worktree |
Starting or resuming feature work |
| 1. New Requirement | dev-requirements |
User wants to add a feature or start /new-requirement |
| 2. Review Requirements | dev-requirements |
Requirements doc needs validation |
| 3. Review Design | dev-design |
Design doc needs validation against requirements |
| 4. Create Initial Plan | dev-planning |
Requirements, design, and testing docs are ready for task breakdown |
| 5. Execute Plan | dev-implementation |
Ready to implement tasks from planning doc |
| 6. Update Planning | dev-planning |
Auto-trigger after completing any implementation task |
| 7. Check Implementation | dev-implementation |
Verify code matches design and docs |
| 8. Write Tests | dev-testing |
Add or verify test coverage |
| 9. Code Review | dev-review |
Final pre-push review |
Sequential flow: setup -> 1 -> 2 -> 3 -> 4 -> 5 -> 6 after each completed task -> 7 -> 8 -> 9.
Resuming Work
If the user wants to continue work on an existing feature:
- Use
dev-worktreeto identify and confirm the target branch/worktree. - Run
npx ai-devkit@latest lint --feature <feature-name>in the active context. - Run the phase detector from the installed
dev-lifecycleskill directory:- Resolve
<skill-dir>as the directory containing thisSKILL.md. - Run
<skill-dir>/scripts/check-status.sh <feature-name>. - Use the suggested phase when proposing the execution plan.
- Resolve
Backward Transitions
Not every phase moves forward. When a phase reveals problems, route back:
- Requirements review finds fundamental gaps: return to
dev-requirementsPhase 1. - Design review finds requirements gaps: return to
dev-requirementsPhase 2. - Design review finds design flaws: stay in
dev-designand revise design. - Implementation check finds major deviations: return to
dev-designif design is wrong, ordev-implementationif code is wrong. - Testing reveals design flaws: return to
dev-design. - Review finds blocking issues: return to
dev-implementationordev-testing.
Rules
- Use
npx ai-devkit@latest lintandnpx ai-devkit@latest lint --feature <name>to discover and validate the configured docs directory. Do not assumedocs/ai; it is only the default. - Read existing configured AI docs before changes. Keep diffs minimal.
- Keep feature names aligned with branch/worktree
feature-<name>. - New feature docs come from
npx ai-devkit@latest docs init-feature <name>. Use the paths returned by the command as authoritative. - Existing feature docs are the paths reported or validated by
npx ai-devkit@latest lint --feature <name>. If you must infer manually, first resolve the configured docs directory from.ai-devkit.jsonpaths.docs, falling back todocs/ai. - After each phase, summarize output and suggest the next phase.
- Do not claim completion without fresh verification evidence.
- When task tracing is available, follow
task: create once, assign actor when known, mark active/blocked, set phase, record progress/next/evidence, and close only after final verification/review. If tracing is unavailable, include failed probe commands in the phase summary without blocking the lifecycle.
Version History
- d4caf56 Current 2026-07-05 15:22


