gsd-debug

gsd-debug is a skill for Claude Code, Codex from open-gsd/gsd-core. It costs 13 tokens per session (425 once invoked), scanned A, original, MIT.

A structured debugging workflow that investigates software problems using saved progress and a scientific method.

In plain words
What is it for?
Use it to start, inspect, continue, or diagnose debugging sessions, including producing a root-cause report without changing the code.
Why use it?
It keeps an investigation from being lost when the conversation or working context changes, and separates diagnosis from applying a fix.

Skill for Claude CodeCodex

Part of the gsd-core plugin — 18 skills, 38 agents, 7 hooks shipped together

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/open-gsd/gsd-core/gsd-debug
Any agent
npx skills add open-gsd/gsd-core --skill gsd-debug
Clone the repo
git clone --depth 1 https://github.com/open-gsd/gsd-core

Made for: Claude Code, Codex.

Or install gsd-core, the plugin that ships this one along with the rest of its 18 skills, 38 agents, 7 hooks.

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/open-gsd/gsd-core/gsd-debug.svg)](https://agentmods.dev/skills/open-gsd/gsd-core/gsd-debug)
Your own site
<a href="https://agentmods.dev/skills/open-gsd/gsd-core/gsd-debug"><img src="https://agentmods.dev/badge/skills/open-gsd/gsd-core/gsd-debug.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 425 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.00013 $0.00425
Opus 5 $0.00006 $0.00212
Sonnet 5 $0.00003 $0.00085
Haiku 4.5 $0.00001 $0.00042

Measured 4d ago against content hash 1b2864b06019, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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/gsd-debug/SKILL.md · 54 lines

What it actually says

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

Flags:

  • --diagnose — Diagnose only. Returns a Root Cause Report without applying a fix.

Subcommands: list · status <slug> · continue <slug>

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

  • gsd-debug-session-manager — manages debug checkpoint/continuation loop in isolated context
  • gsd-debugger — investigates bugs using scientific method </available_agent_types>

<execution_context> @~/.claude/gsd-core/workflows/debug.md </execution_context>

Parse subcommands and flags from $ARGUMENTS BEFORE the active-session check:

  • If $ARGUMENTS starts with "list": SUBCMD=list, no further args
  • If $ARGUMENTS starts with "status ": SUBCMD=status, SLUG=remainder (trim whitespace)
  • If $ARGUMENTS starts with "continue ": SUBCMD=continue, SLUG=remainder (trim whitespace)
  • If $ARGUMENTS contains --diagnose: SUBCMD=debug, diagnose_only=true, strip --diagnose from description
  • Otherwise: SUBCMD=debug, diagnose_only=false

Check for active sessions (used for non-list/status/continue flows):

ls .planning/debug/*.md 2>/dev/null | grep -v resolved | head -5
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. 4d ago First seen · 54 lines · 13 tokens per session scan A 1b2864b06019

Subscribe to this mod's changes

gsd-debug is a skill published in the GitHub repository open-gsd/gsd-core (9,086 stars, last pushed today), licensed MIT. It adds 13 tokens to every session and 425 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

code-optimizer

Deep code optimization audit using parallel specialist agents that hunt performance anti-patterns via pattern-based detection, avoiding anchoring bias. Covers DB queries, memory leaks, algorithmic complexity, concurrency, bundle size, dead code, I/O/network, rendering, caching, and build config. Use when asked to…

open-gsd/gsd-pi · 94 tokens

director:resume

Pick up where you left off after a break. Restores your context automatically.

noahrasheta/director · 20 tokens

best-practices

Apply modern web development best practices for security, compatibility, and code quality. Use when asked to "apply best practices", "security audit", "modernize code", "code quality review", or "check for vulnerabilities".

open-gsd/gsd-pi · 49 tokens

gsd-orchestrator

Build software products autonomously via GSD headless mode. Handles the full lifecycle: write a spec, launch a build, poll for completion, handle blockers, track costs, and verify the result. Use when asked to "build something", "create a project", "run gsd", "check build status", or any task that requires autonomous…

open-gsd/gsd-pi · 80 tokens

gsd-headless

Orchestrate GSD (Git Ship Done) projects programmatically via headless CLI. Use when an agent needs to create milestones from specs, execute dev workflows, monitor progress, check status, or control execution (pause/stop/skip/steer). Triggers on "run gsd", "create milestone", "execute project", "check gsd status"…

open-gsd/gsd-pi · 102 tokens

core-web-vitals

Optimize Core Web Vitals (LCP, INP, CLS) for better page experience and search ranking. Use when asked to "improve Core Web Vitals", "fix LCP", "reduce CLS", "optimize INP", "page experience optimization", or "fix layout shifts".

open-gsd/gsd-pi · 65 tokens