skills/dev-lifecycle/SKILL.md
AI DevKit · Structured SDLC workflow with 8 phases — requirements, design review, planning, implementation, testing, and code review. Use when the user wants to build a feature end-to-end, or run any individual phase (new requirement, review requirements, review design, execute plan, update planning, check implementation, write tests, code review).
npx skillsauth add codeaholicguy/ai-devkit dev-lifecycleInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Sequential phases producing docs in docs/ai/. Flow: 1→2→3→4→(5 after each task)→6→7→8.
For Phases 1-3, converge on shared understanding before docs or implementation momentum:
Before starting any phase, run npx ai-devkit@latest lint to verify the base docs/ai/ structure exists and is valid.
If working on a specific feature, also run npx ai-devkit@latest lint --feature <name> to validate feature-scoped docs.
If lint fails because project docs are not initialized, run npx ai-devkit@latest init -a -e claude --built-in --yes (non-interactive — required when running inside an agent so init does not block on prompts), then rerun lint. Do not proceed until checks pass.
For a new feature start (Phase 1 or /new-requirement), apply the shared worktree setup in references/worktree-setup.md before phase work. This setup is worktree-first by default and includes explicit no-worktree fallback, context verification, and dependency bootstrap.
| # | Phase | Reference | When | |---|-------|-----------|------| | 1 | New Requirement | references/new-requirement.md | User wants to add a feature | | 2 | Review Requirements | references/review-requirements.md | Requirements doc needs validation | | 3 | Review Design | references/review-design.md | Design doc needs validation against requirements | | 4 | Execute Plan | references/execute-plan.md | Ready to implement tasks from planning doc | | 5 | Update Planning | references/update-planning.md | Auto-trigger after completing any task in Phase 4 | | 6 | Check Implementation | references/check-implementation.md | Verify code matches design | | 7 | Write Tests | references/writing-test.md | Add test coverage (100% target) | | 8 | Code Review | references/code-review.md | Final pre-push review |
Load only the reference file for the current phase. For Phase 1, also load references/worktree-setup.md.
If the user wants to continue work on an existing feature:
git branch --show-currentgit worktree list<feature-name> (all .worktrees/ paths are relative to the project root — the directory containing .git):
<project-root>/.worktrees/feature-<name> when it exists.feature-<name> in the current repository.workdir=<project-root>/.worktrees/feature-<name>.feature-<name> in current repo.npx ai-devkit@latest lint --feature <feature-name> in the active branch/worktree context.skills/... path:
<skill-dir> as the directory containing this SKILL.md.<skill-dir>/scripts/check-status.sh <feature-name> (or cd <skill-dir> && scripts/check-status.sh <feature-name>).
Use the suggested phase from this script based on doc state and planning progress.Not every phase moves forward. When a phase reveals problems, loop back:
New features: run npx ai-devkit@latest docs init-feature <name> and fill the returned paths. The command uses configured phases and creates docs/ai/{phase}/YYYY-MM-DD-feature-{name}.md with the current local date.
Existing features: use the latest matching docs/ai/{phase}/YYYY-MM-DD-feature-{name}.md. If none exists, use docs/ai/{phase}/feature-{name}.md. Keep <name> aligned with branch/worktree feature-<name>.
Older CLI fallback: copy each configured phase README.md to docs/ai/{phase}/feature-{name}.md, preserving frontmatter.
Phases: requirements/, design/, planning/, implementation/, testing/.
In phases with clarification questions (typically 1-3), run these CLI commands (see the memory skill for full options):
npx ai-devkit@latest memory search --query "<topic>"npx ai-devkit@latest memory store --title "<title>" --content "<insight>" --tags "<tags>"| Rationalization | Why It's Wrong | Do Instead | |---|---|---| | "Skip to coding, requirements are clear" | Ambiguity hides in assumptions | Run Phase 1-3 first | | "Design hasn't changed, skip Phase 6" | Code drifts from design during implementation | Check implementation against design | | "Tests slow us down, ship first" | Bugs in production are slower | Write tests in Phase 4 and 7 | | "Just a small change, no review needed" | Small changes cause big outages | Phase 8 applies to all changes |
docs/ai/ before changes. Keep diffs minimal.verify skill before completing Phase 4 tasks, Phase 6 checks, Phase 7 coverage claims, and Phase 8 review items. No phase transition without fresh evidence.development
AI DevKit · Guide structured debugging before code changes by clarifying expected behavior, reproducing issues, identifying likely root causes, and agreeing on a fix plan with validation steps. Use when users ask to debug bugs, investigate regressions, triage incidents, diagnose failing behavior, handle failing tests, analyze production incidents, investigate error spikes, or run root cause analysis (RCA).
development
AI DevKit · Review code, skills, and prompts for security vulnerabilities — OWASP Top 10, prompt injection, business logic flaws, and insecure defaults. Use when reviewing PRs, auditing modules, reviewing AI skills/prompts, or preparing for release.
development
AI DevKit · Document a code entry point with structured analysis, dependency mapping, and saved knowledge docs. Use when users ask to document, understand, or map code for a module, file, folder, function, or API.
development
AI DevKit · Enforce evidence-based completion claims — require fresh command output before reporting success. Use when completing any task, fixing a bug, finishing a phase, running tests, building, deploying, or making any "it works" claim.