一键导入
debug-smart
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes, combined with GitNexus and AgentMemory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes, combined with GitNexus and AgentMemory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation, combined with GitNexus and AgentMemory.
Trace call graphs, dependencies, and execution flow of target code using GitNexus.
Convert binary and formatted documents (PDF, DOCX, XLSX, PPTX, HTML, ZIP, etc.) to Markdown using MarkItDown and extract requirements.
Safe, structured refactoring of target code using GitNexus graph mapping, AgentMemory checks, and TDD workflows.
Run targeted unit/integration tests on changed components, run full regression suites, and log outcomes in memory.
Verify codebase modifications, execute test runners, detect file change scope using GitNexus, and persist session memory.
| name | debug-smart |
| description | Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes, combined with GitNexus and AgentMemory. |
This skill performs a systematic, history-aware debugging analysis, combining GitNexus graph mapping, AgentMemory validations, and strict root cause investigation protocols.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
If you have not completed Phase 1 (Root Cause Investigation), you cannot propose or implement fixes. Symptom fixes are a failure.
You MUST complete each phase in order before proceeding to the next.
BEFORE attempting ANY fix:
gitnexus.Find the pattern before fixing:
agentmemory and the codebase for similar working code or historical bug solutions.Apply the scientific method:
Fix the root cause, not the symptom:
/tdd rules.walkthrough.md.agentmemory to help future debug sessions.| Phase | Key Activities | Success Criteria |
|---|---|---|
| 1. Root Cause | Read errors, reproduce, check changes, trace data flow | Understand WHAT and WHY |
| 2. Pattern | Find working examples, compare | Identify differences |
| 3. Hypothesis | Form theory, test minimally | Confirmed or new hypothesis |
| 4. Implementation | Create test, fix, verify, save to memory | Bug resolved, tests pass |
To ensure robust and maintainable code, always follow these four core principles inspired by Andrej Karpathy:
Don't assume. Don't hide confusion. Surface tradeoffs.
Minimum code that solves the problem. Nothing speculative.
Touch only what you must. Clean up only your own mess.
Define success criteria. Loop until verified.