← Back to Skills Marketplace
rfdiosuao

Spark Context Monitor

by rfdiosuao · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
81
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install spark-context-monitor
Description
查询当前会话的Token使用情况,显示已用、剩余数量、百分比及进度条,并在超过阈值时提供智能提醒。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install spark-context-monitor
  3. After installation, invoke the skill by name or use /spark-context-monitor
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
spark-context-monitor 1.0.0 - 初始版本发布,支持查询当前会话的上下文(Token)使用状态。 - 显示已用/剩余 token 数量、使用率百分比和进度条可视化。 - 超过阈值时智能提醒,并给出操作建议。 - 支持 qwen、claude、gpt-4 等多种模型的自动识别与窗口估算。 - 支持命令与多种自然语言触发方式。
Metadata
Slug spark-context-monitor
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Spark Context Monitor?

查询当前会话的Token使用情况,显示已用、剩余数量、百分比及进度条,并在超过阈值时提供智能提醒。 It is an AI Agent Skill for Claude Code / OpenClaw, with 81 downloads so far.

How do I install Spark Context Monitor?

Run "/install spark-context-monitor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Spark Context Monitor free?

Yes, Spark Context Monitor is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Spark Context Monitor support?

Spark Context Monitor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Spark Context Monitor?

It is built and maintained by rfdiosuao (@rfdiosuao); the current version is v1.0.0.

💬 Comments