More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Audit CLAUDE.md and Project Rules for Context Bloat

    1

    Measure CLAUDE.md and .claude/rules size, find unscoped large rules, dead links, duplicates and explicit conflicts.

    $15

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Audit CLAUDE.md and Project Rules for Context Bloat

    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)
    CLAUDE.md

    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-lines that have no non-empty YAML frontmatter paths: 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 FILE writes a new UTF-8 file.

    How to use it

    1. Run python3 scripts/rules_context_audit.py --project . --format text.
    2. Review the byte totals and each finding's file and line.
    3. Move narrowly relevant guidance into scoped files, repair links, and consolidate duplicates.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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+

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables
    Listed1 day ago

    What's inside

    Frequently Asked Questions

    Always-loaded byte and file totals with an estimated token figure, rule files over your size limits that have no paths: scope, referenced local paths that do not exist, duplicate sections, and explicit Always/Never conflicts. Each finding names the file and line.

    The CLAUDE.md and .claude/rules files under the project folder you pass with --project. Use --rules-dir to point at a different rules directory and --exclude-dir to skip folders.

    The standard-library Python CLI (scripts/rules_context_audit.py), an offline regression test suite, a synthetic sample project with the real output of the Quick start command, and a SKILL.md guide.

    No. It runs offline as a local Python script, does not call an LLM, and does not infer meaning from your text.

    It is characters // 4, a rough estimate rather than a model-specific count. For example, 4,000 characters reports about 1,000 estimated tokens. Use the byte and line totals as the exact measurements.

    Yes. --strict exits with code 1 when findings exist, input or I/O errors exit with code 2, and --format json, csv or markdown gives structured output you can feed to another tool.

    New in LLM Ops