用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/holon-run/holon --skill github-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | github-review |
| description | Review a GitHub pull request by collecting GitHub context, applying evidence-backed review rules, and optionally publishing one review. |
Use this skill as the GitHub adapter for a code review. It collects pull
request context, applies the platform-neutral code-review contract when that
skill is available, and optionally maps validated findings to one GitHub
review. The normal delivery is the user-facing review brief; files are
exported only when the caller explicitly requests them.
gh CLI authentication is required when context must be collected or a
review must be published.code-reviewcode-review is the platform-neutral core. If it is enabled in the skill
catalog, read and follow it for the review inputs, evidence threshold, finding
shape, degradation behavior, and brief. This skill supplies the GitHub adapter
steps below.
If code-review is not available, use the same minimum contract here:
review changed hunks, verify candidates against surrounding code, require
concrete evidence, report coverage and limitations, and do not publish
unlocatable or speculative high-severity findings. Do not fetch or install a
remote skill during a review just to satisfy this optional composition.
Prefer context already supplied by the caller. When a manifest is supplied,
use its artifact entries (id, path, status, and description) rather
than assuming fixed filenames or directories. Preserve the available
repository/path instruction metadata in the review coverage.
If the required context is not supplied, collect it with gh:
gh pr view <pr_number> --repo <owner/repo> --json number,title,body,state,url,baseRefName,headRefName,headRefOid,author,createdAt,updatedAt,mergeable,reviews,changedFiles,additions,deletions
gh pr view <pr_number> --repo <owner/repo> --json files
gh pr diff <pr_number> --repo <owner/repo>
gh api repos/<owner>/<repo>/issues/<pr_number>/comments --paginate
gh api graphql -f query='
query($owner:String!, $repo:String!, $number:Int!) {
repository(owner:$owner, name:$repo) {
pullRequest(number:$number) {
reviewThreads(first:100) {
nodes {
isResolved
comments(first:100) {
nodes { id body path line author { login } }
}
}
}
}
}
}' -F owner=<owner> -F repo=<repo> -F number=<pr_number>
Normalize collected data into the code-review inputs:
change_set: PR metadata, changed files, diff, base ref, and head SHAbaseline: relevant repository code and configurationproject_instructions: caller-provided repository/path instructionsprior_feedback: existing reviews, comments, and review threadsverification_budget: focused checks available in the checkoutDo not discover or match repository instruction files inside this adapter when the caller/runtime supplies instruction context. If that context is absent, state the coverage limitation rather than assuming there are no instructions.
Follow code-review's scope, priority, candidate verification, classification,
and degradation rules. Review every changed file and materially changed hunk
before concluding that there are no findings.
For each publishable finding, require:
pathseverity, confidence, and categoryFindings that cannot be mapped to a changed line remain in the brief as
non-inline findings or needs-context; never attach them to an arbitrary line.
Always provide a conclusion-first user-facing brief with:
Only when the caller explicitly provides an artifact directory and requests exports, write:
review.md: human-readable review reportreview-result.json: the platform-neutral structured resultreview-publish.json: the GitHub publish receipt, if a publish was attemptedDo not require or create summary.md, manifest.json, or any other fixed
review output file. Do not require GITHUB_OUTPUT_DIR,
REVIEW_OUTPUT_DIR, or another environment variable; if a caller explicitly
provides an export directory through prompt/context, use that directory.
Publishing is optional and must be explicitly requested by the caller. A review may be delivered without publishing.
headRefOid immediately before publishing.Use a JSON payload file with gh api:
gh api repos/<owner>/<repo>/pulls/<pr_number>/reviews -X POST --input <review-payload.json>
When inline comments are requested, include only validated findings with precise changed-line locations. Put non-inline findings in the review body.
The caller may select:
DRY_RUN=true: prepare and show the proposed review without publishingMAX_INLINE=N: cap the number of inline commentsPOST_EMPTY=true: allow publishing a review with no findingsThese options affect the adapter only; they do not weaken the evidence,
coverage, deduplication, or degradation rules in code-review.