Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

fusion-github-review-resolutionfusion GitHub 审查 resolution

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

10,906

周安装

459

GitHub Stars

公开资料未说明

下载量

3,819
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fusion-github-review-resolution(fusion GitHub 审查 resolution)
来源仓库:https://github.com/equinor/fusion-skills
仓库路径:skills/fusion-github-review-resolution
安装命令:
npx skills add https://github.com/equinor/fusion-skills --skill fusion-github-review-resolution
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/equinor/fusion-skills --skill fusion-github-review-resolution

简介

用于围绕 GitHub 仓库协作流程提供辅助支持。

  • 适合查询项目状态、整理变更或生成协作事项清单。
  • 区分只读查询与写入操作,确保 token 权限匹配需求。
  • 涉及 PR 创建或 Issue 修改时应确认目标仓库授权范围。
  • fusion-github-review-resolution 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Resolve GitHub Review Comments

When to use

Use this skill when a pull request has unresolved inline review comments and you need a repeatable, auditable closure workflow.

Typical triggers (skill should activate on all of these):

URL patterns — activate immediately:

  • https://github.com/<owner>/<repo>/pull/<number>#pullrequestreview-<id>
  • https://github.com/<owner>/<repo>/pull/<number> (when context implies review work)

Explicit user requests:

  • "Fix the review comments"
  • "Address the review feedback on this PR"
  • "There are unresolved review comments — fix them"
  • "Resolve the conversations on this PR"
  • "Handle all unresolved comments on this PR"
  • "For each review comment: fix, test, commit, reply, resolve"
  • "Close the open review threads"
  • "Check this review and resolve the conversation when fixed"
  • "Resolve outstanding review feedback"
  • "The PR has changes requested — fix it"

Implicit / agent-detected:

  • A PR is in "changes requested" state and the agent is asked to work on it
  • A PR has unresolved review threads and the user asks to improve or merge the PR
  • An agent working on a PR detects open review conversations

When not to use

Do not use this skill when:

  • no unresolved review comments exist,
  • the request is only to summarize or describe feedback without making code changes,
  • all targeted threads are already resolved or outdated and acknowledged,
  • the branch/worktree is intentionally read-only.

Required inputs

Collect before execution:

  • repository owner/name,
  • pull request number or URL,
  • optional review id to scope comments (for example pullrequestreview-<id>),
  • branch/worktree decision,
  • required validation commands for the repository.
When a review URL is provided (github.com/<owner>/<repo>/pull/<number>#pullrequestreview-<id>), auto-extract owner, repo, PR number, and review id from it. Only branch/worktree choice and validation commands still need confirming.

Optional context:

  • linked issue reference (for example equinor/fusion-core-tasks#432),
  • commit granularity preference when comments overlap the same file.

Instructions

Follow this phase order unless the user explicitly asks for a different sequence: fetch → analyze → fix → validate → push → reply → resolve → verify. Do not interleave GitHub thread mutations with code-editing retries.

  1. Ask whether to use a dedicated git worktree

- Ask this before any other workflow questions. - If yes, use/create the worktree and continue there.

  1. Gather unresolved comments and create working tracker

- If a review URL with #pullrequestreview-<id> was provided, parse owner, repo, PR number, and review id from it before fetching. - Copy or open assets/review-resolution-checklist.md—this becomes your working document. Fill in the context section and update the comment tracking table as you work through each thread. - Fetch review threads for the PR and filter unresolved threads. - If a specific review id or review URL is provided, limit to comments from that review. - Within the targeted review, collect all comments associated with that review id (do not include replies from other reviews unless explicitly requested). - Build a working list with: thread id, comment id, parent review id, file path, original comment body, and all subsequent replies in that thread (including contributor replies). - Read the full reply chain for each thread — contributors may have added clarifications, constraints, or additional context that must be taken into account when deciding how to resolve the comment. - Capture a baseline list of targeted thread ids and unresolved-thread count before any GitHub mutation.

  1. Understand, research, and judge each comment

- Read the referenced file(s) and nearby logic. - Decide whether the feedback is correct, partially correct, outdated, or incorrect against the current code, requirements, and surrounding context. - Reviewers are not automatically correct; do not make code churn just to satisfy a comment that is stale or wrong. - If the feedback is correct, verify root cause and identify the smallest safe fix. - If the feedback is clearly incorrect or outdated, prepare a concise evidence-based reply instead of changing code unnecessarily. - If uncertain, inspect adjacent tests/usages before editing. - If doubt remains after local research, ask the user before making code changes or mutating that review thread.

  1. Fix, check, commit (per comment)

- Apply focused code/doc changes only for comments you judged valid or partially valid. - Run targeted checks first, then required repo checks. - Create one commit per comment when practical. - If two comments require one inseparable change, use one commit and map both comments to that commit in replies. - For comments you decline, record the reasoning in the tracker so the eventual reply is explicit and auditable.

  1. Push once after all fixes

- After all comment-related commits are created, push branch updates once.

  1. Reply and resolve each review comment

- Before any thread mutation, prefer structured tooling in this order: 1. dedicated GitHub MCP review-thread reply/resolve tools exposed in the current client session, 2. the bundled GraphQL assets or bundled scripts/resolve-review-comments.sh, 3. never ad hoc temporary Python scripts, one-off batch helpers, or blind gh api retry loops. - Prepare exactly one planned reply per targeted thread from the checklist/tracker before posting anything. - Re-fetch the current thread state before retrying if a reply/resolve attempt errors, times out, or returns an uncertain result. - For each thread, these two steps are mandatory and must happen together in order unless the thread is still uncertain and waiting for user input: 1. Post a reply on the thread: either describe what changed and include the commit hash(es), or explain why no code change was made because the comment is incorrect/outdated. 2. Resolve the thread immediately after the reply is posted — never before. - Post at most one reply attempt per thread per run. - If an equivalent agent-authored reply already exists, do not post another reply; reuse it and only resolve if the thread is still unresolved. - If a different agent-authored reply already exists, stop and inspect manually rather than stacking another comment. - Do not resolve a thread that is still uncertain; escalate it to the user first. - Never resolve a thread without a reply. Never post a reply without then resolving the thread. - Keep replies specific: name the file/line changed and the commit, not just "fixed".

  1. Verify closure state

- Re-check review threads and confirm no targeted unresolved threads remain. - Confirm the targeted unresolved-thread count dropped to zero and no duplicate agent replies were created during this run. - Re-check latest CI status if the workflow expects green checks.

  1. Ask whether to request a new review from the original review author

- After fixes are pushed and threads are resolved, ask if the user wants to request a new review from the author of the review comments. - If yes, request review from that reviewer username and report that the request was sent.

  1. Optional scripted execution

- Use scripts/get-review-comments.sh to fetch matching review comments (including sub-comments associated with the review id). - Results are limited to the first 100 review threads and first 100 comments per thread. - Example test: - skills/.experimental/fusion-github-review-resolution/scripts/get-review-comments.sh --owner equinor --repo fusion-skills --pr 27 --review-id 3837647674 - Use --include-outdated when you need comments from outdated matching threads. - Use scripts/resolve-review-comments.sh to reply+resolve matching threads with a dry-run-first duplicate-reply guard. - Keep default dry-run behavior; use --apply only after fixes are committed and pushed. - By default the script refuses to add another authenticated-user reply to a thread that already contains one; use --allow-additional-reply only after manual inspection. - Example dry-run: - skills/.experimental/fusion-github-review-resolution/scripts/resolve-review-comments.sh --owner equinor --repo fusion-skills --pr 27 --review-id 3837647674 --include-resolved - Example apply: - skills/.experimental/fusion-github-review-resolution/scripts/resolve-review-comments.sh --owner equinor --repo fusion-skills --pr 27 --review-id 3837647674 --apply --message "Addressed in <commit>: <what changed>."

Tooling map (MCP vs GraphQL)

Use GitHub MCP tools for high-level PR operations and any dedicated review-thread mutations the current client exposes. Use GraphQL for thread-level review operations when MCP coverage is missing.

Workflow actionPreferred toolNotes
Request reviewer / update PR metadatamcp_github_update_pull_requestWorks for collaborator reviewers and standard PR updates.
Create or submit PR reviewmcp_github_pull_request_review_writeHandles pending review lifecycle actions.
Add general PR commentmcp_github_add_issue_commentAdds issue-style comment to PR conversation, not inline thread reply.
List review threads and commentsassets/pull-request-review-threads.graphqlUse with gh api graphql -f query=@assets/pull-request-review-threads.graphql for thread-level context.
Count unresolved threads for specific review idassets/unresolved-thread-count-for-review.graphqlPost-process response (for example with jq) to filter by review id and unresolved state.
Reply to a review threadDedicated MCP review-thread reply tool, otherwise assets/add-pull-request-review-thread-reply.graphqlPrefer the MCP tool when available; otherwise use the bundled thread-scoped mutation instead of ad hoc scripts.
Resolve a review threadDedicated MCP review-thread resolve tool, otherwise assets/resolve-review-thread.graphqlUse the matching structured tool for the current client/session. ⚠️ GraphQL note: resolveReviewThread uses threadId, not pullRequestReviewThreadId.
List PR reviews (review URL/id lookup support)assets/pull-request-reviews.graphqlUseful when starting from review URL context.
Pro tip: See each .graphql file in assets for complete mutation/query syntax and parameter names.

GraphQL cost awareness

Review-resolution workflows make multiple GraphQL mutation calls (reply + resolve per thread). Be conservative:

  • Mutations cost 5 secondary-limit points each (vs 1 for read queries). Budget accordingly when processing many threads.
  • Pause at least 1 second between consecutive mutation calls to avoid secondary rate limits.
  • Keep first/last connection arguments small (prefer first: 100 only when you need all threads in a single page).
  • If a secondary rate-limit error or retry-after header is returned, stop processing and respect the indicated wait before retrying.
  • Always prefer a dedicated MCP review-thread tool over raw GraphQL when the client exposes one.

Token budget guidance

  • Fetch the full thread list once and reuse it for all per-thread work; do not re-fetch threads between reply and resolve.
  • Budget estimate: for N unresolved threads expect ~1 list call + N reply mutations + N resolve mutations = 1 + 2N calls. A 10-thread review costs ~21 calls.
  • If the thread count exceeds 15, warn the user about rate-limit risk before starting mutations and offer to batch in smaller groups.
  • Cache PR metadata (title, branch, CI status, changed files) from the first fetch and reuse it for commit messages and replies.
  • Avoid redundant PR-level reads between steps; the data does not change within a single resolution run.

Expected output

Return a concise report containing:

  • comments processed count,
  • disposition summary (fixed, declined with rationale, escalated to user),
  • files changed,
  • commit list (hash + message),
  • validation commands run and outcomes,
  • confirmation of push,
  • reply/resolve confirmation per thread,
  • completed checklist location,
  • any remaining unresolved threads or blockers.

Linked issue usage

When an issue is provided (for example equinor/fusion-core-tasks#432):

  • mention the issue in progress/final summaries,
  • keep implementation aligned with issue scope,
  • avoid expanding to unrelated PR automation.

Safety & constraints

  • This skill is mutation-capable. Repository-local workflow instructions take precedence over inline guidance when they conflict.
  • Never expose secrets or tokens in logs/replies.
  • Prefer argv-based process execution over shell-interpolated command strings.
  • Keep diffs minimal and scoped to review feedback.
  • Do not assume review feedback is correct; reason about it against the code and requirements first.
  • If a comment remains ambiguous after research, ask the user instead of guessing.
  • Do not resolve a thread without posting a concrete fix reply.
  • Do not claim checks passed unless commands were actually run.
  • Do not force-push; use regular commits and a single push after all fixes.
  • If a comment is outdated but still unresolved, either:

- resolve with a clear explanation and commit reference, or - leave unresolved and report why.

  • In scripted mode, keep default dry-run behavior and require explicit --apply for mutations.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.95%
按下载量换算1,335

Claude

29.56%
按下载量换算1,129

Cursor

17.49%
按下载量换算668

Gemini CLI

10.35%
按下载量换算395

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills