maxwell2732/claudecode-research-harness-workflow/maintenance
Claude Code and agent skill by maxwell2732/claudecode-research-harness-workflow
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install maxwell2732/claudecode-research-harness-workflow/maintenanceSKILL.md
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 importantinformation 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
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/maintenance/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/maxwell2732/claudecode-research-harness-workflow/maintenance)