cleanup
Mechanical apply of /age's hash-anchored sidecar fixes via tilth_edit.
Skill by paulnsorensen
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/paulnsorensen-cleanup
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cleanup
What's inside
- Skill 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
- Instructions
- 109 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- allowed-tools: must be a space-separated string
Files (2)
- SKILL.md
- wolf-protocol.md · references/
SKILL.md (first lines)
# Cleanup — Mechanical Fix Apply
Apply `/age` sidecar fixes mechanically via `tilth_edit`. No LLM in the
happy path. The `cleanup-wolf` sub-agent fires only on hash mismatch.
## Arguments
```
/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.
## Phase 1 — Load
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.
```
## Phase 2 — Apply Each Fix
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:
```json
{"id": "<fix.id>", "status": "applied", "new_anchor": {...}, "file": "..."}
{"id": "<fix.id>", "status": "skip", "reason": "<reason>"}
{"id": "<fix.id>", "status": "already_applied"}
```
## Phase 3 — Emit Report
Write `.cheese/age/<slug>.cleanup-report.md`:
```markdown
# 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.
## Rules
- `cleanup-wolf` is the only LLM in this skill. The happy path has zero
agent spawns.
- Do not modify `<slug>.fixes.json` or `<slug>.suggestions.json`.
- Do not apply suggestions. `/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.
- Each fix is applied independently. A wolf failure on one fix does not
block the remaining fixes.From paulnsorensen/cheese-flow, MIT.
More from paulnsorensen/cheese-flow
- 0.498score
nih-audit
paulnsorensen
Scan a codebase for custom code that duplicates what open-source libraries already do, then recommend which libraries to adopt.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
cheez-search
paulnsorensen
AST-aware code search using tilth MCP.
SkillCFreshness: C★ 1Claude Code +9 - 0.495score
cure
paulnsorensen
Finish what /age started.
SkillCFreshness: C★ 1Claude Code +9 - 0.495score
age
paulnsorensen
Staff Engineer code review orchestrator.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
mold
paulnsorensen
Iterative thinking amplifier for fuzzy ideas.
SkillCFreshness: C★ 1Claude Code +9 - 0.490score
milknado-execute
paulnsorensen
Use the Milknado MCP tools to pick and execute the next ready node from the Mikado graph, apply file changes, and run quality gates.
SkillCFreshness: C★ 1Claude Code +9 - 0.490score
research
paulnsorensen
Multi-source research orchestrator that routes questions across Context7 library docs, Tavily web research, codebase analysis, and GitHub examples, then…
SkillCFreshness: C★ 1Claude Code +9 - 0.437score
merge-resolve
paulnsorensen
Resolve merge conflicts, rebase conflicts, and cherry-pick failures using mergiraf (AST-aware structural merge), git rerere, and kdiff3.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
gh
paulnsorensen
Complete GitHub tasks using the gh CLI.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
cheez-read
paulnsorensen
Smart code reading using tilth MCP.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
cheez-write
paulnsorensen
Hash-anchored file editing using tilth MCP.
SkillDFreshness: D★ 1Claude Code +9 - 0.425score
milknado-plan
paulnsorensen
Use the Milknado MCP tools to decompose a goal into a Mikado-style change graph and produce a token-budgeted batch plan.
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 1
- Open issues
- 25
- Last commit (this folder)
- Apr 30, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/paulnsorensen/cheese-flow
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from paulnsorensen
- 0.603score
build-optimize
paulnsorensen
Optimize local build, test, and check commands with measured wall-time evidence.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
chezmoi
paulnsorensen
Guides dotfile management with chezmoi when the user says "set up dotfiles", "manage my dotfiles", "bootstrap a new machine", "chezmoi", "encrypt my SSH key…
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
bin-doctor
paulnsorensen
Audit and repair installed binaries so each tool has one install path, a clean cache, and a current pin, across mise, Homebrew, cargo, uv, npm, pnpm, bun…
SkillAFreshness: A★ 2Claude Code +9 - 0.600score
ci-optimize
paulnsorensen
Optimize GitHub Actions workflow wait time with measured evidence.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
cheese-board-loop
paulnsorensen
Runs the cheese-board workflow and asks the user each question it raises.
SkillAFreshness: A★ 2Claude Code +9 - 0.592score
skillz
paulnsorensen
Add, improve, audit, wedge, or autoimprove a skill.
SkillAFreshness: A★ 1Claude Code +9
Cite this page
cleanup skill. Agent Mart. https://agentmart.dev/skills/paulnsorensen-cleanup (last updated 2026-10-24)