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

senior-frontend高级前端

Agent Skill

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

总安装

744

周安装

31

GitHub Stars

公开资料未说明

下载量

248
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add rickydwilson-dcs/claude-skills --skill "senior-frontend"

简介

高级前端用于辅助前端页面、组件、样式和交互逻辑的开发与维护。

  • 适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码。
  • 使用时需要结合项目现有设计系统、路由和构建方式,避免生成孤立片段。
  • 安装命令:npx skills add rickydwilson-dcs/claude-skills --skill "senior-frontend"。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写。

SKILL.md

name
senior-frontend
title
Senior Frontend Skill Package
description
Comprehensive frontend development skill for building modern, performant web applications using React, Next.js, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.
domain
engineering
subdomain
frontend-development
difficulty
advanced
time-saved
TODO: Quantify time savings
frequency
TODO: Estimate usage frequency
use-cases
related-agents
[]
related-skills
[]
related-commands
[]
orchestrated-by
[]
dependencies
scripts
[]
references
[]
assets
[]
compatibility
python-version
3.8+
platforms
[macos, linux, windows]
tech-stack
examples
title
Example Usage
input
TODO: Add example input for senior-frontend
output
TODO: Add expected output
stats
downloads
0
stars
0
rating
0.0
reviews
0
version
v1.0.0
author
Claude Skills Team
contributors
[]
created
2025-10-19
updated
2025-11-08
license
MIT
tags
featured
false
verified
true

Senior Frontend

Core Capabilities

  • [Capability 1] - [Description]
  • [Capability 2] - [Description]
  • [Capability 3] - [Description]
  • [Capability 4] - [Description]

Key Workflows

Workflow 1: [Workflow Name]

Time: [Duration estimate]

Steps:

  1. [Step 1]
  2. [Step 2]
  3. [Step 3]

Expected Output: [What success looks like]

Workflow 2: [Workflow Name]

Time: [Duration estimate]

Steps:

  1. [Step 1]
  2. [Step 2]
  3. [Step 3]

Expected Output: [What success looks like]

Expert frontend development skill with comprehensive tools for building modern, performant, and accessible web applications using React, Next.js, and the latest frontend technologies.

Overview

This skill provides production-ready frontend development capabilities through three Python automation tools and extensive reference documentation. Whether building React components, optimizing Next.js applications, implementing state management, or improving performance, this skill ensures best practices and scalable architecture.

What This Skill Provides:

  • Component generation with TypeScript, tests, and stories
  • Bundle analysis and optimization recommendations
  • Project scaffolding for Next.js and React applications
  • Component architecture patterns (Atomic Design, Compound Components)
  • State management solutions (Zustand, Context + useReducer)
  • Performance optimization techniques (code splitting, memoization)

Use this skill when:

  • Developing React/Next.js applications
  • Building reusable component libraries
  • Optimizing frontend performance and bundle size
  • Implementing responsive and accessible UIs
  • Managing application state
  • Testing and documenting components

Quick Start

Component Generation

# Generate component with tests and stories
python scripts/component_generator.py Button --complete

# Generate compound component
python scripts/component_generator.py Select --type compound --complete

# Generate custom hook
python scripts/component_generator.py useDebounce --type hook --tests

Bundle Analysis

# Analyze Next.js build
npm run build
python scripts/bundle_analyzer.py .next/ --verbose

# Generate HTML report
python scripts/bundle_analyzer.py .next/ --output html --save report.html

Project Scaffolding

# Create Next.js project
python scripts/frontend_scaffolder.py my-app --framework nextjs --complete

# Start development
cd my-app && npm install && npm run dev

Core Workflows

1. Building Component Library

Steps:

  1. Scaffold project: python scripts/frontend_scaffolder.py ui-library --framework nextjs
  2. Generate atoms: Button, Input, Label components
  3. Generate molecules: FormField, SearchBar using atoms
  4. Generate organisms: LoginForm, Navigation using molecules
  5. Add tests for each component
  6. Document with Storybook stories

Component Patterns:

  • Atomic Design hierarchy (atoms → molecules → organisms)
  • TypeScript for type safety
  • Tailwind CSS with CVA for variants
  • Testing Library for unit tests
  • Storybook for documentation

See: frameworks.md for component patterns and templates.md for component templates.

2. Performance Optimization

Optimization Workflow:

  1. Build for production: npm run build
  2. Analyze bundle: python scripts/bundle_analyzer.py .next/ --verbose
  3. Identify large dependencies and duplicates
  4. Implement optimizations:

- Code splitting with dynamic imports - Replace large libraries (moment → date-fns) - Use lodash-es for tree-shaking - Memoize expensive components

  1. Re-analyze and verify improvements

Optimization Techniques:

  • Lazy loading with React.lazy()
  • useMemo and useCallback for expensive operations
  • React.memo for component memoization
  • Virtual scrolling for long lists
  • Image optimization with Next.js Image

See: frameworks.md for performance patterns and memoization examples.

3. State Management Implementation

For Simple State:

  • Use Zustand for lightweight global state
  • localStorage persistence with middleware
  • TypeScript for type-safe state

For Complex State:

  • Context + useReducer for complex flows
  • Actions and reducers pattern
  • Separate context per domain

See: frameworks.md for state management patterns and templates.md for Zustand setup.

4. Next.js Application Development

Development Workflow:

  1. Scaffold Next.js project with App Router
  2. Implement layouts (Dashboard, Auth, Marketing)
  3. Create pages with server components
  4. Add client components for interactivity
  5. Implement API routes for backend logic
  6. Configure data fetching (React Query)
  7. Add authentication (JWT or NextAuth)
  8. Optimize for production

Next.js Features:

  • Server Components for better performance
  • Server-side rendering (SSR) for dynamic content
  • Static generation (SSG) for static pages
  • API routes for backend endpoints
  • Incremental Static Regeneration (ISR)

See: frameworks.md for Next.js patterns and templates.md for project setup.

5. Testing and Quality Assurance

Testing Strategy:

  1. Unit tests for components (Testing Library)
  2. Custom hook tests with renderHook
  3. Integration tests for user flows
  4. Visual regression tests with Storybook
  5. E2E tests with Playwright

Testing Best Practices:

  • Test user behavior, not implementation
  • Use semantic queries (getByRole, getByLabelText)
  • Mock external dependencies
  • Aim for 80%+ coverage on critical paths

See: templates.md for testing examples and patterns.

Python Tools

component_generator.py

Automated React component generation with TypeScript, tests, and documentation.

Key Features:

  • Multiple component types (functional, compound, HOC, hook)
  • Atomic design level support (atom, molecule, organism, template)
  • Styling options (Tailwind, CSS Modules, styled-components)
  • Test generation with Testing Library
  • Storybook story generation
  • TypeScript definitions with proper types

Usage:

# Complete component with tests and stories
python scripts/component_generator.py Button --complete

# Compound component
python scripts/component_generator.py Select --type compound --complete

# Custom hook with tests
python scripts/component_generator.py useDebounce --type hook --tests

See: tools.md for complete documentation and generated code examples.

bundle_analyzer.py

Advanced bundle analysis for identifying optimization opportunities.

Key Features:

  • Bundle size breakdown by page
  • Largest dependencies identification
  • Duplicate package detection
  • Optimization recommendations
  • Interactive treemap visualization
  • HTML report generation
  • Before/after comparisons

Usage:

# Analyze build
python scripts/bundle_analyzer.py .next/ --verbose

# Generate report
python scripts/bundle_analyzer.py .next/ --output html --save report.html

# Compare builds
python scripts/bundle_analyzer.py .next/ --compare baseline.html

See: tools.md for analysis features and optimization recommendations.

frontend_scaffolder.py

Complete project scaffolding for Next.js and React applications.

Key Features:

  • Next.js 14 (App Router) or React + Vite support
  • TypeScript configuration
  • Tailwind CSS with custom theme
  • State management (Zustand, Redux)
  • Form handling (React Hook Form + Zod)
  • Testing setup (Jest + Testing Library)
  • Storybook configuration
  • CI/CD pipelines (GitHub Actions)

Usage:

# Next.js project with all features
python scripts/frontend_scaffolder.py my-app --framework nextjs --complete

# React + Vite project
python scripts/frontend_scaffolder.py my-app --framework react-vite

# Minimal setup
python scripts/frontend_scaffolder.py my-app --minimal

See: tools.md for project structure and configuration details.

Reference Documentation

Architecture Frameworks (frameworks.md)

Comprehensive patterns and best practices:

  • Component Patterns: Atomic Design, Compound Components, Render Props
  • State Management: Zustand, Context + useReducer, React Query
  • Performance Optimization: Code splitting, memoization, virtual scrolling
  • Next.js Patterns: Server Components, data fetching, API routes
  • Testing Patterns: Component tests, hook tests, integration tests
  • Styling Patterns: CSS Modules, Tailwind + CVA, styled-components
  • Error Handling: Error boundaries, error states, fallback UIs

Implementation Templates (templates.md)

Production-ready code templates:

  • Project Setup: Next.js + TypeScript + Tailwind configuration
  • Component Templates: Button, Input, Modal, Form components
  • Custom Hooks: useDebounce, useAsync, useLocalStorage
  • Layout Templates: Dashboard, Auth, Marketing layouts
  • Data Fetching: React Query setup, custom hooks
  • Testing Templates: Component tests, hook tests, integration tests
  • Environment Configuration: .env setup and feature flags

Python Tools Guide (tools.md)

Complete tool documentation:

  • component_generator.py: Component types, options, generated structure
  • bundle_analyzer.py: Analysis features, optimization recommendations
  • frontend_scaffolder.py: Framework options, project structure, features

Tech Stack

Core: React 18, Next.js 14, TypeScript 5 Styling: Tailwind CSS, CSS Modules, class-variance-authority State: Zustand, React Query, Context API Forms: React Hook Form, Zod validation Testing: Jest, Testing Library, Playwright Docs: Storybook Build: Webpack, Turbopack, Vite Linting: ESLint, Prettier CI/CD: GitHub Actions

Best Practices Summary

Component Design

  • Use TypeScript for type safety
  • Follow Atomic Design principles
  • Keep components small and focused
  • Use composition over inheritance
  • Implement proper prop types and defaults

Performance

  • Code split routes and heavy components
  • Memoize expensive computations
  • Use React.memo for pure components
  • Implement virtual scrolling for long lists
  • Optimize images with Next.js Image
  • Lazy load below-the-fold content

State Management

  • Keep state close to where it's used
  • Use Zustand for simple global state
  • Context + useReducer for complex flows
  • React Query for server state
  • Avoid prop drilling with composition

Testing

  • Test user behavior, not implementation
  • Use semantic queries (getByRole, getByLabelText)
  • Mock external dependencies
  • Test error states and edge cases
  • Maintain 80%+ coverage on critical paths

Accessibility

  • Use semantic HTML elements
  • Implement proper ARIA labels
  • Ensure keyboard navigation
  • Maintain color contrast ratios
  • Test with screen readers

Common Commands

# Development
npm run dev          # Start dev server
npm run build        # Build for production
npm start            # Start production server

# Testing
npm test             # Run tests
npm run test:watch   # Watch mode
npm run test:coverage  # Coverage report

# Quality
npm run lint         # ESLint
npm run format       # Prettier
npm run type-check   # TypeScript

# Storybook
npm run storybook    # Start Storybook
npm run build-storybook  # Build static Storybook

Integration Points

This skill integrates with:

  • Backend Skills: API consumption, authentication
  • Design Skills: Figma integration, design tokens
  • QA Skills: E2E testing, visual regression
  • DevOps Skills: Docker deployment, CI/CD
  • Analytics: Google Analytics, custom events

Getting Help

  1. Component patterns: See frameworks.md
  2. Code templates: See templates.md
  3. Tool usage: See tools.md or run with --help
  4. Project setup: Use frontend_scaffolder.py to generate boilerplate

Version: 1.0.0 Last Updated: 2025-11-08 Documentation Structure: Progressive disclosure with references/

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Claude Code

26.22%
按下载量换算65

OpenCode

21.7%
按下载量换算54

windsurf

18.24%
按下载量换算45

Antigravity

13.23%
按下载量换算33

Codex

7.52%
按下载量换算19

Gemini CLI

3.57%
按下载量换算9

安全审计

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

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills