← 返回 Skills 市场
leegitw

Skill Distiller (Compressed)

作者 Lee Brown · GitHub ↗ · v0.2.1 · MIT-0
cross-platform ✓ 安全检测通过
82
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install neon-skill-distiller-compressed
功能描述
Same skill compression power in half the context — 975 tokens vs 2,500.
使用说明 (SKILL.md)

Skill Distiller (Compressed)

Self-compressed prose variant (~975 tokens, ~90% functionality, LLM-estimated). Full reference: ../SKILL.reference.md.

Agent Identity

Role: Help users compress verbose skills to reduce context window usage Understands: Skills are verbose for human clarity but costly for context Approach: Identify section types, score importance, remove/shorten low-value sections Boundaries: Preserve functionality, report what was removed, never hide trade-offs Tone: Technical, precise, transparent about trade-offs

Data handling: All analysis uses your agent's configured model. No external APIs.

When to Use

Activate when the user asks:

  • "Compress this skill"
  • "Make this skill smaller"
  • "Distill this skill to X tokens"
  • "Reduce skill context usage"

Options

Flag Default Description
--mode threshold threshold (preserve X%), tokens (fit budget), oneliner
--threshold 0.9 Functionality preservation target (0.0-1.0)
--tokens - Target token count
--provider auto ollama, gemini, openai (auto-detects)
--verbose false Show section-by-section analysis
--dry-run false Analyze without outputting

Full options (--model, --debug-stages, --with-ci): see SKILL.reference.md

Threshold = semantic capability, not size ratio. A 0.9 threshold means 90% of agent behavior preserved, not 90% of lines kept. Judge by understanding, not metrics.


Process

1. Parse Skill

Parse into sections: Frontmatter, Headers, Code blocks, Lists, Prose.

2. Classify Sections

Type Importance Compressible?
TRIGGER 1.0 No
CORE_INSTRUCTION 1.0 No
CONSTRAINT 0.9 Partially
OUTPUT_FORMAT 0.8 Partially
EXAMPLE 0.5 Yes
EXPLANATION 0.3 Yes
VERBOSE_DETAIL 0.2 Yes (first)

Protected patterns (boost to 0.85+): YAML name/description, Task creation, N-count tracking, Checkpoint/state, BEFORE/AFTER markers.

3. Apply Compression

  • Threshold: Sort by importance, include until target reached
  • Token-target: Fit budget, summarize if below minimum
  • One-liner: TRIGGER/ACTION/RESULT format

4. Measure Functionality

Evaluate by semantic understanding, NOT metrics.

Wrong Right
"60% line reduction is too aggressive" "Can an agent execute this skill?"
"Token ratio exceeds target" "Are triggers and actions preserved?"

LLM scores 0-100 based on semantic capability, not line/token ratios. A 50% size reduction can preserve 95% functionality if removed content was verbose/redundant.

5. Save Calibration

Append to .learnings/skill-distiller/calibration.jsonl with metrics and expected score.

6. Output Result

Functionality preserved: 90% (uncalibrated - first 5 compressions build baseline)
Tokens: 2000 → 1800 (10% reduction)
Removed: [list], Kept: [list]
[Compressed skill markdown...]

Patterns

Protected (must preserve)

Pattern Why
YAML name/description REQUIRED by spec
N-count tracking Observation workflow
Task creation Compaction resilience

If removed: -10% score penalty, flagged in output.

Advisory (warn if removed)

Parallel/serial decisions, performance hints, caching guidance. No score penalty.


Calibration

Storage: .learnings/skill-distiller/calibration.jsonl

N-count Meaning
N \x3C 5 Uncalibrated (LLM-only estimate)
N > 10 Calibrated (historical CI)

Feedback: /skill-distiller feedback --id=c1 --actual=85 --outcome="worked"


Self-Compression

Guardrails:

  • Require 95% functionality (not 90%)
  • Output to SKILL.compressed.md, never overwrite original
  • Manual verification required

Why 0.95: Capability loss compounds (0.95 x 0.95 = 0.90 at next level).


Error Handling

Error Hint
No content Provide SKILL.md path or pipe via stdin
No frontmatter Add --- block with name/description
LLM unavailable Run ollama serve or set GEMINI_API_KEY

Related

Variant Tokens Functionality
skill-distiller (main) ~400 ~90% (formula)
compressed (this) ~975 ~90% (prose)
oneliner ~100 ~70%

Full reference: SKILL.reference.md (~2,500 tokens, ~90%)

Token counts use 4 chars/token heuristic (+/-20%). Functionality scores are LLM-estimated.

安全使用建议
This skill is an instruction-only 'compressor' and is generally coherent with its stated purpose. Before installing: (1) be aware it writes files to the agent workspace (SKILL.compressed.md and .learnings/skill-distiller/calibration.jsonl) — ensure you’re comfortable with that path and its permissions; (2) if you plan to use an external model backend (ollama, Gemini, OpenAI), the skill's docs mention related env vars/servers but don’t declare them formally — only provide API keys if you trust the environment and limit their scope; (3) run a dry-run first (the skill documents a --dry-run option) to confirm outputs and that no unexpected files are created; (4) if you need higher assurance, request the full SKILL.reference.md linked in the metadata and/or inspect the agent's workspace after a test run. Overall the skill appears coherent and fit-for-purpose, with the main considerations being file writes and optional model-key usage.
功能分析
Type: OpenClaw Skill Name: neon-skill-distiller-compressed Version: 0.2.1 The Skill Distiller (Compressed) is a utility designed to reduce the token count of other OpenClaw skills by prioritizing core instructions and removing verbose sections. The logic is contained entirely within SKILL.md as instructions for the agent, and it lacks any indicators of data exfiltration, malicious execution, or unauthorized access. It includes a local logging mechanism for 'calibration' in a .learnings directory, which is consistent with its stated purpose of optimizing agent performance.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The name/description match the content: the SKILL.md describes how to compress skills, protect key patterns, score importance, and produce compressed outputs. No unrelated binaries, credentials, or install steps are requested, so the declared purpose aligns with what the skill asks the agent to do.
Instruction Scope
Instructions stay focused on parsing and compressing skill markdown and include expected workflows (section classification, scoring, output format). The SKILL.md instructs the agent to write outputs (SKILL.compressed.md) and append calibration data to .learnings/skill-distiller/calibration.jsonl — this is reasonable for a distiller but means the skill will write to the agent workspace. It also references provider fallback and error hints (e.g., 'set GEMINI_API_KEY' or 'ollama serve'), which implies optional use of external model backends even though the skill otherwise claims 'No external APIs.'
Install Mechanism
No install spec and no code files are present (instruction-only), so there is no download or arbitrary code execution risk from installation. This is the lowest-risk install model.
Credentials
Declared requirements list no environment variables or credentials, which is proportionate for an instruction-only compressor. However, the SKILL.md mentions provider options (ollama, gemini, openai) and references GEMINI_API_KEY and running 'ollama serve' in error handling; those are optional but not declared. If you run the skill configured to use an external provider, that provider may require API keys — consider whether you want the skill to have access to those secrets.
Persistence & Privilege
The skill does not request persistent platform privileges (always:false). It will write its outputs and calibration entries to the agent workspace (.learnings and SKILL.compressed.md), which is normal for this utility. disable-model-invocation:true reduces autonomous invocation risk.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install neon-skill-distiller-compressed
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /neon-skill-distiller-compressed 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.2.1
- Updated functionality estimates and related table to use "~90%" (LLM-estimated) instead of fixed percentage values. - Added clarification that token counts use a heuristic and that functionality is LLM-estimated, including new summary notes. - Expanded options section with a reference to additional flags in SKILL.reference.md. - Minor wording and formatting adjustments for accuracy and transparency.
v0.2.0
- Simplified and compressed SKILL.md to a shorter prose variant (~975 tokens, 88% functionality). - Added direct reference to a new SKILL.reference.md file for full documentation details. - Updated the "Related" section to a table comparing variants by token size and functionality. - Removed README.md file for a more streamlined skill package. - Minor clarifications and reorganization for better usability and clarity.
v0.1.0
- Initial release of Skill Distiller (Compressed) at version 0.1.0. - Provides skill compression with a reduced context footprint (~975 tokens vs ~2,500). - Maintains core skill-distiller functionality while optimizing for minimal token usage. - Includes structured guidance on compression process, section classification, and error handling. - Adds calibration tools to track and report compression effectiveness. - Designed for technical transparency: always reports trade-offs and preserves critical skill information.
元数据
Slug neon-skill-distiller-compressed
版本 0.2.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Skill Distiller (Compressed) 是什么?

Same skill compression power in half the context — 975 tokens vs 2,500. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 82 次。

如何安装 Skill Distiller (Compressed)?

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

Skill Distiller (Compressed) 是免费的吗?

是的,Skill Distiller (Compressed) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Skill Distiller (Compressed) 支持哪些平台?

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

谁开发了 Skill Distiller (Compressed)?

由 Lee Brown(@leegitw)开发并维护,当前版本 v0.2.1。

💬 留言讨论