More screenshots
Works with the AI Agents you already use
Audit CLAUDE.md and Project Rules for Context Bloat
Measure CLAUDE.md and .claude/rules size, find unscoped large rules, dead links, duplicates and explicit conflicts.
$15
Audit CLAUDE.md and Project Rules for Context Bloat
Example session with this skill installed
Audit this project's CLAUDE.md and .claude/rules with a 4096-byte budget and a 1024-byte per-rule limit. Use text format.
- Read your context and instructions
- Compiled the audit claude md
ContextAudit: sample_project | always_loaded=5120B (~1280 est_tokens, 4 files) | scoped=1420B (1 file) | budget=4096B (OVER)
Findings
- [always-loaded-budget-exceeded] .claude/rules/deploy_guide.md:1: Always-loaded rules total 5120B (exceeds budget 4096B); top file: .claude/rules/deploy_guide.md (2180B).
- [unscoped-large-rule] .claude/rules/deploy_guide.md:1: File is 2180B without a non-empty YAML frontmatter 'paths:' scope.
- [broken-rule-reference] CLAUDE.md:8: Referenced path 'docs/old_checklist.md' does not exist under project root.
- [contradictory-directive] CLAUDE.md:3: Directive 'Always use npm install' conflicts with 'Never use npm install' at .claude/rules/package_mgr.md:3.
Summary: 5 files scanned, 4 findings (always-loaded-budget-exceeded: 1, unscoped-large-rule: 1, broken-rule-reference: 1, contradictory-directive: 1)
Connects securely to your tools. The creator never sees your data.
About this skill
For developers whose CLAUDE.md and .claude/rules files have grown too large and contradictory to manage by hand: measure always-loaded byte and estimated token budgets, spot unscoped large rule files, and catch dead path links, duplicate sections, and conflicting directives with exact file and line numbers. Runs offline with zero-dependency Python.
For maintainers, this audit turns scattered instructions into a measurable map, so you can split, fix, and simplify rules before the next session.
What it does
- Always-loaded budget: totals bytes and files, and reports an estimated token figure (
characters // 4, a rough estimate, not a model-specific count). Set your own limit with--budget-bytes. - Unscoped large rules: flags rule files over
--max-rule-bytes/--max-rule-linesthat have no non-empty YAML frontmatterpaths:scope. - Dead references: reports referenced local paths that do not exist, with the source line.
- Duplicates: reports repeated sections (same normalized heading and content) and repeated instruction lines.
- Explicit conflicts: reports explicit polarity pairs such as "Always use npm install" vs "Never use npm install", with both locations.
- Output formats: text, JSON, CSV or Markdown;
--output FILEwrites a new UTF-8 file.
How to use it
- Run
python3 scripts/rules_context_audit.py --project . --format text. - Review the byte totals and each finding's file and line.
- Move narrowly relevant guidance into scoped files, repair links, and consolidate duplicates.
- Rerun with
--strict(exit code 1 while findings remain).
Included
The CLI (scripts/rules_context_audit.py, standard library only), offline regression tests, a synthetic sample project with the real output of the Quick start command, and a SKILL.md guide.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Does not infer semantic conflicts. Token counts are estimates based on character length. Requires Python 3.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python 3.9+