context-audit

context-audit is a skill for Claude Code, Codex from mtvrkan/senior-dev-kit. It costs 33 tokens per session (769 once invoked), scanned A, original, MIT.

Measure what every session pays before it starts — always-loaded files, their size, and what could move to a lazy doc without losing a rule.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md; mentions Gemini CLI.

Install with agentmods
npx agentmods add skills/mtvrkan/senior-dev-kit/context-audit
Install

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.

Any agent
npx skills add mtvrkan/senior-dev-kit --skill context-audit
Clone the repo
git clone --depth 1 https://github.com/mtvrkan/senior-dev-kit

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 context-audit

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

agentmods 80×15 button for context-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/mtvrkan/senior-dev-kit/context-audit"><img src="https://agentmods.dev/badge/skills/mtvrkan/senior-dev-kit/context-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 769 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00033 $0.00769
Opus 5.5 $0.00013 $0.00308
Sonnet 5.5 $0.00007 $0.00154
Haiku 4.5 $0.00003 $0.00077

Measured today against content hash 3f6fe048694f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-audit scanned grade A 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 today.

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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

`000-security.md` and `001-conventions.md` — plus `~/.gemini/GEMINI.md`, `~/.gemini/config/AGENTS.md`

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

antigravity/skills/context-audit/SKILL.md · 58 lines

How it starts

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

/context-audit

Answer one question with numbers: what does this setup cost every session, in every project, and which of it is not earning its place? Report first, change nothing until the user approves.

1. Measure

Always loaded in full at session start: the plugin's always_on rules — KIT_ROOT/rules/protocol.md, 000-security.md and 001-conventions.md — plus ~/.gemini/GEMINI.md, ~/.gemini/config/AGENTS.md and every AGENTS.md / GEMINI.md from the project root down to the working directory. The trigger: model_decision rules cost their one-line description every session (count those lines too); their bodies, everything under agent_docs/ and skill bodies load on demand.

KIT_ROOT="$(agy plugin list --json | node -e "let s='';process.stdin.on('data',d=>s+=d).on('end',()=>console.log(JSON.parse(s).find(p=>p.name==='senior-dev-kit')?.path??''))")"
for f in "$KIT_ROOT/rules/protocol.md" "$KIT_ROOT/rules/000-security.md" "$KIT_ROOT/rules/001-conventions.md" ~/.gemini/GEMINI.md ~/.gemini/config/AGENTS.md ./AGENTS.md ./GEMINI.md; do
  [ -f "$f" ] || continue
  printf "%-40s lines=%-5s ~tokens=%s\n" "$f" "$(grep -c '' "$f")" "$(( $(wc -c < "$f") / 4 ))"
done

Antigravity gives always-on rules a shared 20,000-token budget and demotes rules past it to a path pointer. Report the total against that budget, and the three largest sections inside the largest file.

2. Judge each block against DOC FRUGALITY (rules/protocol.md)

Changes behaviour + not derivable from code/tooling  → keep, always loaded
Reference table, enumeration, procedure detail       → move to agent_docs/*.md, leave a pointer
Restated somewhere else                              → keep one home, delete the copy
Framework default, or a listing a command answers    → delete
Only relevant on an explicit trigger phrase          → lazy doc; the stub names the trigger

3. Contradictions

Two always-loaded lines that disagree cost more than either saves. Report every pair found, with path:line for both, and which one RULE PRECEDENCE (KIT_ROOT/rules/001-conventions.md) makes the winner.

Read the full file on GitHub · 58 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. today First seen · 58 lines · 33 tokens per session scan A 3f6fe048694f

Subscribe to this mod's changes

context-audit is a skill published in the GitHub repository mtvrkan/senior-dev-kit (11 stars, last pushed yesterday), licensed MIT. It adds 33 tokens to every session and 769 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.

Related

context-audit compared with skills from other repositories

context-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-auditmtvrkan/senior-dev-kitSkill11yesterdayMITA33Claude Code, Codex
workflow-methodologyArsxxi/iterative-dev-workflowSkill24mo agoMITA2Claude Code
agy-researcherkeli-wen/agy-staffSkill9504d agoMITA77Claude Code
agy-stafferkeli-wen/agy-staffSkill9504d agoMITA126Claude Code
askkeli-wen/agy-staffSkill9504d agoMITA67Claude Code
researcherkeli-wen/agy-staffSkill9504d agoMITA75Claude Code
agy-askkeli-wen/agy-staffSkill9504d agoMITA69Claude Code