interface-review
它能做什么
这个技能审阅一个分支、拉取请求或一组未提交的改动。它关注改动在界面中造成或加重的问题,而不是整个项目。适合希望在合并前获得屏幕质量反馈的开发者和审阅者。
适用场景
- ✓当你有一个拉取请求,并想检查其界面改动是否有无障碍或布局问题的时候。
- ✓当你有未提交的改动,并想知道它们是否让屏幕变差的时候。
- ✓当同事的分支修改了按钮、文字或颜色,并且你想进行集中审阅的时候。
技能链接
https://github.com/jakubkrehel/skills/blob/main/skills/interface-review/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请审阅我的分支,看看我的改动是否引入了任何界面问题。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能会确定需要审阅的改动,阅读修改前后的代码,并按类型对每项发现进行分类。它只报告由改动本身造成的问题。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Interface review
This skill reviews a change rather than a screen. It resolves the scope, expands the changed files to the surfaces they affect, reads both sides of the diff and classifies every finding.
It owns the scope, the classification and the change-scoped report. Domain rules belong to the better-* skills. Severity, consolidation, coverage, the cap and the verdict belong to better-interface, which this skill hands the review to.
Correctness, tests, security and performance belong to the project's general code review. Name such a concern once, point at that review and drop it.
The change, not the codebase
The author is asking "did I make this worse?". Report what the change caused and stay mostly quiet about what it merely touched. Three pre-existing findings is a courtesy; thirty is a different review and one nobody asked for.
Read the whole diff before forming an opinion of it. A skimmed diff produces findings about code the next hunk already fixed.
1. Resolve the change scope first
The whole invocation is the target, so /interface-review pr 482 reviews pull request 482. Scope resolution holds the accepted targets and how each resolves.
With no target supplied, resolve in this order and stop at the first match:
HEADis ahead ofgit merge-base origin/<default-branch> HEAD. Review that range plus any uncommitted changes, stating the commit count and the uncommitted file count separately.- The working tree is dirty. Review the uncommitted changes.
- Neither. There is no change to review, so follow With no change, ask rather than invent one.
Record the base commit of the resolved range as $BASE and name it in the scope block. Every command in this skill and its references uses it.
Exclude lockfiles, snapshots, generated output, vendored code and binaries per Excluded paths, and name what you excluded. If nothing survives the exclusions, treat it as no change.
2. With no change, ask rather than invent one
A clean tree with nothing ahead of the merge base means there is no change to review. Never fall back to HEAD~1..HEAD on your own. The last commit is whatever happened to land, often a merge or someone else's work.
Gather the facts in Nothing to review, state them, then offer these routes and wait:
- The open pull request on the current branch, first when there is one. A branch whose commits already landed resolves to no change, while its pull request is still exactly what the user meant.
- The last commit,
HEAD~1..HEAD, named by short SHA and subject so the user sees what they would get. - A target they name, such as
pr <n>, a branch, a ref or a range. - A whole-repository interface audit, which is not a change review. Hand it to
better-interfaceas a repository-scope review, without this skill's scope block, statuses or pre-existing section.
Where exclusions emptied the scope, name the excluded files in the offer. Never report a review of nothing as Approve.
3. A diff is not a surface
A changed file is evidence, not the review subject. Its blast radius is the set of surfaces it renders in; review those.
Expand one hop by default, to the direct importers and callers. Expand a second hop only for design tokens, theme values and shared primitives, where one line reaches the whole product.
Review at most five consumers in total across both hops, ordered by the rule in Scope resolution. State how many you did not expand, since an unstated cutoff reads as completeness.
4. Read the removed lines
Regressions are invisible in the post-change state. Read the - side of every hunk against Removed signals.
A signal is a lead, not a finding. A removal is a regression only when nothing in the change replaces it, and the domain skill owns that judgement. Route each unmatched removal to its owner, report only what that skill confirms and status it Regression.
5. Classify every finding
Give every finding one status:
Introduced: the change created it.Regression: the change weakened something previously correct.Pre-existing: present before the change and not made worse by it.
Status by cause, not by location. A finding a changed line causes is Introduced or Regression wherever it surfaces, including an untouched consumer of a changed token
常见问题
它会审阅整个代码库吗?
不会。它聚焦于你的分支、拉取请求或未提交工作中的改动。
它会检查漏洞和安全问题吗?
不会。它会把这些问题交给通用代码审阅处理,自己不报告。
它会寻找哪些类型的问题?
涵盖无障碍、布局、文案、排版、颜色以及整体界面质量。
详情
作者的原始描述
Reviews a branch, pull request or uncommitted change for the interface problems it introduced or regressed, across accessibility, layout, writing, typography, color and UI.
repo: jakubkrehel/skills
热度
- GitHub 星标
- 10k
- 排名
- #11894
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …