Skip to content

Latest commit

History

227 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

React Frontend Skills

Production-grade AI agent skills for the modern React ecosystem, by PyModel

StarsForksIssuesnpmLicense

Quick start · Per-agent install · Skills · Why · Contributing


Tired of your agent being dumb, especially with React? This skill pack is the solution. It will make your agent even dumber!!!!!!!!! haha, I mean: try it first, then judge. <3 If it works out for you, drop a star.

What is this?

React Frontend Skills is a collection of 18 AI agent skills for the React ecosystem. Drop them into your coding assistant and it starts applying real patterns for performance, UI, testing, data, and architecture instead of whatever it remembered from 2023.

Each skill is a portable SKILL.md folder, usually with detailed references/ or rules/ and often an AGENTS.md index. The layout follows the open agent-skills convention, so it works across major AI coding agents.

Coverage: React 19 and Next.js 16 performance, Tailwind CSS v4 and shadcn/ui, testing with Vitest, Playwright and MSW, data handling with TanStack Query, Zod, React Hook Form and nuqs, plus feature-based architecture.

Quick start

One command installs everything and auto-detects the AI agents on your machine:

npx skills add PyModel/react-frontend-skills --all

Pick specific skills instead:

npx skills add PyModel/react-frontend-skills -s react,nextjs,tailwind

Install at the user level so every project sees them:

npx skills add PyModel/react-frontend-skills --all -g

This uses the open-source skills CLI. No account, no config. Skills get symlinked into your agent's directory and activate when relevant.

Or install from npm

Published as @pymodel/react-frontend-skills. Add it as a project dependency, then sync into your agent:

npm install @pymodel/react-frontend-skills
npx skills experimental_sync

experimental_sync reads the package from node_modules and installs all 18 skills into your detected agent.

Or connect through MCP

The separate @pymodel/react-frontend-skills-mcp package exposes every skill and reference file through read-only MCP tools and resources:

{
"mcpServers": {
"react-frontend-skills": {
"command": "npx",
"args": ["-y", "@pymodel/react-frontend-skills-mcp"]
}
}
}

See mcp/README.md for the tool catalog and development details.

Install per agent

Target a single agent with -a <agent>. Use -s '*' for all skills and -g for a global install.

AgentCommand
Claude Codenpx skills add PyModel/react-frontend-skills -a claude-code -s '*' -y
Codexnpx skills add PyModel/react-frontend-skills -a codex -s '*' -y
Cursornpx skills add PyModel/react-frontend-skills -a cursor -s '*' -y
OpenCodenpx skills add PyModel/react-frontend-skills -a opencode -s '*' -y
Pinpx skills add PyModel/react-frontend-skills -a pi -s '*' -y
Kiro CLInpx skills add PyModel/react-frontend-skills -a kiro-cli -s '*' -y
Pythinker and any other AGENTS.md-aware agent (manual)

Every skill ships a standard SKILL.md, and many also include an AGENTS.md index. Agents that read local instruction files can consume those directly, no CLI required:

# Clone once
git clone https://github.com/PyModel/react-frontend-skills.git
# Point your agent at the skills directory, or copy what you need
cp -r react-frontend-skills/skills/react ./.agent/skills/
cp -r react-frontend-skills/skills/nextjs ./.agent/skills/

Then reference skills/<name>/SKILL.md from your agent context, plus AGENTS.md where present. This is the path for Pythinker and custom in-house agents.

Full list of 77 supported agents

The skills CLI 1.5.23 supports 77 agents, among them Claude Code, Codex, Cursor, OpenCode, Pi, Kiro CLI, GitHub Copilot, Gemini CLI, Windsurf, Cline, Roo, Goose, Kilo, Droid, Antigravity, Trae, Warp, Zed, Continue, and Qwen Code. Run npx skills add PyModel/react-frontend-skills with no agent flag and it detects yours.

Skills included

Audited version baseline

This repository contains guidance, not runtime dependencies. The last maintenance pass was checked on 2026-08-20 against these package and documentation lines:

AreaAudited line
React19.2 (react 19.2.8)
Next.js16.3 (next 16.3.1)
TypeScript7.0 (typescript 7.0.2)
Tailwind CSS4.3 (tailwindcss 4.3.3)
Vitest4.1 (vitest 4.1.11)
Playwright1.62 (@playwright/test 1.62.1)
MSW2.15 (msw 2.15.0)
TanStack Query5.x (@tanstack/react-query 5.101.4)
React Hook Form7.x (react-hook-form 7.85.0)
Zod4.4 (zod 4.4.3)
nuqs2.10 (nuqs 2.10.0)

If your project pins a different version, trust that version's official docs over this baseline.

Core framework

SkillRulesWhat it covers
react40React 19 concurrent rendering, Server Components, hook optimization
nextjs40Next.js 16 App Router, caching, server components, routing
typescript44TypeScript 7 migration, compiler config, type safety, async patterns

UI and styling

SkillRulesWhat it covers
tailwind42Tailwind CSS v4 optimization, utility patterns, theming
shadcn42shadcn/ui with Radix or Base UI primitives, accessibility
ui-design42UI and UX practices, accessibility, responsive design
web-design-guidelinesdynamicFetches the current upstream web interface guidelines

Data and state

SkillRulesWhat it covers
tanstack-query40Data fetching, caching, mutations, optimistic updates
react-hook-form41Form validation, performance, field arrays
zod43Schema validation, type inference, error handling
nuqs42Type-safe URL query state for Next.js

Testing

SkillRulesWhat it covers
vitest44Vitest 4 setup, mocking, async testing, worker pools
playwright43End-to-end testing, selectors, authentication, CI
msw45API mocking with Mock Service Worker
tdd42Test-driven development methodology

Architecture and practices

SkillRulesWhat it covers
feature-arch42Feature-based architecture, module organization
vercel-composition-patterns7React composition patterns
vercel-react-best-practices57React performance optimization

Why

Source-grounded

Every skill is built from official documentation and patterns that held up in production work, not recycled generic advice.

Prioritized by impact

PriorityImpactWhat lands here
CRITICALMajorPerformance problems, build failures
HIGHSignificantNoticeable improvements
MEDIUMImportantStandard practices
LOWMinorEdge cases and small optimizations

Actionable rules

Each rule spells out the correct pattern with code, the anti-pattern to avoid, the reason behind it, and how to apply it.

Project structure

react-frontend-skills/
├── mcp/ # Publishable read-only MCP server
├── skills/
│ ├── react/ # React 19 patterns
│ ├── nextjs/ # Next.js 16 App Router
│ ├── typescript/ # TypeScript optimization
│ ├── tailwind/ # Tailwind CSS v4
│ ├── shadcn/ # shadcn/ui components
│ ├── tanstack-query/ # Data fetching and caching
│ ├── react-hook-form/ # Form handling
│ ├── zod/ # Schema validation
│ ├── nuqs/ # URL state management
│ ├── vitest/ # Unit testing
│ ├── playwright/ # E2E testing
│ ├── msw/ # API mocking
│ ├── tdd/ # TDD methodology
│ ├── feature-arch/ # Feature architecture
│ ├── ui-design/ # UI and UX practices
│ ├── vercel-composition-patterns/
│ ├── vercel-react-best-practices/
│ └── web-design-guidelines/
├── README.md
├── LICENSE
└── CHANGELOG.md

Every skill folder contains SKILL.md. Most include a references/ or rules/ directory, many include an AGENTS.md index, and some include metadata.json. SKILL.md links the files that belong to that skill.

Usage

Once installed, skills activate when your agent picks up a matching task:

// "Create a Next.js page with data fetching" → nextjs, react, tanstack-query// "Build a form with validation" → react-hook-form, zod, shadcn// "Write tests for this component" → vitest, tdd, msw

You can also read the guidelines yourself:

cat skills/react/SKILL.md
cat skills/nextjs/references/cache-use-cache-directive.md

Contributing

Contributions are welcome.

  1. Fork the repo
  2. Add a skill folder under skills/your-skill/ with SKILL.md and any supporting references/, rules/, or metadata it needs
  3. Open a pull request

Improving an existing skill counts just as much. New rules, corrections, version bumps: open a PR.

License

MIT, 2026 Mohamed Elkholy. See LICENSE.


If this saved you some time, a star helps other people find it.

Built and maintained by elkaix · @elkaix

About

Production-grade AI agent skills for React 19, Next.js 16, TypeScript 7, testing, data, UI, and frontend architecture—ready for Codex, Claude Code, Cursor, Pi, and more.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages