一键导入
cleanup
Mechanical apply of /age's hash-anchored sidecar fixes via tilth_edit. The cleanup-wolf sub-agent is the only LLM in the path, fired per anchor mismatch.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Mechanical apply of /age's hash-anchored sidecar fixes via tilth_edit. The cleanup-wolf sub-agent is the only LLM in the path, fired per anchor mismatch.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Staff Engineer code review orchestrator. Runs nine orthogonal LLM dimensions over a diff and emits a stake-weighted report plus hash-anchored sidecar JSON.
Finish what /age started. Loads both sidecars (fixes + suggestions), renders a unified stake table, gates on user approval, routes each approved item to the right handler (/cleanup or a cook sub-agent), then re-ages the touched paths up to a hard 3-turn cap.
Iterative thinking amplifier for fuzzy ideas. Routes input to the right starting mode (Explore, Ground, Shape, Sketch, Grill, Diagnose), runs Validate Cycles to anchor claims, locks down interfaces in pseudocode, and only curdles a spec (and optional issues) after a two-key handshake plus a coherence self-check.
Scan a codebase for custom code that duplicates what open-source libraries already do, then recommend which libraries to adopt. Detects hand-rolled utility functions, custom retry logic, manual validation, DIY date handling, home-grown argument parsers, and other reinvented wheels. Cross-checks against installed dependencies and open specs. Returns scored migration recommendations with effort estimates. Use when the user mentions reinventing the wheel, asks if there is a library for something they built, wants a build-vs-buy audit, asks "should we just use lodash for this", or wants to find dependency opportunities.
AST-aware code search using tilth MCP. Finds definitions first, then usages. Use tree-sitter structural matching instead of blind text grep. Understand dependencies and call graphs. Use when: finding where symbols are defined, tracing call chains, understanding code structure, finding all callers of a function. Do NOT use for reading files — use cheez-read. Do NOT use for editing — use cheez-write. Examples: "find where handleAuth is defined", "what calls validateToken?", "trace the ServeHTTP, HandlersChain, Next functions", "find all implementations of the UserService interface".
Multi-source research orchestrator that routes questions across Context7 library docs, Tavily web research, codebase analysis, and GitHub examples, then returns a compact synthesis with confidence scoring.
| name | cleanup |
| description | Mechanical apply of /age's hash-anchored sidecar fixes via tilth_edit. The cleanup-wolf sub-agent is the only LLM in the path, fired per anchor mismatch. |
| license | MIT |
| compatibility | Requires Claude Code >= 2.1.30 / claude-agent-sdk >= 0.2.63 (tilth_edit must be exposed to plugin sub-agents). |
| metadata | {"owner":"cheese-flow","category":"cleanup"} |
| allowed-tools | ["read","write","bash","subagent","mcp"] |
Apply /age sidecar fixes mechanically via tilth_edit. No LLM in the
happy path. The cleanup-wolf sub-agent fires only on hash mismatch.
/cleanup <slug>
slug is the same slug produced by /age. Resolves to:
.cheese/age/<slug>.fixes.json
All harnesses share the project-root .cheese/ runtime directory.
Load .cheese/age/<slug>.fixes.json.
Validate schema: every entry must have all of
id, dimension, file, anchor, content, rationale, category.
If any entry fails validation, abort with a structured error listing the
invalid id values. Do not apply any fixes from a malformed file.
If the file does not exist, fail fast:
ERROR: .cheese/age/<slug>.fixes.json not found.
Run /age first to generate the fixes sidecar.
For each fix in fixes:
try:
tilth_edit(
path=fix.file,
edits=[{
start: fix.anchor.start,
end: fix.anchor.end,
content: fix.content
}]
)
record: applied fix.id
except HashMismatch:
spawn cleanup-wolf sub-agent with:
fix — the original fix entry
current_file — cheez-read(fix.file, section containing anchor lines)
rationale — fix.rationale
record wolf result: {id, status: "applied"|"skip"|"already_applied", ...}
Hash mismatch is the ONLY trigger for cleanup-wolf. Every other path is
mechanical. Do not spawn the wolf for schema errors, missing files, or
any other condition.
cleanup-wolf contract (see skills/cleanup/references/wolf-protocol.md):
The wolf receives the fix entry and the current file state at the
affected region. It attempts to re-anchor via cheez-search narrative
match and applies with tilth_edit. Returns one of:
{"id": "<fix.id>", "status": "applied", "new_anchor": {...}, "file": "..."}
{"id": "<fix.id>", "status": "skip", "reason": "<reason>"}
{"id": "<fix.id>", "status": "already_applied"}
Write .cheese/age/<slug>.cleanup-report.md:
# Cleanup Report — <slug>
Applied: <N> fixes
Wolf-rescued: <M> (hash mismatch, re-anchored and applied)
Skipped: <K> (hash mismatch, wolf could not re-anchor)
## Skipped Details
<id> — <reason>
If all fixes were applied cleanly (zero wolf invocations), omit the Wolf-rescued and Skipped rows.
Print the report path to the caller.
cleanup-wolf is the only LLM in this skill. The happy path has zero
agent spawns.<slug>.fixes.json or <slug>.suggestions.json./cleanup is fixes-only; suggestions flow to
/fromage cook.tilth_edit hash validation is the source of truth for anchor
correctness. Do not second-guess it.