一键导入
tidy
Dispatch compress operations. Use when the user says "tidy" or names a file, diff, memory, workspace, git stack, or doc to tidy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Dispatch compress operations. Use when the user says "tidy" or names a file, diff, memory, workspace, git stack, or doc to tidy.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Demolish bloated code and re-derive it clean, cutting every surface the rebuilt contract does not name. Use for a repo-wide bloat sweep, when patching a subsystem has stopped paying, or when the user says "this whole module is bloated", "rewrite this properly", or "break it and rebuild".
Use when the user says "deslop", "remove debug code", "find placeholders or stub code", or "remove dead code".
Reduce internal duplication, dead code, and ceremony. Use when you spot dead fields, redundant wrappers, or speculative abstractions in code you are already editing.
Use when modernizing APIs, removing compat shims, killing feature flags, or rewriting a subsystem cleanly.
Use when the user says "simplify this diff", or asks for a compression pass over a change-set.
Design-by-Contract (DbC). Use when crossing public API boundaries, guarding complex state invariants, or hardening untrusted inputs and integration seams.
| name | tidy |
| description | Dispatch compress operations. Use when the user says "tidy" or names a file, diff, memory, workspace, git stack, or doc to tidy. |
Compress first. Before adding complexity, reduce coupling. Before changing behavior,
improve structure. This skill detects what needs tidying from context and routes
to the right domain skill. Domain procedures live in those domain skills; this skill
owns only scope detection, dispatch, and the output contract. Tidy's deletions are
compress-class (behavior-preserving: dead/redundant/structural); a request to remove
a live capability is purge. Route it out to refactor-break-compat; never tidy inline.
Inspect context in priority order and dispatch to the first matching domain:
| Signal | Domain | Dispatch to |
|---|---|---|
| File path(s), active diff, or a build or package target named | Code | cleanup-codebase skill |
memory/ directory, MEMORY.md, or memory file(s) named | Memory | memory-clean then memory-update skills |
.outline/, /tmp scratch, *.tmp, *.bak, repomix packs | Workspace | references/inline-procedures.md |
git sl, commit stack, commit message(s) named | Git | git-branchless skill + commit skill |
| Docs, comments, ADRs, READMEs, plan files named | Docs | references/inline-procedures.md |
| User explicitly says "tidy ICM" or names an ICM topic | ICM state | references/inline-procedures.md |
| "remove/drop/kill a live capability", compat-shim or feature-flag teardown named | Purge | refactor-break-compat skill |
| No clear signal | none | Ask: "What are we tidying: code, memory, workspace, git, docs, or ICM?" |
These three domains have no dedicated domain skill; their step-by-step
procedures live in references/inline-procedures.md. Read the Workspace
section when the scope-detection table matched Workspace, the Docs section
when it matched Docs, and the ICM state section when it matched ICM state.
After completing each domain, emit exactly:
Tidy — <domain>
Removed: N (up to 5 paths/names; "…and M more" if larger)
Fixed: N
Proposed: N (awaiting confirmation)
Skipped: N (<one-phrase reason>)
Next: <one sentence, e.g. "Run build to verify" or "Nothing else in scope">
If nothing needed tidying: Tidy — <domain>: nothing to do.
git move --fixup when embedding alongside active work.~/.claude/claude/system-prompt-baseline.md, the baseline wins.