Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

frontend-builder前端构建器

Agent Skill

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

总安装

865

周安装

35

GitHub Stars

10

下载量

272
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/oakoss/agent-skills --skill frontend-builder

简介

frontend-builder 用于辅助前端页面、组件和样式开发。

  • 它适合生成或审查 React、Vue、Tailwind 等相关代码。
  • 使用时需结合项目现有设计系统和构建方式。
  • 涉及页面改动时,应配合本地预览和构建检查确认效果。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Frontend Builder

Overview

Builds maintainable, performant React and Next.js frontends using a server-first architecture. Covers component design, state management, data fetching, forms, styling, and performance optimization. Not for backend API design, database schema, or deployment infrastructure.

Quick Reference

PatternApproachKey Points
FrameworkNext.js App Router (default), React + Vite (SPAs)Server-first rendering, file-based routing
ComponentsPage, Feature, UI, Layout typesSingle responsibility, typed props, composition
Server vs ClientServer Components default, 'use client' at leaf nodesPush interactivity to edges of component tree
State (local)useState, props, lift to parentKeep state close to where it is consumed
State (global)Context API (theme, auth), Zustand (complex)Avoid Context for frequently changing values
Data fetchingServer Components (server), TanStack Query (client)Server Actions for mutations, revalidatePath for cache
FormsReact Hook Form + Zod, or Server Actions + useActionStateSchema validation, optimistic updates with useOptimistic
StylingTailwind CSS v4 + shadcn/uiCSS-first config with @theme, OKLCH colors
PerformanceSuspense streaming, code splitting, memoizationReact.lazy(), next/dynamic, selective memo()
Error handlingError boundaries, error.tsx per routeWrap feature sections, not individual components

Common Mistakes

MistakeCorrect Pattern
Adding 'use client' to every componentDefault to Server Components; add 'use client' only for interactivity
Giant multi-responsibility componentBreak into focused sub-components with single purposes
Placing all state at the top of the component treeKeep state as close to where it is consumed as possible
Using useEffect to compute derived dataUse useMemo for derived values; reserve useEffect for side effects
Missing error boundaries around feature sectionsWrap feature areas with error boundaries to prevent full-page crashes
Creating API routes for simple mutationsUse Server Actions with 'use server' for form submissions and mutations
Passing non-serializable props to Client ComponentsProps crossing server/client boundary must be serializable (no functions, classes)
Using tailwind.config.js with Tailwind v4Use CSS-first configuration with @theme directive in CSS file
Fetching data in Client Components when Server Components sufficeFetch in Server Components by default; use TanStack Query only when client-side caching is needed

Delegation

When building frontends, delegate to specialized skills:

  • react-patterns -- React hooks, rendering patterns, and performance optimization
  • nextjs -- Next.js routing, middleware, and deployment configuration
  • tanstack-query -- Client-side data fetching, caching, and mutations
  • tanstack-form -- Complex form handling and field-level validation
  • tailwind -- Tailwind CSS utility patterns and responsive design
  • design-system -- Token hierarchy and component architecture
  • performance-optimizer -- Profiling, bundle analysis, and Core Web Vitals

References

  • Component Architecture -- Component types, folder structure, TypeScript patterns, and composition
  • Server Components -- Server/client boundary, Server Actions, Suspense streaming, and data flow
  • State Management -- useState, Context API, Zustand, and URL state patterns
  • Data Fetching -- TanStack Query, Server Components data, and cache revalidation
  • Forms and Validation -- React Hook Form, Zod schemas, Server Actions, and useActionState
  • Styling -- Tailwind CSS v4, shadcn/ui, CSS-first config, and responsive patterns
  • Performance and Errors -- Memoization, code splitting, Suspense streaming, and error boundaries

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.51%
按下载量换算99

Claude

28.91%
按下载量换算79

Cursor

19.7%
按下载量换算54

Gemini CLI

9.15%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills