Context Slimming
ReviewAudited by ClawScan on May 10, 2026.
Overview
This instruction-only skill is coherent, but it guides the agent to rewrite, delete, and commit persistent workspace context files that affect future agent behavior, without explicit review or rollback safeguards.
Install only if you want an agent to help edit persistent workspace context. Before letting it apply changes, ask for a proposed plan, review diffs carefully, back up the original files, avoid storing secrets in injected markdown, and approve any deletions or commits manually.
Findings (4)
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
The agent's future behavior could change across sessions if important instructions or safeguards are removed or over-compressed.
The skill is designed to edit the files that are injected into every future agent session. A bad compression decision could remove safety rules, user preferences, or operational context and affect later tasks.
OpenClaw 将所有顶层 `*.md` 文件自动注入到每轮对话的系统提示中。 ... **顶层注入文件原则**:每文件 ≤ 1,500 bytes。
Require an explicit user-approved plan, show a diff before applying changes, keep backups, and validate behavior after edits before replacing the original context files.
Private profile details, memory, or credential-location notes could be mishandled, removed, or retained in injected context in ways the user did not intend.
The workflow includes editing persistent user profile, memory, and tool/credential-location context, but does not define privacy boundaries, retention rules, or approval requirements for what gets kept, removed, or rewritten.
USER.md # 只留:用户画像摘要 + 沟通策略 ... MEMORY.md # 只留:关键决策摘要 + 错误模式索引 ... TOOLS.md # 只留:凭证位置 + 关键配置
Treat USER.md, MEMORY.md, and TOOLS.md as sensitive; avoid storing secrets, preserve safety-critical instructions, and ask the user before changing or deleting persistent memory or credential references.
Unrelated local changes could be committed together with the context-slimming edits.
The default submission step stages all workspace changes with git add -A and commits them, without first requiring a diff review or limiting the commit to files modified by this skill.
cd /path/to/workspace git add -A git commit -m "workspace: context slimming — structure + dedup + optional classical"
Add an explicit `git diff` review step, ask for user confirmation before committing, and stage only the intended files.
Credential locations or operational configuration may remain in always-injected context or be rewritten incorrectly.
The skill may inspect or rewrite documentation about credential locations and key configuration. This is purpose-aligned for slimming TOOLS.md, but it involves sensitive operational context.
TOOLS.md # 只留:凭证位置 + 关键配置
Keep actual secrets out of injected markdown files and confirm that any credential references are minimal, necessary, and not copied into other files.
