evanfang0054/cc-system-creator-scripts/semantic-compressor
Claude Code and agent skill by evanfang0054/cc-system-creator-scripts
- community
Checking that the SKILL.md file is still in the repository.
带质量保证循环的agent/skill压缩。5阶段迭代流程确保理解保留。 触发词: semantic-compressor, compress skill, optimize agent, reduce tokens, benchmark
Install
npx vskill@latest install evanfang0054/cc-system-creator-scripts/semantic-compressorSKILL.md
语义压缩器
压缩代理/技能同时保留理解能力。使用5阶段迭代质量保证流程。
工作流: 5阶段质量循环
对每个要压缩的文件,按顺序执行所有阶段:
阶段 1: 原始验证
目标: 确认 Claude 正确理解原始文件。
将输出保存为 <name>.original-understanding.yaml
阶段 2: 压缩
目标: 应用压缩规则创建压缩版本。
⚠️ 必须保留检查清单 (67%的文件因遗漏这些需要迭代)
压缩规则:
阶段2检查清单(压缩前验证)
将压缩版本写入 <name>.compressed.md
阶段 3: 压缩验证
目标: 确认 Claude 正确理解压缩版本。
将输出保存为 <name>.compressed-understanding.yaml
阶段 4: 比较与决策
目标: 比较原始理解与压缩理解。
决策:
- 如果通过 → 阶段 5 (报告)
- 如果需要改进 → 带着反馈返回阶段 2
阶段 5: 报告
目标: 生成最终比较报告。
快速命令
| 命令 | 操作 | |
|---|---|---|
/semantic-compressor | 自动扫描项目 .claude/skills/ 和 .claude/agents/,压缩所有 | |
/semantic-compressor <file> | 对单个文件运行5阶段循环 | |
/semantic-compressor benchmark | 对所有示例运行5阶段循环 | |
/semantic-compressor verify <file> | 仅阶段1+3(不压缩) |
项目目录自动扫描模式
运行无参数的 /semantic-compressor 时:
步骤 1: 发现
步骤 2: 备份(必需)
步骤 3: 处理每个文件
对每个发现的文件:
- 跳过已压缩的文件(检查
# 已压缩注释) - 运行5阶段工作流
- 用压缩版本替换原始版本(原始文件在备份中)
- 添加
# 由 semantic-compressor 在 <日期> 压缩头部
步骤 4: 生成报告
示例文件
位于 .claude/skills/semantic-compressor/samples/:
不要压缩
- 错误消息(需要确切文本)
- 安全指令
- 代码语法
- 数值阈值
- 文件路径
质量阈值
| 类型 | 最小比例 | 最大信息丢失 | |
|---|---|---|---|
| 技能描述 | 2.5:1 | 0% 触发词 | |
| 技能正文 | 2:1 | 0% 命令 | |
| 代理 | 2:1 | 0% 工具 |
如果比例 < 阈值 或 信息丢失 > 0%,标记为需要改进。
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/semantic-compressor/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/evanfang0054/cc-system-creator-scripts/semantic-compressor)