Skills for Real Engineers. Straight from my .agents directory.
react-dev
Agent skill fromsoftaworks/agent-toolkit
This skill should be used when building React components with TypeScript, typing hooks, handling events, or when React TypeScript, React 19, Server Components are mentioned. Covers type-safe patterns for React 18-19 including generic components, proper event typing, and routing integration (TanStack Router, React Router).
How to install react-dev
npx skills add softaworks/agent-toolkit# or add only this skill to Claude Code: copy the folder
skills/react-dev/
# into
~/.claude/skills/react-dev/ (all projects)
.claude/skills/react-dev/ (one project)
1# React TypeScript23Type-safe React = compile-time guarantees = confident refactoring.45<when_to_use>67- Building typed React components8- Implementing generic components9- Typing event handlers, forms, refs10- Using React 19 features (Actions, Server Components, use())11- Router integration (TanStack Router, React Router)12- Custom hooks with proper typing1314NOT for: non-React TypeScript, vanilla JS React1516</when_to_use>1718<react_19_changes>1920React 19 breaking changes require migration. Key patterns:2122**ref as prop** - forwardRef deprecated:2324```typescript25// React 19 - ref as regular prop26type ButtonProps = {27 ref?: React.Ref<HTMLButtonElement>;28} & React.ComponentPropsWithoutRef<'button'>;2930function Button({ ref, children, ...props }: ButtonProps) {31 return <button ref={ref} {...props}>{children}</button>;32}33```3435**useActionState** - replaces useFormState:3637```typescript38import { useActionState } from 'react';3940type FormState = { errors?: string[]; success?: boolean };4142function Form() {43 const [state, formAction, isPending] = useActionState(submitAction, {});44 return <form action={formAction}>...</form>;45}46```4748**use()** - unwraps promises/context:4950```typescript51function UserProfile({ userPromise }: { userPromise: Promise<User> }) {52 const user = use(userPromise); // Suspends until resolved53 return <div>{user.name}</div>;54}55```5657See [react-19-patterns.md](references/react-19-patterns.md) for useOptimistic, useTransition, migration checklist.5859</react_19_changes>60…
Excerpt shown under the repository's MIT license.
More skills in agent-toolkit
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
