Skip to content
cccskills
FreePublished on GitHub

pruner

Generate synthetic code context for LLM coding tasks. Automatically use this before making code changes, fixing bugs, refactoring, or answering questions about the codebase. Provides execution paths, relevant files, symbols, tests, and code snippets.

The English summary is being prepared. Showing the original description.

See how to install

Files included (3)

  • SKILL.md2.4 KB
  • SKILL.hook.md2.4 KB
  • SKILL.skill.md2.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Pruner — Code Context Engine

Pruner context is automatically injected into your conversation via a prompt-submit hook. You do NOT need to run pruner context manually — it has already run before you see the user's message.

How it works

A hook runs pruner context on every prompt submit and injects the output as additional context. Look for the "Pruner context (pre-computed codebase analysis)" section in the conversation — that's the pruner output.

Working with pruner context

  1. Use the injected context directly — it contains relevant files, symbols, execution paths, and code snippets.
  2. Read source files only if needed — if a snippet is truncated or you need surrounding context, use the file:line pointers from the output.
  3. Do NOT re-explore — pruner already searched the index. Do not grep or glob for the same keywords.
  4. Do NOT run pruner context again — it already ran via the hook.

When to escalate

The hook output is a brief summary (~2K tokens) with file/symbol pointers. For deeper context:

  1. Read .pruner/context.md — already written with full execution paths and code snippets. Zero cost, instant. Use this for understanding queries ("how does X work?"), debugging, or when you need to trace a flow.
  2. Run pruner context --detail — regenerates focused output (~10-15K tokens). Use only if .pruner/context.md is stale or missing.

For code changes, refactoring, and simple lookups, brief pointers are sufficient — just read the specific files listed.

  • Single symbol: pruner show-symbol /path/to/repo "<name>" — signature, callers, callees.
  • Single file: pruner show-file /path/to/repo "<path>" — all symbols and imports.

Other modes

  • --detail — execution paths + code snippets (~10-15K tokens). Use when brief pointers aren't enough.
  • --brief — metadata only, no snippets (~2K tokens). Use when you only need file/symbol pointers.
  • --full — uncapped output with all snippets (~50-70K tokens). Use for deep analysis.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

pruner

Free

Uses the local pruner indexer to gather relevant code context before making changes, debugging, refactoring, or answering questions about this repository.

The English summary is being prepared. Showing the original description.

heikki-laitala/pruner16Updated Jun 12, 2026

pruner

Free

Generate code context for coding tasks. Run before code changes, bug fixes, or refactoring to get execution paths, key files, symbols, tests, and snippets.

The English summary is being prepared. Showing the original description.

heikki-laitala/pruner16Updated Jun 12, 2026

See all skills by heikki-laitala

Report a problem with this skill