Community程式設計與開發github.com

duongphuhiep/dakubo-skills

當使用者想要查看 Pull Request 中尚未解決的評論、審查意見或未處理的回饋時使用。

dakubo-skills 是什麼?

此技能旨在協助開發者快速掌握 Pull Request 中所有尚未解決的評論與回饋。它會自動從對話上下文或當前分支名稱推斷 PR 編號,並在必要時請使用者手動指定。接著,技能會透過 GitHub CLI 與 API 擷取兩種評論:差異比對上的行內審查評論 (pull request review comments) 與一般層級的議題評論 (issue comments),並過濾出尚未解決的討論串。最終輸出一個清晰的 Markdown 表格,包含序號、作者、類別、訊息與位置,並附上總結行。支援的平台:Claude Code、GitHub CLI 環境。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/duongphuhiep/dakubo-skills/tree/HEAD/package/skills/dakubo-display-pr-remarks

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

顯示 PR 評論

將 Pull Request 上所有尚未解決的評論以表格形式列出。

輸入

依以下順序決定 PR 編號:

  1. 從當前對話上下文推斷。
  2. 從當前分支名稱解析(例如 APIF-1234/some-feature → 搜尋該分支上的 PR)。
  3. 若無法確定,則詢問使用者。

流程

# 從當前分支找出 PR 編號
gh pr list --head "$(git rev-parse --abbrev-ref HEAD)" --json number,url --jq '.[0]'

# 取得所有審查評論 + 議題評論
gh pr view <PR> --json reviews,comments

# 或者取得行內評論
gh api repos/:owner/:repo/pulls/<PR>/comments
gh api repos/:owner/:repo/issues/<PR>/comments

使用 gh api 取得:

  • Pull Request 審查評論(行內,針對差異):GET /repos/{owner}/{repo}/pulls/{pull_number}/comments
    • 這些評論包含 path(檔案)和 line(或 original_line)欄位。
  • 議題層級評論(一般):GET /repos/{owner}/{repo}/issues/{pull_number}/comments
    • 這些評論沒有檔案/行號(屬於 PR 層級);位置留空。
  • 含有解決狀態的審查討論串:gh pr view <PR> --json reviewThreads

僅過濾出尚未解決的討論串(isResolved: false)。對於不在討論串中的評論,則全部納入。

輸出

產生一個 Markdown 表格:

#作者類別訊息位置
1@alice問題"為什麼這是 ConcurrentDictionary?"Foo.cs:42
2@bob潛在錯誤"這在生產環境會造成 Null 參考例外..."Bar.cs:17
3@carol建議"考慮將此提取到一個 helper 方法。"(PR 層級)

類別 — 閱讀評論正文,選取 1–2 個最能捕捉其本質的詞語。沒有固定清單,可自由推斷。良好的值範例包括:question (問題)、potential bug (潛在錯誤)、critical bug (嚴重錯誤)、must fix (必須修正)、warning (警告)、suggestion (建議)、recommendation (推薦)、cleanup (清理)、test issue (測試問題)、info (資訊) — 但任何能準確反映評論的簡潔標籤都是有效的。

位置 — 對於行內差異評論,使用 `filename:line`(使用 line 欄位;若無則用 original_line)。對於 PR 層級的議題評論,則寫 _(PR 層級)_。

在表格下方包含一行總結:

N 個尚未解決的評論在 PR #NNN — <PR 標題>

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

duongphuhiep/dakubo-skills

Use when the user wants to respond to a code review remark by adding a clarifying comment to the source code — so the reviewer understands the reasoning and won't raise the same remark again. Triggers on "answer remark #N", "add comment to address reviewer concern", "document why we did X", or any request to resolve a review finding through in-code explanation rather than a code change.

duongphuhiep/dakubo-skills

Use when the user wants to reply to a code review remark on a GitHub pull request and resolve its thread. Triggers on "answer remark #N in the PR", "reply to the reviewer", or "resolve this review comment".

duongphuhiep/dakubo-skills

Traces the full call chain from a given symbol or code location up to all entry points that can reach it (HTTP controllers, main functions, page components, routes, etc.). Works for any language indexed by CodeGraph. Use for blast-radius analysis before modifying a function, method, or class.

duongphuhiep/dakubo-skills

Consolidates multiple fragmented OpenSpec capability folders under openspec/specs/ into a single main feature spec, through a staged/approved workflow. Use this whenever the user says openspec/specs/ is cluttered, has too many similar or overlapping capability folders, asks to merge/consolidate/combine specs, wants to clean up specs split across several separate change archives (e.g. specs/user-show/, specs/user-detail/ that should really be one specs/user-management/), or asks to check/apply a pending merged spec under openspec/specs/.merged-specs/. Do NOT use this for a normal single /opsx:archive of one change — only for merging several already-archived, already-existing spec folders together.

相關技能