Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIGitHub CopilotGitHub CopilotGemini CLIGemini CLI+20 more

    Lean Context

    1

    Cut Claude Code and Cursor token costs by 30-50% with AST-aware context compression, skeleton extraction, and budget guards.

    $12

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    0 installsSecurity scanned
    lean-context

    lean-context

    Example session with this skill installed

    I need to understand the structure of the core engine in this repo, but the files are huge. Help me map it out without hitting context limits.

    • Read your context and instructions
    • Compiled the lean-context

    I have scanned the repository and generated a compressed map of the core engine. I filtered out all build artifacts and pruned Python files to their signatures to stay within your token budget.

    Repository Context Summary

    File PathOriginal (Tokens)Compressed (Tokens)% Saved
    engine/core.py1,84042077%
    engine/utils/math.py95018081%
    engine/handlers/events.py1,20031074%
    Total3,99091077%
    
    # engine/core.py (Compressed AST View)
    
    class ExecutionEngine:
        """Main orchestrator for task execution."""
        
        def __init__(self, config: dict): ...
        
        def register_handler(self, name: str, handler: Callable):
            """Registers a new event handler to the engine."""
            ...
    
        def run_sync(self, task_id: str) -> Result:
            """Executes a task synchronously and returns the Result object."""
            ...
    
    class Result:
        def __init__(self, status: str, data: Any): ...
    
    .
    └── engine/
        ├── __init__.py
        ├── core.py
        ├── handlers/
        │   ├── __init__.py
        │   └── events.py
        └── utils/
            ├── __init__.py
            └── math.py
    

    Next steps

    1. Would you like me to expand the full body of a specific method in core.py?
    2. I can perform a lean-context diff if you have pending changes to these files.
    3. Type show me the structure at any time to refresh this map.

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

    What you get

    Prune Python files to class/method signatures to save context space.Generate clean directory trees excluding venv and build artifacts.Review large git diffs without overflowing the LLM context window.Enforce a 3,000 token limit per operation to control API costs.

    About this skill

    The problem Large Python codebases quickly exhaust LLM context windows. Manually stripping boilerplate to save tokens is slow and error-prone.

    What it does

    • AST-aware file summaries (signatures only)
    • Low-token directory tree skeletons
    • Git diff summarization for code review
    • 3,000-token HITL budget per cycle
    • Zero external dependencies (Python 3.8+ stdlib only)

    Why it beats prompting yourself Generic prompts miss edge cases: large files, nested directories, build artifacts. lean-context ships dedicated scripts with budget enforcement.

    Use cases

    • Inspect or refactor a 2,000-line file without blowing context
    • Map repo structure before deep analysis
    • Review PR diffs without dumping full files
    • Stay under token budget on long sessions

    Limitations v1.0 is Python only. TypeScript support arrives in v1.1.

    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

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 2 days ago

    • Passed all security checks, Safe to install

    Listed2 days ago

    Frequently Asked Questions