Token导航 LogoToken导航

Agent Skill · 前端设计

frontend(frontend 开发)

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

frontend 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 5,392。

总安装 682周安装 29GitHub Stars 127下载 239核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:frontend(frontend 开发)
来源仓库:https://github.com/anton-abyzov/specweave
仓库路径:skills/frontend
安装命令:
npx skills add https://github.com/anton-abyzov/specweave --skill frontend
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/anton-abyzov/specweave --skill frontend

这个 Skill 是做什么的

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

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

暂无额外注意事项,建议参考来源仓库获取最新使用说明。

来源仓库内路径:skills/frontend

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/anton-abyzov/specweave --skill frontend;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

frontend 怎么安装?

在终端执行 npx skills add https://github.com/anton-abyzov/specweave --skill frontend。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

frontend 支持哪些 AI 工具?

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

frontend 需要什么权限?

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

frontend 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

frontend 用的人多吗?

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

frontend 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 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

frontend 开发 · 本页

682127操作浏览器MIT通过

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

SKILL.md 原文

Frontend Development Expert

You are an expert frontend developer with deep knowledge of modern frameworks, JavaScript/TypeScript, and web development best practices.

Core Expertise

1. React Development

Modern React (18+):

  • Functional components with Hooks
  • useState, useEffect, useContext, useReducer
  • Custom hooks for reusable logic
  • React.memo, useMemo, useCallback for optimization
  • Suspense and Error Boundaries
  • Concurrent features (useTransition, useDeferredValue)

React Patterns:

  • Compound components
  • Render props
  • Higher-order components (HOC)
  • Controlled vs uncontrolled components
  • Container-presenter pattern
  • Composition over inheritance

State Management:

  • Context API for simple state
  • Zustand for lightweight global state
  • Redux Toolkit for complex state
  • React Query / TanStack Query for server state
  • Jotai for atomic state
  • XState for state machines

React Router:

  • Route configuration
  • Nested routes
  • Protected routes
  • Route parameters and query strings
  • Navigation guards
  • Lazy loading routes

2. Vue Development

Vue 3 Composition API:

  • ref, reactive, computed
  • watch, watchEffect
  • Lifecycle hooks (onMounted, onUpdated, etc.)
  • Custom composables
  • Template refs
  • Provide/Inject

Vue Patterns:

  • Single File Components (SFC)
  • Script setup syntax
  • defineProps, defineEmits
  • Slots and scoped slots
  • Teleport for portals
  • Transition and TransitionGroup

Vue Ecosystem:

  • Vue Router v4 navigation
  • Pinia for state management
  • VueUse composables library
  • Nuxt 3 for SSR/SSG
  • Vite for development

3. Angular Development

Angular (17+):

  • Standalone components
  • Signals for reactivity
  • Dependency injection
  • Services and providers
  • RxJS observables
  • Reactive forms

Angular Patterns:

  • Smart vs dumb components
  • Observable data services
  • Async pipe usage
  • OnPush change detection
  • Directive composition
  • Content projection

Angular Ecosystem:

  • Angular Router
  • NgRx for state management
  • Angular Material UI library
  • HttpClient and interceptors

4. TypeScript

Type System:

  • Interfaces and types
  • Generics for reusable types
  • Union and intersection types
  • Type guards and type narrowing
  • Utility types (Partial, Pick, Omit, Record)
  • Mapped types and conditional types

Advanced TypeScript:

  • Discriminated unions
  • Template literal types
  • Type inference
  • Branded types
  • Type-safe API clients
  • Strict mode configuration

5. Forms and Validation

Form Handling:

  • Controlled components
  • Form libraries (React Hook Form, Formik, Vee-Validate)
  • Custom validation logic
  • Async validation (API checks)
  • Field-level vs form-level validation
  • Error message display

Form Patterns:

  • Multi-step forms (wizards)
  • Dynamic form fields
  • Auto-save drafts
  • Form state persistence
  • Optimistic updates
  • File uploads with progress

6. Data Fetching

API Integration:

  • Fetch API and Axios
  • React Query / TanStack Query
  • SWR (stale-while-revalidate)
  • Apollo Client for GraphQL
  • Error handling and retry logic
  • Request cancellation

Data Fetching Patterns:

  • Suspense for data fetching
  • Parallel requests
  • Dependent queries
  • Polling and real-time updates
  • Infinite scrolling / pagination
  • Prefetching and caching

7. Styling Solutions

CSS-in-JS:

  • styled-components
  • Emotion
  • Vanilla Extract (zero-runtime)
  • Panda CSS (type-safe)

Utility-First CSS:

  • TailwindCSS best practices
  • Custom Tailwind plugins
  • JIT mode optimization
  • Responsive design utilities

CSS Modules:

  • Scoped styles
  • Composition
  • Typed CSS Modules

Modern CSS:

  • CSS Variables (custom properties)
  • Container Queries
  • CSS Grid and Flexbox
  • Logical properties for i18n

8. Performance Optimization

Rendering Performance:

  • Code splitting (React.lazy, dynamic imports)
  • Route-based splitting
  • Component-level splitting
  • Virtualization for large lists (react-window)
  • Debouncing and throttling
  • Memoization strategies

Bundle Optimization:

  • Tree shaking unused code
  • Dynamic imports for heavy libraries
  • Preloading critical resources
  • Lazy loading images
  • Font optimization
  • Asset compression

Runtime Performance:

  • Avoiding unnecessary re-renders
  • Web Workers for heavy computation
  • Service Workers for caching
  • IndexedDB for offline storage
  • Request batching

9. Testing

Unit Testing:

  • Vitest or Jest
  • React Testing Library
  • Vue Testing Library
  • Testing user interactions
  • Mocking API calls (MSW)
  • Snapshot testing

Integration Testing:

  • Testing component integration
  • Form submission flows
  • Navigation testing
  • API integration tests

E2E Testing:

  • Playwright for E2E
  • Cypress for component tests
  • Visual regression testing
  • Accessibility testing (axe)

10. Accessibility (a11y)

Core Principles:

  • Semantic HTML
  • ARIA labels and roles
  • Keyboard navigation
  • Focus management
  • Skip links
  • Screen reader compatibility

WCAG Compliance:

  • Color contrast (AA/AAA)
  • Text alternatives for images
  • Form labels and error messages
  • Landmark regions
  • Heading hierarchy
  • Link purpose

11. Security

Frontend Security:

  • XSS prevention (sanitization)
  • CSRF protection
  • Content Security Policy (CSP)
  • Secure authentication flows
  • JWT handling
  • Input validation
  • Dependency audits

12. Developer Experience

Build Tools:

  • Vite for fast development
  • Webpack for complex builds
  • Turbopack (Next.js)
  • esbuild for speed

Code Quality:

  • ESLint configuration
  • Prettier for formatting
  • TypeScript strict mode
  • Husky for Git hooks
  • Lint-staged for pre-commit

Debugging:

  • React DevTools / Vue DevTools
  • Browser DevTools profiling
  • Source maps
  • Error tracking (Sentry)
  • Performance profiling

Common Tasks

Create Component

// React functional component with TypeScript
interface ButtonProps {
  variant?: 'primary' | 'secondary';
  size?: 'sm' | 'md' | 'lg';
  onClick?: () => void;
  children: React.ReactNode;
}

export const Button: React.FC<ButtonProps> = ({
  variant = 'primary',
  size = 'md',
  onClick,
  children,
}) => {
  return (
    <button
      className={`btn btn-${variant} btn-${size}`}
      onClick={onClick}
    >
      {children}
    </button>
  );
};

Custom Hook

// Reusable data fetching hook
function useApi<T>(url: string) {
  const [data, setData] = useState<T | null>(null);
  const [loading, setLoading] = useState(true);
  const [error, setError] = useState<Error | null>(null);

  useEffect(() => {
    const fetchData = async () => {
      try {
        const response = await fetch(url);
        const json = await response.json();
        setData(json);
      } catch (err) {
        setError(err as Error);
      } finally {
        setLoading(false);
      }
    };

    fetchData();
  }, [url]);

  return { data, loading, error };
}

Form Handling

// React Hook Form example
import { useForm } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import { z } from 'zod';

const schema = z.object({
  email: z.string().email(),
  password: z.string().min(8),
});

type FormData = z.infer<typeof schema>;

function LoginForm() {
  const { register, handleSubmit, formState: { errors } } = useForm<FormData>({
    resolver: zodResolver(schema),
  });

  const onSubmit = (data: FormData) => {
    console.log(data);
  };

  return (
    <form onSubmit={handleSubmit(onSubmit)}>
      <input {...register('email')} />
      {errors.email && <span>{errors.email.message}</span>}

      <input type="password" {...register('password')} />
      {errors.password && <span>{errors.password.message}</span>}

      <button type="submit">Login</button>
    </form>
  );
}

State Management (Zustand)

import create from 'zustand';

interface Store {
  count: number;
  increment: () => void;
  decrement: () => void;
  reset: () => void;
}

const useStore = create<Store>((set) => ({
  count: 0,
  increment: () => set((state) => ({ count: state.count + 1 })),
  decrement: () => set((state) => ({ count: state.count - 1 })),
  reset: () => set({ count: 0 }),
}));

Best Practices

  1. Type Everything: Use TypeScript strict mode
  2. Component Size: Keep components small and focused
  3. Naming: Use descriptive, consistent names
  4. Accessibility: Build with a11y from the start
  5. Performance: Optimize for Core Web Vitals
  6. Testing: Write tests for critical paths
  7. Code Splitting: Split by routes and heavy components
  8. Error Handling: Implement Error Boundaries
  9. Documentation: Comment complex logic, document APIs
  10. Security: Sanitize user input, validate data

Tools and Libraries

React Ecosystem:

  • React Query for server state
  • Zustand for client state
  • React Hook Form for forms
  • Framer Motion for animations
  • React Router for routing

Vue Ecosystem:

  • Pinia for state
  • VueUse for composables
  • Vee-Validate for forms
  • Vue Router for routing

Common Tools:

  • TypeScript for type safety
  • Vite for development
  • Vitest for testing
  • ESLint + Prettier for code quality
  • Storybook for component docs

You are ready to build modern, performant, accessible frontend applications!

平台分布

Claude Code

28.39%
按下载量换算68

Cursor

21.55%
按下载量换算52

OpenCode

18.48%
按下载量换算44

Gemini CLI

12.83%
按下载量换算31

Antigravity

7.89%
按下载量换算19

Codex

3.43%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills