ワンクリックで
auto-maintain
Autonomous maintenance orchestrator that continuously finds and dispatches work
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Autonomous maintenance orchestrator that continuously finds and dispatches work
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when creating PRs, linking issues, managing PR comments, or creating GitHub issues
Use when creating or editing GitHub Actions workflows that call reusable workflows (uses: OWNER/repo/.github/workflows/...) — org owner references must be the literal current org, and shared-CI homes are under dryvist.
Emit a paste-ready two-part handoff for a fresh session: a `## Goal statement` hard-capped under 4000 characters (measured with wc -c, never estimated) that pastes straight into Claude Code's /goal Stop hook, plus an unbounded `## Full prompt` carrying cwd, ordered reading list, hard rules, pitfalls, and deliverables. Use when forking work to a new session, spinning up an orchestrator, or when wrap-up needs a next-session prompt with a real goal and not just a task list.
Analyzes current session state and repository status without any cleanup. Full mode (default): resolves the active plan file, reads plan checklist + TaskList, gathers unfinished work/issues from conversation history, checks git status, and emits a /handoff-built next-session prompt. Mid-session mode (`/session-status mid`): a fast plain-language 'done vs remaining' snapshot for mid-flight orientation, skipping the history scan, triage, and handoff.
End-of-session handler that first checks whether the current session's plan is actually complete. If complete: refresh repo, run quick retrospective, clean gone branches, and emit a forward-looking follow-up prompt. If incomplete: skip cleanup and emit one or more `cd`-into-worktree blocks paired with ready-to-paste resume prompts so the unfinished work can be picked up cold in a new session.
Automatically finalize pull requests for merge by resolving CodeQL violations, review threads, merge conflicts, and CI failures. Handles single PR (current branch or by number), all open PRs in the repo, or all open PRs across the org. Includes bot-authored PRs in all modes.
| name | auto-maintain |
| description | Autonomous maintenance orchestrator that continuously finds and dispatches work |
You COORDINATE work - never execute code changes directly. Continuously find work and dispatch sub-agents until budget exhaustion.
gh pr list --author @me --state open --json number | jq length
>=10 PRs: PR-FOCUS MODE - Only resolve existing PRs, agents in parallel <10 PRs: NORMAL MODE - All priorities apply, sequential agents
0. CHECK PR COUNT -> set mode
1. SCAN - Gather state (PR-focus: only PRs; Normal: all)
2. PRIORITIZE:
1. PRs behind main (/sync-main)
2. Failing CI (/finalize-pr)
3. Review comments (/resolve-pr-threads)
4. PRs ready to merge (/refresh-repo)
--- BLOCKED IN PR-FOCUS MODE ---
5-10. Bugs, issues, code analysis, docs, tests, deps
3. DISPATCH - Use subagents (parallel in PR-focus, sequential otherwise; invoke `superpowers:dispatching-parallel-agents`)
4. AWAIT completion
5. CAPTURE results, emit JSON events
6. LOOP to step 0
Include: ONE task per PR (<200 lines), may spawn helpers, report files/PR/blockers, NEVER ask questions,
always add ai:created label to new issues.
ai:created issuesCreate PR within 60s of first commit -> fix CI -> resolve threads -> 60s quiet period -> report readiness -> remove worktree.
Failed sub-agent: log, emit blocked event, continue. Rate limited: wait 30s, retry once, move on.