ワンクリックで
reset
Clean stale Maestro state — remove old drafts, orphaned teams, and stale task directories.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Clean stale Maestro state — remove old drafts, orphaned teams, and stale task directories.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
UI/UX design intelligence with searchable database
Generate comprehensive implementation plans through systematic discovery, synthesis, verification, and decomposition into beads. Use when asked to plan a feature, create a roadmap, design an implementation approach, or decompose work into trackable issues. Do NOT use for simple one-step tasks, quick fixes, or when the user just wants to execute an existing plan — use the work skill instead.
Execute a plan or direct task with worker delegation and verification.
Deep investigation mode. Gather context, analyze, synthesize recommendations without making code changes.
Fetch up-to-date library documentation via Context7 MCP. Use when working with external libraries, APIs, or frameworks.
Start interview-driven planning with Prometheus. Asks clarifying questions before generating implementation plan.
| name | reset |
| description | Clean stale Maestro state — remove old drafts, orphaned teams, and stale task directories. |
| allowed-tools | Read, Write, Bash, Glob |
Clean up stale Maestro state. This is a maintenance command — use when things get stuck.
List all draft files in .maestro/drafts/:
Glob(".maestro/drafts/*.md")
For each draft, show the file name and first line. Ask the user which to remove (or all).
Check for team directories that may be leftover from interrupted sessions:
ls -la ~/.claude/teams/ 2>/dev/null
For each team directory, check if it has active members. Report orphaned teams.
List all handoff files in .maestro/handoff/:
Glob(".maestro/handoff/*.json")
For each handoff file, read the JSON and show the topic, status, and start time. Report handoff files that may be from interrupted design sessions (especially those with status: "designing").
Check for task directories:
ls -la ~/.claude/tasks/ 2>/dev/null
Report any task directories that don't correspond to active teams.
List all archived plan files in .maestro/archive/:
Glob(".maestro/archive/*.md")
For each archived plan, show the file name and first line (title). Ask the user which to remove (or all, or none). This is the ONLY way archived plans get deleted — it requires explicit user confirmation.
Check for Maestro worktrees that may be leftover from interrupted sessions:
git worktree list --porcelain
Filter for worktrees on maestro/* branches. Cross-reference with handoff files in .maestro/handoff/:
status: "complete" (session finished but worktree was not cleaned up)For each orphaned worktree:
git worktree remove "<path>"
After removing the worktree, optionally offer to delete the associated branch (with separate confirmation):
git branch -D "maestro/<slug>"
Safety: Never auto-remove worktrees. Always require explicit user confirmation for both worktree removal and branch deletion.
.maestro/plans/ are NEVER deleted. Archived plans in .maestro/archive/ may be deleted with user confirmation..maestro/wisdom/ is preservedEnd with:
## Reset Complete
### Cleaned
- [N] draft files removed
- [N] handoff files removed
- [N] orphaned team directories removed
- [N] stale task directories removed
- [N] archived plans removed
- [N] orphaned worktrees removed
### Preserved
- [N] plans in .maestro/plans/
- [N] wisdom files in .maestro/wisdom/
- [N] archived plans in .maestro/archive/