← Back to Skills Marketplace
skill-compressor 精简技能*减少token
by
David0Ming
· GitHub ↗
· v1.0.0
· MIT-0
92
Downloads
1
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install skill-compressor
Description
压缩 skill 降 token 成本。用户说 /skill-compressor 或要求优化/压缩/瘦身 skill 时触发。
Usage Guidance
This skill appears to do what it says: it reads a skill's SKILL.md and reference files, classifies and compresses content, then writes a compressed copy to <skill>/.reduced/. Before using it: (1) verify the skill source you install from (README suggests a GitHub repo but the registry entry lacks an install spec—confirm the origin); (2) only run the compressor on skill directories that don't contain secrets, private keys, or production credentials, because it will read all referenced files; (3) review the generated .reduced/ output and REDUCTION_REPORT.md before replacing any originals; (4) if Gate 2 runtime validation is enabled, confirm what commands/tests will be executed (to avoid unintended code execution). If you need higher assurance, request the author's repository and review the tool's implementation before granting it filesystem access.
Capability Analysis
Type: OpenClaw Skill
Name: skill-compressor
Version: 1.0.0
The skill-compressor is a utility designed to optimize OpenClaw skills by reducing token consumption through text compression and content categorization. The logic in SKILL.md and the supporting documentation (background.md, examples.md) focuses entirely on text processing, classification (core rules vs. examples/background), and file organization. It includes explicit safety constraints to ensure that critical operational data—such as environment variables, API names, and file paths—are never deleted or modified during the compression process. The skill operates non-destructively by writing output to a '.reduced/' subdirectory rather than overwriting original files, and it shows no signs of data exfiltration, malicious execution, or harmful prompt injection.
Capability Assessment
Purpose & Capability
The name/description claim to compress other skills to reduce token cost, and the runtime instructions explicitly read a skill's SKILL.md and its reference files and write a compressed copy into <skill>/.reduced/. That file I/O is exactly what a compressor needs. There are no unrelated env vars or binaries requested.
Instruction Scope
Instructions direct the agent to read the target skill's description, body, and all reference files, classify and split content, run faithfulness checks, and write outputs under the target skill's .reduced/ directory. That scope is expected for this task, but it means the skill will read arbitrary files under whatever skill path you point it at (which may contain secrets or sensitive configuration). Gate 2 mentions optional runtime validation—how that validation is run is not specified, so actual execution/side effects during validation could occur if the agent is allowed to run testcases; the spec leaves that behavior underspecified.
Install Mechanism
This is instruction-only with no install spec and no binaries to install, which is the lowest-risk model. README suggests optional manual git clone or npx/clawhub install commands, but the registry entry contains no install block; that discrepancy is informational rather than an execution risk in the package itself.
Credentials
The skill requests no environment variables or credentials. The instructions explicitly preserve API names/env var names from the original skill rather than reading other secrets. However, because it reads arbitrary files in the specified skill folder, it can encounter any environment-like strings stored there—so you should avoid running it on skill directories that contain private keys or tokens unless you trust the environment and the skill's author.
Persistence & Privilege
Flags are default: always:false and user-invocable:true. The skill writes output into the target skill's .reduced/ directory but does not claim to modify other skills or system-wide configuration. That write-to-target behavior is consistent with its purpose and scoped to the target skill.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install skill-compressor - After installation, invoke the skill by name or use
/skill-compressor - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of skill-compressor.
- Introduces a step-by-step process to compress skills and reduce token usage.
- Supports user prompts for compression via trigger phrases or feedback about token size.
- Details specific procedures for analyzing, labeling, and condensing skill descriptions and bodies.
- Ensures operational details (numbers, thresholds, paths, APIs, env variables) are preserved.
- Outputs all compressed files to a .reduced directory, keeping originals unchanged.
- Provides clear criteria for when compression should not be performed.
Metadata
Frequently Asked Questions
What is skill-compressor 精简技能*减少token?
压缩 skill 降 token 成本。用户说 /skill-compressor 或要求优化/压缩/瘦身 skill 时触发。 It is an AI Agent Skill for Claude Code / OpenClaw, with 92 downloads so far.
How do I install skill-compressor 精简技能*减少token?
Run "/install skill-compressor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is skill-compressor 精简技能*减少token free?
Yes, skill-compressor 精简技能*减少token is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does skill-compressor 精简技能*减少token support?
skill-compressor 精简技能*减少token is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created skill-compressor 精简技能*减少token?
It is built and maintained by David0Ming (@david0ming); the current version is v1.0.0.
More Skills