Sero 代码审查
sero-code-review
审查 Sero monorepo 中的 PR、分支或 diff,并发布审查发现。 当用户要求审查代码、审查 PR、在新提交后重新审查、合并前检查分支,或复核之前的审查时使用。 对诸如 "review this PR"、"review the delta"、"check the changes"、"double check it" 等短语,或任何以审查发现结尾的请求作出响应。 用它来替代内置的代码审查技能。
- License 许可
- Apache-2.0
- 所属仓库
- sero-labs/sero
- 最近更新
- 2026-11-10
- Stars
- ★ 28
- Forks
- 4
01 前言 Front Matter
- name
- sero-code-review
- description
- Review a PR, a branch, or a diff in the Sero monorepo and post the findings. Use when the user asks to review code, review a PR, re-review after new commits, check a branch before merge, or double-check an earlier review. Trigger on phrases like "review this PR", "review the delta", "check the changes", "double check it", or any request that ends in review findings. Use this in place of the built-in code-review skill.
02 资源文件 9
- 参考文档references/anthropic-best-practices.md45.1 KB
- 参考文档references/bulletproofing.md2.5 KB
- 参考文档references/CLAUDE_MD_TESTING.md5.3 KB
- 参考文档references/discovery.md7.4 KB
- 参考文档references/flowcharts.md1.2 KB
- 参考文档references/graphviz-conventions.dot5.8 KB
- 参考文档references/persuasion-principles.md5.8 KB
- 参考文档references/testing-skills-with-subagents.md12.3 KB
- 脚本render-graphs.js4.9 KB
03 SKILL.md 正文
Sero Code Review
Applies to every PR review, branch review, and delta re-review.
These rules exist because unverified findings and split review rounds waste more time than the review saves.
0. The goal is a green light
A review succeeds when the branch ships. It does not succeed by finding more things. Each round must move towards a verdict, never away from one.
- Give a clear verdict every time: green (ship it) or red (do not ship, and here is exactly what blocks it). Never end a review with an open-ended list and no call.
- Only a correctness, data-loss, or security defect can hold a red light. Style, taste, "could be cleaner", and hypothetical edge cases never block a merge.
- Everything else is a non-blocking note. Say so plainly, in the same breath, so nobody has to guess whether it must be fixed.
- When the blocking findings are fixed, call it green. Do not replace them with a fresh tier of smaller findings you did not think worth raising before.
- Later rounds must shrink. If a re-review produces more blocking findings than the round before it, the earlier round was not done properly — say that instead of quietly extending the list.
- No finding at all is a valid and good result. Say "green, nothing found."
- The verdict covers the code. Merge blockers that are not code defects — the branch is behind its base, CI never ran,
packages/*changed and needs republishing — go in their own short list under the verdict. Green code with an unmergeable branch is still green code; do not blur the two.
1. Verify before you report
- Read the mechanism in the source. Do not infer it. If a finding says "this function returns null", "A runs before B", or "this value is stale", open the file and read the lines that prove it.
- Quote the
file:lineyou read, not the one you guessed. - A finding you cannot prove goes in a separate Suspected list, marked unproven — or it is not reported. Never present an inferred cause as a fact.
- State what you ran (
pnpm typecheck, test suites, line counts) and what you could not check. Never imply coverage you do not have. - Green checks on a draft PR prove almost nothing.
.github/workflows/test.ymlskipsDetect changes,Fast checksandPR Gatewhile the PR is a draft, so the rollup can read all-green with no tests run at all. Read the job conclusions (gh pr view <pr> --json statusCheckRollup) and treatSKIPPEDas "not run". Run the touched suites locally and say so.
2. Sweep the fault class
- For every defect, search the sibling paths for the same pattern before you close it out. Error handling, guards, and races cluster: if one branch has no error surface, check the other branches in the same component.
- Do the same for every fix on a re-review. A fix can leave the identical gap in the path beside it, and can add a new fault.
- Re-read changed logic in full. A green test suite does not clear a concurrency or ordering change.
3. Post each review round
- Post to the PR yourself as part of the job. Do not ask first.
- Post each completed review round as a new comment with
gh pr comment <pr> --body-file <file>. Separate comments preserve the review history and notify agents that watch the PR. - Use
--edit-lastonly to correct the comment for the current round. Do not edit an earlier comment to publish a later review round. - A delta re-review opens with the status of every previous finding (fixed / not fixed / changed), then the new ones.
- Lead with the verdict, then the blocking findings, then the non-blocking notes.
4. Scope
- Review when the branch is ready, not on every push, unless asked for a mid-flight pass.
- Check type safety, the 500 LOC file limit, and whether
apps/docs-siteneeds an update. - Do not let review feedback expand the PR scope beyond the users original goal. Address real shortcomings but avoid scope creep
04 同仓库更多 Skills
agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.
skill-creator
Guide for writing and improving Sero skills. Use when the user wants to create a new skill, rewrite an existing one, or turn a repeated piece of work into reusable procedural knowledge for the agent.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
sero-humanize
Use to draft, edit, or audit Sero application content, including UI copy, documentation, README text, and release notes. Use unslop for regular chat and status reports instead. Not for code review or creative and promotional writing.
sero-plugin
Create Sero plugins — self-contained packages with a Pi extension (agent tools/commands), an optional React UI loaded via Module Federation, and an optional background runtime. Use when the user asks to create a Sero plugin/app/extension, add a sidebar panel, dashboard widget, or agent-integrated feature, or convert a Pi extension into a Sero plugin. Trigger on phrases like "create a plugin", "new Sero app", "add a tool with UI", "build an extension", "convert this Pi extension", or any request that touches `plugins/sero-*-plugin/`.
sero-dashboard-ui
Build, redesign or standardise Sero dashboard widgets and compact plugin views using the shared @sero-ai/ui dashboard components. Use when the user asks to create, restyle, clean up or make consistent a dashboard widget or a data-dense plugin view. Trigger on phrases like "dashboard widget", "widget for the dashboard", "restyle this widget", "make the widget consistent", "compact plugin view", or any work under a plugin's `ui/widgets/`.