Systematic debugging with persistent state across context resets

MITAuto-check passedAgent Workflows

Install Gsd Debug

skills CLI
$ npx skills add SpillwaveSolutions/agent-brain --skill gsd-debug -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install SpillwaveSolutions/agent-brain gsd-debug --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/SpillwaveSolutions/agent-brain.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/gsd-debug .claude/skills/gsd-debug && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gsd-debug
GitHub stars
120
Used in
4 other repos
Token cost
~1.5k tokens
SKILL.md length
519 words
Files
1
Skills in repo
55
Repo updated
First seen
Licence
MIT

At a glance

Systematic debugging with persistent state across context resets

  • Works in 6 steps: Initialize Context → Check Active Sessions → Gather Symptoms (if new issue) → …
  • Tasks that involve Debugging
  • SKILL.md covers A. Skill Invocation, B. AskUserQuestion →…, C. Task() → spawn_agent Mapping and 0. Initialize Context, plus 5 more sections
  • Calls node

What it does

Gsd Debug is an agent skill from SpillwaveSolutions/agent-brain. Systematic debugging with persistent state across context resets

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Debugging and Agent memory. The repository describes itself as: Local-first RAG memory for AI agents: hybrid + GraphRAG search, MCP server with OAuth 2.1, plugin for Claude Code / OpenCode / Codex. The licence is MIT.

When your agent uses it

  • Tasks that involve Debugging
  • Tasks that involve Agent memory

Example prompts

  • “/gsd-debug”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Initialize Context
  2. Check Active Sessions
  3. Gather Symptoms (if new issue)
  4. Spawn gsd-debugger Agent
  5. Handle Agent Return
  6. Spawn Continuation Agent (After Checkpoint)

What it can do on your machine

Read from SKILL.md and the folder at commit 8339623. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Gsd Debug loads about 1.5k tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 519 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~19
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from SpillwaveSolutions/agent-brain at commit 8339623, republished under its MIT licence (© SpillwaveSolutions). 519 words, ~1,486 tokens.

Download SKILL.mdSave it as .claude/skills/gsd-debug/SKILL.md (or your agent's skills folder).
name
gsd-debug
description
Systematic debugging with persistent state across context resets
metadata.short-description
Systematic debugging with persistent state across context resets

<codex_skill_adapter>

A. Skill Invocation

  • This skill is invoked by mentioning $gsd-debug.
  • Treat all user text after $gsd-debug as {{GSD_ARGS}}.
  • If no arguments are present, treat {{GSD_ARGS}} as empty.

B. AskUserQuestion → request_user_input Mapping

GSD workflows use AskUserQuestion (Claude Code syntax). Translate to Codex request_user_input:

Parameter mapping:

  • header → header
  • question → question
  • Options formatted as "Label" — description → {label: "Label", description: "description"}
  • Generate id from header: lowercase, replace spaces with underscores

Batched calls:

  • AskUserQuestion([q1, q2]) → single request_user_input with multiple entries in questions[]

Multi-select workaround:

  • Codex has no multiSelect. Use sequential single-selects, or present a numbered freeform list asking the user to enter comma-separated numbers.

Execute mode fallback:

  • When request_user_input is rejected (Execute mode), present a plain-text numbered list and pick a reasonable default.

C. Task() → spawn_agent Mapping

GSD workflows use Task(...) (Claude Code syntax). Translate to Codex collaboration tools:

Direct mapping:

  • Task(subagent_type="X", prompt="Y") → spawn_agent(agent_type="X", message="Y")
  • Task(model="...") → omit (Codex uses per-role config, not inline model selection)
  • fork_context: false by default — GSD agents load their own context via <files_to_read> blocks

Parallel fan-out:

  • Spawn multiple agents → collect agent IDs → wait(ids) for all to complete

Result parsing:

  • Look for structured markers in agent output: CHECKPOINT, PLAN COMPLETE, SUMMARY, etc.
  • close_agent(id) after collecting results from each agent </codex_skill_adapter>
<objective>
Debug issues using scientific method with subagent isolation.

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. </objective>

<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>
<context>
User's issue: {{GSD_ARGS}}

Check for active sessions:

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

0. Initialize Context

bash
INIT=$(node "/Users/richardhightower/clients/spillwave/src/agent-brain/.codex/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:

bash
debugger_model=$(node "/Users/richardhightower/clients/spillwave/src/agent-brain/.codex/get-shit-done/bin/gsd-tools.cjs" resolve-model gsd-debugger --raw)

1. Check Active Sessions

If active sessions exist AND no {{GSD_ARGS}}:

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

If {{GSD_ARGS}} provided OR user describes new issue:

  • Continue to symptom gathering
Show full SKILL.md (196 more words)Show less

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?

After all gathered, confirm ready to investigate.

3. Spawn gsd-debugger Agent

Fill prompt and spawn:

markdown
<objective>
Investigate issue: {slug}

**Summary:** {trigger}
</objective>

<symptoms>
expected: {expected}
actual: {actual}
errors: {errors}
reproduction: {reproduction}
timeline: {timeline}
</symptoms>

<mode>
symptoms_prefilled: true
goal: find_and_fix
</mode>

<debug_file>
Create: .planning/debug/{slug}.md
</debug_file>
Task(
  prompt=filled_prompt,
  subagent_type="gsd-debugger",
  model="{debugger_model}",
  description="Debug {slug}"
)

4. Handle Agent Return

If ## ROOT CAUSE FOUND:

  • Display root cause and evidence summary
  • Offer options:
    • "Fix now" - spawn fix subagent
    • "Plan fix" - suggest $gsd-plan-phase --gaps
    • "Manual fix" - done

If ## CHECKPOINT REACHED:

  • Present checkpoint details to user
  • Get user response
  • If checkpoint type is human-verify:
    • If user confirms fixed: continue so agent can finalize/resolve/archive
    • If user reports issues: continue so agent returns to investigation/fixing
  • Spawn continuation agent (see step 5)

If ## INVESTIGATION INCONCLUSIVE:

  • Show what was checked and eliminated
  • Offer options:
    • "Continue investigating" - spawn new agent with additional context
    • "Manual investigation" - done
    • "Add more context" - gather more symptoms, spawn again

5. Spawn Continuation Agent (After Checkpoint)

When user responds to checkpoint, spawn fresh agent:

markdown
<objective>
Continue debugging {slug}. Evidence is in the debug file.
</objective>

<prior_state>
<files_to_read>
- .planning/debug/{slug}.md (Debug session state)
</files_to_read>
</prior_state>

<checkpoint_response>
**Type:** {checkpoint_type}
**Response:** {user_response}
</checkpoint_response>

<mode>
goal: find_and_fix
</mode>
Task(
  prompt=continuation_prompt,
  subagent_type="gsd-debugger",
  model="{debugger_model}",
  description="Continue debug {slug}"
)
</process>

<success_criteria>

  • Active sessions checked
  • Symptoms gathered (if new)
  • gsd-debugger spawned with context
  • Checkpoints handled correctly
  • Root cause confirmed before fixing </success_criteria>

© SpillwaveSolutions, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .codex/skills/gsd-debug of SpillwaveSolutions/agent-brain.

Open the folder on GitHubat commit 8339623

Used in 4 other repositories

We found 15 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 4 other GitHub owners. This page covers the copy in SpillwaveSolutions/agent-brain, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Gsd Debug next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Gsd Debug compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Gsd Debug this skillSpillwaveSolutions/agent-brain1204 repos~1.5kAutomated safety check: PassMIT
Vibe Reflect And Compoundash1794/vibe-engineering162—~864Automated safety check: PassMIT
Cuda Cpp Kernelvipshop/cache-dit1.3k—~2.3kAutomated safety check: PassApache-2.0
CodeNavitech-leads-club/agent-skills7k—~3.4kAutomated safety check: PassCC-BY-4.0
Learning LoopLeoYeAI/openclaw-master-skills2.2k—~4.4kAutomated safety check: PassMIT
Project Timeline Reportthedotmack/claude-mem97k1 repos~3.1kAutomated safety check: PassApache-2.0

Similar skills

  • Vibe Reflect And Compound

    ash1794/vibe-engineering

    Captures reusable knowledge after work is done — learnings from feedback or failures, resolved bugs (symptom, root cause, prevention), and recurring code patterns — into the project's persistent…

    162 GitHub stars~864 tokensUpdated today
    DevelopmentAuto-check passed
  • Cuda Cpp Kernel

    vipshop/cache-dit

    A skill your agent uses when writing, debugging, porting, reviewing, or optimizing CUDA C++ or PTX kernels; investigating CUDA Runtime or Driver API behavior; profiling kernels with Nsight Systems…

    1.3k GitHub stars~2.3k tokensUpdated 8 days ago
    AI & LLM EngineeringAuto-check passed
  • CodeNavi

    tech-leads-club/agent-skills

    Investigates unfamiliar codebases before changing them, makes small targeted edits and records what it learns in a .notebook/ folder for later sessions.

    7k GitHub stars~3.4k tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • Learning Loop

    LeoYeAI/openclaw-master-skills

    Structured self-improvement system for AI agents with confidence decay, cross-agent sharing, and anomaly detection.

    2.2k GitHub stars~4.4k tokensUpdated 2 mo ago
    Data & AnalyticsAuto-check passed
  • Project Timeline Report

    thedotmack/claude-mem

    Writes a narrative Journey Into report on a project's whole development history, built from the timeline that claude-mem has recorded.

    97k GitHub starsUsed in 1 repo~3.1k tokens
    Agent WorkflowsAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed

More from SpillwaveSolutions/agent-brain

All 55 skills in this repo
  • Gsd Complete Milestone

    SpillwaveSolutions/agent-brain

    Archive completed milestone and prepare for next version. An agent skill from SpillwaveSolutions/agent-brain.

    120 GitHub starsUsed in 4 repos~1.6k tokens
    Auto-check passed
  • Mastering Python Skill

    SpillwaveSolutions/agent-brain

    Modern Python coaching covering language foundations through advanced production patterns.

    120 GitHub stars~1.4k tokensUpdated 17 days ago
    Auto-check: notes
  • Gsd Review Backlog

    SpillwaveSolutions/agent-brain

    Review and promote backlog items to active milestone. An agent skill from SpillwaveSolutions/agent-brain.

    120 GitHub starsUsed in 3 repos~961 tokens
    Auto-check passed
  • Configuring Agent Brain

    SpillwaveSolutions/agent-brain

    Installation and configuration skill for Agent Brain document search system.

    120 GitHub stars~7k tokensUpdated 17 days ago
    Auto-check: notes
  • Gsd Thread

    SpillwaveSolutions/agent-brain

    Manage persistent context threads for cross-session work. An agent skill from SpillwaveSolutions/agent-brain.

    120 GitHub starsUsed in 3 repos~1.2k tokens
    Auto-check passed
  • Gsd Plant Seed

    SpillwaveSolutions/agent-brain

    Capture a forward-looking idea with trigger conditions — surfaces automatically at the right milestone

    120 GitHub starsUsed in 2 repos~691 tokens
    Auto-check passed

Questions about Gsd Debug

What does Gsd Debug do?

Systematic debugging with persistent state across context resets. Gsd Debug is an agent skill from SpillwaveSolutions/agent-brain.

When should I use Gsd Debug?

Gsd Debug fits situations like: tasks that involve Debugging; tasks that involve Agent memory.

How do I install Gsd Debug in Claude Code?

Run `npx skills add SpillwaveSolutions/agent-brain --skill gsd-debug -a claude-code`. Or copy the skill folder (.codex/skills/gsd-debug in SpillwaveSolutions/agent-brain) into .claude/skills/gsd-debug in your project. Claude Code loads it when a task matches its description.

How do I install Gsd Debug in Codex?

Run `npx skills add SpillwaveSolutions/agent-brain --skill gsd-debug -a codex`. Or copy the skill folder (.codex/skills/gsd-debug in SpillwaveSolutions/agent-brain) into .agents/skills/gsd-debug in your project. Codex loads it when a task matches its description.

Can I use Gsd Debug in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SpillwaveSolutions/agent-brain --skill gsd-debug -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gsd-debug, .gemini/skills/gsd-debug, .github/skills/gsd-debug and .opencode/skills/gsd-debug in your project.

What does Gsd Debug need to run?

Going by SKILL.md and its folder, Gsd Debug needs the command-line tools its instructions call (node).

Does Gsd Debug access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Gsd Debug safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Gsd Debug use?

Gsd Debug is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Gsd Debug use?

About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Gsd Debug?

Skills that share tags, products or a category with Gsd Debug: Vibe Reflect And Compound (ash1794/vibe-engineering, 162 stars), Cuda Cpp Kernel (vipshop/cache-dit, 1.3k stars), CodeNavi (tech-leads-club/agent-skills, 7k stars) and Learning Loop (LeoYeAI/openclaw-master-skills, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Gsd Debug?

SpillwaveSolutions (a GitHub organization) maintains it in SpillwaveSolutions/agent-brain, which has 120 GitHub stars. The repository holds 55 skills in this directory. The repository was last updated on September 19, 2026.

Source: SpillwaveSolutions/agent-brain on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.