/claudecode-research-harness-workflow:maintenance [plans|session-log|logs|state|all] [--dry-run]from claudecode-research-harness-workflow
Cleans up and archives bloated project files like Plans.md, session-log.md, old logs, and state files. Invoke directly or via auto-cleanup warnings.
Ships in claudecode-research-harness-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
| 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.
.claude/state/.ssot-synced-this-session is absent,
prompt to run /memory sync (required only when touching Plans.md)${CLAUDE_SKILL_DIR}/references/cleanup.md and execute the relevant sectionFor execution steps, thresholds, and archive destinations per target, see cleanup.md.
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.
cc:WIP, pm:requested, cursor:requested are excluded from archiving.claude/memory/archive/ — confirm with user before moving elsewherecp <file> <file>.bak.$(date +%s)memory — SSOT promotion before organizing Plans.md (updates decisions.md / patterns.md)harness-setup — Periodic maintenance after setup can also be invoked via harness-setupsession-init — Controls maintenance recommendation notifications at session startWhat SKILL.md sets; muted values are Claude Code's defaults
lowThree short reads, in order
file-cleanup, archiving, project-maintenance, session-log, plans-md
32 skills in this plugin
/agent-browserBrowser automation through the repo agent-browser CLI. Explicit helper for navigation, forms, screenshots, scraping, and web-app checks. Prefer Browser Use or Playwright when available. Do NOT load for: sharing URLs, embedding links, or editing screenshot files./authExplicit helper for authentication and payment implementation with Clerk, Supabase Auth, or Stripe. Do NOT load for: general UI work, database design, or non-auth features./ciCI red? Call us. Pipeline fire brigade deploys. Use when user mentions CI failures, build errors, test failures, or pipeline issues. Do NOT load for: local builds, standard implementation work, reviews, or setup./crudExplicit helper for CRUD scaffolding and API endpoint generation. Do NOT load for: UI components, form design, database schema discussion, or general implementation./deployDeploy to Vercel/Netlify. One-way ticket to production arranged. Use when user mentions deployment, Vercel, Netlify, analytics, or health checks. Do NOT load for: implementation work, local development, reviews, or setup./harness-acceptGenerate an Acceptance Demo HTML for non-engineer vibecoders right before ship/wait/reject decision. Reads back the acceptance_criteria that were stored as personal-preference.v1 by harness-plan-brief (joined by user_request_hash), then renders a single-file HTML showing each criterion as verified or unverified along with a ship/wait/reject recommendation. Use when the user asks for an acceptance review, wants to decide whether to ship a delivered task, or says: acceptance demo, accept demo, acceptance decision, acceptance review, ship/wait/reject decision, acceptance inspection. Do NOT load for: implementation, code review, release work.npx claudepluginhub maxwell2732/claudecode-research-harness-workflow --plugin claudecode-research-harness-workflowOther plugins' skills for the same job