contextslim setup

    by 溜口遥大

    1

    Automated setup of ContextSlim hooks to compress verbose test and lint logs within Claude Code.

    Free

    Security scanned

    Works with the AI Agents you already use

    contextslim setup

    Example session with this skill installed

    Set up ContextSlim for this project. We use Vitest and TypeScript. I want to keep the hooks local to my user.

    • Read your context and instructions
    • Compiled the contextslim setup

    I will set up ContextSlim to compress your Vitest and TypeScript outputs. This will keep your Claude Code context clean by summarizing passing tests while keeping all failures intact.

    I have completed the environment check

    • OS: Darwin (arm64)
    • Detected Tools: Vitest 3.0.5, TypeScript 5.3.3
    • Target: ~/.local/bin/contextslim

    Installation Summary

    StepStatusDetail
    Binary DownloadSuccessVersion v0.1.1 (darwin_arm64)
    Checksum VerifyVerifiedSHA256: 8f3a...e4b2
    Hook RegistrationActiveAdded to ~/.claude/settings.json
    ModeObservingCurrently in observe-only mode

    I have also prepared the necessary permission rules to allow ContextSlim to handle failing test runs. You will need to approve the edit to your settings file.

    {
      "permissions": {
        "allow": [
          "Bash(npx vitest:*)",
          "Bash(npx tsc:*)"
        ]
      }
    }
    

    Next steps

    1. Run npx vitest run now to let ContextSlim observe your test output.
    2. Run contextslim stats to see how much context space you will save.
    3. Once satisfied, type contextslim mode compress to start active filtering.

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

    About this skill

    Claude Code's performance can degrade when flooded with thousands of lines of verbose test logs. Long Vitest or Jest outputs consume the context window, pushing relevant failure details out and slowing down reasoning.

    This skill automates the setup of ContextSlim, a free open-source utility that compresses test, type-check, and lint outputs before Claude reads them. It removes passing test lines and redundant noise while keeping failures, errors, and summaries 100% verbatim.

    What it does

    • Output compression reduces verbose logs from Vitest, Jest, tsc, pytest, and Ruff.
    • Context preservation ensures every failing test and diagnostic message remains untouched.
    • Hook registration installs native Claude Code hooks into local or shared settings.
    • Safe rollout implements an observe-then-compress workflow to verify savings.
    • Binary management handles checksum-verified downloads and OS-specific binary mapping.

    How it works

    1. Environment check identifies the OS, CPU architecture, and supported test frameworks in the project.
    2. Secure download fetches the specific binary and verifies its SHA256 checksum for integrity.
    3. Hook registration writes the necessary configuration to .claude/settings.json or global user settings.
    4. Permission hardening guides the user through adding granular allow rules for failing run compression.
    5. Validation runs a live test to confirm the compression header appears in Claude's context.

    Frameworks & tools

    Specifically designed for Claude Code on macOS, Linux, and Windows. It supports Vitest 3.x, Jest 29.x, TypeScript 5.x, pytest 8-9, and Ruff 0.17.

    Why this beats prompting it yourself

    Manual setup requires managing binary paths, SHA verification, and precise JSON hook syntax that Claude Code demands. This skill handles the complex mapping of shell exit codes and permission allow rules required to capture failing runs without manual configuration errors.

    Use cases

    • Large test suites where hundreds of passing tests bury the two actual failures.
    • Type-check audits with repetitive tsc diagnostics that bloat the prompt.
    • CI/CD debugging within Claude Code where log limits are frequently hit.
    • Team-wide standards by deploying shared hooks via .claude/settings.json.

    Known limitations

    Works only in Claude Code. Full feature set requires macOS or Linux; Windows only compresses successful runs. Commands with pipes, redirects, or variables are passed through uncompressed.

    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

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 10 days ago

    • Free with an Agensi account

    Accounts
    GitHub
    Software
    Node.jstsc

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Write Files

    Allowed Hosts

    github.com
    Listed10 days ago

    What's inside

    Creator

    溜口遥大

    溜口遥大

    Frequently Asked Questions

    This skill automates the installation of ContextSlim, which filters out passing tests and noise from your CLI outputs while keeping 100% of failure details, preventing Claude from hitting context limits during long debugging sessions.

    The skill is specifically designed for the Claude Code CLI and supports major frameworks including Vitest, Jest, TypeScript (tsc), pytest, and Ruff on macOS, Linux, and Windows.

    Installation is automated; the skill detects your OS architecture, downloads the verified binary, configures your `.claude/settings.json`, and sets up the necessary execution hooks for you.

    No, the skill uses a 'safe rollout' approach that identifies failures first; it only compresses the redundant successful parts of a log while leaving every error message and stack trace completely intact.

    You receive the automated configuration script, the binary management logic with SHA256 checksum verification, and pre-configured hooks for all supported linting and testing tools.

    While fully functional on macOS and Linux, Windows users currently only receive compression for successful runs, and commands involving complex shell pipes or redirects are passed through without modification.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Free