From 1a6c9d8cc6e497778e661e37f553366bba40a2bc Mon Sep 17 00:00:00 2001 From: facadefish <203220865+facadefish@users.noreply.github.com> Date: Mon, 30 Nov 2026 13:33:24 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E8=A1=A5=E7=9B=AE=E5=BD=95=E9=94=9A?= =?UTF-8?q?=E7=82=B9=E3=80=81=E7=8A=B6=E6=80=81=E5=BE=BD=E7=AB=A0=E4=B8=8E?= =?UTF-8?q?=E5=B8=B8=E8=A7=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 219 +++++++++++++++++++++++++++++--------------------- README.md | 223 +++++++++++++++++++++++++++++---------------------- 2 files changed, 254 insertions(+), 188 deletions(-) diff --git a/README.en.md b/README.en.md index 24abe4d..88483c7 100644 --- a/README.en.md +++ b/README.en.md @@ -1,93 +1,126 @@ -

- Prune: review, choose, apply, restore -

- -

Prune · Keep the useful parts

- -

Review AI skills against real tasks. Inspect the evidence and diffs locally. You decide what changes.

- -

- 简体中文 · - Download complete language packages · - Apache-2.0 -

- -

Windows, macOS, and Linux CI status

- -> Prune does not edit a skill merely because an agent recommends it. The agent prepares a frozen plan; you inspect it in a local workbench and explicitly select **Apply** before a real file or supported plugin setting changes. - -## What it does - -| Capability | Result | -| --- | --- | -| Task-aware review | Judge a skill by its contribution to your tasks, model, and host. Preserve useful methods and resources; correct broad triggers, conflicts, and unnecessary procedure. No length-based scoring. | -| Reviewable choices | Browse source evidence, recommendations, complete candidates, file diffs, and actual execution state in the workbench. | -| Reversible files | Freeze fingerprints and backups for independent skills and standalone rule files; detect drift before Apply or Restore. | -| Whole-plugin controls | Review a plugin as one object. Enable or disable it only through a supported host's official interface, without rewriting plugin internals. | - -![Prune workflow](media/workflow.svg) - -## Get started - -You need **Node.js 22.19+**, a local browser, and an agent that loads skills. Prune has no npm runtime dependencies, model API key, cloud service, or telemetry. The agent makes semantic judgments; bundled scripts freeze plans and run the local workbench. - -1. Download **one** complete package, `prune-en.zip` or `prune-zh.zip`, from [Releases](https://github.com/facadefish/prune-skill/releases/latest). Unzip it; the result is a `prune/` folder containing `SKILL.md`, `scripts/`, `references/`, `assets/`, and `agents/`, alongside `LICENSE` and `NOTICE`. -2. Place the whole folder in your host's personal skills directory: - - | Host | macOS / Linux | Windows | - | --- | --- | --- | - | Codex | `~/.agents/skills/prune/` | `%USERPROFILE%\.agents\skills\prune\` | - | Claude Code | `~/.claude/skills/prune/` | `%USERPROFILE%\.claude\skills\prune\` | - - These paths follow the [Codex](https://learn.chatgpt.com/docs/build-skills) and [Claude Code](https://code.claude.com/docs/en/skills) documentation. Back up an existing `prune/` folder before replacing it; do not overlay two versions. Restart the host session if it has not discovered the skill yet. -3. Ask your agent: - - > Use $prune to review the skills I name against my current tasks. Show the evidence, proposed changes, and file diffs in the Prune workbench so I can choose what to apply. - -An audit leaves evaluated originals untouched. If you ask for an implementation, the agent prepares complete candidates first; you still make the final workbench selection. - -### Try a safe demo - -From the repository root: - -```text -node skills/prune/scripts/prune.mjs demo --out .prune-demo -node skills/prune/scripts/prune.mjs serve --run .prune-demo/run -``` - -Open the **complete localhost URL** printed by `serve`. The demo operates only on generated fixtures inside `.prune-demo/`, so you can explore recommendations, diffs, Apply, and Restore without touching installed skills. Stop the service with `Ctrl+C`. Do not share the full URL: its fragment contains the local session token. - -## How it works - -```text -Your task + skill/rule/plugin sources - ↓ semantic review by your agent -Frozen plan: evidence + fingerprints + proposed changes - ↓ local workbench -Your selection → Apply → disk/host readback → optional Restore -``` - -For integrations, use `prepare --input --out ` and then `serve --run `. The [execution contract](locales/prune/en/references/contract.md) defines the input and safety boundaries. Keep run directories outside skill-discovery roots and public repositories, on the same filesystem as skills that may be archived. A revised plan needs a new selection; previous decisions never authorize new files. - -The UI separates **accepted advice**, **verified disk/host configuration**, and **loading in the current model session**. One is not proof of another. - -## Compatibility and limits - -- **Operating systems:** Standard-library Node.js runtime; [CI](.github/workflows/ci.yml) tests and builds both language packages on Windows, macOS, and Linux. Filesystem and symlink behavior can vary; rely on readback and explicit error states. -- **Hosts:** Core review and the workbench do not need a plugin CLI. Optional plugin controls support local user-scope Codex plugins and Claude Code user/project/local plugins where the host interface is available. Unsupported or ambiguous targets remain advice-only. -- **Privacy:** The server binds only to `127.0.0.1` on a random port and uses a per-run token. No telemetry or automatic upload. Real plans, history, and tokens are never part of this repository or its release archives. -- **Authority:** Preparation does not authorize mutation. The user must select and Apply the current frozen plan, and initiate Restore separately. Plugin uninstall, updates, and internal rewrites are unsupported. -- **Evidence:** Tests establish specific operation/restore behavior, not that a reviewed skill improves model performance or that a running model session hot-reloaded a changed file. - -## Develop - -[`skills/prune/`](skills/prune/SKILL.md) is the complete Chinese source and shared runtime. [`locales/prune/en/`](locales/prune/en/SKILL.md) holds English instruction sources. The packager produces two standalone alternatives: - -```text -npm run check -node scripts/package-prune.mjs .release/local -``` - -`packages.json` records relative package paths and content fingerprints. Official-host integration checks require an isolated host installation and are opt-in. - -Do not include real plans, session tokens, private skill content, or personal file paths in public issues. See [SECURITY.md](SECURITY.md) for private reporting. Apache-2.0 licensed; independent of OpenAI and Anthropic. +

+ Prune: review, choose, apply, restore +

+ +

Prune · Keep the useful parts

+ +

Review AI skills against real tasks. Inspect the evidence and diffs locally. You decide what changes.

+ +

+ 简体中文 · + Download complete language packages · + Apache-2.0 +

+ +

Windows, macOS, and Linux CI status Node.js 22.19+ Apache-2.0 Loopback only Latest release

+ +> Prune does not edit a skill merely because an agent recommends it. The agent prepares a frozen plan; you inspect it in a local workbench and explicitly select **Apply** before a real file or supported plugin setting changes. + + +## Contents + +| Understand it | Run it | Boundaries and upkeep | +| --- | --- | --- | +| [What it does](#what) | [Get started](#start) | [Compatibility and limits](#limits) | +| [How it works](#how) | [Safe demo](#demo) | [Develop](#dev) | +| [FAQ](#faq) | | | + + +## What it does + +| Capability | Result | +| --- | --- | +| Task-aware review | Judge a skill by its contribution to your tasks, model, and host. Preserve useful methods and resources; correct broad triggers, conflicts, and unnecessary procedure. No length-based scoring. | +| Reviewable choices | Browse source evidence, recommendations, complete candidates, file diffs, and actual execution state in the workbench. | +| Reversible files | Freeze fingerprints and backups for independent skills and standalone rule files; detect drift before Apply or Restore. | +| Whole-plugin controls | Review a plugin as one object. Enable or disable it only through a supported host's official interface, without rewriting plugin internals. | + +![Prune workflow](media/workflow.svg) + + +## Get started + +You need **Node.js 22.19+**, a local browser, and an agent that loads skills. Prune has no npm runtime dependencies, model API key, cloud service, or telemetry. The agent makes semantic judgments; bundled scripts freeze plans and run the local workbench. + +1. Download **one** complete package, `prune-en.zip` or `prune-zh.zip`, from [Releases](https://github.com/facadefish/prune-skill/releases/latest). Unzip it; the result is a `prune/` folder containing `SKILL.md`, `scripts/`, `references/`, `assets/`, and `agents/`, alongside `LICENSE` and `NOTICE`. +2. Place the whole folder in your host's personal skills directory: + + | Host | macOS / Linux | Windows | + | --- | --- | --- | + | Codex | `~/.agents/skills/prune/` | `%USERPROFILE%\.agents\skills\prune\` | + | Claude Code | `~/.claude/skills/prune/` | `%USERPROFILE%\.claude\skills\prune\` | + + These paths follow the [Codex](https://learn.chatgpt.com/docs/build-skills) and [Claude Code](https://code.claude.com/docs/en/skills) documentation. Back up an existing `prune/` folder before replacing it; do not overlay two versions. Restart the host session if it has not discovered the skill yet. +3. Ask your agent: + + > Use $prune to review the skills I name against my current tasks. Show the evidence, proposed changes, and file diffs in the Prune workbench so I can choose what to apply. + +An audit leaves evaluated originals untouched. If you ask for an implementation, the agent prepares complete candidates first; you still make the final workbench selection. + + +### Try a safe demo + +From the repository root: + +```text +node skills/prune/scripts/prune.mjs demo --out .prune-demo +node skills/prune/scripts/prune.mjs serve --run .prune-demo/run +``` + +Open the **complete localhost URL** printed by `serve`. The demo operates only on generated fixtures inside `.prune-demo/`, so you can explore recommendations, diffs, Apply, and Restore without touching installed skills. Stop the service with `Ctrl+C`. Do not share the full URL: its fragment contains the local session token. + + +## How it works + +```text +Your task + skill/rule/plugin sources + ↓ semantic review by your agent +Frozen plan: evidence + fingerprints + proposed changes + ↓ local workbench +Your selection → Apply → disk/host readback → optional Restore +``` + +For integrations, use `prepare --input --out ` and then `serve --run `. The [execution contract](locales/prune/en/references/contract.md) defines the input and safety boundaries. Keep run directories outside skill-discovery roots and public repositories, on the same filesystem as skills that may be archived. A revised plan needs a new selection; previous decisions never authorize new files. + +The UI separates **accepted advice**, **verified disk/host configuration**, and **loading in the current model session**. One is not proof of another. + + +## Compatibility and limits + +- **Operating systems:** Standard-library Node.js runtime; [CI](.github/workflows/ci.yml) tests and builds both language packages on Windows, macOS, and Linux. Filesystem and symlink behavior can vary; rely on readback and explicit error states. +- **Hosts:** Core review and the workbench do not need a plugin CLI. Optional plugin controls support local user-scope Codex plugins and Claude Code user/project/local plugins where the host interface is available. Unsupported or ambiguous targets remain advice-only. +- **Privacy:** The server binds only to `127.0.0.1` on a random port and uses a per-run token. No telemetry or automatic upload. Real plans, history, and tokens are never part of this repository or its release archives. +- **Authority:** Preparation does not authorize mutation. The user must select and Apply the current frozen plan, and initiate Restore separately. Plugin uninstall, updates, and internal rewrites are unsupported. +- **Evidence:** Tests establish specific operation/restore behavior, not that a reviewed skill improves model performance or that a running model session hot-reloaded a changed file. + + +## FAQ + +**Does Prune upload my skill content?** +No. The workbench binds to `127.0.0.1` with a random port and a per-run token; there is no telemetry or automatic upload, and real plans, history and tokens never ship in the repository or release archives. + +**Do I need a model API key?** +No. Semantic judgment is done by the agent you already use; Prune has no npm runtime dependencies. + +**Will it change my files on its own?** +No. The agent only freezes a plan; a real write happens after you select items in the workbench and press **Apply**, and the result is read back and can be restored. + +**Why does it sometimes leave advice only?** +Plugin enable/disable runs only through a host's official interface when the target is unambiguous; otherwise the recommendation stays advice and nothing pretends to execute. + +**Which hosts and systems are supported?** +Codex and Claude Code personal skills directories; CI and both language packages pass on Windows, macOS and Linux. Plugin controls are limited to supported scopes. + + +## Develop + +[`skills/prune/`](skills/prune/SKILL.md) is the complete Chinese source and shared runtime. [`locales/prune/en/`](locales/prune/en/SKILL.md) holds English instruction sources. The packager produces two standalone alternatives: + +```text +npm run check +node scripts/package-prune.mjs .release/local +``` + +`packages.json` records relative package paths and content fingerprints. Official-host integration checks require an isolated host installation and are opt-in. + +Do not include real plans, session tokens, private skill content, or personal file paths in public issues. See [SECURITY.md](SECURITY.md) for private reporting. Apache-2.0 licensed; independent of OpenAI and Anthropic. diff --git a/README.md b/README.md index b6bce4e..7fdecf8 100644 --- a/README.md +++ b/README.md @@ -1,95 +1,128 @@ -

- Prune:审阅、选择、应用、恢复 -

- -

Prune · 让技能保持有用

- -

按真实任务审阅 AI skills,把取舍与文件差异放进本地工作台,由你决定是否应用。

- -

- English · - 下载中英文完整包 · - Apache-2.0 -

- -

Windows、macOS、Linux CI 状态

- -> **一句话理解:** Prune 会帮 Agent 找出值得保留、需要改写或适合停用的指令;它把依据、候选和差异交给你审阅。只有你在工作台选择并点击 **应用所选**,真实文件或受支持的插件配置才会改变。 - -## 你会得到什么 - -| 能力 | 实际作用 | -| --- | --- | -| 按任务判断 | 结合你的目标、模型与宿主,检查技能的增量价值、触发边界、重复流程和依赖;不按长度或关键词给技能打分。 | -| 看得见的选择 | 技能树和裁剪台展示原文依据、建议、完整候选、文件差异及每项执行状态。报告只是补充。 | -| 可恢复的文件操作 | 对独立技能和规则文件冻结方案、核对原件指纹、备份、应用,并在没有冲突时恢复。 | -| 完整插件管理 | 把插件当作一个对象审阅;仅在宿主支持时经官方接口启停整个插件,不改插件内部文件。 | - -![Prune 的审阅到恢复流程](media/workflow.svg) - -## 3 分钟开始 - -**要求:** Node.js **22.19+**,支持本地 skills 的 Agent,以及本机浏览器。Prune 本身没有 npm 运行依赖、不需要模型 API key,也不向云端发送评审内容。语义判断由使用它的 Agent 完成;内置脚本负责冻结方案和执行工作台操作。 - -1. 从 [Releases](https://github.com/facadefish/prune-skill/releases/latest) 下载 `prune-zh.zip` 或 `prune-en.zip`。两者都是完整包,**只安装一种语言**。解压后应得到 `prune/SKILL.md`、`prune/scripts/`、`prune/references/`、`prune/assets/`、`prune/agents/`,以及许可文件 `LICENSE`、`NOTICE`。 -2. 把整个 `prune/` 文件夹放到宿主的个人 skills 目录: - - | 宿主 | macOS / Linux | Windows | - | --- | --- | --- | - | Codex | `~/.agents/skills/prune/` | `%USERPROFILE%\.agents\skills\prune\` | - | Claude Code | `~/.claude/skills/prune/` | `%USERPROFILE%\.claude\skills\prune\` | - - 安装位置依据 [Codex 官方文档](https://learn.chatgpt.com/docs/build-skills)和 [Claude Code 官方文档](https://code.claude.com/docs/en/skills)。如果已有同名技能,请先备份旧目录,再替换整个文件夹;不要把两个版本混在一起。宿主未发现新技能时,重启会话。 -3. 告诉 Agent: - - > 使用 $prune 审查我指定的 skills,结合当前任务给出保留、修改或停用建议,并在修剪工作台展示依据和差异,供我选择。 - - 只要求审查时,Prune 不写入受评原件。要求实际改写时,Agent 会先准备可审阅的完整候选;你仍须亲自在工作台选择并应用。 - -### 先试演示,不碰你的技能 - -在仓库根目录运行: - -```text -node skills/prune/scripts/prune.mjs demo --out .prune-demo -node skills/prune/scripts/prune.mjs serve --run .prune-demo/run -``` - -打开第二条命令输出的**完整本地链接**。演示只使用 `.prune-demo/` 中生成的临时对象;可以试点建议、差异、应用和恢复。结束服务按 `Ctrl+C`。不要公开完整链接,其中包含本地会话令牌。 - -## 工作方式 - -```text -你的任务 + 受评技能/规则/插件 - ↓ Agent 语义审阅、准备候选 -冻结方案:原文依据 + 指纹 + 可执行变更 - ↓ 本地 Prune 工作台 -你选择 → 应用所选 → 文件/宿主读回核验 → 按需恢复 -``` - -Agent 可用 `prepare --input <方案.json> --out <新工作目录>` 冻结方案,再用 `serve --run <工作目录>` 打开工作台。详细字段和操作边界见[执行契约](skills/prune/references/contract.md)。运行目录应放在技能发现范围和公开仓库之外,并与待归档技能位于同一文件系统。方案改变要生成新版本;旧方案的选择不会自动授权新文件。 - -**状态要分开看:** 建议被采纳、文件或宿主配置已核验、当前模型会话已重新加载,是三件不同的事。页面不会把“已点击”显示成“已生效”。 - -## 平台与边界 - -- **操作系统:** 运行时使用 Node.js 标准库,Windows、macOS、Linux 的 [CI](.github/workflows/ci.yml) 测试与双语打包已通过。文件系统、符号链接和宿主配置可能因机器而异;请以实际读回状态为准。 -- **宿主:** 核心技能审查与工作台不依赖 Codex 或 Claude Code 的插件 CLI。插件启停只在受支持的宿主/作用域开放:Codex 用户层本地插件;Claude Code 的 user、project、local 插件。接口不可用或目标无法唯一确认时,保留建议而不假装执行。 -- **本地性:** 工作台只监听 `127.0.0.1`,使用随机端口和运行目录里的令牌。无遥测、无自动上传、无常驻服务。真实审阅输入、历史记录和令牌不包含在仓库或发布包中。 -- **权限:** 准备方案不等于授权修改。只有用户对当前冻结方案的选择和 Apply 才能触发真实写入;Restore 同样由用户操作。不支持插件卸载、更新或内部改写。 -- **证据:** 测试验证操作与恢复,不证明某个技能一定提高模型效果;插件配置读回也不证明当前会话已热加载。 - -## 开发与发布 - -中文完整包在 [`skills/prune/`](skills/prune/SKILL.md);英文指令源在 [`locales/prune/en/`](locales/prune/en/SKILL.md),与中文共用运行时。发布脚本从这两处构建两个独立包,不会把历史材料带进技能包。 - -```text -npm run check -node scripts/package-prune.mjs .release/local -``` - -检查包含公开内容扫描与临时对象的工作台测试;官方宿主插件接口的隔离集成测试需在装有相应宿主的环境单独启用。`packages.json` 只记录相对包路径及文件指纹。 - -欢迎提交能复现的缺陷和精简建议;请勿把真实方案、令牌、私有技能内容或本机路径贴到公开 Issue。安全问题见 [SECURITY.md](SECURITY.md)。 - -基于 Apache-2.0 许可发布。Prune 是独立社区技能,不隶属于 OpenAI 或 Anthropic。 +

+ Prune:审阅、选择、应用、恢复 +

+ +

Prune · 让技能保持有用

+ +

按真实任务审阅 AI skills,把取舍与文件差异放进本地工作台,由你决定是否应用。

+ +

+ English · + 下载中英文完整包 · + Apache-2.0 +

+ +

Windows、macOS、Linux CI 状态 Node.js 22.19+ Apache-2.0 只监听本机 最新版本

+ +> **一句话理解:** Prune 会帮 Agent 找出值得保留、需要改写或适合停用的指令;它把依据、候选和差异交给你审阅。只有你在工作台选择并点击 **应用所选**,真实文件或受支持的插件配置才会改变。 + + +## 目录 + +| 先了解 | 跑一遍 | 边界与维护 | +| --- | --- | --- | +| [它解决什么](#what) | [3 分钟开始](#start) | [平台与边界](#limits) | +| [工作方式](#how) | [不碰技能的演示](#demo) | [开发与发布](#dev) | +| [常见问题](#faq) | | | + + +## 你会得到什么 + +| 能力 | 实际作用 | +| --- | --- | +| 按任务判断 | 结合你的目标、模型与宿主,检查技能的增量价值、触发边界、重复流程和依赖;不按长度或关键词给技能打分。 | +| 看得见的选择 | 技能树和裁剪台展示原文依据、建议、完整候选、文件差异及每项执行状态。报告只是补充。 | +| 可恢复的文件操作 | 对独立技能和规则文件冻结方案、核对原件指纹、备份、应用,并在没有冲突时恢复。 | +| 完整插件管理 | 把插件当作一个对象审阅;仅在宿主支持时经官方接口启停整个插件,不改插件内部文件。 | + +![Prune 的审阅到恢复流程](media/workflow.svg) + + +## 3 分钟开始 + +**要求:** Node.js **22.19+**,支持本地 skills 的 Agent,以及本机浏览器。Prune 本身没有 npm 运行依赖、不需要模型 API key,也不向云端发送评审内容。语义判断由使用它的 Agent 完成;内置脚本负责冻结方案和执行工作台操作。 + +1. 从 [Releases](https://github.com/facadefish/prune-skill/releases/latest) 下载 `prune-zh.zip` 或 `prune-en.zip`。两者都是完整包,**只安装一种语言**。解压后应得到 `prune/SKILL.md`、`prune/scripts/`、`prune/references/`、`prune/assets/`、`prune/agents/`,以及许可文件 `LICENSE`、`NOTICE`。 +2. 把整个 `prune/` 文件夹放到宿主的个人 skills 目录: + + | 宿主 | macOS / Linux | Windows | + | --- | --- | --- | + | Codex | `~/.agents/skills/prune/` | `%USERPROFILE%\.agents\skills\prune\` | + | Claude Code | `~/.claude/skills/prune/` | `%USERPROFILE%\.claude\skills\prune\` | + + 安装位置依据 [Codex 官方文档](https://learn.chatgpt.com/docs/build-skills)和 [Claude Code 官方文档](https://code.claude.com/docs/en/skills)。如果已有同名技能,请先备份旧目录,再替换整个文件夹;不要把两个版本混在一起。宿主未发现新技能时,重启会话。 +3. 告诉 Agent: + + > 使用 $prune 审查我指定的 skills,结合当前任务给出保留、修改或停用建议,并在修剪工作台展示依据和差异,供我选择。 + + 只要求审查时,Prune 不写入受评原件。要求实际改写时,Agent 会先准备可审阅的完整候选;你仍须亲自在工作台选择并应用。 + + +### 先试演示,不碰你的技能 + +在仓库根目录运行: + +```text +node skills/prune/scripts/prune.mjs demo --out .prune-demo +node skills/prune/scripts/prune.mjs serve --run .prune-demo/run +``` + +打开第二条命令输出的**完整本地链接**。演示只使用 `.prune-demo/` 中生成的临时对象;可以试点建议、差异、应用和恢复。结束服务按 `Ctrl+C`。不要公开完整链接,其中包含本地会话令牌。 + + +## 工作方式 + +```text +你的任务 + 受评技能/规则/插件 + ↓ Agent 语义审阅、准备候选 +冻结方案:原文依据 + 指纹 + 可执行变更 + ↓ 本地 Prune 工作台 +你选择 → 应用所选 → 文件/宿主读回核验 → 按需恢复 +``` + +Agent 可用 `prepare --input <方案.json> --out <新工作目录>` 冻结方案,再用 `serve --run <工作目录>` 打开工作台。详细字段和操作边界见[执行契约](skills/prune/references/contract.md)。运行目录应放在技能发现范围和公开仓库之外,并与待归档技能位于同一文件系统。方案改变要生成新版本;旧方案的选择不会自动授权新文件。 + +**状态要分开看:** 建议被采纳、文件或宿主配置已核验、当前模型会话已重新加载,是三件不同的事。页面不会把“已点击”显示成“已生效”。 + + +## 平台与边界 + +- **操作系统:** 运行时使用 Node.js 标准库,Windows、macOS、Linux 的 [CI](.github/workflows/ci.yml) 测试与双语打包已通过。文件系统、符号链接和宿主配置可能因机器而异;请以实际读回状态为准。 +- **宿主:** 核心技能审查与工作台不依赖 Codex 或 Claude Code 的插件 CLI。插件启停只在受支持的宿主/作用域开放:Codex 用户层本地插件;Claude Code 的 user、project、local 插件。接口不可用或目标无法唯一确认时,保留建议而不假装执行。 +- **本地性:** 工作台只监听 `127.0.0.1`,使用随机端口和运行目录里的令牌。无遥测、无自动上传、无常驻服务。真实审阅输入、历史记录和令牌不包含在仓库或发布包中。 +- **权限:** 准备方案不等于授权修改。只有用户对当前冻结方案的选择和 Apply 才能触发真实写入;Restore 同样由用户操作。不支持插件卸载、更新或内部改写。 +- **证据:** 测试验证操作与恢复,不证明某个技能一定提高模型效果;插件配置读回也不证明当前会话已热加载。 + + +## 常见问题 + +**Q:Prune 会把我的技能内容上传到云端吗?** +不会。工作台只监听 `127.0.0.1`,用随机端口和每次运行独立的令牌;无遥测、无自动上传,真实方案与历史记录不进入仓库或发布包。 + +**Q:需要模型 API key 吗?** +不需要。语义判断由你正在使用的 Agent 完成;Prune 自身没有 npm 运行依赖。 + +**Q:它会自己动手改我的文件吗?** +不会。Agent 只冻结方案;必须由你在工作台选择并点击「应用所选」才会写入,写入后读回核验,可按需恢复。 + +**Q:为什么有时只给建议、不执行?** +插件启停只在宿主官方接口可用、且目标能唯一确认时执行;否则保留建议,不假装执行。 + +**Q:支持哪些宿主和系统?** +Codex 与 Claude Code 的个人 skills 目录;Windows、macOS、Linux 的 CI 与双语打包均已通过。插件控制仅限受支持的作用域。 + + +## 开发与发布 + +中文完整包在 [`skills/prune/`](skills/prune/SKILL.md);英文指令源在 [`locales/prune/en/`](locales/prune/en/SKILL.md),与中文共用运行时。发布脚本从这两处构建两个独立包,不会把历史材料带进技能包。 + +```text +npm run check +node scripts/package-prune.mjs .release/local +``` + +检查包含公开内容扫描与临时对象的工作台测试;官方宿主插件接口的隔离集成测试需在装有相应宿主的环境单独启用。`packages.json` 只记录相对包路径及文件指纹。 + +欢迎提交能复现的缺陷和精简建议;请勿把真实方案、令牌、私有技能内容或本机路径贴到公开 Issue。安全问题见 [SECURITY.md](SECURITY.md)。 + +基于 Apache-2.0 许可发布。Prune 是独立社区技能,不隶属于 OpenAI 或 Anthropic。