用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/saffron-health/libretto --skill get-pr-reviews命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Read-only Libretto workflow for diagnosing live browser state without clicks, typing, navigation, or mutation requests.
Browser automation CLI for building, maintaining, and running browser automation workflows by inspecting live pages and prototyping interactions.
Automate user-installed Electron desktop apps (Slack, Discord, VS Code, Notion, Figma, Spotify, etc.) via CDP using this repo's Libretto CLI. Use when the task is to control a local desktop app on the user's machine, not this repo's own Electron app. Triggers: "desktop Slack app", "connect to Electron app", "remote-debugging-port", "CDP desktop app", "automate VS Code desktop app".
基于 SOC 职业分类
| name | get-pr-reviews |
| description | Get nicely formatted output of the last review comments on a PR. Used internally by other skills. |
Get nicely formatted review comments for a pull request, grouped by file and line with proper comment threading.
Determine PR number: If not provided, look up the associated PR for the current branch using:
gh pr view --json number --jq '.number'
Get formatted review comments: Use the GitHub API to fetch and format all line-specific review comments:
gh api repos/:owner/:repo/pulls/{PR_NUMBER}/comments --jq '
group_by(.path, .line) |
map({
path: .[0].path,
line: .[0].line,
comments: sort_by(.created_at)
}) |
sort_by(.path, .line) |
map(
"**\(.path)**\n Line \(.line):" +
(.comments |
map(
if .in_reply_to_id then
" | \(.user.login): \(.body)"
else
" (\(.user.login)): \(.body)"
end
) |
join("\n")) + "\n"
) |
join("\n")
'
The formatted command produces output like:
**apps/api/src/handlers/optionsHandlers.ts**
Line 98: (tanishqkancharla): I think this is a bug. If you search for e.g. "blue cros", none of these search conditions will match.
| tanishqkancharla: I see that you re-query all insurances below, so this doesn't get used.
| Mochael: I think we should ditch the ilikes and just use the fuzzy search applied to planName, payer name and abbreviation
| tanishqkancharla: default to fuzzy search
**apps/api/src/handlers/optionsHandlers.ts**
Line 116: (tanishqkancharla): fyi: don't need to fix, but I think you can just do `query.where(and(...conditions, or(...searchConditions)))`
| to show the conversation flow# Get formatted review for PR #84
gh api repos/saffron-health/monorepo/pulls/84/comments --jq '...'