/aoshimash-skills:merge-own-prsfrom aoshimash-skills
Self-review and merge the user's own pull requests one at a time, with the human deciding every merge. Targets named PRs, a repository, or every repository of a GitHub org or user. Acts only on open, non-draft PRs the user authored, whose review is requested from the user directly or through one of their teams (named PRs skip that check), in repositories where the user can merge without another person's approval (no required review, or a ruleset/branch-protection bypass). For each PR, in an AI-chosen order: self-review the diff, handle every human and bot review comment (fix, decline, or track — always reply and resolve), present a short brief of summary, risk, and blast radius, and after the human says merge, leave a COMMENT review, merge, and verify merged → deployed → working. Strictly serial. GitHub only. Use when the user says "セルフマージして", "セルフレビューして", "自分のPRをマージしていって", "自分のPRを片付けて", "merge my PRs", "self-review and merge my pull requests", or names their own PRs to merge.
Ships in aoshimash-skills. 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.
Work through the user's own open pull requests one at a time: self-review each one, close every review conversation on it, tell the human in a few lines what it does and how risky it is, and merge it only after the human says so — then confirm the change is actually live and working before touching the next one.
The human makes every merge decision. The skill's job is to make that decision fast and well-founded: the brief must let the human decide without opening the PR, and everything mechanical — reading the diff, answering bots, waiting for CI, verifying the deploy — is done before and after the decision, not by the human.
This skill targets any agent implementing the Agent Skills spec. Instructions below use capability terms; map them to your environment as follows.
| Capability | With native support (example) | Fallback |
|---|---|---|
| User choice — present numbered options, wait for an explicit selection | Structured question tool (e.g. Claude Code's AskUserQuestion) | Numbered options as plain text; wait for the user's reply |
| Platform access — read PRs, checks, rulesets, threads; post reviews, replies, comments; resolve threads; merge; create revert PRs | A connector or MCP server for GitHub, only when it covers every operation this run uses (see Platform Access) | The gh CLI; with neither, ask the user how to reach GitHub |
| Separate agent instance — run the self-review, and the check that a fix matches a human reviewer's intent, in a fresh context that has not seen this conversation | Subagent dispatch (e.g. Claude Code's Task tool) | Run it in the current context against the same criteria and mark the result SELF-REVIEWED in the brief; the independence of the review is lost |
| Background execution — wait for CI and deploys without blocking | Background shell (e.g. Claude Code's background Bash) | Poll sequentially; nothing is lost but time |
A run needs a reachable human: merges, replies, and reverts all wait on the user's choice. With no user reachable (a scheduled or unattended launch), run Phases 0–1 and the read-only part of Phase 2 (self-review, comment triage, drafted replies, the brief), post and merge nothing, and end with the report.
The platform guide's commands specify each operation; they do not fix the tool that performs it. Resolve the method once, before the first GitHub operation, taking the first that applies:
gh is installed and authenticated → use the guide's commands.Keep the method for the whole run. If it fails or proves unable to perform an operation partway through, do not retry that operation through another method: stop the line, report what was already posted or merged, and name the operation that failed. A merge call whose outcome cannot be confirmed is a stopped line, not a retry. The report names the method.
Known limit. The guide's CLI commands are the verified path; a connector path has not been exercised by this skill's evaluations.
reviewDecision is empty (no review required) or viewerCanMergeAsAdmin is true;integration/** branch (those belong to the merge gate of the issue pipeline).
Every excluded candidate is listed in the report with its reason. An empty set is reported, never widened.See references/workflow.md "Phase 1".
See references/workflow.md "Phase 2" for each step.
See references/workflow.md "Phase 3". Stopped lines first; then one row per PR in one of the post-merge safety net's five report categories — "merged & verified"; "merged, not yet published" (with the follow-up: what and who); "reverted"; "deferred / human queue" (one category: skipped by the human, or deferred with its reason); "merge outcome unconfirmed"; the excluded candidates with reasons; replies posted and threads resolved per PR; the enumeration's completeness and the platform access method; issues created for tracked comments. Issues noticed outside the selected set are listed as "別件" proposals, never acted on.
plugins/aoshimash-skills/shared/post-merge-safety-net.md, never this copy); this skill runs it in its interactive form, and workflow.md "The post-merge safety net" maps its host-skill hooksgh CLI/API reference commandsevals/evals.json (opens in a new tab)references/comments.md (opens in a new tab)references/eval-cases.md (opens in a new tab)references/platform-github.md (opens in a new tab)references/post-merge-safety-net.md (opens in a new tab)references/targets.md (opens in a new tab)references/verification.md (opens in a new tab)references/workflow.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aoshimash/skills --plugin aoshimash-skills11 skills in this plugin
/analyze-sessionsAnalyze the running agent's session history — Codex or Claude Code, or a history export the user provides — to detect recurring patterns in skill executions and propose improvements to skill definitions and, where that agent's configuration surface is confirmed, to its settings or hooks. Use when the user says "analyze sessions", "improve skills", "analyze skill logs", "セッションを分析", "スキルを改善", "ログを分析", "設定を提案", or wants to review skill usage patterns and environment configuration.
/collect-agent-rulesPromote hand-written conventions out of the author's own GitHub repositories and into the shared rule corpus in aoshimash/skills — confirm which repositories to scan, read each one's AGENTS.md over the GitHub API without cloning, ignore everything inside a managed rules block, propose the conventions that recur across repositories, decide on them one at a time, and open a pull request adding the approved ones to the corpus. Runs inside a checkout of aoshimash/skills; proposes, never promotes automatically. Use when the user says "collect agent rules", "promote rules into the shared corpus", "find rules worth sharing in my repos", "scan my repositories for conventions to centralize", "harvest conventions from my other projects", "ルールを収集して", "他のリポジトリのルールを共通ルールに取り込んで", "自分のリポジトリから共通化できる規約を集めて", "エージェントルールを収集", "共通ルールに昇格させて", or otherwise wants hand-written conventions in owned repositories gathered into the shared rule set.
Other plugins' skills for the same job