Skip to content
alinaqi avatar

React Web

React web development skill enforcing test-first component and hook work with hooks, React Query, and Zustand.

CCM score
52 of 100
skills.sh installs
312
GitHub stars
712
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers React component and hook development with a mandatory test-first workflow where test files are written before implementation files
  • Includes component and hook test templates, a recommended project structure, and patterns for extracting logic into hooks
  • Enforces an explicit props interface for every component and a halt when a component file is created without a matching test file
  • Designed for React web projects that use React Query for server state and Zustand for global state

Install

$ npx -y skills add alinaqi/maggy --skill react-web -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

React Web Skill


Test-First Development (MANDATORY)

CRITICAL: Tests MUST be written BEFORE implementation code. This is non-negotiable for frontend components.

The TFD Workflow

1. Write test file first → Defines expected behavior
2. Run test (it fails) → Confirms test is valid
3. Write minimal code → Just enough to pass
4. Run test (it passes) → Validates implementation
5. Refactor if needed → Tests catch regressions

Component Development Order

# CORRECT ORDER - Test first
1. Create Button.test.tsx    # Write tests for expected behavior
2. Run tests (they fail)     # npm test -- Button
3. Create Button.tsx         # Implement to pass tests
4. Run tests (they pass)     # Verify implementation
5. Create Button.module.css  # Style after logic works

# WRONG ORDER - Never do this
1. Create Button.tsx         # ❌ No tests exist yet
2. Create Button.module.css  # ❌ Still no tests
3. "I'll add tests later"    # ❌ Tests never get written

Test File Structure (Create First)

// Button.test.tsx - CREATE THIS FIRST
import { render, screen, fireEvent } from '@testing-library/react';
import { Button } from './Button';

Details

Repository
github.com/alinaqi/maggy
Categories
Frontend & UI Code, Testing & QA
First seen
Jun 3, 2026

Questions

What does the react-web skill do?

The react-web skill guides React web development with hooks, React Query and Zustand. It enforces test-first development, so react-web expects a test file like Button.test.tsx to exist before any component is implemented.

How do I install the react-web skill?

Run npx -y skills add alinaqi/maggy --skill react-web -y in a project to install it. Once installed, react-web lets the agent follow its React patterns for components, hooks, state and data fetching.

Where does react-web fit in the Frontend and UI Code category?

react-web is listed in the Frontend and UI Code category next to vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. What sets react-web apart is its test-first workflow that requires tests to be written before the component code.

When does the react-web skill apply?

react-web is meant for working on React web components or pages. Its paths cover .tsx and .jsx files plus src/components, src/pages and src/app folders, so it applies to those files.

More from alinaqi/maggy

All 54

Similar to React Web

More Frontend & UI Code