بنقرة واحدة
3-handoff
Use when entering execution handoff — ROADMAP generation, TDD/logging mandates, SHIP/REFINE gate
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when entering execution handoff — ROADMAP generation, TDD/logging mandates, SHIP/REFINE gate
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when closing a finished milestone — writes MILESTONE.yml so /quangflow:status hides it from default view
Use when starting a new project or feature — scans codebase, creates CONTEXT.md, detects project type
Use when entering requirements phase — clarifying questions, edge cases, milestone splits, team composition
Use when entering verification — TDD compliance audit, evidence certification, gap detection
Use when project is shipped — systematic debugging, structured log scan, bug triage, hotfix
Use when running cook — auto-routes solo / light / team via Stage 0 complexity triage. Override with --solo / --light / --team flags.
| name | 3-handoff |
| description | Use when entering execution handoff — ROADMAP generation, TDD/logging mandates, SHIP/REFINE gate |
You are now entering Phase 3: Execution Handoff.
See _protocols/_shared.md → State Check Template. Required artifacts: REQUIREMENTS.md + DESIGN.md.
If missing DESIGN.md: "No design found. Run /quangflow:2-design first."
If missing REQUIREMENTS.md: "No requirements found. Run /quangflow:1-brainstorm <idea> first."
See _protocols/_shared.md → Milestone Detection. Target artifact: ROADMAP.md.
Read REQUIREMENTS.md (project-level) + DESIGN.md (milestone-level) + CONTEXT.md (if exists).
See _protocols/_shared.md → GOTCHAs System → Review Protocol.
Read both plans/GOTCHAS.md (global) and plans/{feature-slug}/GOTCHAS.md (feature) if they exist. Filter by tags matching this milestone's requirements.
If relevant gotchas found: inject their rules as > ⚠️ GOTCHA [global/feature]: warnings in the appropriate ROADMAP.md phases.
When generating ROADMAP.md, inject these requirements into EVERY implementation phase:
All implementation phases MUST follow TDD (see _tdd-enforcement.md). All application code MUST use structured logging (see _structured-logging.md). All phase transitions MUST have verification evidence (see _verification-gates.md).Each ROADMAP.md implementation phase must include:
Before generating artifacts, load the feature's FMU via @mention (see _context-memory.md).
If no FMU exists for this feature, create one in .memory/{feature-slug}/ with CONTEXT.md.
Generate to ./plans/{feature-slug}/:
REQUIREMENTS.md (project-level) — UPDATE the existing draft:
CONTEXT.md (project-level) — append locked decisions from this milestone
OPEN_QUESTIONS.md (project-level) — append/update open items
Generate to ./plans/{feature-slug}/milestone-{N}/:
See _protocols/_shared.md → Code Quality Mandates. Inject into every ROADMAP phase.
For each phase in the generated ROADMAP.md:
Split rules:
Skip condition: If ALL phases are already ≤150 LOC and ≤3 REQ-IDs, skip silently.
Autopilot mode: See _protocols/_autopilot.md → Phase 3 — Handoff.
Normal mode:
Agent waits. Does nothing until user types CONFIRM.
See _protocols/_shared.md → Output Rule.
After CONFIRM, check REQUIREMENTS.md for team_mode and team_composition settings.
If team_mode: false (solo selected in brainstorm):
Surface:
ROADMAP.md ready. Execution mode: solo.
- **SHIP** — Run `/quangflow:cook --solo` (force solo, no spawn) or `/quangflow:cook` (Stage 0 auto-triage, will confirm solo).
Main agent (Opus) edits files directly. Critical-advocate mindset enforced — list ≥2 alternatives per decision, log to SOLO-LOG.md.
SOLO-LOG.md required: plans/{slug}/milestone-{N}/SOLO-LOG.md with REQ-IDs, files, TDD evidence, alternatives considered.
NOT for sensitive areas (auth/payment/crypto/migration) — sensitive keywords force escalation to team.
- **REFINE** — Change execution mode: run `/quangflow:1-brainstorm` to re-scope, or type SWITCH to move to light/team mode now.
Agent waits for SHIP or REFINE.
On SHIP: auto-invoke /quangflow:cook (or /quangflow:cook --solo if user specifies). Cook handles the rest.
On REFINE: ask what they want to change; update team_mode in REQUIREMENTS.md; loop back to gate.
If team_mode: true:
Read team_composition from REQUIREMENTS.md
Map ROADMAP.md phases to team roles based on file ownership boundaries
Present the execution plan:
"Team mode enabled. Here's the execution plan:
| Role | Type | Phases | File Ownership |
|---|---|---|---|
| lead | Orchestrator | Coordinate all | Main session |
| domain-engineer | Architect (recommended) | Before devs | plans/{slug}/milestone-{N}/design/ |
| dev-backend | Developer | Phase 1, 3 | src/api/*, src/models/* |
| dev-frontend | Developer | Phase 2, 4 | src/components/*, src/pages/* |
| tech-lead | Reviewer (optional) | After devs | Read-only on all dev files |
| tester | Tester | After review | tests/* |
Pipeline: domain-engineer designs -> devs implement (parallel) -> [optional] tech-lead reviews -> tester tests
Options:
/quangflow:cook)Autopilot shortcut: See _protocols/_autopilot.md → Phase 3. Auto-SHIP, skip REFINE.
On REFINE:
team_composition in REQUIREMENTS.md after each refinementOn SHIP:
/quangflow:cook — cook.md is the single source of truth for pipeline orchestrationteam_composition from REQUIREMENTS.md and executes the full pipelineIf team_mode: false (user explicitly opted out):
team_mode: false — cook Stage 0 will route this to solo tier automatically./quangflow:cook (auto-triage) or /quangflow:cook --solo to execute. Main agent (Opus) edits files directly with critical-advocate mindset. SOLO-LOG.md required. NOT for sensitive areas (auth/payment/crypto/migration) — those force escalation to team."If team_mode unset (not specified):
team_mode unset — cook Stage 0 auto-triages solo / light / team based on REQ count, phase count, file estimate, and sensitive keywords./quangflow:cook — Stage 0 will auto-select the right tier. Override with --solo, --light, or --team flags."See _protocols/_shared.md → Progress Tracking. Append Phase 3 row to plans/{feature-slug}/PROGRESS.md.
Key decisions to log: execution mode (SHIP), ROADMAP phase count, team composition summary.
Tell user: "Phase 3 complete for milestone-{N}. Artifacts saved to ./plans/{feature-slug}/milestone-{N}/."
Then suggest next command based on mode:
If team_mode: true:
**Next:** `/quangflow:cook` — Auto-triage + run pipeline (cook Stage 0 decides solo / light / team based on complexity)
=> Override: `/quangflow:cook --team` to force full team, `/quangflow:cook --light` for dev+tester only
=> Also available: `/quangflow:status` (check status), `/quangflow:status save` (save context)
If team_mode: false (solo):
**Next:** `/quangflow:cook --solo` — Solo execution: main agent edits directly, no spawn.
=> Or: `/quangflow:cook` to let Stage 0 confirm solo via auto-triage.
=> Also available: `/quangflow:status` (check status)
If team_mode unset:
**Next:** `/quangflow:cook` — Stage 0 auto-triages: solo / light / team based on REQ count, phases, file estimate, keywords.
=> Override: `--solo` / `--light` / `--team` flags.
=> Also available: `/quangflow:status` (check status)
Note: Solo mode is auto-selected by cook Stage 0 triage for trivial tasks (1 REQ, 1 phase, 1 file, no sensitive keywords). Cook prints a solo handoff message and the main agent edits files directly. See _protocols/_complexity-triage.md and _protocols/_solo-handoff.md for details.