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.
curl -O https://raw.githubusercontent.com/thomwebb/gac/main/.skills/debugging/SKILL.mdgit clone --depth 1 https://github.com/thomwebb/gacWrote 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.
[](https://agentmods.dev/skills/thomwebb/gac/debugging)<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.
<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>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.
| Model | Per session | Once 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 |
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_')})" 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
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.
- 2mo ago First seen · 129 lines · 31 tokens per session scan C a3553dbb07e8
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.
debugging compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| debuggingthomwebb/gac | Skill | 318 | 18d ago | MIT | C | 31 | Claude Code, Codex |
| agent-merge-conflict-arbiterNousResearch/hermes-agent | Skill | 261k | yesterday | MIT | A | 19 | Claude Code, Codex |
| resolve-handoffomnigent-ai/omnigent | Skill | 11k | yesterday | Apache-2.0 | A | 23 | Claude Code, Codex |
| resolve-publishomnigent-ai/omnigent | Skill | 11k | yesterday | Apache-2.0 | A | 21 | Claude Code, Codex |
| code-taskopensquilla/opensquilla | Skill | 7.1k | 6d ago | Apache-2.0 | A | 322 | Claude Code, Codex |
| mantis-criticgoogle/mantis | Skill | 2.7k | yesterday | Apache-2.0 | A | 55 | Claude Code, Codex |
| resolve-inputsomnigent-ai/omnigent | Skill | 11k | yesterday | Apache-2.0 | A | 22 | Claude Code, Codex |