maintenance
Skill42 starsChanged 6 days 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.
17 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- adelrodriguez/skillstheir own version, first seen Nov 15, 2026
- erikdarlingdata/PerformanceMonitortheir own version, first seen Nov 11, 2026
- bekalpaslan/promptlinetheir own version, first seen Nov 8, 2026
- anatolykoptev/piter-writer-packtheir own version, first seen Nov 8, 2026
- everruns/yoloptheir own version, first seen Nov 2, 2026
- JPeetz/agent-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use recall and release.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
termdockSkillrecall
Retrieves cross-session memories about past decisions, lessons, and patterns. Use when user asks about prior work, past decisions, or mentions a feature. Triggers include check memory, what did we decide, how did we solve.
Also in 3 projects that use this
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 projects that use this
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- Chachamaru127/claude-code-harness★ 3.2k23% same
Wrote their own version · 16
- erikdarlingdata/PerformanceMonitor★ 536same name
- pipecat-ai/gradient-bang★ 420same name
- hyperlist/feishu-multi-agent★ 273same name
- erikdarlingdata/PerformanceStudio★ 245same name
- everruns/everruns★ 67same name
- everruns/yolop★ 18same name
- JPeetz/agent-skills★ 17same name
- bekalpaslan/promptline★ 11same name
- tomo3141592653/ayumu-oss★ 9same name
- stevehansen/eidet★ 4same name
6 more not listed
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 13 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 13 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.

