gac: Skill for Claude Code

.skills/debugging/SKILL.md

debugging is a skill for Claude Code, Codex from thomwebb/gac. It costs 31 tokens per session (846 once invoked), scanned C, original, MIT.

A project-specific guide for investigating failed tests, runtime errors, and unexpected command-line behavior. It lists pytest debugging options, logging approaches, and common ways to inspect provider and CLI failures.

In plain words
What is it for?
Use it to debug pytest failures, inspect provider responses, trace command-line workflows, run dry runs, or view the prompt sent to a language model.
Why use it?
It provides repeatable ways to expose more failure details, stop at the first problem, enter the debugger, or inspect the prompt and local values. This shortens the path from an error message to its cause.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is thomwebb/gac's own configuration. It tells Claude Code and Codex how to work on gac itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gac configures →

View source ↗ thomwebb/gac
Reuse

Borrowing it

Nothing to install: this file belongs to thomwebb/gac. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/thomwebb/gac/main/.skills/debugging/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/thomwebb/gac

Made for: Claude Code, Codex.

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 debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/thomwebb/gac/debugging/github.svg)](https://agentmods.dev/skills/thomwebb/gac/debugging)
Your own site
<a href="https://agentmods.dev/skills/thomwebb/gac/debugging"><img src="https://agentmods.dev/badge/skills/thomwebb/gac/debugging/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 debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/thomwebb/gac/debugging"><img src="https://agentmods.dev/badge/skills/thomwebb/gac/debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 846 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00031 $0.00846
Opus 5.5 $0.00012 $0.00338
Sonnet 5.5 $0.00006 $0.00169
Haiku 4.5 $0.00003 $0.00085

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

Security

Grade C, and why

debugging scanned grade C with 1 finding 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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

uv run python -c "import os; print({k:v for k,v in os.environ.items() if k.startswith('GAC_')})"
.skills/debugging/SKILL.md · 129 lines

How it starts

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

Debugging Workflows

When to Use

  • Tests are failing and you need to understand why
  • Runtime errors occur in CLI operation
  • Provider responses are unexpected
  • Need to trace code execution flow

Test Debugging

uv run -- pytest tests/test_cli.py -v       # Verbose
uv run -- pytest tests/test_cli.py -vv      # Extra verbose
uv run -- pytest tests/test_cli.py -s       # Show print statements
uv run -- pytest tests/test_cli.py -x       # Stop on first failure
uv run -- pytest tests/test_cli.py --pdb    # Debugger on failure
uv run -- pytest tests/test_cli.py --tb=long    # Full traceback
uv run -- pytest tests/test_cli.py --showlocals  # Local variables

Provider Test Debugging

# Run specific mocked test
uv run -- pytest tests/providers/test_openai.py::TestOpenAIProviderMocked::test_successful_api_call -vvv

# API key validation tests
uv run -- pytest tests/providers/test_openai.py -k "APIKey" -v

Note: The standard mocked test is test_successful_api_call (NOT test_successful_call).

CLI Debugging

# Dry run with verbose
gac --dry-run -v

# Message only (no commit)
gac --dry-run --message-only

# Show the prompt sent to LLM
gac --show-prompt --dry-run

# Enable debug logging
GAC_LOG_LEVEL=DEBUG uv run python -m gac.cli --dry-run -v

# Or via CLI flag
uv run python -m gac.cli --log-level DEBUG --dry-run

Note: There is NO GAC_DEBUG env var. Use GAC_LOG_LEVEL=DEBUG or --log-level DEBUG.

Checking Configuration

# Check which model/provider is configured
uv run python -c "import os; print({k:v for k,v in os.environ.items() if k.startswith('GAC_')})"

# Check stats file location
uv run python -c "from gac.stats.store import STATS_FILE; print(STATS_FILE)"

# Check OAuth token storage
uv run python -c "from gac.oauth.token_store import TOKEN_DIR; print(TOKEN_DIR)"

Stats Debugging (safe)

Always mock stats paths when debugging outside pytest:

from unittest.mock import patch
import tempfile
from pathlib import Path

with tempfile.TemporaryDirectory() as tmpdir:
    with patch("gac.stats.store.STATS_FILE", Path(tmpdir) / "debug.json"):
        from gac.stats import save_stats
        save_stats({"model": "test"})  # safe — writes to temp

Read the full file on GitHub · 129 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 First seen · 129 lines · 31 tokens per session scan C a3553dbb07e8

Subscribe to this mod's changes

debugging is a skill published in the GitHub repository thomwebb/gac (318 stars, last pushed 18d ago), licensed MIT. It adds 31 tokens to every session and 846 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

debugging compared with skills from other repositories

debugging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debuggingthomwebb/gacSkill31818d agoMITC31Claude Code, Codex
agent-merge-conflict-arbiterNousResearch/hermes-agentSkill261kyesterdayMITA19Claude Code, Codex
resolve-handoffomnigent-ai/omnigentSkill11kyesterdayApache-2.0A23Claude Code, Codex
resolve-publishomnigent-ai/omnigentSkill11kyesterdayApache-2.0A21Claude Code, Codex
code-taskopensquilla/opensquillaSkill7.1k6d agoApache-2.0A322Claude Code, Codex
mantis-criticgoogle/mantisSkill2.7kyesterdayApache-2.0A55Claude Code, Codex
resolve-inputsomnigent-ai/omnigentSkill11kyesterdayApache-2.0A22Claude Code, Codex