Uses a local index to quickly gather relevant code context for tasks.

Install

mkdir -p .claude/skills/pruner && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9584" && unzip -o skill.zip -d .claude/skills/pruner && rm skill.zip

Installs to .claude/skills/pruner

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Uses the local pruner indexer to gather relevant code context before making changes, debugging, refactoring, or answering questions about this repository.
154 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Map code context
  • Build call graphs
  • Index symbols

How it works

It uses a pre-built tree-sitter index to provide immediate context on execution paths and dependencies.

Inputs & outputs

You give it
repo path and task
You get back
code context output

When to use pruner

  • Understanding dependencies before a refactor
  • Tracing execution paths for a bug fix
  • Getting context on a specific class or module

About this skill

Pruner — automatic code context

Pruner is a tree-sitter-based code indexer that pre-analyzes the entire codebase. It builds a call graph, symbol index, and file dependency map at index time, then uses your prompt keywords to find the most relevant execution paths, files, and code snippets. The output is equivalent to you running dozens of search and file-read calls, but computed in seconds from a pre-built index.

Before making code changes, fixing bugs, refactoring, or answering questions about this codebase:

  1. Get context: pruner context /absolute/path/to/repo "<task description>" and read the output first.
  2. Work directly from the output. Only read source files if a snippet is truncated or you need nearby lines.
  3. Use --detail when brief pointers are not enough for tracing or debugging.
  4. Do not re-explore the same query with grep, glob, or rg right after pruner.

When not to use it

  • Re-exploring with grep/rg after pruner
  • Reading source files when snippets suffice

Limitations

  • Requires pre-built index

How it compares

It provides pre-computed context in seconds, replacing dozens of manual search and file-read operations.

Compared to similar skills

pruner side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
pruner (this skill)03moNo flagsIntermediate
ast-grep-find37moReviewIntermediate
framework-migration-code-migrate14moNo flagsAdvanced
effective-go3239moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry