gsd-debug

gsd-debug is a skill for Claude Code from coco-research/coco. It costs 48 tokens per session (1,276 once invoked), scanned A, original, Apache-2.0.

A structured debugging workflow that keeps its progress and findings between context resets.

In plain words
What is it for?
Use it to investigate software problems and continue the same debugging process later.
Why use it?
It prevents repeated investigation when a debugging session is interrupted or the agent loses working context.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool.

Good fit Use it to investigate software problems and continue the same debugging process later.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/coco-research/coco/gsd-debug
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.

Any agent
npx skills add coco-research/coco --skill gsd-debug
Clone the repo
git clone --depth 1 https://github.com/coco-research/coco

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gsd-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/coco-research/coco/gsd-debug/github.svg)](https://agentmods.dev/skills/coco-research/coco/gsd-debug)
Your own site
<a href="https://agentmods.dev/skills/coco-research/coco/gsd-debug"><img src="https://agentmods.dev/badge/skills/coco-research/coco/gsd-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gsd-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/coco-research/coco/gsd-debug"><img src="https://agentmods.dev/badge/skills/coco-research/coco/gsd-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,276 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00048 $0.01276
Opus 5.5 $0.00019 $0.00510
Sonnet 5.5 $0.00010 $0.00255
Haiku 4.5 $0.00005 $0.00128

Measured 2mo ago against content hash a9a89f1a347b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gsd-debug 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 2mo 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.

systems/gsd/skills/gsd-debug/SKILL.md · 188 lines

How it starts

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

Orchestrator role: Gather symptoms, spawn gsd-debugger agent, handle checkpoints, spawn continuations.

Why subagent: Investigation burns context fast (reading files, forming hypotheses, testing). Fresh 200k context per investigation. Main context stays lean for user interaction.

Flags:

  • --diagnose — Diagnose only. Find root cause without applying a fix. Returns a structured Root Cause Report. Use when you want to validate the diagnosis before committing to a fix.

<available_agent_types> Valid GSD subagent types (use exact names — do not fall back to 'general-purpose'):

  • gsd-debugger — Diagnoses and fixes issues </available_agent_types>

Parse flags from $ARGUMENTS:

  • If --diagnose is present, set diagnose_only=true and remove the flag from the issue description.
  • Otherwise, diagnose_only=false.

Check for active sessions:

ls .planning/debug/*.md 2>/dev/null | grep -v resolved | head -5

0. Initialize Context

INIT=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" state load)
if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi

Extract commit_docs from init JSON. Resolve debugger model:

debugger_model=$(node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" resolve-model gsd-debugger --raw)

1. Check Active Sessions

If active sessions exist AND no $ARGUMENTS:

  • List sessions with status, hypothesis, next action
  • User picks number to resume OR describes new issue

If $ARGUMENTS provided OR user describes new issue:

  • Continue to symptom gathering

2. Gather Symptoms (if new issue)

Use AskUserQuestion for each:

  1. Expected behavior - What should happen?
  2. Actual behavior - What happens instead?
  3. Error messages - Any errors? (paste or describe)
  4. Timeline - When did this start? Ever worked?
  5. Reproduction - How do you trigger it?

Read the full file on GitHub · 188 lines

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. 2mo ago Changed · +35 tokens per session a9a89f1a347b
  2. 2mo ago First seen · 188 lines · 13 tokens per session scan A 17308f9f2523

Subscribe to this mod's changes

gsd-debug is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 48 tokens to every session and 1,276 once invoked, about $0.0002 per session on Opus 5.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-09-03.

Related

gsd-debug compared with skills from other repositories

gsd-debug next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gsd-debugcoco-research/cocoSkill323yesterdayApache-2.0A48Claude Code
browser-tracemxyhi/ok-skillsSkill51810d agoApache-2.0A88Claude Code
orca-replaymxyhi/ok-skillsSkill51810d agoApache-2.0A67Claude Code
refactoring-guruciembor/agent-rules-booksSkill3.4k2mo agoMITA29Claude Code, Codex
refactoringciembor/agent-rules-booksSkill3.4k2mo agoMITA20Claude Code, Codex
working-effectively-with-legacy-codeciembor/agent-rules-booksSkill3.4k2mo agoMITA37Claude Code, Codex
infrastructure-doctordocxology/templateSkill25todayApache-2.0A79Claude Code, Codex