- Home
- Skills
- Agents & Orchestration
- contextslim setup
contextslim setup
by 溜口遥大
Automated setup of ContextSlim hooks to compress verbose test and lint logs within Claude Code.
Free
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
| Step | Status | Detail |
|---|---|---|
| Binary Download | Success | Version v0.1.1 (darwin_arm64) |
| Checksum Verify | Verified | SHA256: 8f3a...e4b2 |
| Hook Registration | Active | Added to ~/.claude/settings.json |
| Mode | Observing | Currently 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
- Run
npx vitest runnow to let ContextSlim observe your test output. - Run
contextslim statsto see how much context space you will save. - Once satisfied, type
contextslim mode compressto 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
- Environment check identifies the OS, CPU architecture, and supported test frameworks in the project.
- Secure download fetches the specific binary and verifies its SHA256 checksum for integrity.
- Hook registration writes the necessary configuration to
.claude/settings.jsonor global user settings. - Permission hardening guides the user through adding granular allow rules for failing run compression.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
Allowed Hosts
What's inside
Creator
溜口遥大
Frequently Asked Questions
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.