Skip to content
Agentmart
Submit a tool

sbs-context-audit

Measures a coding agent's first-prompt context cost by tool and agent-specific group from its captured API request.

Skill by balmasi

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/balmasi-sbs-context-audit

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Measures a coding agent's first-prompt context cost by tool and agent-specific group from its captured API request. Use when the user wants to shrink context overhead, asks what tools or MCP servers cost, hits compaction early, or is deciding what to disable.

Use cases: backend, security, productivity, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/sbs-context-audit

What's inside

Skill name
sbs-context-audit
Description
Measures a coding agent's first-prompt context cost by tool and agent-specific group from its captured API request. Use when the user wants to shrink context overhead, asks what tools or MCP servers cost, hits compaction early, or is deciding what to disable.
License
MIT
Instructions
46 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (10)

  • SKILL.md
  • agent-claude.md · reference/
  • agent-codex.md · reference/
  • __init__.py · scripts/adapters/
  • base.py · scripts/adapters/
  • claude.py · scripts/adapters/
  • codex.py · scripts/adapters/
  • analyze.py · scripts/
  • capture.py · scripts/
  • sweep.py · scripts/

SKILL.md (first lines)

# Context audit

Resolve this skill's directory first; every command below runs from it, and
`--cwd` is the project being measured, not the skill.

## Measure

Choose the measured agent with `--agent` (default: `claude`). Read
`reference/agent-<agent>.md` before interpreting results or suggesting cuts.

```bash
python3 <skill-directory>/scripts/capture.py --agent <agent> \
  --outdir /tmp/ca/base --cwd <project-directory>
python3 <skill-directory>/scripts/analyze.py --agent <agent> \
  --capture /tmp/ca/base
```

Show the report and let the user choose candidates. Use the agent reference to
identify load-bearing tools and valid disabling arguments.

Measure every proposed removal:

```bash
python3 <skill-directory>/scripts/sweep.py --agent <agent> \
  --cwd <project-directory> --workdir /tmp/ca \
  "baseline=" \
  "candidate=<agent-specific arguments>"
```

Everything after `=` is passed to the agent verbatim. Sweeps modify no settings.

Never infer total savings from schema cost alone: removing a tool can also remove
related prompt blocks. Use the measured scenario delta.

## Apply

Ask before writing. The user chooses scope; paths and setting syntax are in the
agent reference. State plainly when a choice affects every project.

Back up the target file outside a temporary directory and apply the change. Run
a fresh capture/analyze without candidate arguments into `/tmp/ca/after`; compare
it with `/tmp/ca/base`.

Describe the result as context headroom and first-call savings, not a latency win.

From balmasi/skill-or-be-skilled, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jul 27, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from balmasi

Cite this page

sbs-context-audit skill. Agent Mart. https://agentmart.dev/skills/balmasi-sbs-context-audit (last updated 2026-10-24)