AgentSkillsCN

install-frontend

适用于安装前端技能、前端技术栈、搭建前端、新建前端项目、React项目搭建时使用。

SKILL.md
--- frontmatter
name: install-frontend
description: USE WHEN install frontend skills, frontend stack, setup frontend, new frontend project, react project setup.

Install Frontend Stack

Installs the curated frontend development skill stack into the current project for all agents (claude-code, opencode, gemini-cli).

Curated Skill List

Core Frontend (vercel-labs/agent-skills)

Reference: Vercel Design Guidelines — the authoritative source for web interface standards.

SkillPurpose
vercel-react-best-practices40+ React/Next.js performance rules across 8 categories
vercel-composition-patternsCompound components, state lifting, scalable architecture
web-design-guidelines100+ rules covering the 7 guideline categories below

Vercel Guidelines Categories

CategoryKey Rules
InteractionsKeyboard accessibility, focus management, 44px touch targets, semantic links
AnimationsRespect prefers-reduced-motion, GPU-accelerated properties, interruptible
LayoutAlignment, responsiveness, intrinsic sizing, scrollbar handling
ContentSkeletons, empty states, typography, help text, content resilience
FormsInput behavior, validation, autofill, password manager compatibility
Performance<500ms network, virtualization for lists, font optimization
DesignShadows, borders, contrast ratios, color schemes, gradients

Design & Implementation (anthropics/skills)

SkillPurpose
frontend-designProduction-grade UI implementation, avoids generic AI aesthetics
web-artifacts-builderReact + Tailwind CSS + shadcn/ui artifact building

Video (remotion-dev/skills)

SkillPurpose
remotion-best-practicesBest practices for Remotion — video creation in React

UI Quality (ibelick/ui-skills)

SkillPurpose
baseline-uiEnforces opinionated UI baseline to prevent AI-generated interface slop
fixing-accessibilityFix accessibility issues
fixing-metadataShip correct, complete metadata
fixing-motion-performanceFix animation performance issues

Web Quality (addyosmani/web-quality-skills)

SkillPurpose
accessibilityWCAG 2.1 accessibility audit
best-practicesModern web development and security standards
core-web-vitalsLCP, INP, CLS optimization for search ranking
performancePage speed and loading optimization
seoSearch engine visibility and meta optimization
web-quality-auditComprehensive Lighthouse-based audit

Execution

Step 1: Show the Plan

Display the skill list above and tell the user:

code
Frontend Stack Install Plan

The following skills will be installed to this project for claude-code, opencode, and gemini-cli:

Source: vercel-labs/agent-skills
  - vercel-react-best-practices
  - vercel-composition-patterns
  - web-design-guidelines

Source: anthropics/skills
  - frontend-design
  - web-artifacts-builder

Source: remotion-dev/skills
  - remotion-best-practices

Source: ibelick/ui-skills
  - baseline-ui, fixing-accessibility, fixing-metadata, fixing-motion-performance

Source: addyosmani/web-quality-skills
  - accessibility, best-practices, core-web-vitals, performance, seo, web-quality-audit

Scope: current project (not global). Confirm to proceed.

Step 2: Wait for Confirmation

Do NOT proceed until the user explicitly confirms.

Step 3: Install Skills

Run these commands sequentially. Report progress after each:

bash
bunx skills add vercel-labs/agent-skills \
  -a claude-code -a opencode -a gemini-cli \
  --skill vercel-react-best-practices \
  --skill vercel-composition-patterns \
  --skill web-design-guidelines -y
bash
bunx skills add anthropics/skills \
  -a claude-code -a opencode -a gemini-cli \
  --skill frontend-design \
  --skill web-artifacts-builder -y
bash
bunx skills add remotion-dev/skills \
  -a claude-code -a opencode -a gemini-cli \
  --skill remotion-best-practices -y
bash
bunx skills add ibelick/ui-skills \
  -a claude-code -a opencode -a gemini-cli -y
bash
bunx skills add addyosmani/web-quality-skills \
  -a claude-code -a opencode -a gemini-cli -y

Step 4: Search for Additional Skills

After the core install, search for Tailwind, shadcn, and Hero UI skills that may exist:

bash
bunx skills find tailwind
bunx skills find shadcn
bunx skills find heroui

Present any results found and offer to install them.

Step 5: Create AGENTS.md (if not present)

Per Vercel guidelines, projects should include an AGENTS.md to enable design guideline checks during AI code generation.

Check if AGENTS.md exists in project root. If not, create it:

markdown
# AGENTS.md

## Web Interface Guidelines

This project follows the [Vercel Design Guidelines](https://vercel.com/design/guidelines).

When generating or reviewing UI code, apply these standards:

- **Interactions**: All flows keyboard-operable, 44px mobile touch targets, semantic `<a>`/`<Link>` elements
- **Animations**: Respect `prefers-reduced-motion`, use `transform`/`opacity` for GPU acceleration
- **Layout**: Responsive, handle variable content lengths, proper scrollbar styling
- **Content**: Skeleton loaders, meaningful empty states, accessible typography
- **Forms**: Proper labels, validation feedback, autofill/password manager support
- **Performance**: Network requests <500ms, virtualize large lists, optimize fonts
- **Design**: Proper contrast ratios, consistent shadows/borders, dark mode support

Use `/web-design-guidelines` skill for code review.

Step 6: Verify

Run bunx skills list to confirm all skills were installed. Report the final state.

Notes

  • All installs are per-project (no -g flag)
  • Uses -y flag after user confirmation to skip redundant CLI prompts
  • If any install fails, report the error and continue with remaining skills
  • The -a flag targets specific agents; -y bypasses all interactive prompts