返回顶部
c

context-slimmer

Audit and slim down always-loaded context files (AGENTS.md, TOOLS.md, USER.md, MEMORY.md, HEARTBEAT.md, SOUL.md, IDENTITY.md). Use when asked to reduce token usage, audit context files, optimize context window, or slim down workspace files. Measures current token cost and identifies what to move, remove, or compress.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,327
下载量
0
收藏
概述
安装方式
版本历史

context-slimmer

# Context Slimmer Audit workspace files that load into every message and reduce their token footprint. ## Quick Start ```bash # Measure current context cost bash scripts/measure.sh # Full audit (outputs recommendations) bash scripts/measure.sh --audit ``` ## Audit Process For each always-loaded file, evaluate: 1. **Move to skill** — Content only needed for specific tasks (betting config, group chat rules, detailed protocols). Move to a skill or reference file that loads on demand. 2. **Remove** — Outdated info, dead features, completed one-time setup, duplicated content across files. 3. **Compress** — Verbose explanations that could be 1 sentence. If the agent already knows it, cut it. ## Rules of Thumb - If a cron job handles it, remove it from HEARTBEAT.md - If it's in SOUL.md, don't repeat it in MEMORY.md or AGENTS.md - If it's in USER.md, don't repeat it in MEMORY.md - If the agent does it daily, it doesn't need instructions — just a trigger word - Prefer 1 sentence over 5 bullets saying the same thing - Target: each file should justify every line's token cost ## Expected File Sizes (lean targets) | File | Target | |------|--------| | AGENTS.md | < 500 tokens | | TOOLS.md | < 500 tokens | | USER.md | < 700 tokens | | MEMORY.md | < 400 tokens | | HEARTBEAT.md | < 400 tokens | | SOUL.md | < 250 tokens | | IDENTITY.md | < 50 tokens | | **Total** | **< 2,800 tokens** | ## Output Format Report: current size, projected size, savings per file. Include specific recommendations grouped by move/remove/compress.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 context-slimmer-1776419986 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 context-slimmer-1776419986 技能

通过命令行安装

skillhub install context-slimmer-1776419986

下载 Zip 包

⬇ 下载 context-slimmer v1.0.0

文件大小: 2.8 KB | 发布时间: 2026-4-17 19:53

v1.0.0 最新 2026-4-17 19:53
Initial release: audit and slim down always-loaded context files. Includes measure.sh script for token counting and duplicate detection.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部