원클릭으로
debug-code
Systematic error debugging with analysis, solution discovery, and verification
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Systematic error debugging with analysis, solution discovery, and verification
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Expert guidance for creating, building, and using Claude Code agents and the Task tool. Use when working with agents, setting up agent configurations, understanding how agents work, or using the Task tool to launch specialized agents.
Complete SaaS ideation to implementation workflow - from idea discovery to task breakdown
Run structured APEX implementation (Analyze, Plan, Execute, eXamine) with parallel agents, tests, adversarial review, and proof-backed verification. Use for features, bug fixes, or code changes that need disciplined execution and real-flow evidence.
Deep iterative research using progressive flow psychology (diverge-analyze-converge-execute) with parallel agents, skeptical analysis, and multi-perspective synthesis. Use for thorough topic exploration, decision-making research, or when you need battle-tested conclusions.
Automated CI/CD pipeline fixer - watches CI, fixes errors locally, commits, and loops until green. Use when CI is failing and you want to automatically fix and verify changes.
Improve unclear UX copy, error messages, microcopy, labels, and instructions. Makes interfaces easier to understand and use.
| name | debug-code |
| description | Systematic error debugging with analysis, solution discovery, and verification |
| argument-hint | [error description or context] [-a for auto mode] |
<quick_start> Debug an error (interactive):
/debug login page crashes on submit
Auto mode (fully automatic, use recommended solutions):
/debug -a API returning 500 on POST
What it does:
Key principle: Tests passing ≠ fix working. Always execute the actual code path.
Log Technique: When the error can't be reproduced, strategic debug logs are added. The user runs the app and shares the console output for analysis. </quick_start>
**Battle-Tested Principles:**<verification_pyramid> Verification Pyramid:
┌─────────────┐
│ Manual │ ← User confirms
└──────┬──────┘
┌─────────┴─────────┐
│ Runtime Execution │ ← CRITICAL: Real execution
└─────────┬─────────┘
┌───────────┴───────────┐
│ Automated Checks │ ← Build, Types, Lint, Tests
└───────────┬───────────┘
┌─────────────┴─────────────┐
│ Static Analysis │ ← Syntax, Imports
└───────────────────────────┘
Key Insight: Tests passing ≠ fix working. ALWAYS execute the actual code path. </verification_pyramid>
**Flags:**| Flag | Name | Description |
|---|---|---|
-a, --auto | Auto mode | Full automatic mode - don't ask the user, use recommended solutions |
Arguments:
{error_context} - Description of the error or context about what's failing
<state_variables> Persist throughout all steps:
| Variable | Type | Description |
|---|---|---|
{error_context} | string | User's description of the error |
{auto_mode} | boolean | Skip confirmations, use recommended options |
{error_analysis} | object | Detailed analysis from step 1 |
{debug_logs} | list | Debug logs added for cleanup (file, line, prefix) |
{solutions} | list | Potential solutions found in step 2 |
{selected_solution} | object | User's chosen solution from step 3 |
{files_modified} | list | Files changed during the fix |
{verification_result} | object | Results from verification step |
| </state_variables> |
<entry_point>
Load steps/step-00-init.md
</entry_point>
<step_files>
| Step | File | Description |
|---|---|---|
| 0 | step-00-init.md | Parse flags, setup state |
| 1 | step-01-analyze.md | Reproduce error, form hypotheses, identify root cause |
| 1b | step-01b-log-instrumentation.md | Optional: Add debug logs, user runs & shares output |
| 2 | step-02-find-solutions.md | Research 2-3+ solutions with pros/cons |
| 3 | step-03-propose.md | Present solutions for user selection |
| 4 | step-04-fix.md | Implement with strategic logging |
| 5 | step-05-verify.md | Multi-layer verification (Static → Build → Runtime → User) |
| </step_files> |
<success_criteria>