一键导入
pr-feedback-triage
Triage pull request review comments into fixes, replies, clarification requests, or open follow-ups while respecting safe execution modes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Triage pull request review comments into fixes, replies, clarification requests, or open follow-ups while respecting safe execution modes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Query the MT5 API for account info, terminal status, health checks, symbol data, market data (OHLCV rates, ticks, market depth), open positions, pending orders, trade history, and reconnecting the MT5 terminal with new credentials. Use when the user wants to interact with any mt5api endpoint.
Run local QA including formatting, linting, and testing for the repository. Use whenever any file has been updated.
| name | pr-feedback-triage |
| description | Triage pull request review comments into fixes, replies, clarification requests, or open follow-ups while respecting safe execution modes. |
| allowed-tools | Bash(git:*), Bash(gh:*), mcp__github__*, Read, Grep, Glob, Edit, MultiEdit, Write |
Triage pull request review feedback, decide what action each thread needs, make focused fixes when allowed, and report or resolve only what is actually handled.
Do not use this skill for a first-pass code review with no existing feedback; use a code review skill instead.
dry_run, no_push, and no_reply.If no PR or review comments are identifiable, ask for the target PR or the copied comments before proceeding.
dry_run: inspect review feedback and report the triage only. Do not edit files, run write-mode formatters, commit, push, post replies, or resolve review threads.no_push: local edits and verification are allowed, but do not push commits or otherwise update the remote branch. Report the local diff or local commits that still need to be pushed. Do not resolve threads whose resolution depends on unpushed local edits.no_reply: do not post replies, submit reviews, or resolve review threads. Provide suggested replies and resolution actions in the final report instead.When a mode disables an action, skip that destructive or externally visible action even if normal workflow text would otherwise allow it.
git diff --name-only and git diff --cached --name-only. Ignore untracked files unless the review feedback explicitly concerns them.normal mode, push only when the user request or repository workflow allows it; otherwise continue with a clearly reported limitation.Gather the complete feedback set before editing:
gh and GitHub MCP tools; paginate results and do not inspect only the first page of threads or comments.Build one triage record per distinct finding:
Each triage record should track: original title, reviewer, source IDs, location, current applicability, severity/priority if available, disposition, planned action, verification, reply text if any, resolution decision, platform action attempted, and final platform state.
In normal mode, Resolve conversation is the default action for any review thread that has been fully handled. A thread is handled when the requested change is implemented and verified, the current code already satisfies the comment, the comment is outdated and no longer applies, or a deliberate deferral/won't-fix response has been posted with a clear reason.
Keep a thread open only when it still needs reviewer, maintainer, or product input, the fix is local-only and not pushed, verification is missing for a material change, or the user explicitly requested dry_run, no_push, or no_reply behavior that prevents resolution.
When resolving a thread, add a concise reply first only if it provides useful context, such as what changed, why no code change was needed, why a finding was intentionally deferred, or why the original comment is now outdated. Do not add noisy replies for self-evident fixes unless project norms require them.
resolve_only over adding a reply.Do not treat triage as complete until every incorporated source ID reaches an explicit terminal state:
resolved: a platform resolve action succeeded, or a re-check shows the thread is already resolved.replied_left_open: a reply or question was posted and the thread is intentionally left unresolved.not_resolvable: the source is a PR-level summary comment or copied comment that has no platform-level resolve action; post a brief reply only when useful.skipped_by_mode: dry_run, no_push, or no_reply prevented the external action.failed_action: a reply or resolve action was attempted and failed; include the attempted action and failure in the final summary.In normal mode, build and execute a platform action queue after fixes are verified and pushed when needed:
reply_then_resolve: use for handled threads where the reviewer needs context before resolution.resolve_only: use for self-evident fixes and already-addressed or outdated threads where an extra reply would add noise.reply_leave_open: use only for clarification requests, blocked work, or intentionally open follow-ups.reply_only: use for PR-level comments or summaries that cannot be resolved, only when a short reply adds value.For duplicate findings, execute the terminal action for every source thread ID, not only the primary triage record. If one finding is represented by three unresolved inline threads, all three must be resolved or explicitly left open.
Use whichever authenticated GitHub-capable interface is available and reliable, preferably gh or GitHub MCP. Prefer interfaces that expose review-thread resolution state. For GitHub inline review threads, use the thread node ID and the GraphQL resolveReviewThread mutation, or an equivalent GitHub MCP resolve-thread tool, rather than assuming that a reply resolves the conversation.
A reliable pattern is:
resolved.failed_action instead of claiming completion.Example GraphQL mutation shape:
mutation ($threadId: ID!) {
resolveReviewThread(input: { threadId: $threadId }) {
thread {
id
isResolved
}
}
}
A posted reply alone is sufficient only for reply_leave_open, reply_only, or not_resolvable sources. For handled inline review threads, reply and resolve are separate actions.
flowchart TD
A[Identify PR and branch state] --> B[Collect all review feedback]
B --> C[Deduplicate and preserve source IDs]
C --> D[Inspect current diff and code]
D --> E{Classify each triage record}
E -->|Fix| F[Implement minimal change]
E -->|Answer| G[Prepare concise reply]
E -->|Clarify| H[Prepare question and leave open]
E -->|Already addressed or Outdated| I[Prepare evidence]
E -->|Defer or Won't fix| J[Document reason]
F --> K[Verify]
G --> L{Mode}
H --> L
I --> L
J --> L
K --> L
L -->|dry_run| M[Report triage only]
L -->|no_push| N[Report local diff or commits]
L -->|no_reply| O[Report suggested replies/actions]
L -->|normal| P[Commit/push if changed]
P --> R[Execute reply/resolve action queue]
R --> S[Re-fetch threads and retry unresolved handled threads once]
M --> Q[Final summary]
N --> Q
O --> Q
S --> Q
Collect all relevant feedback
Classify each triage record
dry_run.Act according to the classification and mode
dry_run, stop at triage, proposed fixes, suggested replies, and verification plan.no_push, local edits are allowed, but do not push or resolve threads whose fix is only local. Reply or resolve non-code, already-addressed, or outdated threads only when the action does not depend on unpushed work and no_reply is not set.no_reply, do not post replies or resolve threads; report suggested replies/actions instead.Verify before claiming completion
failed_action with the affected source ID and reason.Finish
normal, dry_run, no_push, or no_reply