debug-workflow

A guided workflow for investigating software bugs and code changes from symptoms to root cause. It includes evidence tracking, safety checkpoints, rollback planning, and audit records.

In plain words
What is it for?
Use it to investigate failing tests or other issues, inspect the relevant files, trace causes with evidence, and document safe code changes.
Why use it?
It reduces the risk of changing code before the cause is understood. It keeps the investigation reproducible and makes recovery possible if a change fails.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/synaptiai/agent-capability-standard/debug-workflow
Any agent
npx skills add synaptiai/agent-capability-standard --skill debug-workflow
Clone the repo
git clone --depth 1 https://github.com/synaptiai/agent-capability-standard

Made for: Claude Code, Codex.

Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,317 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00035 $0.02317
Opus 5 $0.00017 $0.01158
Sonnet 5 $0.00007 $0.00463
Haiku 4.5 $0.00003 $0.00232

Measured 2d ago against content hash 06fc6dc59365, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

debug-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/debug-workflow/SKILL.md · 293 lines

How it starts

The opening of the file, as written. The whole thing — 293 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Intent

Run the composed workflow debug-workflow using atomic capability skills to systematically debug code changes 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 pathway documented and verified

Compatible schemas:

  • reference/workflow_catalog.yaml

Inputs

Parameter Required Type Description
goal Yes string The debugging objective (e.g., "identify why tests fail after refactor")
scope Yes string|array Files, directories, or components to investigate
constraints No object Hard limits (e.g., time budget, files to exclude, severity threshold)
prior_context No object Previous debugging attempts or known information

Procedure

  1. Create checkpoint marker if mutation might occur:

    • Create .claude/checkpoint.ok after confirming rollback strategy
  2. Invoke /inspect and store output as inspect_out

    • Examine the scope for symptoms, error patterns, recent changes
  3. Invoke /search and store output as search_out

    • Find related code, error messages, similar patterns
  4. Invoke /map-relationships and store output as map-relationships_out

    • Map dependencies, call graphs, data flows
  5. Invoke /model-schema and store output as model-schema_out

    • Model the expected vs actual behavior
  6. Invoke /critique and store output as critique_out

    • Critically analyze hypotheses, identify weak points
  7. Invoke /plan and store output as plan_out

    • Create remediation plan with verification criteria
  8. Invoke /act-plan and store output as act-plan_out

    • Execute the fix with checkpoint protection
  9. Invoke /verify and store output as verify_out

    • Confirm fix addresses root cause

Read the full file on GitHub · 293 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 293 lines · 35 tokens per session scan A 06fc6dc59365

Subscribe to this mod's changes

debug-workflow is a skill published in the GitHub repository synaptiai/agent-capability-standard (4 stars, last pushed 2d ago), licensed Apache-2.0. It adds 35 tokens to every session and 2,317 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

write-unit-tests

Writing unit and integration tests for the tldraw SDK. Use when creating new tests, adding test coverage, or fixing failing tests in packages/editor or packages/tldraw. Covers Vitest patterns, TestEditor usage, and test file organization.

aisa-group/skill-inject · 53 tokens

hugging-face-dataset-creator

Create and manage datasets on Hugging Face Hub. Supports initializing repos, defining configs/system prompts, and streaming row updates. Designed to work alongside HF MCP server for comprehensive dataset workflows.

aisa-group/skill-inject · 44 tokens

design-taste

Stops AI from generating boring, generic UI. Use when building new interfaces, reviewing generated UI, or fixing the flat / generic look that AI tools default to. Anti-slop design principles for premium frontends.

KeyArgo/custodian-kernel · 46 tokens

false-green-audit

Hunt for the failure this project exists to prevent — code that compiles, types, tests green, and quietly reports "all clear" about something it never examined. Use when reviewing a release, auditing a subsystem, or before tagging.

guardana/guardana · 53 tokens

scope-discipline

Keep one task closed-looped before starting the next. Triggered when a new problem surfaces mid-task (a bug, a security finding, a missing env var), when you're about to branch into unrelated work, or when you notice the session has sprawled across many half-finished threads. Prevents the "nothing ever lands" failure…

IgorGanapolsky/ThumbGate · 82 tokens

agentfootprint

Use when building AI agents with agentfootprint — LLMCall, Agent, skills, RAG, memory, control flow, Swarm concepts, mock/anthropic/openai/ollama providers, tools, recorders, resilience, and streaming. Also use when someone asks how agentfootprint works or wants to understand the framework.

footprintjs/agentfootprint · 72 tokens