← 返回 Skills 市场
openlark

Token Cost Optimization

作者 OpenLark · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
104
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install token-cost-optimization
功能描述
Token savings and API cost optimization. Provides token calculator, three-tier optimization strategies (prompt compression / cache reuse / model downgrade),...
安全使用建议
This skill appears coherent and safe as provided: it runs a local Python calculator and supplies best-practice guidance. Before using it in production, consider: (1) If you implement L2 caching or L3 model routing, you'll need external services (vector DBs, OpenAI/Anthropic APIs) and corresponding credentials—supply and store those securely. (2) Be cautious about caching user data or documents (set TTLs, avoid persisting PII unless necessary). (3) Validate the model pricing and savings assumptions against your actual provider invoices. (4) Review any code you add for network calls or credential handling—those are the primary places risk would appear.
功能分析
Type: OpenClaw Skill Name: token-cost-optimization Version: 1.0.0 The skill bundle provides legitimate tools and documentation for LLM token cost optimization. It includes a Python script (scripts/token_calculator.py) for calculating potential savings based on user-provided metrics and detailed markdown guides (SKILL.md, references/tier-strategies.md) outlining prompt compression and model routing strategies. No malicious code, data exfiltration, or suspicious instructions were identified.
能力评估
Purpose & Capability
Name/description, the included token_calculator.py, and the tier-strategies reference all align: they provide a local cost calculator and implementation guidance for prompt compression, caching, and model routing.
Instruction Scope
SKILL.md confines runtime actions to running the local calculator and reading the bundled guidance. The documentation recommends caching in a vector DB and model routing (which in practice requires external services), but the skill does not itself include code that reads unrelated system files, contacts remote endpoints, or exfiltrates data.
Install Mechanism
Instruction-only skill with a small local Python script; there is no install spec, no downloads, and nothing is written to disk by the installer. Low install risk.
Credentials
The skill declares no environment variables or credentials (appropriate for the provided local calculator). However, the L2/L3 guidance discusses vector DBs and routing to external models (OpenAI/Claude), which in real deployments would require API keys/credentials that are not declared here—this is an implementation detail rather than an immediate inconsistency, but users should be aware.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request permanent presence, nor does it modify other skills or system-wide settings in the provided materials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install token-cost-optimization
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /token-cost-optimization 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of token-cost-optimization skill. - Provides a token calculator script for quick estimation of API usage and potential savings. - Outlines a three-tiered token optimization strategy: prompt compression, conversation summary caching, and model downgrade/task routing. - Includes step-by-step phased implementation guides and best practices for each optimization tier. - Offers quantified cost analysis examples and detailed configuration references for each strategy.
元数据
Slug token-cost-optimization
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Token Cost Optimization 是什么?

Token savings and API cost optimization. Provides token calculator, three-tier optimization strategies (prompt compression / cache reuse / model downgrade),... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 104 次。

如何安装 Token Cost Optimization?

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

Token Cost Optimization 是免费的吗?

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

Token Cost Optimization 支持哪些平台?

Token Cost Optimization 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Token Cost Optimization?

由 OpenLark(@openlark)开发并维护,当前版本 v1.0.0。

💬 留言讨论