Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计通过

discover-frontend发现前端

Agent Skill

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

总安装

1,529

周安装

65

GitHub Stars

101

下载量

536
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/rand/cc-polymath --skill discover-frontend

简介

用于前端组件与 UI 开发的技能发现。

  • 适合 React、Next.js、
  • Vue、Tailwind 与无障碍设计。
  • 可自动激活于页面构建场景,discover-frontend 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 提供状态管理与性能优化建议。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Frontend Skills Discovery

Provides automatic access to comprehensive frontend development skills.

When This Skill Activates

This skill auto-activates when you're working with:

  • React component development
  • Next.js applications and App Router
  • State management (Context, Zustand, Redux)
  • Data fetching (SWR, React Query, Server Actions)
  • Form handling and validation
  • Web accessibility (WCAG, ARIA)
  • Frontend performance optimization
  • SEO and metadata
  • UI/UX design implementation
  • terminal user interfaces
  • TUI
  • Bubble Tea
  • Ratatui
  • terminal UI
  • text-based interfaces
  • ncurses

Available Skills

Quick Reference

The Frontend category contains 16 skills across 2 subcategories (+ elegant-design):

Frontend (11 skills):

  1. react-component-patterns - Component design, composition, hooks, performance
  2. nextjs-app-router - Next.js 14+ App Router, Server Components, routing
  3. react-state-management - Context, Zustand, Redux Toolkit patterns
  4. react-data-fetching - SWR, React Query, Server Actions, data patterns
  5. react-form-handling - React Hook Form, Zod validation, form patterns
  6. web-accessibility - WCAG 2.1 AA compliance, ARIA, keyboard navigation
  7. frontend-performance - Bundle optimization, Core Web Vitals, code splitting
  8. nextjs-seo - SEO with Next.js, metadata API, structured data
  9. web-workers - Web Workers API, message passing, offloading computation
  10. browser-concurrency - Service Workers, SharedWorkers, Worklets, PWAs
  11. elegant-design/SKILL.md - World-class accessible interfaces (separate Agent Skill)

TUI (5 skills): See ../tui/INDEX.md

Load Full Category Details

Read../frontend/INDEX.md Read../tui/INDEX.md

Common Workflows

New Next.js Application

Sequence: App Router → Components → Data Fetching

Read../frontend/nextjs-app-router.md # Setup routing, layouts Read../frontend/react-component-patterns.md # Build components Read../frontend/react-data-fetching.md # Fetch data

Elegant UI Design

Sequence: Design System → Components → Accessibility

Note: elegant-design auto-activates as separate Agent Skill

for design-focused work (shadcn/ui, accessible interfaces, etc.)

Read../frontend/react-component-patterns.md Read../frontend/web-accessibility.md

Form Implementation

Sequence: Form Handling → State Management

Read../frontend/react-form-handling.md # Build forms Read../frontend/react-state-management.md # Manage form state

Production Optimization

Sequence: Performance → Accessibility → SEO

Read../frontend/frontend-performance.md # Optimize bundle Read../frontend/web-accessibility.md # Ensure accessibility Read../frontend/nextjs-seo.md # Optimize SEO

CPU-Intensive Features & PWAs

Sequence: Workers → Concurrency → Performance

Read../frontend/web-workers.md # Offload heavy computation Read../frontend/browser-concurrency.md # Service Workers, offline support Read../frontend/frontend-performance.md # Optimize overall performance

Skill Selection Guide

React Component Patternsreact-component-patterns.md:

  • Component architecture and composition
  • Custom hooks
  • Performance optimization (memo, useMemo, useCallback)
  • Design patterns (compound components, render props, HOCs)

Next.js App Routernextjs-app-router.md:

  • Server Components vs Client Components
  • Routing and layouts
  • Data fetching patterns
  • Streaming and Suspense
  • Route handlers and API routes

State Managementreact-state-management.md:

  • When to use Context vs external state libraries
  • Zustand for simple global state
  • Redux Toolkit for complex state
  • Server state vs client state

Data Fetchingreact-data-fetching.md:

  • SWR for client-side fetching
  • React Query (TanStack Query) for advanced patterns
  • Next.js Server Actions
  • Data mutation patterns
  • Caching strategies

Formsreact-form-handling.md:

  • React Hook Form for performance
  • Zod for validation
  • Form state management
  • Error handling
  • File uploads

Accessibilityweb-accessibility.md:

  • WCAG 2.1 AA compliance
  • ARIA attributes
  • Keyboard navigation
  • Screen reader support
  • Color contrast and focus management

Performancefrontend-performance.md:

  • Bundle size optimization
  • Code splitting and lazy loading
  • Core Web Vitals
  • Image optimization
  • Font optimization
  • Runtime performance

SEOnextjs-seo.md:

  • Next.js Metadata API
  • Open Graph and Twitter cards
  • Structured data (JSON-LD)
  • Sitemap and robots.txt
  • Dynamic metadata

Web Workersweb-workers.md:

  • Offloading heavy computation
  • Web Workers API and message passing
  • Transferable objects for zero-copy
  • React integration with custom hooks
  • Worker pools for parallel processing
  • TypeScript type safety

Browser Concurrencybrowser-concurrency.md:

  • Service Workers for offline support and PWAs
  • SharedWorkers for cross-tab state
  • Audio/Paint/Animation Worklets
  • Background sync and push notifications
  • Caching strategies
  • BroadcastChannel for cross-tab messaging

Integration with Other Skills

Frontend skills commonly combine with:

API skills (discover-api):

  • Consuming REST APIs
  • GraphQL client integration
  • API error handling in UI
  • Authentication flows

Testing skills (discover-testing):

  • Component testing
  • E2E testing with Playwright
  • Visual regression testing
  • Accessibility testing

Design (elegant-design Agent Skill):

  • shadcn/ui components
  • Accessible design patterns
  • Chat/terminal/code UIs
  • Streaming interfaces
  • Design systems

Database skills (discover-database):

  • Server Actions with database queries
  • ORM integration in Server Components
  • Real-time data updates

Deployment skills (discover-deployment):

  • Vercel deployment
  • Netlify deployment
  • Performance monitoring
  • CDN configuration

Progressive Loading

This gateway skill enables progressive loading:

  • Level 1: Gateway loads automatically (you're here now)
  • Level 2: Load category INDEX.md (~4K tokens) for full overview
  • Level 3: Load specific skills (~3-4K tokens each) as needed

Total context: 2K + 4K + skill(s) = 6-12K tokens vs 25K+ for entire index.

Quick Start Examples

"Build a Next.js app with App Router": Read../frontend/nextjs-app-router.md

"Create reusable React components": Read../frontend/react-component-patterns.md

"Implement global state management": Read../frontend/react-state-management.md

"Build a form with validation": Read../frontend/react-form-handling.md

"Optimize my app performance": Read../frontend/frontend-performance.md

"Make my app accessible": Read../frontend/web-accessibility.md

"Improve SEO": Read../frontend/nextjs-seo.md

"Offload heavy computation": Read../frontend/web-workers.md

"Build a PWA with offline support": Read../frontend/browser-concurrency.md

React vs Next.js Decision

Use React (Vite) when:

  • Building SPAs or client-heavy apps
  • Don't need SSR or SSG
  • Want full control over routing
  • Building component libraries

Use Next.js when:

  • Need SEO (Server-Side Rendering)
  • Want file-based routing
  • Need API routes
  • Building full-stack apps
  • Want optimal performance out of the box

State Management Decision

Use Component State (useState) when:

  • State is local to a component
  • Simple state that doesn't need sharing

Use Context when:

  • Sharing state across a few components
  • Theme, auth, or user preferences
  • Not frequently updated

Use Zustand when:

  • Need global state
  • Want simple API
  • State updates are moderate

Use Redux Toolkit when:

  • Complex state logic
  • Need middleware (sagas, thunks)
  • Large team with established patterns
  • Time-travel debugging needed

For detailed guidance: Read../frontend/react-state-management.md

Data Fetching Decision

Server Components (Next.js App Router):

  • Default choice for Next.js 14+
  • Fetch on server, zero client JS
  • Direct database access

Server Actions (Next.js):

  • For mutations and form handling
  • Progressive enhancement
  • Type-safe with TypeScript

SWR:

  • Client-side data fetching
  • Built-in caching
  • Optimistic updates
  • Focus on user experience

React Query:

  • Advanced caching strategies
  • Complex data dependencies
  • Offline support
  • DevTools for debugging

For detailed patterns: Read../frontend/react-data-fetching.md

Usage Instructions

  1. Auto-activation: This skill loads automatically when Claude Code detects frontend work
  2. Browse skills: Run Read../frontend/INDEX.md for full category overview
  3. Load specific skills: Use bash commands above to load individual skills
  4. Follow workflows: Use recommended sequences for common patterns
  5. elegant-design: Note that elegant-design is a separate Agent Skill that auto-activates for UI design work

Next Steps: Run Read../frontend/INDEX.md to see full category details, or load specific skills using the bash commands above.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

27.92%
按下载量换算150

Antigravity

24.88%
按下载量换算133

OpenCode

16.31%
按下载量换算87

Codex

10.9%
按下载量换算58

Gemini CLI

7.06%
按下载量换算38

windsurf

3.6%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills