组件代码审查
review-component
审查任意代际(v0、v1、智能体、基础组件或原生支持)的组件代码或变更,但不编辑文件。对每处变更进行分类,应用相应的检查清单和原生覆盖层,并报告带验证状态且有证据支撑的发现。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1.4k
- Forks
- 179
01 前言 Front Matter
- name
- review-component
- license
- MIT
- description
- Review component code or changes of any generation (v0, v1, agentic, primitive, or native-backed) without editing files. Classifies each changed surface, applies the matching checklists and native overlay, and reports evidence-backed findings with validation status.
03 SKILL.md 正文
Review a component change
- R-REVIEW-001: A review is read-only. Do not edit files, update snapshots, commit, or invoke an implementation workflow unless the user asks for fixes after receiving the review.
- R-REVIEW-002: Report only evidence-backed findings. Cite
path:line, the violated rule ID or contract requirement ID, and whether the finding was verified (executed or confirmed in source) or inferred.
Workflow
-
Establish the scope: the named files, the working-tree diff, or the branch diff against its base.
-
Classify each changed surface with the classification guide: task intent, implementation model, public compatibility, and native obligations (R-CLASSIFY-001, R-CLASSIFY-002).
-
Load only the checklists for the surfaces present:
Surface Checklist v0 v0 review checklist v1 v1 review checklist Agentic higher-order Package and higher-order component invariants; the component's SPEC.mdandspec/; and the review checklists in types and slots, state and accessibility, styles and tokens, and rendering for the areas changedAgentic primitive Primitive invariants, the primitive's CONTRACT.md, and primitive contractsTests and stories Tests and stories for agentic code; legacy test apps for v0 and v1 Contract or provenance Contract authoring workflow, the contracts reference, and only the source adapters matching the changed evidence Focus or keyboard Required focus evidence and the affected platform file Native code or roots Native overlay checklist; for iOS or macOS, also Apple and Office rules Framework-base pattern Framework-base instructions -
Check repository-wide rules: explicit exports (R-REPO-001), platform fork imports (R-REPO-002), changesets (R-REPO-003), no copied private source (R-REPO-004), and the code-scanning patterns: linear-time regular expressions and no values spliced into executed code (R-SCAN-001, R-SCAN-002).
-
Inspect validation claims. Run non-mutating checks only when they add evidence, preferring focused tests over the whole suite (R-VALID-004); never run snapshot-update or fix modes. Record each check as passed, failed, skipped, not run, or unsupported (R-VALID-002).
Output
- Scope and classification: one line per changed surface.
- Findings, highest severity first. For each:
path:line, the problem, the rule or requirement ID, verified or inferred, and a suggested correction. - Validation: commands run with results, and checks not run with the reason.
When nothing qualifies, say so and list what was checked. Do not pad the review with style preferences.
04 同仓库更多 Skills
v0/v1 组件维护
maintain-v0-v1-component
修复或维护现有的 v0(foundation-compose)或 v1(framework compose/compressible)组件,包括其平台变体。先对所属代际进行分类,再仅加载对应的配方。不适用于新组件、agentic 组件、只读审查或纯原生更改。
桌面测试工具链维护
maintain-desktop-testing
更改、审查或规划对 desktop-driver、desktop-test、storybook-desktop 或 storybook-desktop-runtime(包括原生辅助函数)的源代码更改。应用包不变量、文档规范、原生与消费者验证,以及 changesets。
原生组件实现
implement-native-component
实现或更改原生组件、TurboModules、原生服务、codegen specs,或原生支撑的平台包装器(Swift、Objective-C、C++/WinRT、podspecs、Windows 项目)。同时提供适用于 v0、v1 和 agentic 工作的原生覆盖清单。不适用于 Storybook 工具链故障。
依赖安全漏洞修复
fix-security-issues
审计并修复依赖安全公告(漏洞),同时遵守包年龄策略、移除未使用的易受攻击能力、对 Yarn resolutions 去重,并验证受影响的工具链。
桌面测试配置与运行
desktop-testing
使用 desktop-test、desktop-driver 和 storybook-desktop 配置、运行或排查原生桌面测试,涵盖应用目标与测试套件、辅助函数、权限、WDIO 套件、Storybook 故事测试与冒烟运行、报告以及 CI。不适用于包源代码更改或 Storybook 应用构建工具链。
Storybook 应用开发构建
agentic-storybook-development
在 macOS、Windows 或 Win32 上开发、打包、构建或排查 apps/storybook 中的 agentic-components Storybook 应用,包括应用目录(catalog)配置、Metro、CocoaPods、原生项目和渲染器构建。不适用于配置或运行桌面测试,也不适用于更改桌面包源码。