/aoshimash-skills:merge-approved-prsfrom aoshimash-skills
Merge the pull requests the user names, one at a time, only once a human other than the agent's own account has approved them: the approving review is the merge decision, and the skill never approves a PR or judges its merit. Per named PR it requires a human approval on the current head, no outstanding change request, green CI, and a verified rollback path; merges with the repository's method; then verifies merged → applied → functioning with the shared post-merge safety net plus the PR's test plan and linked issue acceptance criteria, as read-only checks only. On failure it auto-reverts when the revert can land without a human approval, else opens the revert PR and escalates; either way it stops. Strictly serial. GitHub only. Not for the user's own unapproved PRs (merge-own-prs), Renovate PRs (merge-renovate-prs), or integration-branch PRs (merge-issue-prs). Use when the user says "merge the approved PRs #12 and #15", "approve されたPRをマージして", "レビュー通った #N をマージして検証まで", "承認済みのPRをマージしていって".
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.
Merge the PRs the user names, after a human reviewer has approved them, and make sure each one is actually live and working before touching the next. A human's approving review says the change looks right; it does not say the change is applied and working. This skill adds what the review cannot: rollback readiness before the merge, verification after it, and a revert or an escalation when verification fails.
It decides nothing about the change's merit. Judging intent and design is what the review was for; an LLM pre-check is no substitute for it, so there is none here.
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, reviews, checks, rules, workflow runs; merge; create and merge revert PRs; comment | A connector or MCP server for GitHub, only when it covers every operation the run can use (see Platform Access) | The gh CLI; with neither, ask the user how to reach GitHub, or stop and merge nothing when no user is reachable |
| Background execution — wait for CI, reconciles, and post-merge workflow runs without blocking | Background shell (e.g. Claude Code's background Bash) | Poll sequentially; nothing is lost but time |
User choice is used by interactive mode's gates, by the safety net's run-start questions (the knowledge-gap question and the credential-remediation question), and by escalation. With no user reachable, those questions resolve the way the safety net says for an unattended launch, and interactive mode merges nothing.
The platform guide's commands specify each operation; they do not fix the tool that performs it. This skill merges and reverts on the default branch without a per-merge sign-off from the user, so its coverage test is strict. Resolve the method once per run, after confirming the repository is on GitHub and 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; never fail over. When it fails or proves unable to perform an operation, that operation's result is unknown:
Name the method in the report. Known limits: the guide's CLI commands are the verified path; no connector path has been exercised by this skill's evaluations. The gated-publish publish-run read needs gh 2.52.0 or later (gh run list --all); with an older gh that target is unobservable, so its autonomous observability precondition fails at run start (references/workflow.md 0-1, 0-4) and the run falls back to interactive mode, where each merge waits for the user's yes; it does not stop the run. A merge the user then approves still cannot pass the publish-run read, so its verification fails and the line stops (references/workflow.md 2-9).
See references/workflow.md for each step, and its "The post-merge safety net" section for where each of the safety net's host-skill hooks lives in this skill.
Autonomous (default) — after run start's preconditions pass, no further gate: the human approval stands in for the per-merge sign-off, and machine checks cover the rest. Interactive — when the user asks to confirm each merge, or as the fallback when an autonomous precondition fails at run start: the user also says yes to each merge and each mutating apply.
integration/** branch (references/targets.md). An empty set ends the run with the report.The named set in the order the user gave (a stacked PR after its base), each PR's exclusion reason, the verification plan with its sources, the merge method, and whether an auto-revert is forecast to land or escalate. Autonomous: report and proceed. Interactive: approve / reorder / stop.
--admin, never an approval; classify the call's result and read the PR's state.Stopped line or escalation first, then each named PR under the safety net's report categories — merged & verified, merged, not yet published, reverted, deferred (with reason), merge outcome unconfirmed — plus disruptive changes executed, follow-ups (including test-plan items left to the author), the exclusions, and the platform access method.
plugins/aoshimash-skills/shared/post-merge-safety-net.md, never this copy)gh reference commands and the connector-coverage testWhat 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