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.
npx skills add majiayu000/spellbook --skill repo-agent-context-auditgit clone --depth 1 https://github.com/majiayu000/spellbookWrote 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/majiayu000/spellbook/repo-agent-context-audit)<a href="https://agentmods.dev/skills/majiayu000/spellbook/repo-agent-context-audit"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/repo-agent-context-audit/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/majiayu000/spellbook/repo-agent-context-audit"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/repo-agent-context-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00103 | $0.01727 |
| Opus 5.5 | $0.00041 | $0.00691 |
| Sonnet 5.5 | $0.00021 | $0.00345 |
| Haiku 4.5 | $0.00010 | $0.00173 |
Grade A, and why
repo-agent-context-audit 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repo Agent Context Audit
Overview
Assess whether a repository has a small, usable agent context stack: a short top-level instruction file, task-specific skills, and behavior/implementation specs for substantial work. Default to a read-only audit and minimal recommendations; create or edit high-context files only when the user explicitly asks.
If the user asks to generate, split, or apply root/scoped AGENTS.md files,
handoff to agentsmd-scaffold. This skill may identify that scaffold as the
smallest useful change, but should not duplicate the generation workflow.
Default Standard
Prefer this three-layer shape:
AGENTS.mdor repo-equivalent: 80-150 lines, top-level routing only..agents/skills/<task>/SKILL.md: reusable workflows for common fragile tasks.specs/<id>/PRODUCT.mdandspecs/<id>/TECH.md: checked-in contracts for substantial features.
Do not force this exact layout when a repo already has a coherent equivalent, such as WARP.md, CLAUDE.md, CONTRIBUTING.md, or framework-specific instruction files. Map existing files to the layers first, then fill only the real gaps.
Workflow
1. Discover
Run the read-only scanner when possible:
# From this skill directory:
python3 scripts/scan_repo_context.py <repo-root>
Then inspect the important files directly. Always search before creating:
AGENTS.md,CLAUDE.md,WARP.md,.claude/instructions.mdCONTRIBUTING.md,README.md,.github/copilot-instructions.md.agents/skills/*/SKILL.mdspecs/**/{PRODUCT,product,TECH,tech}.md
If multiple instruction files overlap, record their scopes and precedence instead of merging them by default.
2. Classify
Classify the repo into one of these states:
- Healthy: short top-level guidance, task workflows, and specs are discoverable.
- Missing top-level router: useful docs exist but agents lack an entrypoint.
- Overloaded top-level file: one file mixes rules, workflows, architecture, and reference data.
- Specless complex repo: substantial work happens without PRODUCT/TECH contracts.
- Stale or divergent: instructions contradict code, scripts, or observed repo conventions.
- Unsafe to modify: high-context files are generated, externally owned, or conflict across scopes.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3mo ago First seen · 163 lines · 103 tokens per session scan A 31000eeb067f
repo-agent-context-audit is a skill published in the GitHub repository majiayu000/spellbook (303 stars, last pushed 4d ago), licensed MIT. It adds 103 tokens to every session and 1,727 once invoked, about $0.0004 per session on Opus 5.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-09-03.
repo-agent-context-audit compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| repo-agent-context-auditmajiayu000/spellbook | Skill | 303 | 4d ago | MIT | A | 103 | Claude Code, Codex |
| cao-session-managementawslabs/cli-agent-orchestrator | Skill | 1.9k | yesterday | Apache-2.0 | B | 83 | Claude Code |
| workflowzhinkgit/embeddedskills | Skill | 829 | yesterday | MIT | A | 65 | Claude Code |
| agent-deckasheshgoplani/agent-deck | Skill | 1.4k | yesterday | MIT | A | 63 | Claude Code, Codex |
| fast-resumeangristan/fast-resume | Skill | 198 | yesterday | MIT | A | 50 | Claude Code, Codex |
| pneuma-sessionpandazki/pneuma-skills | Skill | 162 | 4d ago | MIT | A | 127 | Claude Code, Codex |
| lov-organize-storagelovstudio/skills | Skill | 72 | today | MIT | A | 58 | Claude Code |