sounder25/foundational-agent-skills/08-context-pruner
Claude Code and agent skill by sounder25/foundational-agent-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install sounder25/foundational-agent-skills/08-context-prunerSKILL.md
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
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking08_context_pruner/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sounder25/foundational-agent-skills/08-context-pruner)