synaptiai/agent-capability-standard/debug-workflow
Claude Code and agent skill by synaptiai/agent-capability-standard
- community
Checking that the SKILL.md file is still in the repository.
Execute the Debug Code Change workflow end-to-end with safety gates. Use when debugging code changes, investigating issues, or performing root cause analysis with audit trail.
Install
npx vskill@latest install synaptiai/agent-capability-standard/debug-workflowSKILL.md
Intent
Run the composed workflow debug_code_change (reference/workflow_catalog.yaml) using atomic capability skills to diagnose and fix a bug with full safety and audit capabilities.
Success criteria:
- Every step output is grounded with evidence anchors
- Safety gates are respected (checkpoint before any mutation)
- All issues are traced to root cause with supporting evidence
- Final result includes complete audit trail
- Rollback runs only when verification fails
Compatible schemas:
reference/workflow_catalog.yaml
Inputs
| Parameter | Required | Type | Description | |
|---|---|---|---|---|
bug | Yes | object | The failure to diagnose and fix: component (where it is), symptom (what goes wrong), fix_command (the command that applies and tests the fix) | |
user_input | No | object | domain and constraints (e.g. time budget, files to exclude) |
Procedure
0) Create checkpoint marker if mutation might occur:
- Create
.claude/checkpoint.okafter confirming rollback strategy
1) Invoke `/observe` on bug.component and store output as observe_out
- Observe failing behavior, logs, and relevant code paths
2) Invoke `/search` for bug.symptom and store output as search_out
- Find related code, configs, and error patterns
3) Invoke `/attribute` with bug.symptom as the effect and store output as attribute_out
- Build the dependency graph and identify causal relationships around the failing component
4) Invoke `/constrain` on bug.component and store output as constrain_out
- Define the invariants the fix must keep (existing tests pass, public interfaces unchanged)
5) Invoke `/critique` on attribute_out.causes and store output as critique_out
- List likely failure modes and edge cases
6) Invoke `/plan` with user_input.constraints, and the observation, related code, causes and critique (critique_out.issues, critique_out.suggestions) as context, and store output as plan_out
- Produce a minimal fix plan with checkpoints
7) Invoke `/checkpoint` on bug.component and store output as checkpoint_out
- Save a restore point before mutation
8) Invoke `/execute` with bug.fix_command and store output as execute_out
- Apply the fix, run tests, and produce a diff summary
- Skip this step when
plan_out.stepsis empty: no fix is applied, and the run goes on to the audit - If the fix command fails or times out (R401/R402), roll back to
checkpoint_outand end the run with that error
9) Invoke `/verify` on the component and execute_out, and store output as verify_out
- Run targeted verification: tests pass, the symptom is resolved, and public interfaces are unchanged
- Skip this step when the fix was not applied (
execute_outis null) - If verification cannot run (R401/R402 after its retries), roll back to
checkpoint_outand end the run with that error
10) Invoke `/rollback` to checkpoint_out.checkpoint_id if verify_out.passed is false, and store output as rollback_out
- The step is skipped when no fix was applied or verification passes
- The step does not take a checkpoint of its own (
requires_checkpoint: false): it restores the one taken at step 7, which the fix consumed
11) Invoke `/audit` and store output as audit_out
- Record what changed and why: the component, the causes, the plan, the exit code, the verdict, and whether it was rolled back (
rollback_out.restored; null when the rollback was skipped)
Output Contract
Return a structured object:
Field Definitions
| Field | Type | Description | |
|---|---|---|---|
workflow_id | string | Unique identifier for this workflow execution | |
status | enum | Final workflow status | |
steps | object | Each step's output, keyed by its store_as | |
root_cause | object | Identified root cause with evidence | |
resolution | object | What was done to fix the issue | |
verification | enum | Final PASS/FAIL after fix applied | |
confidence | number | 0.0-1.0 based on evidence quality | |
evidence_anchors | array | All evidence references collected | |
assumptions | array | Explicit assumptions made during debugging |
Examples
Example 1: Debug Failing Test After Refactor
Input:
Output:
Evidence pattern: Combined code inspection, git blame for change attribution, test execution for verification.
Verification
- [ ] Step Completeness: All 11 workflow steps executed with output (execute and verify skipped when the plan had no steps; rollback skipped when nothing was applied or verification passed)
- [ ] Evidence Grounding: Every step output includes evidence_anchors
- [ ] Checkpoint Created: Mutation steps preceded by checkpoint
- [ ] Root Cause Identified: root_cause has specific description and evidence
- [ ] Verification Passed: verify_out.passed is true before completion
- [ ] Audit Trail: audit_log_pointer points to valid log file
- [ ] Rollback Ready: checkpoint_out.checkpoint_id recorded before the fix ran
Verification tools: Bash (for test execution), Git (for change verification), Read (for audit log)
Safety Constraints
mutation: truerequires_checkpoint: truerequires_approval: true (theexecutestep that applies the fix)risk: high
Capability-specific rules:
- NEVER proceed to
executewithout checkpoint and explicit plan - STOP and request clarification if any step produces confidence < 0.3
- ALWAYS verify fix before marking workflow complete
- Record the checkpoint before any mutation
- Preserve original error state for comparison
Composition Patterns
Commonly follows:
receive- After receiving bug report or error notificationretrieve- After fetching relevant context or logs
Commonly precedes:
explain- To create debug report for stakeholderssend- To notify team of resolution
Anti-patterns:
- Never skip
/observeto jump directly to/plan - Never proceed past
/critiquewithout addressing identified weaknesses - Never run
/executewithout prior/checkpoint - Never mark complete without
/verifyconfirmation
Workflow references:
- See
reference/workflow_catalog.yaml#debug_code_changefor step definitions - See
reference/composition_patterns.md#checkpoint-act-verify-rollbackfor CAVR pattern
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/debug-workflow/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/synaptiai/agent-capability-standard/debug-workflow)