/aoshimash-skills:respond-to-pr-reviewfrom aoshimash-skills
Process PR review comments one by one — explain each comment, confirm the response with the user, implement changes, verify fixes match reviewer intent, and post reply comments to close the loop. Groups similar/duplicate comments from multiple reviewers or bots. GitHub only. Use when the user says "PRコメントに対応して", "レビューコメントに返信して", "respond to PR review", "handle PR comments", "PRレビュー対応", "review comments に答えて", "PRのレビューに返答", or wants to systematically work through review feedback on a pull request. Invoke this skill even if the user just says "PRコメント対応" without further detail.
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.
Process PR review comments interactively: explain each one, confirm what to do, implement changes, verify fixes match intent, and close the loop with reply comments.
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 PR comments and post replies on GitHub | A connector or MCP server for GitHub, preferred when it covers every operation this skill uses (see Platform Access) | The gh CLI; with neither, ask the user how to reach GitHub |
| Separate agent instance — run a task in a fresh context that has not seen this conversation | Subagent dispatch (e.g. Claude Code's Task tool) | Run sequentially in the current context; for verification, mark the result SELF-REVIEWED in the artifact it lands in (here, the reply comment the step produces) |
## Code Hosting section in the agent instructions, then a github.com remote in git remote -v). If it is not, say so and stop — this skill is GitHub-only.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. The Phase 0 gate is the one point where it may still change: Change re-selects the PR and keeps the method, and a method the user names at that gate replaces it before any comment is fetched. If it fails or proves unable to perform an operation partway through, do not retry that operation through another method: stop, report which replies were already posted, and name the operation that failed.
Known limit. The guide's CLI commands are the verified path. Whether a connector covers an operation is judged from that connector's own tool descriptions and schemas, and a connector path has not been exercised by this skill's evaluations.
See references/workflow.md for detailed procedure.
Summary: Fetch all comment types (inline, review body, general). Filter out outdated, replies, informational bots, and pure praise. Identify each comment as Human or Bot.
See references/workflow.md for detailed procedure.
Summary: Group comments pointing out the same issue across reviewers/bots/lines. Record metadata (bodies, IDs, reviewers, files). Tag criticality: critical (REQUEST_CHANGES or 2+ reviewers) vs normal. Tag comment type: rule-violation-instance (pattern applies to multiple locations) vs one-off-bug (specific defect).
See references/workflow.md for detailed procedure.
Summary: For each group: show comment, explain it, ask for a decision via a user choice (see Environment Adaptation).
Hard Gate per group — options:
For each "Implement" decision:
fix: address review comment on foo.ts:42)See references/workflow.md for detailed procedure.
Summary: For each rule-violation-instance group just implemented, search the changed files for other instances of the same pattern. Present found instances to the user via a user choice (Apply all / Skip / Pick subset). Apply selected fixes in the same commit, or create a new commit if the previous commit is already pushed.
See references/verification.md for detailed procedure.
Summary: Verify that Phase 4 (and 4.5) changes match the reviewer's intent.
critical groups → verification by a separate agent instance with fresh context (3 criteria: Intent Match, Scope Guard, Side Effect). If the environment cannot provide one, self-review against the same criteria, mark the resulting verdict SELF-REVIEWED, and carry that flag into the reply (see Environment Adaptation).normal groups → self-review using the same 3 criteriarule-violation-instance groups, same-pattern expansion from Phase 4.5 is considered in-scope for the Scope Guard criterion.Hard Gate (conditional): If any DONE_WITH_CONCERNS → present to user: Proceed / Re-implement / Abort
For each "Create Issue" decision:
Draft a reply for every group that requires a response.
Tone by reviewer type:
| Human | Bot | |
|---|---|---|
| Opening | Brief thanks | None |
| Formality | Casual but professional | Factual only |
Reply content by decision:
| Decision | Human | Bot |
|---|---|---|
| Implement | "Thanks! Fixed in [SHA] — [description]." | "Fixed in [SHA]: [description]." |
| Implement (broadened) | "Thanks! Fixed in [SHA] — applied to [original location] + [N] other instances of the same pattern." | "Fixed in [SHA]: applied to [original location] + [N] other instances of the same pattern." |
| Implement (WITH_CONCERNS) | "Thanks! Fixed in [SHA] — [description]. Please verify this matches your intent." | "Fixed in [SHA]: [description]. Verification requested." |
| Reject | "Thanks for the note. Keeping current approach because [reason]." | "Keeping current approach: [reason]." |
| Create Issue | "Good point — outside scope. Created #N to track it." | "Out of scope. Tracked in #N." |
Hard Gate: Show all drafts as batch → Approve all / Edit specific / Cancel. After approval, post via platform API.
gh CLI/API reference commandsWhat 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