Context Window Pruner
БесплатноБез исполняемых скриптовНе проверенOptimize information density by filtering workspace files based on relevance to the current task. Excludes high-noise files (lockfiles, assets) and…
от Sounder25★ 29 звёзд на GitHubОб этом скилле
SKILL-008: Context Window Pruner
Overview
Large repos flood the agent's context window with noise. This skill generates a RELEVANT_FILES.txt list by aggressively pruning irrelevant directories and searching for files related to a specific "Focus".
Trigger Phrases
focus on <topic>find relevant files for <task>prune context
Inputs
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
--focus |
string | Yes | - | Keywords to filter file names/content (e.g. "gas", "auth") |
--max-files |
int | No | 50 | Limit output size |
Outputs
RELEVANT_FILES.txt: List of absolute paths to read.- Console output summarizing token savings (estimated).
Safety Checks
- Always respects
.gitignore. - Never includes binary files.
- Caps output to avoid context overflow.
Implementation
See prune_context.ps1.
Integration
$files = .\skills\08_context_pruner\prune_context.ps1 -Focus "EVM opcode"
# Agent works only with $files
Установить Context Window Pruner в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Context Window Pruner?
Optimize information density by filtering workspace files based on relevance to the current task. Excludes high-noise files (lockfiles, assets) and prioritizes source code matching semantic queries.
Как установить скилл Context Window Pruner?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Context Window Pruner запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic