/harness:maintenance [plans|session-log|logs|state|all] [--dry-run]from harness
Tidies up bloated Plans.md, session-log.md, old logs, and state files. Supports subcommands for targeted or full cleanup with dry-run mode.
Ships in harness. 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.
散らかったファイルを整頓する単一目的スキル。auto-cleanup-hook が警告を出した時、 または定期的な家事として呼び出す。
前提: 破壊的操作(アーカイブ移動・行削除)の前に Plans.md / session-log.md の 重要情報が SSOT (decisions.md / patterns.md) に昇格済みか確認する。 未同期なら
/memory syncを先に走らせる。
| サブコマンド | 対象 | 典型トリガー |
|---|---|---|
maintenance plans | Plans.md 完了タスクのアーカイブ移動 | 「Plans.md 整理」「古いタスクを移動」 |
maintenance session-log | session-log.md の月別分割 | 「session-log 分割」「ログが長い」 |
maintenance logs | .claude/logs/ の古いファイル削除 | 「ログ掃除」「30日以上前のログ消して」 |
maintenance state | agent-trace.jsonl / harness-usage.json のトリム | 「trace 肥大」「state 圧縮」 |
maintenance all | 上記4つを順に実行 | 「全部整理」「総掃除」 |
--dry-run を付けると何をするかだけ列挙して実行しない。自由記述の指示(例:
「古いアーカイブも消して」「この session-log だけ残して」)は Step 1 で
受け付けて Step 2 以降の処理パラメータに反映する。
.claude/state/.ssot-synced-this-session が無ければ
/memory sync を促す(Plans.md を触る場合のみ必須)${CLAUDE_SKILL_DIR}/references/cleanup.md を読み対応セクションを実行対象ごとの実行手順・閾値・アーカイブ先は cleanup.md を参照。
PostToolUse hook (scripts/auto-cleanup-hook.sh / Go 版 auto_cleanup_hook.go) は
Plans.md・session-log.md・CLAUDE.md の行数超過を検知すると
/maintenance で古いタスクをアーカイブすることを推奨します と feedback を返す。
警告を見たら対象と件数を読み取り、整理案を出す。警告そのものをアーカイブ移動や削除の承認として扱わない。
明示された maintenance の対象と除外条件がある場合は、その範囲で既存の SSOT 同期と破壊的操作のゲートに従う。
cc:WIP, pm:依頼中, cursor:依頼中 はアーカイブ対象外.claude/memory/archive/ — 別の場所に移すときは
ユーザーに確認するcp <file> <file>.bak.$(date +%s) で
ローカルバックアップを取るmemory — Plans.md 整理前の SSOT 昇格(decisions.md / patterns.md 更新)harness-setup — セットアップ直後の定期メンテは harness-setup 経由でも呼べるsession-init — セッション開始時のメンテ推奨通知を制御What SKILL.md sets; muted values are Claude Code's defaults
lowThree short reads, in order
npx claudepluginhub chachamaru127/claude-code-harness --plugin harness23 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./breezingTeam execution mode — backward-compatible alias for harness-work with team orchestration. Composer/composer 2.5 maps to the cursor backend./cc-update-reviewQuality guardrail for Claude/Codex update integration. Detects doc-only Feature Table additions and requires implementation or explicit planning. Internal use only./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./cursor-askRead-only delegate to cursor-agent (Composer) for questions, investigation, design discussion, and adversarial sanity checks. No worktree, no cherry-pick, no Lead diff review — cursor-agent is locked to ask mode and cannot write. Use when user says: ask cursor, cursor sanity check, get a second opinion, adversarial review, design discussion, investigate with cursor, cursor:ask. Do NOT load for: implementation, refactor, file edits, commit/push work, anything requiring write access (use cursor:do or breezing --cursor instead)./cursor-doDelegate a single write task to Cursor Composer via cursor-companion.sh inside an isolated worktree, then Lead-review the diff and cherry-pick. Use when user invokes cursor:do, says delegate to cursor, have composer write it, refactor with cursor, hand a file edit to Composer. Do NOT load for: planning, code review only, read-only investigation, or multi-task team runs (use breezing --cursor or cursor:ask instead).Other plugins' skills for the same job