用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/openshift/lightspeed-operator --skill review-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Sync related_images.json from Quay (oras + konflux_prefix/revision in related_images.json) and regenerate the OLM bundle. Pass mode dev (CI quay) or release (stable images, version bump — /version-update). Do not use oc.
Release workflow for main: refresh related_images.json from Quay (-r stable via hack/related_images_from_quay.sh), bump bundle/CSV version, regenerate and validate. Equivalent to /update-bundle release X.Y.Z.
Find code duplication in the codebase. Supports two modes - scoped to current branch changes or a full codebase sweep. Use when the user asks to find duplicated code, copy-paste, repeated patterns, or wants to deduplicate before a PR.
基于 SOC 职业分类
正在显示 SKILL.md
| name | review-pr |
| description | Review PR with structured approach covering architecture, naming, patterns, and critical questions |
| disable-model-invocation | true |
When asked to review a PR, follow this structured approach.
Always fetch the latest PR state before reviewing. The cached PR data may be stale.
git fetch upstream pull/<PR_NUMBER>/head:pr-<PR_NUMBER>
git log pr-<PR_NUMBER> --oneline -10
git diff upstream/main...pr-<PR_NUMBER> --stat
For follow-up reviews, re-fetch to get new commits:
git fetch upstream pull/<PR_NUMBER>/head:pr-<PR_NUMBER> --force
Read diffs per area (controllers, reconcilers, assets, tests) rather than one massive diff.
Only raise issues if you have a concrete concern — not as a checklist to fill:
_ = err, or is error wrapping missing where failure is plausible?Skip this section if nothing stands out.
Only flag naming if it is genuinely misleading or inconsistent with established patterns in the codebase. Do not flag stylistic preferences or minor wording variations.
-er (Reader, Writer, Reconciler)For production code, load the go-code-review skill and apply its checklist:
_ = err), errors wrapped with context (%w)defer Close() immediately after opening resourcesFor test code, load the go-testing-code-review skill and apply its checklist:
t.Helper()t.Cleanup() or Ginkgo AfterEach()t.Parallel())Describe/Context/It structureenvtest and handle eventual consistencyOnly flag issues that cause real problems (correctness, maintainability, silent failures).
Skip this section if nothing meaningful to flag.
Only ask questions where the answer is genuinely unclear from the code and matters for correctness or design. Do not manufacture questions for completeness.
Skip this section if the design is clear and the concerns above don't apply.
Before writing the final output, launch one subagent per candidate issue to confirm it is real. Do this in parallel for all issues found in sections 3–6.
Each subagent task should:
foo.go lines 40-55 and any callers.")After all subagents complete:
This step exists to filter out false positives before they reach the output. Do not skip it when there are candidate issues.
Structure the review as: