|
| 1 | +--- |
| 2 | +name: feature-driven-flow |
| 3 | +description: Coordinate a structured 7-phase feature delivery workflow in Codex for non-trivial work. Use when a task needs scoped intent, repository behavior tracing, ambiguity resolution, design choices, controlled implementation, assurance, and end-state reporting. |
| 4 | +--- |
| 5 | + |
| 6 | +# Feature-Driven-Flow Conductor |
| 7 | + |
| 8 | +Execute feature delivery in seven phases with explicit checkpoints. |
| 9 | + |
| 10 | +## Workflow Contract |
| 11 | + |
| 12 | +1. Run Phase 1 Scope. |
| 13 | +2. Run Phase 2 Explore. |
| 14 | +3. Run Phase 3 Clarify. |
| 15 | +4. Run Phase 4 Architect. |
| 16 | +5. Run Phase 5 Implement. |
| 17 | +6. Run Phase 6 Verify. |
| 18 | +7. Run Phase 7 Summarize. |
| 19 | + |
| 20 | +Read `references/phase-contracts.md` before running phases. |
| 21 | +Read `references/checklists.md` before finalizing. |
| 22 | +Read `references/extension-system.md` and `references/rule-model.md` before applying rules. |
| 23 | + |
| 24 | +## Core Skeleton Invariants |
| 25 | + |
| 26 | +1. Do not change phase order. |
| 27 | +2. Do not begin Implement without explicit user approval. |
| 28 | +3. Do not leave Clarify while decision-critical ambiguity remains unresolved. |
| 29 | +4. Do not close workflow before Verify disposition and final Summarize output. |
| 30 | + |
| 31 | +## Interactive Decision UX |
| 32 | + |
| 33 | +1. When a user decision is needed, provide 2-4 numbered options. |
| 34 | +2. Mark one option as recommended and include a one-line rationale/tradeoff. |
| 35 | +3. Ask the user to reply with the option number or a custom answer. |
| 36 | +4. Do not move forward until the decision is explicitly captured. |
| 37 | + |
| 38 | +## Rule System |
| 39 | + |
| 40 | +1. Use one extension dimension: rules. |
| 41 | +2. Infer execution context from request text, repository signals, and `AGENTS.md`. |
| 42 | +3. In Scope, propose a phase-by-phase rule matrix with a recommended baseline set. |
| 43 | +4. Ask user to accept or adjust the proposed rule matrix before Explore. |
| 44 | +5. Apply rules in this order: |
| 45 | + - selected shared rules in `extensions/rules/*.md` |
| 46 | + - repository-local rules in `.codex/feature-driven-flow/rules/*.md` |
| 47 | +6. If rules disagree, ask user which direction to follow. |
| 48 | +7. `AGENTS.md` policy constraints remain mandatory. |
| 49 | + |
| 50 | +## Phase Skeleton |
| 51 | + |
| 52 | +### Phase 1 Scope |
| 53 | + |
| 54 | +1. Open a phase tracker for all seven phases. |
| 55 | +2. Execute active Scope-phase rules. |
| 56 | +3. Capture user-confirmed rule matrix before Phase 2. |
| 57 | + |
| 58 | +### Phase 2 Explore |
| 59 | + |
| 60 | +1. Execute active Explore-phase rules. |
| 61 | + |
| 62 | +### Phase 3 Clarify |
| 63 | + |
| 64 | +1. Execute active Clarify-phase rules. |
| 65 | + |
| 66 | +### Phase 4 Architect |
| 67 | + |
| 68 | +1. Execute active Architect-phase rules. |
| 69 | + |
| 70 | +### Phase 5 Implement |
| 71 | + |
| 72 | +1. Confirm explicit approval. |
| 73 | +2. Execute active Implement-phase rules. |
| 74 | + |
| 75 | +### Phase 6 Verify |
| 76 | + |
| 77 | +1. Execute active Verify-phase rules. |
| 78 | + |
| 79 | +### Phase 7 Summarize |
| 80 | + |
| 81 | +1. Execute active Summarize-phase rules. |
| 82 | +2. Close phase tracker. |
| 83 | + |
| 84 | +## Output Templates |
| 85 | + |
| 86 | +Use templates in: |
| 87 | + |
| 88 | +1. `templates/clarifying-questions.md` |
| 89 | +2. `templates/architecture-options.md` |
| 90 | +3. `templates/review-report.md` |
| 91 | +4. `templates/structured-phase-output.md` |
| 92 | +5. `templates/test-strategy-gate.md` |
| 93 | +6. `templates/release-readiness-gate.md` |
| 94 | +7. `templates/execution-metrics.md` |
| 95 | +8. `extensions/rules/*.md` |
| 96 | +9. `.codex/feature-driven-flow/rules/*.md` (when present) |
| 97 | + |
| 98 | +## Tooling Expectations |
| 99 | + |
| 100 | +1. Prefer fast file search and targeted reads. |
| 101 | +2. Keep outputs concise but complete. |
| 102 | +3. Enforce phase checkpoints through explicit outputs and decisions. |
0 commit comments