toolprune

GitHub

管理 Codex 工具剪枝策略,支持查看、应用或恢复 TokenEconomizer 的拒绝列表。当用户询问工具修剪、恢复配置或应用限制时触发,用于优化模型能力调用。

plugin/codex-skills/toolprune/SKILL.md microsoft/TokenEconomizer

触发场景

用户询问 TokenEconomizer 的工具剪枝策略 用户请求恢复或应用工具拒绝列表

安装

npx skills add microsoft/TokenEconomizer --skill toolprune -g -y
更多选项

非标准路径

npx skills add https://github.com/microsoft/TokenEconomizer/tree/main/plugin/codex-skills/toolprune -g -y

不安装直接使用

npx skills use microsoft/TokenEconomizer@toolprune

指定 Agent (Claude Code)

npx skills add microsoft/TokenEconomizer --skill toolprune -a claude-code -g -y

安装 repo 全部 skill

npx skills add microsoft/TokenEconomizer --all -g -y

预览 repo 内 skill

npx skills add microsoft/TokenEconomizer --list

SKILL.md

Frontmatter
{
    "name": "toolprune",
    "description": "Review, undo or apply TokenEconomizer's deny list of Codex capabilities this repository never uses (written to the project's .codex\/config.toml). Use when the user asks about TokenEconomizer's tool pruning or deny list, or asks to restore or apply it."
}

TokenEconomizer: toolprune

Run this command in the repository's root directory:

"${TOKENECONOMIZER_HOME:-$HOME/.tokeneconomizer}/bin/te" --host codex --cwd "$(pwd)" toolprune ARGS

Use show as ARGS unless the user asked to apply, restore or measure (optionally naming capabilities). Never run apply or restore unless the user asked for it. Show the output verbatim in a code block. If it shows a proposal waiting for toolprune apply (under toolprune=propose, or one the plugin could not write), end with one line saying how to apply it and that it takes effect from the next session; if it shows a pending list, say that it is written by itself once this repository's sessions have been idle, or now with apply.

apply and restore edit the project's .codex/config.toml and record the change in TokenEconomizer's own state under ~/.tokeneconomizer, outside the workspace, which the sandbox keeps read-only: run that command with sandbox_permissions set to "require_escalated" and a one-line justification, so that Codex asks the user to approve it. show and measure need no approval.

The command reads and writes only TokenEconomizer's own state (under ~/.tokeneconomizer) and, for toolprune apply or restore, the project's .codex/config.toml; it makes no model call. If it reports that the launcher does not exist, the plugin has not run in a session yet: ask the user to start a new Codex session in this repository first.

版本历史

  • 7042ea8 当前 2026-11-13 18:24

同 Skill 集合

plugin/codex-skills/config/SKILL.md
plugin/codex-skills/microskills/SKILL.md
plugin/codex-skills/repos/SKILL.md
plugin/codex-skills/status/SKILL.md

元信息

文件数
0
版本
7042ea8
Hash
ca16bbf3
收录时间
2026-11-13 18:24

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-14 20:40
浙ICP备14020137号-1