/d3nexus:dev-lifecyclefrom d3nexus
Use this skill to orchestrate epic-scale work from idea to merged branch. It owns the sequence and the five approval gates connecting dev-brainstorming, dev-designer, dev-implementation, and quality_check — which skill runs next, what each stage must hand over, and what to do when a gate fails. Activate it when a request spans multiple components or needs an HLD plus a Kanban task breakdown, when routing an approved spec, or whenever it is unclear which epic stage the work is currently in.
Ships in d3nexus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Epic-scale orchestrator owning sequence and gates only; each stage's how stays in its skill.
Announce at start: "I'm using the dev-lifecycle skill to orchestrate the <epic_slug> epic."
Enter every stage via its skill. Doing its work yourself skips its gate.
dev-brainstorming then writing-plans.Lifecycle diagrams: lifecycles.en.md. Runtime sequence:
dev-brainstorming -> Gate 1 approval -> Route to dev-designer (epic) or writing-plans (non-epic).dev-designer (Role 2.1) -> Gate 2 Unified Confirmation (--checkpoint gate2_tasks_locked, provider priority + Triển khai (tự động) vs Dừng lại) -> /principal-review (max 3 rounds, zero-pause on Valid) -> package_epic.py & implement prompt -> auto-enter Stage 3 if Triển khai (tự động) (else stop).dev-implementation -> Automated Gate 3 (wave order & 2-slot pool) -> dispatches Role 2.3 Programmer subagents (dev_config.py dispatch; default gemini-4-hydrogen-xhigh) for task-implementer, review-fixer and fresh gate4-verifier, plus Role 2.1 task-reviewer and fix-planner -> Pre-Review Gate (--profile pr) -> /cross-model-review (max 3 rounds) -> Gate 4 (--profile epic).finishing-a-development-branch -> Archive tasks into .devtool/epic/<slug>/, rebase, verify by tier (noop reuses receipt in 0s; clean/conflicts verify), --no-ff/squash merge, explicit push confirmation.Every dev artefact is English-only and a single file. Specs, HLDs, BDD scenarios and non-epic plans carry a linked ToC covering every ## section: YYYY-MM-DD-<topic>-design.md, <epic_dir>.md, bdd_scenarios.md, docs/superpowers/plans/YYYY-MM-DD-<feature>.md; legacy .en.md files are accepted, not produced. task_*.md and handoff.md stay English-only (handoff.md still requires a ToC). Vietnamese mirrors are not SSOT: never open or create one unless Role 1.0 asks (rule 11).
Authoring standards (Markdown quality, Depends on epic): governance-checklists.md.
Every gate except Gate 4 requires human approval; never self-approve. Record/query .devtool/GATE_LEDGER.md via resume_context.py --gate <1..5> and --check-gate <1..5>.
| Gate | Name | Approver | Enforced in | Handoff artefact |
|---|---|---|---|---|
| 1 | Spec Approved | User | dev-brainstorming | YYYY-MM-DD-<topic>-design.md |
| 2 | HLD & Task Breakdown | User | dev-designer | <epic_dir>.md + bdd_scenarios.md + task_*.md |
| 3 | Execution Order | Automated (Role 2.2 Orchestrator) | dev-implementation Phase 1 / Resume | auto-resolved order + bootstrapped worktree |
| 4 | Quality LGTM & Check 2 | audit_epic.py + check_bdd_traceability.py + quality_check | dev-implementation Phase 4 | audit_epic.py + 🟢 report + coverage + BDD traceability + merge-ready branch |
| 5 | Developer Kanban Sign-Off & Finish | User | dev-implementation Phase 4.1 / Stage 4 | User confirmation for branch finishing and archival |
An epic whose .devtool/epic/<epic_dir>/ holds task_*.md files is past Gate 2 — whether Packaged (handoff.md present) or interrupted in Stage 3. Announce "Gates 1 and 2 already passed; resuming at Stage 3", invoke dev-implementation, and let its Entry-Point Detection choose where to start. Never redo Stage 1 or 2; route new requirements to dev-designer's Updating an Existing Epic.
/dev-lifecycle --autonomous)lifecycle_runner.py drives Stages 2–3:
fix-planner), 2.2 Orchestrator (the runner), 2.3 Programmer (default gemini-4-hydrogen-xhigh); bindings from /d3nexus:dev-config.StartLine/EndLine > 200 lines) and Rule 5 Zero-Fluff Cap (keep Verdicts, Findings, gate results); see governance-checklists.md.fix-planner (PLANNED/ESCALATE), turn-budget checkpoints, quota gate.AWAITING_FINISH.dev-brainstormingInvoke d3nexus:dev-brainstorming. Gate 1 is its user-approval step.
.devtool/epic/<epic_dir>/, update links, enter dev-designer (Stage 2). Everything else → writing-plans. Route decomposed sub-project specs independently; never merge multiple specs into one epic.dev-designerInvoke d3nexus:dev-designer.
.devtool/epic/<epic_dir>/. Exit (Gate 2): user-confirmed task list and granularity.<epic_dir>.md (HLD): System overview & Feature Maintenance Map (1 Architecture diagram, optional Sequence diagram, canonical entry points — no duplicate Gherkin).bdd_scenarios.md: Adversarial edge-case, boundary, exception, and rollback suite across 5 dimensions.task_*.md: Self-contained LLM Execution SSOT loaded one task at a time in Stage 3.Follow references/principal-review.md across Stage 2 -> Principal Review -> Packaging -> Stage 3:
check_epic_readiness.py <epic_dir> pass, save Gate 2 & state (--status "Stage 2: Ready for Principal Review", --checkpoint gate2_tasks_locked), read /d3nexus:dev-config review (.devtool/review_config.json fallback; caps via /d3nexus:dev-config limits), stop calling tools, and present the provider/model priority order:
/principal-review -> handoff.md -> /dev-implementation (2-slot pool) -> /cross-model-review without pausing; Stage 3 uses this session's model (state orchestrator binding). Halts ONLY on Circuit Breakers, ESCALATE, model/quota stops, or Gate 5./principal-review -> handoff.md -> stop cleanly (new session on the orchestrator model)./principal-review (Zero-Pause): Run d3nexus:principal-review (--auto-quota/--provider-priority/--cli, default 3 rounds; mid-loop runs check_epic_readiness.py, never package_epic.py). Auto-fix Valid findings without pausing; halt only on the five triggers.python3 skills/dev-implementation/resources/scripts/package_epic.py <epic_dir> [--revise --reason "<reason>"] (omit --revise when handoff.md is absent):python3 "$SCRIPTS"/check_epic_readiness.py <epic_dir> (runs check_task_contract.py --design). First line prints task count.references/handoff-template.md to .devtool/epic/<epic_dir>/handoff.md (<N> is the task count the preflight printed) and lint via python3 "$CHECK_DOC" --require-toc .devtool/epic/<epic_dir>/handoff.md.<epic_dir>.en.md for legacy epics):
python3 "$SCRIPTS"/sync_task_status.py epic <epic_dir> Packaged
grep -n -E '^- \*\*Status\*\*: Packaged' \
.devtool/epic/<epic_dir>/<epic_dir>.md
If previously queued, use "Packaged (queued behind <epic>)" in Open Notes. Commit [<EPIC_NAME>] Package epic for handoff (auto_commit: true)./save-context (--state --epic <epic_slug> --status "Stage 2: Packaged & Ready"), print handoff.md path and python3 scripts/resume_context.py --emit-prompt implement --epic <epic_slug>.d3nexus:dev-implementation without pausing; if Dừng lại, stop.dev-implementationEntry: Gate 2 passed, /principal-review converged and packaged (handoff.md), and Triển khai (tự động) chosen (or resuming packaged/interrupted epic).
Exit (Gate 5): Gate 4 is 🟢 LGTM and user approves Kanban completion.
Depends on epic: is declared, run sync_task_status.py check-prereqs <epic_dir>. If queued behind another epic, run sync_task_status.py check-conflicts <epic_dir> and sync_task_status.py promote <epic_dir> [--force].compute_execution_order.py --parallel, bootstraps worktree + 2-slot pool, and records --gate 3 (halting ONLY on cyclic DAG or unresolvable prerequisites).manage_worker_pool.py (sync working, sync review, triage-fix, finalize-slot, merge, cleanup).
task-implementer, every task): Runs check_code_impact.py and full mechanical Verification (RED -> GREEN -> REGRESSION -> TIER-B -> TIER-C via run_task_checks.py), covering module + Downstream Callers REGRESSION and TIER-B across all Allowed files (plus lint-imports/contract checks), then ticks all ## Definition of Done - [x] checkboxes with brief mechanical notes (e.g. exit 0, 42 passed). Setting status: "done" or completedAt with any - [ ] is forbidden.task-reviewer & /cross-model-review, selective): Skipped on routine mechanical tasks (task-implementer finalizes directly); runs only at semantic/architectural boundaries or high-risk tasks (review_tier: "full", security/architecture/concurrency/contract labels, or > 2 non-test modules via git diff --name-only; 2-pass review cap, 1 fix pass, Two-Tier Risk Assessment) and Gate 4 synthesis. After cleanup, fresh gate4-verifier runs the Pre-Review Gate, then Gate 4 after convergence.Automated Review Pipeline (Pre-Review Gate → Cross-Model Review → Gate 4):
When the Pre-Review Gate (audit_epic.py, traceability, --profile pr) passes:
run_external_review.py run --epic-dir <epic_dir> --base <base_ref> --auto-quota & triage.fast-track review-fixer (all Valid, no escalation marker) or Role 2.1 fix-planner returning plan_markdown (Orchestrator writes fix_plan_round<N>.md; PLANNED -> apply-plan; ESCALATE -> stop for Role 1.0). Role 2.3 fixer applies fixes, runs Tier 1 scoped tests only, commits [<EPIC_NAME>] Fix ..., records fixed in <sha> in review_results.md; Orchestrator scope-checks git diff --name-only. On convergence, a fresh gate4-verifier runs Gate 4 in full once (--profile epic, --mark-gate4-complete, then --gate 4); --rebind-if-code-unchanged (< 2s) applies only to a gate4_complete=true receipt with clean tree and allowed metadata changes. Halt on SHARED_CONTRACT_CONFLICT, FIX_LOOP, or Critical findings after Round 3.@pytest.mark.parametrize (no copy-pasted per-input tests), ban boilerplate language/Pydantic-default/getter tests, enforce scope="module"/scope="session" read-only/server/browser fixtures, and follow Tier 1 (uv run pytest <changed_test_files> -n auto --timeout=30 -q --tb=short), Tier 2 (--ignore=tests/e2e -n auto --dist loadscope --timeout=30 -q --tb=short), and Tier 3 (Tier 2 + session tests/e2e + quality_check once per epic). Never delete deps/reports or fake fixtures. See governance-checklists.md.Gate 4 Machine Acceptance Criteria:
Gate 4 grants 🟢 LGTM only when:
audit_epic.py exits 0 (committed evidence matches Verification tables, DoD checkboxes ticked, graders disclosed).check_bdd_traceability.py tests --results exits 0.@quality_check returns aggregated verdict of PASS with profile: "epic" against <base_ref> bound to candidate repository_sha, certified via --mark-gate4-complete (never a pr receipt).Gate 4 conditions:
epic, base_ref, candidate repository_sha.FAIL > BLOCKED > PASS.BLOCKED cannot approve.On failure, route back to dev-implementation with defect report; land fixes as [EPIC_NAME] Fix <what> commits and re-run Gate 4 in full.
Gate 5 Developer Kanban Review & Sign-Off:
Completed tasks stay in .devtool/features/done/. Stop calling tools and present the report; on approval advance to Stage 4 (adjustments land as Fix commits and re-run full Gate 4).
finishing-a-development-branchEntry: Gate 5 passed.
Exit: Branch rebased onto develop, verified by tier, merged --no-ff, and tasks archived into .devtool/epic/<epic_dir>/.
| Gate | On failure, return to |
|---|---|
| 1 | Stage 1 — revise spec, re-run self-review |
| 2 | Stage 2 — adjust task breakdown |
| 3 | Stage 3 Phase 1 — reorder tasks manually |
| 4 | Stage 3 — fix findings as Fix commits, re-run traceability and quality_check in full |
| 5 | Stage 3 — apply user adjustments as Fix commits, re-run Gate 4 in full |
Never advance on a partial pass or re-run isolated checks.
implementation_plan.md or any native planning artifact.dev-brainstorming because scope seems clear, or skipping Stage 2 on an approved epic-scale spec.package_epic.py before /principal-review completes, packaging without preflight, or re-prompting during /principal-review (Valid findings) or after packaging when Gate 2 chose Triển khai (tự động).develop without Gate 4 🟢 or manually instead of integrate_branch.py land; pushing without explicit permission.audit_epic.py; reusing a Gate 4 PASS after review rounds, finding decisions, or Fix commits change SHA.status: "done" (or completedAt) with any - [ ] in ## Definition of Done, omitting REGRESSION or full Allowed files TIER-B coverage, or ticking checkboxes/evidence by hand without run_task_checks.py.agy, ag_run or <profile>-cli from an agent shell instead of dev_config.py dispatch.ollama list and asking.run_external_review.py triage (verify against source & Spec/HLD; visibility log only, never a pause on Valid /principal-review findings).Valid with zero halt triggers, auto-fix and advance without pausing).dismissed decisions in review_results.md without explicit developer words.develop is failing.finishing-a-development-branch or archiving .devtool/features/done/ tasks before Gate 5 sign-off, or leaving completed tasks/draft specs unarchived after integration.*.vi.md mirror (not SSOT), or translating task_*.md.| Stage | Skill | Gate it enforces |
|---|---|---|
| 1 | dev-brainstorming | 1 |
| 2 | dev-designer | 2 |
| 3 | dev-implementation | 3, triggers 4, and enforces 5 |
| 3 (verification) | quality_check + check_bdd_traceability.py | 4 |
| 4 | finishing-a-development-branch | — |
references/autonomous-mode.md (opens in a new tab)references/governance-checklists.md (opens in a new tab)references/handoff-template.md (opens in a new tab)references/orchestration-roles.md (opens in a new tab)references/principal-review.md (opens in a new tab)resources/scripts/lifecycle_runner.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub danhdue/ai-agent-tools --plugin d3nexus72 skills in this plugin
/android-api-integrationGenerates a standardized Network Module, API Interface, Remote Data Source, Repository, UseCase, Models, and ViewModel updates for Android using the Hybrid Network Architecture and MVI Pattern./android-quality-checkRead-only Android quality assurance provider implementing the common quality contract. Executes project-configured Gradle, Spotless, Detekt, and Konsist capabilities from .agents/quality/android-quality.json, enforces BCV and architecture policies, and outputs structured results bound to repository SHA./android-ui-auditAudits Jetpack Compose and Android UI code for recomposition stability, state hoisting, Material3 design system adherence, and modifier best practices.Other plugins' skills for the same job