More screenshots

    Works with the AI Agents you already use

    Token Bloat Reducer

    by Kristian Carlo Rosales

    1

    Audit and reduce AI context bloat to lower token usage and improve agent instruction following.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Token Bloat Reducer

    Token Bloat Reducer

    Example session with this skill installed

    My Cursor agent is getting slow and forgetting things. Can you check my .cursorrules and project context for bloat?

    • Read your context and instructions
    • Compiled the token bloat reducer
    • Generated the document

    I have completed the audit of your project's AI context. You are currently sending 2,450 tokens of instructions with every single prompt. My analysis shows we can reduce this by 42% by moving environment-specific rules to scoped files and removing redundant style instructions.

    Token Bloat Audit Results

    Agent / Context FileCurrent TokensProposed TokensSavings
    .cursorrules1,850820-55%
    CLAUDE.md420310-26%
    Repo Map (Pasted Tree)1800-100%
    Total Always-Loaded2,4501,130-53%

    Top Findings

    1. Redundant Rules: Found 12 style rules (e.g., "use trailing commas") already enforced by your .prettierrc.
    2. Stale Paths: Identified 4 paths in your instructions that no longer exist in the current file tree.
    3. Context Leak: Your package-lock.json is not in .cursorignore, adding unnecessary noise to the model's retrieval.

    Proposed Changes

    I have generated a leaner configuration in ./.context-slim/.

    • Moved project-specific logic to .cursor/rules/api.mdc using glob patterns.
    • Created a high-level AGENTS.md for shared behavior.
    • Added a .cursorignore to filter out build artifacts.

    Next steps

    1. Review the full report at BLOAT_REPORT.html.
    2. Inspect the proposed files in .context-slim/.
    3. Give me the go-ahead to apply these changes and back up your current files.

    BLOAT_REPORT.html

    PDF · document

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Stop burning tokens on every message due to bloated context files and unoptimized repository structures. This skill audits your AI instructions and project configuration to identify redundant rules, stale paths, and massive files that drain your token budget and confuse the model.

    What it does

    • Measure token usage by calculating the exact count of always-loaded tokens per agent across different tools.
    • Audit rule quality by finding duplicate instructions, filler text, and style rules already covered by your formatters.
    • Identify repo clutter such as unexcluded lockfiles, build artifacts, and deep folder trees pasted into context files.
    • Propose slimmed configurations that reorganize rules into shared files or scoped globals to reduce per-prompt overhead.
    • Estimate savings with a before and after comparison of token counts to validate the efficiency of the proposed changes.

    How it works

    1. Scan and measure the current project using the included Python scripts to generate a factual baseline of token consumption.
    2. Review findings against the actual content of your .cursorrules, CLAUDE.md, or AGENTS.md to identify false positives.
    3. Generate proposals in a isolated .context-slim/ directory, separating global rules from task-specific instructions.
    4. Produce an audit report in Markdown and HTML formats featuring a visualization of potential savings.
    5. Apply changes by backing up originals to .context-backup/ and overwriting files only after your explicit approval.

    Frameworks & tools

    This skill utilizes Python 3.9+ scripts for deterministic measurement. It supports projects using Cursor, Claude Code, Windsurf, Copilot, and Gemini, specifically targeting files like CLAUDE.md, .cursorrules, and .claude/settings.json.

    Why this beats prompting it yourself

    Generic prompts often result in the AI accidentally deleting critical project-specific logic or hallucinating token counts. This skill uses local Python scripts to provide deterministic measurements and follows a structured slimming guide to ensure rules are moved to the correct hierarchy without loss of function.

    Use cases

    • Reduce the "always-loaded" token count for a project that has hit context limits.
    • Clean up a messy .cursorrules file that has grown too large over time.
    • Organize agent instructions for a team using multiple different AI coding tools.
    • Fix issues where the AI is distracted by irrelevant history logs or large data files.

    Known limitations

    Does not automatically refactor giant source code files unless requested. Requires a local Python 3.9+ environment. Token counts are estimates with a +/- 15% variance.

    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 4 days ago

    Software
    Python 3.9+
    Optional
    Internet (only to view the audit text in the HTML report)

    On Windows, install Python from python.org and tick "Add python.exe to PATH". Commit your work first: the skill only writes proposals until you say "apply".

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Write Files

    File Scopes

    CONTEXT_AUDIT.md
    BLOAT_REPORT.html
    bloat-*.json
    .context-slim/**
    .context-backup/**
    **

    Reads the project's AI context files (CLAUDE.md, AGENTS.md, .cursorrules, .cursor/rules, etc.), ignore files, package.json and code files to measure size and imports, skipping node_modules, .git and build folders. Writes its own report files and proposals in .context-slim/. It changes context files only after the user says "apply", backing up originals to .context-backup/ first. It makes no network requests. The optional BLOAT_REPORT.html loads the marked library from cdn.jsdelivr.net when opened in a browser.

    Listed4 days ago

    What's inside

    Frequently Asked Questions

    This skill helps you reclaim your token budget by auditing AI instructions and project configurations to find redundant rules, stale paths, and massive files that drain context. It moves generic or duplicate advice into a slimmer, organized structure to ensure your agent stays focused on instructions instead of clutter.

    You will receive a detailed audit report in Markdown and HTML formats featuring a visualization of potential savings. The skill also generates proposed file changes in an isolated directory for your review before any modifications are applied to your project.

    To use this skill, your project environment must have Python 3.9 or higher available. The skill uses local scripts to measure tokens and does not require any external API keys or network access to perform its analysis.

    The skill does not automatically refactor large source code files unless you specifically request it. Additionally, token counts are generated as estimates with a variance of approximately 15 percent, rather than exact deterministic figures.

    You can prompt your agent to use this skill when you notice it is hitting context limits, burning through tokens too quickly, or becoming distracted by irrelevant files. Simply ask your agent to audit your project for context bloat or to slim down your configuration files.

    New in LLM Ops

    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.