CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

context-audit

Token-hygiene audit of the always-loaded context stack — CLAUDE.md, AGENTS.md, auto-memory MEMORY.md, and the bootstrap-rendered identity files (SOUL.md, USER.md, ACCESS_POLICY.md, HEARTBEAT.md) or their harness equivalents. Finds redundancy, contradictions, stale content, compression candidates, and skill-extraction candidates; produces a ranked action list sorted by token savings with a risk class per finding. REPORT-ONLY: this skill never edits any audited file. Recommendations for bootstrap-rendered files target the interview answer bank / templates, never the rendered output. Judging routes through `gbrain eval cross-modal` (single cheap model by default; full multi-model panel is explicit opt-in).

Quality

76%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Fix and improve this skill with Tessl

tessl review fix ./plugin/skills/context-audit/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

81%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A strongly actionable, well-sequenced audit procedure: deterministic measurement commands, a native eval gate with explicit exit-code feedback loops, and a concrete output template make it executable end-to-end. The main costs are repetition of the report-only and rendered-file guardrails across four-plus sections and a monolithic single-file layout with references pointing outside the shipped bundle.

Suggestions

State the report-only and rendered-file-safety guarantees once in the Contract and cross-reference them from Procedure and Anti-Patterns instead of restating each 3-5 times — this is the single biggest token saving in the body.

Move the five-skill Dedup comparison table into a references file (or trim to the two closest rivals, soul-audit and skill-optimizer) so the main body stays a lean overview.

Link the unlinked skill mentions (cron-scheduler, skill-creator, functional-area-resolver, skillpack-check) the way soul-audit is linked, so navigation to sibling skills is consistent and verifiable.

DimensionReasoningScore

Conciseness

The bulk is tight and procedural (measurement command, judging command, output template), but the core guardrails are restated repeatedly: report-only appears in "What this is" ("It is an auditor, not a surgeon"), the Contract, step 3 ("All three classes are recommendations"), step 5, and Anti-Patterns; rendered-file safety is likewise stated in the Contract, the scope table, step 4's task string, the output template, Anti-Patterns, and Dedup. Not 4: this goes beyond "minor instances that could be trimmed" — consolidating each guardrail to one canonical statement would cut a meaningful fraction of the body. Not 2: there is no explanation of concepts Claude already knows, and the remaining content is dense with earned tokens.

3 / 5

Actionability

Fully executable, copy-paste-ready guidance throughout: the measurement loop with exact integer arithmetic ("bytes/2.8 ... integer ceil: (n*10+27)/28"), the complete `gbrain eval cross-modal` invocation with all flags, the JUDGE resolution command, the answer-bank fix commands (`gbrain bootstrap interview --set KEY "..."` then `gbrain bootstrap render --only <FILE> --force`), and a full output-format template. Specific examples cover the common cases, matching anchor 5.

5 / 5

Workflow Clarity

Clear five-step sequence (enumerate deterministically → read/analyze against six named dimensions → classify by risk → judge → deliver) with an explicit validation gate and feedback loop: exit 1 FAIL means "fix the flagged weaknesses in the draft ... and re-judge", plus exit-2 and no-key fallback handling in "When it fails" ("say the audit ran structure-only and name the missing key; do not fabricate scores"). This matches anchor 5's validate-fix-retry pattern; not 4 because checkpoints are explicit, not merely present.

5 / 5

Progressive Disclosure

Good structure with clearly signaled, one-level-deep references up front (the Convention blockquotes linking ../conventions/brain-first.md and ../conventions/quality.md, plus ../soul-audit/SKILL.md and ../conventions/agent-operator-protocol.md). Not 5: no bundle files ship with the skill (references/, scripts/, assets/ are absent), so all content is inlined monolithically in one ~220-line file — the Dedup section's comparisons of five sibling skills and the output template are candidates for offload — and a few mentions ("the cron-scheduler skill", "skill-creator") are unlinked prose. Not 3: sections are well-organized and references that do exist are prominent and clearly purposed, not buried.

4 / 5

Total

17

/

20

Passed

Description

63%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A highly specific, well-scoped description with comprehensive 'what' coverage and a distinctive niche, written in third person. Its main weaknesses are the missing 'Use when...' trigger clause (capping completeness at 3) and keyword vocabulary that leans domain-internal rather than mirroring the natural phrases users would say.

Suggestions

Append a 'Use when...' sentence to the description itself with concrete trigger phrases (e.g., "Use when the user says 'context audit', 'context is too big', 'reduce context size', or 'prompt compression'") — the when_to_use/triggers frontmatter fields don't feed description-based routing.

Fold one or two natural user phrasings ("context is too big", "slim down my system prompt") into the description body so trigger terms aren't limited to jargon like "token-hygiene" and "bootstrap-rendered identity files".

Trim implementation detail (the gbrain eval cross-modal judging route and answer-bank mechanics) from the description; it inflates length without helping a user decide when to invoke the skill.

DimensionReasoningScore

Specificity

Lists multiple concrete actions with comprehensive coverage: "Finds redundancy, contradictions, stale content, compression candidates, and skill-extraction candidates; produces a ranked action list sorted by token savings with a risk class per finding" — plus explicit scope (CLAUDE.md, AGENTS.md, MEMORY.md, SOUL.md/USER.md/ACCESS_POLICY.md/HEARTBEAT.md) and behavior guarantees ("REPORT-ONLY: this skill never edits any audited file"). Not 4: there are no meaningful coverage gaps — audit inputs, finding types, output form, and judging route are all named. Third-person voice throughout.

5 / 5

Completeness

The "what" is clear and detailed (audit the always-loaded stack, find five issue classes, produce a ranked report with risk classes, report-only), but the description contains no "Use when..." clause or equivalent trigger guidance — the when lives in the separate when_to_use/triggers fields. Per the judging guideline, a missing 'Use when' clause caps completeness at 3; not 4 because the 'when' is absent from the description entirely rather than merely imprecise.

3 / 5

Trigger Term Quality

Some relevant keywords are present ("Token-hygiene audit", "context stack", "compression", "redundancy"), but the natural phrases users actually say — "context is too big", "reduce context size", "trim my system prompt" — appear only in the separate triggers/when_to_use frontmatter, not in the description itself. Not 4: much of the description's vocabulary is domain jargon ("bootstrap-rendered identity files", "interview answer bank") rather than user-natural trigger terms, so common variations are missing, which fits anchor 3.

3 / 5

Distinctiveness Conflict Risk

A clear niche (token/structure hygiene of always-loaded files, explicitly report-only and distinguished from content-rewriting via "Recommendations for bootstrap-rendered files target the interview answer bank / templates, never the rendered output") with only minor overlap risk against closely related skills like general memory-management or prompt-compression helpers. Not 5: the anchor-5 example embeds explicit trigger phrasing that distinguishes activation, which this description lacks, and "or their harness equivalents" broadens the scope slightly.

4 / 5

Total

15

/

20

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

relative_links

Relative link issues: 4 suspicious

Warning

Total

14

/

16

Passed

Repository

garrytan/gbrain

Path

plugin/skills/context-audit/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.