web-code-review
Review frontend code with a firm senior-lead standard, focusing on bugs, regressions, architecture risks, and test gaps in apps/web and the shared contracts the frontend depends on.
- License 许可
- MIT
- 最近更新
- 2026-10-12
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- web-code-review
- description
- Review frontend code with a firm senior-lead standard, focusing on bugs, regressions, architecture risks, and test gaps in apps/web and the shared contracts the frontend depends on.
02 资源文件 3
- 参考文档agents/openai.yaml291 B
- 参考文档references/context.md1.3 KB
- 参考文档templates/checklist.md698 B
03 SKILL.md 正文
Skill: Web Code Review
Context (Required)
- Folder scope + key patterns:
references/context.md - Review checklist:
templates/checklist.md
Use this skill when the user asks for a review of frontend changes, a frontend PR, or an audit of UI/FE integration quality. The review must read like a firm senior lead: focus on bugs, regressions, contract drift, accessibility that actually matters, and test gaps. Not cosmetic review.
Workflow
1. Define the Review Surface
Read the diff or the files the user asked about, then map the relevant surface:
apps/web/appapps/web/hooks/transactionsapps/web/componentsapps/web/constantsapps/web/services/axiospackages/schemaspackages/types
If the frontend change touches an API contract or shared payload, review the impacted shared artifacts as well.
2. Prioritize the Real Risks
Surface findings in this priority order:
- functional bugs and behavior regressions
- violations of repo architecture rules
- contract drift between UI, hooks, schema, and response types
- error handling, loading state, and state consistency
- test gaps on important logic
- accessibility or performance issues with real impact
Do not burn time on style nits or personal preferences that do not affect correctness.
3. Audit Against Repo Standards
Firmly check:
page.tsxstays thin, not a business logic container- JSX does not call
fetch/axiosdirectly - data flow still goes through transaction hooks
packages/schemasandpackages/typesremain in sync with frontend usage- query keys, API routers, and hook contracts have no drift
- error/loading/success states do not cause UI lies or race conditions
- important changes have adequate tests
4. Format the Review Output
The review must lead with findings, ordered from most severe.
Per-finding format:
- severity
[P1],[P2], or[P3] - short title
- impacted file/area
- why this is a bug/risk/regression
- what should be fixed
After findings, optionally include:
- open questions / assumptions
- residual risks or testing gaps
- brief change summary if truly needed
If there are no findings, state that explicitly, then list remaining risks or coverage gaps.
5. Do Not Silently Fix
This skill defaults to review, not implementation. Do not change code unless the user explicitly asks for fixes after the review.
Prohibitions
- NEVER open the review with praise, sweet summaries, or pleasantries.
- NEVER place a summary before findings.
- NEVER focus on formatting, naming, or style if it does not produce a real bug or risk.
- NEVER ignore contract drift in
packages/schemas/packages/typeswhen the frontend depends on them. - NEVER silently fix code when the user only asked for a review.
Pre-Completion Checklist
- [ ] Review scope mapped from diff or target files
- [ ] Frontend architecture rules checked
- [ ] Shared schema/types used by the frontend checked when relevant
- [ ] Findings ordered from highest severity
- [ ] Summary does not precede findings
- [ ] If no findings, residual risk or test gap still mentioned
- [ ] All files end with a newline (EOF)
04 同仓库更多 Skills
web-slicing
Convert screenshot/Figma designs into pixel-perfect frontend UI with reusable components. Use when the task focuses on visual and layout implementation.
web-seo-geo-friendly
Optimize public Next.js App Router pages for SEO and GEO (Generative Engine Optimization). Use when the user explicitly requests SEO/GEO optimization on public pages.
web-code-review
Review frontend code with a firm senior-lead standard, focusing on bugs, regressions, architecture risks, and test gaps in apps/web and the shared contracts the frontend depends on.
web-bugfix
Fix frontend bugs with minimum-touch changes, keep other surfaces stable, and sync schema, types, hooks, constants, tests, and related docs when impacted.
web-api-integrated
Integrate API endpoints into the frontend with Zod schemas, response types, constants, and react-query hooks. Use when implementing endpoints from an API contract, Postman, or Swagger.
skill-creator
Create a new skill from scratch with full structure — SKILL.md, references, templates, openai.yaml, Claude wrapper, and registration in manifest + AGENTS.md + CLAUDE.md.