com um clique
feature-lifecycle
// Feature lifecycle: design, plan, implement, validate, release. Phase-gated workflow.
// Feature lifecycle: design, plan, implement, validate, release. Phase-gated workflow.
Publish a public website safely: DNS, web server, HTTPS, hardening, verify. Routes raw dev servers through nginx/Caddy/Apache/Cloudflare Pages.
Safely start, supervise, and terminate shell processes: background jobs, PID capture, signals, traps, cleanup verification.
Generate rich self-contained HTML artifacts instead of markdown. Auto-detects artifact shape (spec, code-review, prototype, report, editor, data-viz, diagram, deck) and loads shape-specific patterns. Bundles Birchline design system with 4 theme presets. Use for "make HTML", "as HTML", "HTML artifact", or auto-injected by router when output benefits from rich visualization.
Unified voice content generation pipeline with mandatory validation and joy-check. 13-phase pipeline: LOAD, GROUND, STATS-CHECKPOINT, GENERATE, HOOK-GATE, VALIDATE, REFINE, VARIETY-GATE, JOY-CHECK, ANTI-AI, CLOSE-GATE, OUTPUT, CLEANUP. Use when writing articles, blog posts, or any content that uses a voice profile. Use for "write article", "blog post", "write in voice", "generate content", "draft article", "write about".
Classify user requests and route to the correct agent + skill. Primary entry point for all delegated work.
Pull request lifecycle: commit, codex review, sync, review, fix, status, cleanup, and PR mining. Use when user wants to commit changes, get a second-opinion code review from Codex, push changes, create a PR, check PR status, fix review comments, clean up branches after merge, or mine tribal knowledge from PR reviews. Use for "commit my changes", "codex review", "push my changes", "create a PR", "pr status", "fix PR comments", "clean up branches", "mine PRs", or "address feedback".
| name | feature-lifecycle |
| description | Feature lifecycle: design, plan, implement, validate, release. Phase-gated workflow. |
| user-invocable | false |
| command | /feature-lifecycle |
| allowed-tools | ["Read","Write","Bash","Grep","Glob","Edit","Agent","Task"] |
| routing | {"force_route":true,"not_for":"small bug fixes (use quick), code reviews, refactoring single files, content writing — only for new feature work spanning design → plan → implement → validate → release","triggers":["feature design","design feature","think through","explore approaches","design first","feature plan","plan feature","break down design","create tasks","feature implement","implement feature","execute plan","start building","feature validate","validate feature","run feature quality gates","check feature","feature release","release feature","merge feature","build feature end to end","full feature lifecycle","feature from scratch","design to release","complete feature pipeline","feature pipeline"],"pairs_with":["workflow","subagent-driven-development","pr-workflow","verification-before-completion","universal-quality-gate","adr-consultation","planning"],"complexity":"Complex","category":"process"} |
Phase-gated feature workflow: DESIGN > PLAN > IMPLEMENT > VALIDATE > RELEASE. Each phase must pass its gate before the next begins.
Determine which phase to execute based on feature state:
If .feature/ exists, check current phase:
python3 ~/.claude/scripts/feature-state.py status
Route to the phase indicated by the state machine.
If no feature state exists, determine entry point from user intent:
Load the phase reference for the current phase:
references/design.mdreferences/plan.mdreferences/implement.mdreferences/validate.md — run quality gate commands, do not reason about whether they would pass. Paste exit codes and output.references/release.mdreferences/pipeline.mdFollow the loaded reference exactly. Each reference contains the full phase instructions, gates, and checkpoints.
Read references/shared.md for directory structure, state management commands, context loading rules, and naming conventions. All state operations go through python3 ~/.claude/scripts/feature-state.py -- never manipulate state files directly.
DESIGN -> PLAN -> IMPLEMENT -> VALIDATE -> RELEASE
| | | | |
v v v v v
design.md plan.md impl.md report.md PR merged
Each phase produces an artifact consumed by the next. Skipping phases is not supported because downstream phases depend on artifacts from earlier phases.
| Signal | Load These Files | Why |
|---|---|---|
| tasks related to this reference | design.md | Loads detailed guidance from design.md. |
| errors, error handling | error-handling.md | Loads detailed guidance from error-handling.md. |
| tasks related to this reference | implement.md | Loads detailed guidance from implement.md. |
| tasks related to this reference | pipeline.md | Loads detailed guidance from pipeline.md. |
| tasks related to this reference | plan.md | Loads detailed guidance from plan.md. |
| tasks related to this reference | release.md | Loads detailed guidance from release.md. |
| tasks related to this reference | shared.md | Loads detailed guidance from shared.md. |
| tasks related to this reference | validate.md | Loads detailed guidance from validate.md. |
| Error | Cause | Solution |
|---|---|---|
| Phase mismatch | User requests phase N but state is at phase M | Report current state, suggest correct next phase |
| Missing artifact | Previous phase did not produce expected output | Route back to previous phase |
| Gate failure | Phase requirements not met | Report what failed, suggest fixes |
| Task Signal | Load |
|---|---|
| Phase routing (design/plan/implement/validate/release) | Phase reference (design.md, plan.md, implement.md, validate.md, release.md) |
| End-to-end or full pipeline | references/pipeline.md |
| State commands, directory structure, naming | references/shared.md |
| Error, failure, blocked, gate fail, retry, deviation | references/error-handling.md |
references/design.md -- Design phase: explore requirements, discuss trade-offsreferences/plan.md -- Plan phase: break design into wave-ordered tasksreferences/implement.md -- Implement phase: dispatch tasks to domain agentsreferences/validate.md -- Validate phase: run quality gatesreferences/release.md -- Release phase: merge, tag, cleanupreferences/pipeline.md -- End-to-end orchestration across all phasesreferences/shared.md -- State conventions shared across all phasesreferences/error-handling.md -- Recovery patterns for phase errors, gate failures, agent dispatch failures