maintenance
Skill40 starsChanged 6 months agoMITView on GitHub
File cleanup and archiving. Tidies up bloated Plans.md, session-log.md, old logs, and state files. Trigger: /maintenance, cleanup, archive, organize, split session-log. Do NOT load for: implementation, review, release, new feature development.
8 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- erikdarlingdata/PerformanceMonitortheir own version, first seen Sep 29, 2026
- everruns/yoloptheir own version, first seen Sep 25, 2026
- erikdarlingdata/PerformanceStudiotheir own version, first seen Sep 3, 2026
- Chachamaru127/claude-code-harnessedited, first seen Aug 14, 2026
- ficaviolaodorata520/met-museum-mcp-servertheir own version, first seen Jun 1, 2026
- openstatusHQ/skillstheir own version, first seen Mar 8, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- Chachamaru127/claude-code-harness★ 3.1k23% same
Wrote their own version · 7
- erikdarlingdata/PerformanceMonitor★ 510same name
- erikdarlingdata/PerformanceStudio★ 243same name
- cyanheads/git-mcp-server★ 240same name
- everruns/yolop★ 16same name
- tomo3141592653/ayumu-oss★ 9same name
- openstatusHQ/skills★ 2same name
- ficaviolaodorata520/met-museum-mcp-server★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- authSkill
- ciSkill
- crudSkill
- deploySkill
- harness-acceptSkill
- harness-loopSkill
- harness-plan-briefSkill
- harness-planSkill
- harness-progressSkill
- harness-releaseSkill
- harness-reviewSkill
- harness-setupSkill
- harness-syncSkill
- harness-workSkill
- memorySkill
- principlesSkill
- research-harness-auditSkill
- research-harness-cleanSkill
- research-harness-planSkill
- research-harness-releaseSkill
- research-harness-reviewSkill
- research-harness-setupSkill
- research-harness-workSkill
- session-controlSkill
- session-initSkill
- session-memorySkill
- sessionSkill
- session-stateSkill
- uiSkill
- workflow-guideSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Add --dry-run to only list what would be done without executing.
- Very specific: line 37
SSOT sync check: If .claude/state/.ssot-synced-this-session is absent, prompt to run /memory sync (required only when touching Plans.md)
- Very specific: line 39
Open reference file: Read ${CLAUDE_SKILL_DIR}/references/cleanup.md and execute the relevant section
- Distinctive: line 51
When you see this warning, run the relevant subcommand.
- Very specific: line 57
Backup: Before editing files over 200 lines, take a local backup with cp <file> <file>.bak.$(date +%s)
- Distinctive: line 58
CLAUDE.md is warning-only: Do not auto-edit. Only propose a split
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Maintenance
A single-purpose skill for tidying up messy files. Invoke when auto-cleanup-hook issues a warning, or as routine housekeeping.
Prerequisite: Before destructive operations (archiving, line deletion), confirm that important information in Plans.md / session-log.md has been promoted to SSOT (decisions.md / patterns.md). If not yet synced, run
/memory syncfirst.
Quick Reference
| Subcommand | Target | Typical Trigger |
maintenance plans | Archive completed tasks in Plans.md | "Organize Plans.md", "Move old tasks" |
maintenance session-log | Monthly split of session-log.md | "Split session-log", "Log is too long" |
maintenance logs | Delete old files in .claude/logs/ | "Clean up logs", "Delete logs older than 30 days" |
maintenance state | Trim agent-trace.jsonl / harness-usage.json | "Trace is bloated", "Compress state" |
maintenance all | Run all 4 in sequence | "Organize everything", "Full cleanup" |
Add --dry-run to only list what would be done without executing. Free-form instructions (e.g.
"delete old archives too", "keep only this session-log") are parsed in Step 1 and applied
to processing parameters in Step 2 and beyond.
Execution Steps
- Parse user instructions: Extract subcommand + free-form details (exclusions, destination, day threshold)
- SSOT sync check: If
.claude/state/.ssot-synced-this-sessionis absent, prompt to run/memory sync(required only when touching Plans.md) - Open reference file: Read
${CLAUDE_SKILL_DIR}/references/cleanup.mdand execute the relevant section - Report Before/After: Display line counts and deletion counts when done
Subcommand Details
For execution steps, thresholds, and archive destinations per target, see cleanup.md.
Integration with auto-cleanup-hook
The PostToolUse hook (scripts/auto-cleanup-hook.sh / Go version auto_cleanup_hook.go) detects
line count overruns in Plans.md, session-log.md, and CLAUDE.md and returns
Recommend archiving old tasks with /maintenance as feedback.
When you see this warning, run the relevant subcommand.
Notes
- Do not move in-progress tasks:
cc:WIP,pm:requested,cursor:requestedare excluded from archiving - Archive destination directory is fixed:
.claude/memory/archive/— confirm with user before moving elsewhere - Backup: Before editing files over 200 lines, take a local backup with
cp <file> <file>.bak.$(date +%s) - CLAUDE.md is warning-only: Do not auto-edit. Only propose a split
Related Skills
memory— SSOT promotion before organizing Plans.md (updates decisions.md / patterns.md)harness-setup— Periodic maintenance after setup can also be invoked viaharness-setupsession-init— Controls maintenance recommendation notifications at session start
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

