بنقرة واحدة
ds-debug
Find the root cause of a failure with the scientific method — reproduce, isolate, fix, then prove it.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Find the root cause of a failure with the scientific method — reproduce, isolate, fix, then prove it.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Design a target architecture for a new system — module boundaries, dependency rules, seams, and build order — from its requirements. Reports a blueprint; changes nothing.
Analyze an existing codebase's architecture and produce a sequenced refactoring plan — assess module boundaries, dependency structure, and layering, then lay out ordered, risk-tagged steps. Language-agnostic. Reports a plan; changes nothing.
Turn a goal or another command's output into an ordered task roadmap.
Interview the user relentlessly about a plan or design until reaching shared understanding.
Run an extremely strict maintainability + single-source-of-truth review of code changes — abstraction quality, file sprawl, spaghetti-condition growth, and duplicate/competing implementations. Reports findings by default; `--fix` applies the mechanical, unambiguous ones — structural/code-judo restructurings rest on judgment and stay reported.
Drive implementation with tests, one vertical slice at a time.
| name | ds-debug |
| description | Find the root cause of a failure with the scientific method — reproduce, isolate, fix, then prove it. |
| disable-model-invocation | true |
When invoked, debug a specific failure by investigation, not guesswork. The goal is the cause, not a symptom that happens to go quiet. Change one thing at a time and let evidence — not intuition — drive each step. End by proving the fix with /ds-verify-this.
This is the lightweight, stateless counterpart to confirmation: /ds-debug finds and fixes; /ds-verify-this proves the fix held.
Treat the argument as the failure to chase: a failing test, an error message, a stack trace, or a description of wrong behavior. If no concrete symptom is given, ask for one — don't debug a vague "it's broken".
curl/CLI + fixture diff, a replayed trace, a throwaway harness, a bisection or old-vs-new differential run, a property/fuzz loop, a headless-browser script. No red-capable loop, no hypothesis.
[DEBUG-a4f2]) so cleanup is a single grep./ds-deslop)./ds-verify-this "<the repro now passes / behavior X now holds>" for a baseline-vs-treatment record./ds-architecture-plan.file:line, with why it fails./ds-verify-this claim that locks it in.