CH

    context hygiene strategist

    1

    A context-hygiene strategist that prunes session bloat, enforces token budgets, and maintains agent reasoning accuracy.

    $29.99

    /mo

    Subscription · cancel anytime

    Secure checkout via Stripe

    • Always the latest version
    • Delivered live to your agent via MCP
    • Cancel anytime, access ends at period end
    Security scanned

    Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more
    CH

    context hygiene strategist

    Example session with this skill installed

    We are 60% through the codebase migration. The session is getting slow and I'm worried about the $0.15/msg cost. Audit the context, set a 100k token budget, and compact the state.

    • Read your context and instructions
    • Compiled the context hygiene strategist
    • Generated the document

    I have audited the current session. The context is currently saturated with 85,000 tokens, primarily driven by verbatim compiler logs and redundant file reads from the src/legacy directory. I have set a hard budget of 100,000 tokens for this task, leaving 15,000 tokens for the final verification phase.

    Context Audit & Compaction Report

    MetricValue
    Current Spend85,420 tokens
    Primary BloatVerbatim tool outputs (62% of context)
    Compaction Ratio91% reduction
    New Working State7,680 tokens

    Working-State Block (v1.0)

    • Goal: Migrate auth-service from Express to Fastify.
    • Current Phase: Execution (60% complete).
    • Decisions: Switched to pino for logging; bypassed bcrypt legacy wrapper for native argon2.
    • Hard Constraints: Must maintain Node 18 compatibility; no changes to /health endpoint signature.
    • Open Loops: JWT middleware refactoring; DB connection pool testing.
    • Artifacts: src/v2/routes/auth.ts, src/v2/plugins/db.ts.

    Next steps

    1. Proceeding with JWT middleware refactoring using the remaining 15k token budget.
    2. I will summarize all future tool outputs to under 10 lines to maintain this hygiene.
    3. Tripwire set: I will alert you if we hit 95,000 total tokens before completion.

    context-hygiene-strategist.pdf

    PDF · document

    Generated

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

    $29.99/mo

    Subscription · always the latest version

    • Secure checkout via Stripe
    • Cancel anytime
    • Delivered live via MCP (optional)

    What you get

    Set and monitor token budgets with tripwires at 50%, 75%, and 90% usage.Reduce API costs by distilling long tool outputs into high-density facts.Improve reasoning accuracy by excising dead branches and redundant history.Maintain a permanent working-state block of decisions, constraints, and loops.

    About this skill

    The problem

    Long agent sessions suffer from context bloat, leading to high API costs and a documented 23 to 31 percent drop in instruction-following accuracy. When an agent loses the plot or repeats itself, it is usually because the context window is crowded with low-value tool outputs and dead-end reasoning.

    What it does

    • Audits session context to identify verbatim tool dumps, redundant facts, and abandoned reasoning branches.
    • Implements a token budget protocol with tripwires at 50, 75, and 90 percent of capacity.
    • Compacts sessions into a high-density working-state block that preserves decisions and constraints while discarding fluff.
    • Enforces retrieval discipline by requesting specific document slices rather than full-file ingests.
    • Calculates phase-based costs to identify whether research, execution, or verification is draining the budget.

    Why this beats prompting it yourself

    General prompts fail to maintain hygiene over long durations, often resulting in "memory" that is just a messy log of every interaction. This skill provides a structured economic framework and a specific compaction playbook that forces the agent to treat tokens as a finite financial resource, maintaining model reasoning quality at scale.

    Use cases

    • Managing multi-hour coding sessions where tool outputs and linter logs threaten to drown out the original requirements.
    • Running large-scale research tasks where full-document retrieval would otherwise blow the token budget.
    • Optimizing production agent costs by replacing verbose narrations with terse, state-based progress tracking.
    • Recovering "lost" agents that have become sluggish or repetitive due to context saturation.

    Known limitations

    If the LLM provider does not expose real-time token counts, the strategist relies on message size estimation. It requires the agent to have the ability to summarize and replace its own history.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 15 days ago

    Listed15 days ago

    What's inside

    Frequently Asked Questions