← 返回 Skills 市场
rfdiosuao

Spark Context Monitor

作者 rfdiosuao · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
81
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install spark-context-monitor
功能描述
查询当前会话的Token使用情况,显示已用、剩余数量、百分比及进度条,并在超过阈值时提供智能提醒。
安全使用建议
This skill's functionality (estimating token use from the current session) is coherent and it does not ask for secrets or network access, but there are practical issues you should check before installing: 1) skill.json points to dist/index.js but a compiled dist file is not present in the package — confirm whether your platform will build the TypeScript source automatically or whether you must run npm install && npm run build first; 2) tests import named functions that the source file does not explicitly export (a code/test mismatch), which suggests sloppy packaging; 3) verify the GitHub repository and author identity (skill metadata points to a repo) and optionally review the compiled/dist code that will actually run on your agent; 4) remember the estimator is approximate (SKILL.md says ±10%), and the skill depends on the platform providing context.sessionHistory and modelName — confirm what data the platform passes into context to avoid unexpected behavior. If you want to proceed, run the build and tests locally and inspect the resulting dist/index.js before installing.
功能分析
Type: OpenClaw Skill Name: spark-context-monitor Version: 1.0.0 The 'spark-context-monitor' skill is a utility designed to estimate and display token usage within an OpenClaw session. The implementation in 'src/index.ts' uses a simple character-based heuristic to calculate usage from the session history and contains no network calls, file system access, or dynamic code execution (eval/exec). The instructions in 'SKILL.md' and 'README.md' are strictly limited to defining triggers and output formats, with no evidence of prompt injection or malicious intent.
能力评估
Purpose & Capability
Name/description match the code: the skill estimates token usage from the current session history, generates a progress bar and warnings, and supports the /token trigger. It does not request credentials or unrelated capabilities.
Instruction Scope
SKILL.md and README describe only local estimation of session token usage and the code uses context.sessionHistory and modelName as expected. There are no instructions to read unrelated files, call external endpoints, or exfiltrate data; the README explicitly claims local-only operation.
Install Mechanism
Registry metadata lists no install spec (instruction-only), but the package contains TypeScript source, package.json, and devDependencies. skill.json.main points to dist/index.js, yet the package manifest provided does not include a compiled dist/index.js file. README mentions npm install and build steps, but SKILL.md does not. This mismatch (no automated install/build declared vs. TypeScript source requiring a build) is an operational inconsistency that may cause the skill to fail or force the platform/user to run build steps manually.
Credentials
The skill declares no required env vars, no credentials, and the code does not reference environment variables or external credentials. Requested access is proportional to the stated purpose.
Persistence & Privilege
Flags show always:false and normal invocation behavior. The skill does not request persistent system-wide privileges or modify other skills. It only expects to be invoked via triggers/commands.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install spark-context-monitor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /spark-context-monitor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
spark-context-monitor 1.0.0 - 初始版本发布,支持查询当前会话的上下文(Token)使用状态。 - 显示已用/剩余 token 数量、使用率百分比和进度条可视化。 - 超过阈值时智能提醒,并给出操作建议。 - 支持 qwen、claude、gpt-4 等多种模型的自动识别与窗口估算。 - 支持命令与多种自然语言触发方式。
元数据
Slug spark-context-monitor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Spark Context Monitor 是什么?

查询当前会话的Token使用情况,显示已用、剩余数量、百分比及进度条,并在超过阈值时提供智能提醒。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 81 次。

如何安装 Spark Context Monitor?

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

Spark Context Monitor 是免费的吗?

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

Spark Context Monitor 支持哪些平台?

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

谁开发了 Spark Context Monitor?

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

💬 留言讨论