بنقرة واحدة
flow-debug
Investigate bugs and test failures before fixing. Invoke with /flow-debug.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Investigate bugs and test failures before fixing. Invoke with /flow-debug.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Shared prompts and references for flow-* skills. Not invoked directly.
Execute an approved plan with subagents, TDD, and two-stage review. Invoke with /flow-execute to resume or when plan exists without an active spec session.
Router for the flow development workflow. Invoke with /flow to triage and suggest the right /flow-* command.
Create an approved spec and self-reviewed implementation plan. Invoke with /flow-spec before multi-step work.
Small bounded changes with micro-spec, inline TDD, and per-task review. Invoke with /flow-patch.
Explore ideas and design before committing to a spec. Invoke with /flow-brainstorm when requirements are still fuzzy.
| name | flow-debug |
| description | Investigate bugs and test failures before fixing. Invoke with /flow-debug. |
| disable-model-invocation | true |
| metadata | {"flow":{"command":"/flow-debug"}} |
Triggered by: /flow-debug
Find root cause before proposing fixes. No fixes until investigation is complete.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
Read and follow flow-shared/references/session-gate.md (resolve via path resolver in flow/SKILL.md) before updating STATE.
Same-topic failure (matches active plan/spec/patch on this branch) → set phase: debug and investigate. Unrelated topic with active STATE → session gate first; do not overwrite STATE until user confirms.
flow-shared/references/root-cause-tracing.md (resolve via path resolver in flow/SKILL.md); trace backward to the original triggerDo not propose fixes during Phase 1.
Before routing to patch:
If you don't understand yet, ask the user or gather more evidence — do not route to /flow-patch.
| Outcome | Next step |
|---|---|
| Root cause known, bounded fix | /flow-patch with regression test requirement — same review and verify rails as any patch (per-task spec + correctness reviewers, then auto-verify + user menu) |
| Fix needs design or spans subsystems | /flow-spec |
| Cannot reproduce or insufficient data | Ask user; gather more evidence |
If three /flow-patch attempts for the same underlying issue have failed (fix didn't work, new symptoms elsewhere, or root cause keeps moving):
/flow-spec or ask the user — likely an architectural problem, not a missing line fixWhen routing to /flow-patch, the micro-spec must include:
Write failing test reproducing the bug before fixing (TDD RED-GREEN).
Debug does not implement, review, or verify. After handoff, /flow-patch owns inline TDD, subagent reviews per task, auto-verify, and the numbered merge/push menu — identical to a standalone patch.
Update docs/flow/STATE.md: phase: debug while investigating.