Agent Skills › videojs/video.js › review-branch

review-branch

GitHub

用于对代码分支进行非侵入式审查,评估 PR 风格发现、回归风险及合并前质量。通过对比差异、检查上下文和验证候选问题,输出按严重性排序的可操作发现,辅助决策是否合并。

.agents/skills/review-branch/SKILL.md videojs/video.js

触发场景

需要执行 PR 风格审查时 评估分支合并前的回归或安全风险时

安装

npx skills add videojs/video.js --skill review-branch -g -y
更多选项

非标准路径

npx skills add https://github.com/videojs/video.js/tree/main/.agents/skills/review-branch -g -y

不安装直接使用

npx skills use videojs/video.js@review-branch

指定 Agent (Claude Code)

npx skills add videojs/video.js --skill review-branch -a claude-code -g -y

安装 repo 全部 skill

npx skills add videojs/video.js --all -g -y

预览 repo 内 skill

npx skills add videojs/video.js --list

SKILL.md

Frontmatter
{
    "name": "review-branch",
    "description": "Review the current branch without editing code. Use for PR-style findings, regressions, merge-base comparison, or pre-merge risk assessment."
}

Branch review

Review the branch as a whole; do not implement fixes.

  1. Determine the intended base and inspect the merge-base diff, commit history, and working tree separately.
  2. Fetch a linked issue or PR when supplied and derive the acceptance boundary.
  3. Read changed code in context, including callers, tests, exports, and relevant configuration.
  4. Check whether the change is a good citizen of the whole codebase and documentation: follow established ownership, naming, architecture, public contracts, and nearby patterns rather than judging the diff in isolation.
  5. Apply only the domain constraints and review criteria that the changed surface requires. For files under site/src/content/docs/, check that each page still reads like the shape it claims (how-to, concept, or reference), per site/src/content/docs/writing-style/write-guides.mdx.
  6. Prioritize correctness, regressions, security, accessibility, public compatibility, and missing tests. Avoid style findings already enforced by tools.
  7. Collect candidates in separate passes: the changed lines alone; written rules in the nearest AGENTS.md files, quoting the rule; comments around the change, including untouched invariants or ordering warnings; and git log/git blame for earlier fixes the branch reverts.
  8. Verify each candidate before keeping it. Trace consumed values to their origin, compare against an existing working use of the same API or pattern, confirm the failure mechanism in the actual source, and name a concrete trigger with its wrong outcome. Drop candidates that fail any step.
  9. Score survivors 0–100 for certainty that a maintainer would fix them before merge. Report only 80 or higher; do not demote dropped candidates into possible issues. Exclude pre-existing issues on unchanged lines and clearly intentional behavior changes.

Lead with findings ordered by severity. For each, include the file/line, concrete failure mode, evidence, and smallest correction. Then summarize the change and residual test gaps. Say explicitly when no actionable findings remain.

Example

Input: “Review this branch against main.”

Output: Severity-ordered actionable findings with locations and evidence, followed by a concise change summary and residual test gaps.

版本历史

  • 8a0a3d8 当前 2026-10-20 08:03

同 Skill 集合

.agents/skills/change-spf-behavior/SKILL.md
.agents/skills/commit-pr/SKILL.md
.agents/skills/configure-vite-plus/SKILL.md
.agents/skills/create-html-component/SKILL.md
.agents/skills/create-issue/SKILL.md
.agents/skills/create-react-component/SKILL.md
.agents/skills/create-skill/SKILL.md
.agents/skills/create-spf-behavior/SKILL.md
.agents/skills/design-api/SKILL.md
.agents/skills/document-spf-feature/SKILL.md
.agents/skills/document-spf-use-case/SKILL.md
.agents/skills/implement-accessible-ui/SKILL.md
.agents/skills/implement-spf-feature/SKILL.md
.agents/skills/implement-spf-use-case/SKILL.md
.agents/skills/implement-ui-transition/SKILL.md
.agents/skills/investigate-issue/SKILL.md
.agents/skills/maintain-agent-docs/SKILL.md
.agents/skills/maintain-tests/SKILL.md
.agents/skills/maintain-vjsc-skin-gaps/SKILL.md
.agents/skills/review-accessibility/SKILL.md
.agents/skills/review-api/SKILL.md
.agents/skills/review-docs/SKILL.md
.agents/skills/review-html-component-design/SKILL.md
.agents/skills/review-html-component/SKILL.md
.agents/skills/review-react-component-design/SKILL.md
.agents/skills/review-react-component/SKILL.md
.agents/skills/write-api-reference/SKILL.md
.agents/skills/write-design-doc/SKILL.md
.agents/skills/write-docs/SKILL.md
.agents/skills/write-html-component-design/SKILL.md
.agents/skills/write-locale-translations/SKILL.md
.agents/skills/write-react-component-design/SKILL.md
.agents/skills/write-rfc/SKILL.md
.agents/skills/create-rolldown-plugin/SKILL.md
.agents/skills/create-vite-plugin/SKILL.md
.agents/skills/create-vjsc-component/SKILL.md
.agents/skills/transform-rolldown-code/SKILL.md

元信息

文件数
0
版本
8a0a3d8
Hash
ca0f06f1
收录时间
2026-10-20 08:03

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 02:35
浙ICP备14020137号-1