跳到正文
cccskills
免费在 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.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(3)

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

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

pruner

免费

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

中文简介正在准备中。当前显示原文说明。

heikki-laitala/pruner162026年6月12日 更新

pruner

免费

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

中文简介正在准备中。当前显示原文说明。

heikki-laitala/pruner162026年6月12日 更新

查看 heikki-laitala 的全部技能

报告此技能的问题