Token导航 LogoToken导航

Agent Skill · 前端设计

frontend-code-review(前端代码审查)

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

frontend-code-review 是前端设计类 Agent Skill,可用宿主为 Local Agent,通过unknown获取,权限为操作浏览器;许可证信息还不明确,暂无第三方扫描结果,按安装量在前端设计类的 10,216 个 Skill 里排第 8,606。

总安装 272周安装 11下载 85核验 2026-05-01
前端设计操作浏览器unknown未标认证来源可访问许可证需确认审计未展示Local Agent

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:frontend-code-review(前端代码审查)
来源仓库:https://smithery.ai
仓库路径:frontend-code-review
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助前端页面、组件和样式开发,适合生成或审查 React、Vue、Tailwind 等代码。适用于 Local Agent,可整理组件结构或定位布局和性能问题。使用时需结合项目现有设计系统、路由和构建方式,避免生成孤立片段。涉及页面改动时应配合本地预览和构建检查确认视觉效果。

注意响应式表现和构建方式,确保最终输出符合预期。

来源仓库内路径:frontend-code-review

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Local Agent;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    没有现成安装命令,按unknown的说明从来源页面获取,仓库路径是 frontend-code-review。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

frontend-code-review 怎么安装?

公开资料没有给出可以直接复制的命令,需要按来源页面说明手动安装,仓库内路径为 frontend-code-review。

frontend-code-review 支持哪些 AI 工具?

公开资料标注支持 Local Agent。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

frontend-code-review 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

frontend-code-review 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

frontend-code-review 用的人多吗?

公开数据是累计安装 272 次,近一周安装 11 次,下载 85 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

frontend-code-review 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 Local Agent 一种宿主,触发方式和使用习惯不用来回切换。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Local Agent,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
frontend-code-review

前端代码审查 · 本页

272—操作浏览器未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Frontend Code Review

Perform thorough frontend code reviews for the Teetsh React/TypeScript codebase.

Review Process

1. Understand the Context

Before reviewing, gather context:

  • Read the PR description or understand the change purpose
  • Identify which features/containers are affected
  • Check if this affects shared components, queries, or styling

2. Load Relevant References

Based on the review type, read appropriate references:

  • Always read: references/common-mistakes.md for Teetsh-specific antipatterns
  • For components/hooks: references/react-patterns.md
  • For data fetching: references/react-query.md
  • For UI/styling: references/styling.md
  • For translations: references/i18n.md
  • For test changes: references/testing.md

3. Review Scope by Type

Full PR Review: Check all aspects - architecture, implementation, styling, i18n, tests

Component Review: Focus on patterns, props typing, accessibility, responsive design

Query Review: Focus on query keys, serializers, error handling, mutations

Styling Review: Focus on twin.macro usage, theme constants, responsive classes

4. Provide Structured Feedback

Organize feedback by priority:

Critical Issues

Security vulnerabilities, broken functionality, accessibility blockers, data loss risks

Important Issues

Missing error/loading states, incorrect patterns, i18n gaps, test gaps

Suggestions

Code clarity, performance optimizations, better patterns

Positive Feedback

Well-designed components, good test coverage, clean patterns

5. Code Examples

For each issue, provide:

  • What: Describe the problem
  • Why: Explain the risk or impact
  • How: Show code example of the fix

Key Review Areas

React Patterns

Check adherence to Teetsh patterns:

  • Container vs Component separation (containers handle logic, components are presentational)
  • Compound components for complex UI groups (Disclosure, FormGroup)
  • Context hooks with validation (useUser, useSchoolSchoolyear)
  • Custom hooks naming (useXxx)
  • Prefer CSS-based responsive (tw="lg:flex"), use useIsBelowBreakpoint only when layouts differ completely
  • Default export for components, named export for utilities

React Query

  • Query keys include all dependencies: [schoolyearId, schoolId, KEY_CONSTANT,...params]
  • Data transformation in serializer functions, not components
  • Appropriate staleTime for data type
  • Error handling with AxiosError typing
  • Mutations with proper cache invalidation

Styling

  • Use tw macro, not className strings
  • Colors from themeConstants.ts, never hardcoded
  • Conditional styles: css={[tw..., condition && tw...]}`
  • Form inputs wrapped with FormGroup
  • Responsive: mobile-first, lg: breakpoint for desktop

i18n

  • useTranslation(['namespace']) with namespace array
  • Keys: namespace:section.key
  • Dates: use format() utility with locale
  • No hardcoded user-facing strings

Accessibility

  • Semantic HTML (button vs div, etc.)
  • ARIA labels on interactive elements
  • Labels linked to inputs with htmlFor
  • Keyboard navigation support

Testing

  • Browser tests (Vitest browser) for components: Component.browser.test.tsx
  • jsdom tests for unit/logic: utils.test.tsx
  • Playwright E2E for critical user flows
  • Storybook stories for design system components
  • Descriptive test names: it('should return X when Y')

Review Output Format

Structure your review as:

## Critical Issues
[Issues that must be fixed before merge]

## Important Issues
[Issues that should be fixed]

## Suggestions
[Optional improvements]

## Positive Feedback
[What was done well]

For each issue:

### [Area]: [Brief description]

**Problem**: [What's wrong and why it matters]

**Current code**:

[Show problematic code]


**Suggested fix**:

[Show corrected code]


**Reference**: [Link to specific pattern]

Example Review Snippets

Missing FormGroup Wrapper


### Styling: Input missing FormGroup wrapper

**Problem**: Form inputs should be wrapped with FormGroup for consistent styling and accessibility

**Current code**:

<Input id="email" value={email} onChange={(e) => setEmail(e.target.value)} />


**Suggested fix**:

<FormGroup id="email" label={t('common:form.email')} error={errors.email}

<Input id="email" value={email} onChange={(e) => setEmail(e.target.value)} hasError={!!errors.email} /> </FormGroup>


**Reference**: See `references/styling.md` - FormGroup Pattern

Query Key Missing Dependencies


### React Query: Query key missing school context

**Problem**: Query key must include schoolyearId and schoolId for proper cache isolation

**Current code**:

useQuery({ queryKey: [STUDENTS_KEY, classId], queryFn: () => getStudents(classId), });


**Suggested fix**:

const { schoolyear, school } = useSchoolSchoolyear();

useQuery({ queryKey: [schoolyear.id, school.id, STUDENTS_KEY, classId], queryFn: () => getStudents({ schoolyearId: schoolyear.id, schoolId: school.id, classId }), });


**Reference**: See `references/react-query.md` - Query Key Structure

Hardcoded String


### i18n: Hardcoded user-facing string

**Problem**: All user-facing text must use i18n for localization support

**Current code**:

<Button>Delete</Button>


**Suggested fix**:

const { t } = useTranslation(['common']); <Button>{t('common:buttons.delete')}</Button>


**Reference**: See `references/i18n.md` - Translation Usage

Using className Instead of tw


### Styling: Using className instead of tw macro

**Problem**: Project uses twin.macro for Tailwind, not className strings

**Current code**:

<div className="flex items-center gap-2">


**Suggested fix**:

<div tw="flex items-center gap-2">


**Reference**: See `references/styling.md` - twin.macro Usage

When NOT to Comment

Avoid feedback on:

  • Trivial formatting issues (Prettier handles this)
  • Personal style preferences not in project patterns
  • Nitpicks that don't affect functionality or maintainability
  • Issues already addressed in other comments

Multi-file Review Strategy

For PRs with many files:

  1. Start with architecture overview (new containers, major changes)
  2. Review core component/container logic first
  3. Review queries and data handling
  4. Review styling and i18n
  5. Review tests
  6. Summarize overall assessment

After Review

If significant issues found:

  • Summarize the most important themes
  • Suggest whether changes are required before merge
  • Offer to explain any patterns or practices in detail

平台分布

Local Agent

79.26%
按下载量换算67

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills