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-pruner

SKILL.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

ParameterTypeRequiredDefaultDescription
--focusstringYes-Keywords to filter file names/content (e.g. "gas", "auth")
--max-filesintNo50Limit output size

Outputs

  1. RELEVANT_FILES.txt: List of absolute paths to read.
  2. 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

powershell
$files = .\skills\08_context_pruner\prune_context.ps1 -Focus "EVM opcode"
# Agent works only with $files

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sounder25/foundational-agent-skills/08-context-pruner/badge)](https://verified-skill.com/skills/sounder25/foundational-agent-skills/08-context-pruner)

Something wrong with this skill or its page? Tell us.