← 返回 Skills 市场
yijunyu

Precc Token Saver

作者 Yijun Yu · GitHub ↗ · v0.1.8 · MIT-0
darwinlinux ⚠ suspicious
325
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install precc-token-saver
功能描述
Before running any shell command, pipe it through the PRECC hook to fix wrong-directory errors, compress CLI output, and apply learned heuristics — saving 34...
安全使用建议
Before installing or enabling this skill: (1) Do not run the 'curl | bash' installer without inspecting the script — prefer installing from a vetted Homebrew formula or official release. (2) Review the Homebrew tap owner (yijunyu/tap) and the precc project's release artifacts or source code to ensure you trust the binary. (3) Ask what 'precc ingest --all' reads (which files/paths) — session-history ingestion can leak tokens and secrets; restrict or skip ingestion if uncertain. (4) Consider running the tool in a sandbox or on a non‑privileged account first, and test in dry-run mode to observe any command rewrites before allowing automated use. (5) If you need stronger guarantees, request the project's source or reproducible build artifacts and audit precc-hook's behavior (what transformations it makes and whether it can inject network calls or downloads). These steps will reduce supply‑chain and privacy risk associated with intercepting all shell commands.
功能分析
Type: OpenClaw Skill Name: precc-token-saver Version: 0.1.8 The skill instructs the agent to intercept and pipe every shell command through an external binary (precc-hook) before execution, effectively creating a man-in-the-middle for all agent actions. It also includes a command to 'mine' all existing session history (precc ingest --all) and uses a high-risk 'curl | bash' installation method from an external GitHub repository (yijunyu/precc-cc). While the stated intent is token optimization, the combination of total command interception, history mining, and prompt-level instruction overrides presents a significant risk for data exfiltration and unauthorized command execution.
能力评估
Purpose & Capability
The declared binaries (precc-hook, precc) and the runtime instructions directly align with the stated purpose (intercept/repair/compress CLI commands and report savings). Requiring a hook binary is expected for this capability.
Instruction Scope
The SKILL.md instructs the agent to route every shell command through precc-hook and to run 'precc init' and optionally 'precc ingest --all' to mine session history. 'Ingest --all' implies reading local session history and possibly other logs/files (not explicitly enumerated). Because the agent enforces the hook at the prompt-level, there's also a risk that rewritten commands (from precc-hook output) could change behavior unexpectedly; the doc trusts a local binary to be safe but gives the agent broad discretion to always apply rewrites.
Install Mechanism
Registry install metadata lists a Homebrew formula (tap: yijunyu/tap), which is reasonable but is a third‑party tap. The SKILL.md also instructs users to run 'curl -fsSL https://raw.githubusercontent.com/.../install.sh | bash' — piping a remote script to bash is a high-risk supply-chain pattern because it executes remote code without review. This is disproportionate for a tool that could be installed from a packaged release or audited formula.
Credentials
The skill declares no required environment variables or credentials, which is proportionate. However, the 'ingest --all' operation may access local shell/session history or other files not declared in the skill manifest; that file access is not documented in the registry metadata and could reveal secrets or tokens stored in shell history.
Persistence & Privilege
The skill does not request always:true and does not require elevated platform privileges. It will create local state ('precc init', databases) and is expected to persist analytics; this is plausible for the stated purpose but means the tool will write files to disk and retain usage data locally.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install precc-token-saver
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /precc-token-saver 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.8
Clarify that hook is prompt-level in OpenClaw (no native PreToolUse yet)
v0.1.7
Sync with PRECC v0.1.6: OpenClaw/ZeroClaw marketplace, pricing tiers, README
v0.1.6
Fix SKILL.md version field; add update ping; license tier gates
v0.1.5
Enforce Free/Pro tier gates; anonymous update ping; ZeroClaw SKILL.toml support
元数据
Slug precc-token-saver
版本 0.1.8
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

Precc Token Saver 是什么?

Before running any shell command, pipe it through the PRECC hook to fix wrong-directory errors, compress CLI output, and apply learned heuristics — saving 34... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 325 次。

如何安装 Precc Token Saver?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install precc-token-saver」即可一键安装,无需额外配置。

Precc Token Saver 是免费的吗?

是的,Precc Token Saver 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Precc Token Saver 支持哪些平台?

Precc Token Saver 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux)。

谁开发了 Precc Token Saver?

由 Yijun Yu(@yijunyu)开发并维护,当前版本 v0.1.8。

💬 留言讨论