askill
debug

debugSafety 95Repository

Systematic error debugging with analysis, solution discovery, and verification

0 stars
1.2k downloads
Updated 2/5/2026

Package Files

Loading files...
SKILL.md

<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:

  1. Analyze: Reproduce error, identify root cause → ask if you have more context
  2. Find Solutions: Research 2-3+ potential fixes with pros/cons
  3. Propose: Present options → you choose which solution
  4. Fix: Implement solution with strategic logging
  5. Verify: Multi-layer verification (Static → Build → Runtime)

Key principle: Tests passing ≠ fix working. Always execute the actual code path.

Note: Only 2 questions in the entire workflow:

  1. After analysis: "Do you have additional info?"
  2. After finding solutions: "Which solution to implement?" </quick_start>
  1. Reproduce Before Anything Else - If you can't reproduce it, you can't verify the fix
  2. Hypothesis-Driven Analysis - List 3-5 causes ranked by likelihood, test systematically
  3. Multi-Layer Verification - Tests alone give false confidence (20-40% still fail in production) </core_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>

FlagNameDescription
-a, --autoAuto modeFull automatic mode - don't ask the user, use recommended solutions

Arguments:

  • Everything after flags = {error_context} - Description of the error or context about what's failing

<state_variables> Persist throughout all steps:

VariableTypeDescription
{error_context}stringUser's description of the error
{auto_mode}booleanSkip confirmations, use recommended options
{error_analysis}objectDetailed analysis from step 1
{solutions}listPotential solutions found in step 2
{selected_solution}objectUser's chosen solution from step 3
{files_modified}listFiles changed during the fix
{verification_result}objectResults from verification step

</state_variables>

<entry_point> Load steps/step-00-init.md </entry_point>

<step_files>

StepFileDescription
0step-00-init.mdParse flags, setup state
1step-01-analyze.mdReproduce error, form hypotheses, identify root cause
2step-02-find-solutions.mdResearch 2-3+ solutions with pros/cons
3step-03-propose.mdPresent solutions for user selection
4step-04-fix.mdImplement with strategic logging
5step-05-verify.mdMulti-layer verification (Static → Build → Runtime → User)
</step_files>

<success_criteria>

  • Error successfully reproduced
  • Root cause identified through hypothesis testing
  • 2-3+ potential solutions researched with pros/cons
  • Solution selected (by user or auto mode)
  • Fix implemented with strategic logging
  • Static analysis passes (syntax, imports)
  • Build completes successfully
  • Tests pass (if tests exist)
  • Runtime execution verified (actual code path executed)
  • User confirms fix resolves the original issue
  • No regressions introduced </success_criteria>

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

95/100Analyzed 2/12/2026

A highly structured, agentic workflow for debugging that defines a clear 5-step process with state management, verification strategies, and user interaction points. It acts as a comprehensive manifest for a multi-step agent capability.

95
95
90
95
95

Metadata

Licenseunknown
Version-
Updated2/5/2026
Publishermajiayu000

Tags

apici-cdgithub-actionslintingobservabilitytesting