react-dev
Skill2.5k starsChanged 10 months agoMITView on GitHub
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).
4 other projects use a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- taeeho/ClaudeSkillsword for word, first seen May 20, 2026
- nbirkner/digital-brainword for word, first seen Apr 12, 2026
- jaansokk/cursor_toolstheir own version, first seen Mar 15, 2026
- chidekina/aria-superpowersword for word, first seen Feb 22, 2026
Who's talking about softaworks/agent-toolkit
- sudosubin/agents.nix“codex-plugins.github.softaworks.agent-toolkit: init at 0-unstable-2026-03-05”GitHub · Oct 4, 2026
- sudosubin/agents.nix“claude-code-plugins.github.softaworks.agent-toolkit: init at 0-unstable-2026-03-05”GitHub · Oct 4, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.softaworks.agent-toolkit: init at 0-unstable-2026-03-05”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.softaworks.agent-toolkit: init at 0-unstable-2026-02-08”GitHub · Oct 2, 2026
- eranroseman/agent-plugins“Curate skills from https://github.com/softaworks/agent-toolkit”GitHub · Sep 12, 2026
The biggest 5 of 40 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 40
Talked about on GitHub (40 times).
On GitHub · 40
- Oct 4, 2026codex-plugins.github.softaworks.agent-toolkit: init at 0-unstable-2026-03-05 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-plugins.github.softaworks.agent-toolkit: init at 0-unstable-2026-03-05 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-marketplaces.github.softaworks.agent-toolkit: init at 0-unstable-2026-03-05 — sudosubin/agents.nix0 reactions
- Oct 2, 2026agent-skills.github.softaworks.agent-toolkit: init at 0-unstable-2026-02-08 — sudosubin/agents.nix0 reactions
- Sep 12, 2026Curate skills from https://github.com/softaworks/agent-toolkit — eranroseman/agent-plugins0 reactions · 2 comments
35 more on GitHub
- Apr 25, 2026Audit candidate: softaworks/agent-toolkit — xiaolai/nlpm0 reactions · 3 comments
- Mar 31, 2026Remove unecessary useEffects from frontend — superplanehq/superplane0 reactions · 2 comments
- Mar 9, 2026[SUBMISSION] softaworks/agent-toolkit — ProSkillsMD/proskills0 reactions · 1 comment
- Feb 2, 2026New skill: /softaworks-react-dev (medium risk) — aiskillstore/marketplace0 reactions
- Feb 2, 2026New skill: /softaworks-react-useeffect (medium risk) — aiskillstore/marketplace0 reactions
- Feb 2, 2026New skill: /softaworks-game-changing-features (medium risk) — aiskillstore/marketplace0 reactions
- Feb 2, 2026New skill: /softaworks-naming-analyzer (medium risk) — aiskillstore/marketplace0 reactions
- Feb 2, 2026New skill: /softaworks-openapi-to-typescript (medium risk) — aiskillstore/marketplace0 reactions
- Feb 2, 2026New skill: /softaworks-database-schema-designer (medium risk) — aiskillstore/marketplace0 reactions
- Jan 28, 2026New skill: /softaworks-c4-architecture (safe risk) — aiskillstore/marketplace0 reactions
- Jan 28, 2026New skill: /softaworks-professional-communication (safe risk) — aiskillstore/marketplace0 reactions
- Jan 28, 2026New skill: /softaworks-plugin-forge (safe risk) — aiskillstore/marketplace0 reactions
- Jan 28, 2026New skill: /softaworks-feedback-mastery (safe risk) — aiskillstore/marketplace0 reactions
- Jan 28, 2026New skill: /softaworks-difficult-workplace-conversations (safe risk) — aiskillstore/marketplace0 reactions
- Jan 28, 2026New skill: /softaworks-humanizer (safe risk) — aiskillstore/marketplace0 reactions
- Jan 27, 2026Integrate humanizer guidelines for documentation quality — shelbeely/ADHD-Closet0 reactions
- Jan 26, 2026New skill: /softaworks-command-creator (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-marp-slide (low risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-skill-judge (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-writing-clearly-and-concisely (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-crafting-effective-readmes (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-gepetto (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-mermaid-diagrams (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-reducing-entropy (safe risk) — aiskillstore/marketplace0 reactions
- Jan 26, 2026New skill: /softaworks-ship-learn-next (safe risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-codex (safe risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-daily-meeting-update (safe risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-domain-name-brainstormer (safe risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-commit-work (safe risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-agent-md-refactor (safe risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-session-handoff (low risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-dependency-updater (low risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-qa-test-planner (low risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-meme-factory (low risk) — aiskillstore/marketplace0 reactions
- Jan 24, 2026New skill: /softaworks-gemini (low risk) — aiskillstore/marketplace0 reactions
Other versions4 projects use a version of this.
Word for word · 3
- chidekina/aria-superpowers★ 2100% same
- nbirkner/digital-brain★ 0100% same
- taeeho/ClaudeSkills★ 0100% same
Edited · 0
None found.
Wrote their own version · 1
- jaansokk/cursor_tools★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-md-refactorSkill
- backend-to-frontend-handoff-docsSkill
- c4-architectureSkill
- codexSkill
- command-creatorSkill
- commit-workSkill
- crafting-effective-readmesSkill
- daily-meeting-updateSkill
- database-schema-designerSkill
- datadog-cliSkill
- dependency-updaterSkill
- design-system-starterSkill
- difficult-workplace-conversationsSkill
- domain-name-brainstormerSkill
- draw-ioSkill
- excalidrawSkill
- feedback-masterySkill
- frontend-to-backend-requirementsSkill
- game-changing-featuresSkill
- geminiSkill
- gepettoSkill
- humanizerSkill
- jiraSkill
- lesson-learnedSkill
- marp-slideSkill
- meme-factorySkill
- mermaid-diagramsSkill
- muiSkill
- naming-analyzerSkill
- openapi-to-typescriptSkill
- perplexitySkill
- plugin-forgeSkill
- professional-communicationSkill
- qa-test-plannerSkill
- react-useeffectSkill
- reducing-entropySkill
- requirements-claritySkill
- session-handoffSkill
- ship-learn-nextSkill
- skill-judgeSkill
- web-to-markdownSkill
- writing-clearly-and-conciselySkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
NOT for: non-React TypeScript, vanilla JS React
- Distinctive: line 110
Use specific event types for accurate target typing:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
React TypeScript
Type-safe React = compile-time guarantees = confident refactoring.
<when_to_use>
- Building typed React components
- Implementing generic components
- Typing event handlers, forms, refs
- Using React 19 features (Actions, Server Components, use())
- Router integration (TanStack Router, React Router)
- Custom hooks with proper typing
NOT for: non-React TypeScript, vanilla JS React
</when_to_use>
<react_19_changes>
React 19 breaking changes require migration. Key patterns:
ref as prop - forwardRef deprecated:
// React 19 - ref as regular prop
type ButtonProps = {
ref?: React.Ref<HTMLButtonElement>;
} & React.ComponentPropsWithoutRef<'button'>;
function Button({ ref, children, ...props }: ButtonProps) {
return <button ref={ref} {...props}>{children}</button>;
}useActionState - replaces useFormState:
import { useActionState } from 'react';
type FormState = { errors?: string[]; success?: boolean };
function Form() {
const [state, formAction, isPending] = useActionState(submitAction, {});
return <form action={formAction}>...</form>;
}use() - unwraps promises/context:
function UserProfile({ userPromise }: { userPromise: Promise<User> }) {
const user = use(userPromise); // Suspends until resolved
return <div>{user.name}</div>;
}See react-19-patterns.md for useOptimistic, useTransition, migration checklist.
</react_19_changes>
<component_patterns>
Props - extend native elements:
type ButtonProps = {
variant: 'primary' | 'secondary';
} & React.ComponentPropsWithoutRef<'button'>;
function Button({ variant, children, ...props }: ButtonProps) {
return <button className={variant} {...props}>{children}</button>;
}Children typing:
type Props = {
children: React.ReactNode; // Anything renderable
icon: React.ReactElement; // Single element
render: (data: T) => React.ReactNode; // Render prop
};Discriminated unions for variant props:
type ButtonProps =
| { variant: 'link'; href: string }
| { variant: 'button'; onClick: () => void };
function Button(props: ButtonProps) {
if (props.variant === 'link') {
return <a href={props.href}>Link</a>;
}
return <button onClick={props.onClick}>Button</button>;
}</component_patterns>
<event_handlers>
Use specific event types for accurate target typing:
// Mouse
function handleClick(e: React.MouseEvent<HTMLButtonElement>) {
e.currentTarget.disabled = true;
}
// Form
function handleSubmit(e: React.FormEvent<HTMLFormElement>) {
e.preventDefault();
const formData = new FormData(e.currentTarget);
}
// Input
function handleChange(e: React.ChangeEvent<HTMLInputElement>) {
console.log(e.target.value);
}
// Keyboard
function handleKeyDown(e: React.KeyboardEvent<HTMLInputElement>) {
if (e.key === 'Enter') e.currentTarget.blur();
}See event-handlers.md for focus, drag, clipboard, touch, wheel events.
</event_handlers>
<hooks_typing>
useState - explicit for unions/null:
const [user, setUser] = useState<User | null>(null);
const [status, setStatus] = useState<'idle' | 'loading'>('idle');useRef - null for DOM, value for mutable:
const inputRef = useRef<HTMLInputElement>(null); // DOM - use ?.
const countRef = useRef<number>(0); // Mutable - direct accessuseReducer - discriminated unions for actions:
type Action =
| { type: 'increment' }
| { type: 'set'; payload: number };
function reducer(state: State, action: Action): State {
switch (action.type) {
case 'set': return { ...state, count: action.payload };
default: return state;
}
}Custom hooks - tuple returns with as const:
function useToggle(initial = false) {
const [value, setValue] = useState(initial);
const toggle = () => setValue(v => !v);
return [value, toggle] as const;
}useContext - null guard pattern:
const UserContext = createContext<User | null>(null);
function useUser() {
const user = useContext(UserContext);
if (!user) throw new Error('useUser outside UserProvider');
return user;
}See hooks.md for useCallback, useMemo, useImperativeHandle, useSyncExternalStore.
</hooks_typing>
<generic_components>
Generic components infer types from props - no manual annotations at call site.
Pattern - keyof T for column keys, render props for custom rendering:
type Column<T> = {
key: keyof T;
header: string;
render?: (value: T[keyof T], item: T) => React.ReactNode;
};
type TableProps<T> = {
data: T[];
columns: Column<T>[];
keyExtractor: (item: T) => string | number;
};
function Table<T>({ data, columns, keyExtractor }: TableProps<T>) {
return (
<table>
<thead>
<tr>{columns.map(col => <th key={String(col.key)}>{col.header}</th>)}</tr>
</thead>
<tbody>
{data.map(item => (
<tr key={keyExtractor(item)}>
{columns.map(col => (
<td key={String(col.key)}>
{col.render ? col.render(item[col.key], item) : String(item[col.key])}
</td>
))}
</tr>
))}
</tbody>
</table>
);
}Constrained generics for required properties:
type HasId = { id: string | number };
function List<T extends HasId>({ items }: { items: T[] }) {
return <ul>{items.map(item => <li key={item.id}>...</li>)}</ul>;
}See generic-components.md for Select, List, Modal, FormField patterns.
</generic_components>
<server_components>
React 19 Server Components run on server, can be async.
Async data fetching:
export default async function UserPage({ params }: { params: { id: string } }) {
const user = await fetchUser(params.id);
return <div>{user.name}</div>;
}Server Actions - 'use server' for mutations:
'use server';
export async function updateUser(userId: string, formData: FormData) {
await db.user.update({ where: { id: userId }, data: { ... } });
revalidatePath(`/users/${userId}`);
}Client + Server Action:
'use client';
import { useActionState } from 'react';
import { updateUser } from '@/actions/user';
function UserForm({ userId }: { userId: string }) {
const [state, formAction, isPending] = useActionState(
(prev, formData) => updateUser(userId, formData), {}
);
return <form action={formAction}>...</form>;
}use() for promise handoff:
// Server: pass promise without await
async function Page() {
const userPromise = fetchUser('123');
return <UserProfile userPromise={userPromise} />;
}
// Client: unwrap with use()
'use client';
function UserProfile({ userPromise }: { userPromise: Promise<User> }) {
const user = use(userPromise);
return <div>{user.name}</div>;
}See server-components.md for parallel fetching, streaming, error boundaries.
</server_components>
<routing>Both TanStack Router and React Router v7 provide type-safe routing solutions.
TanStack Router - Compile-time type safety with Zod validation:
import { createRoute } from '@tanstack/react-router';
import { z } from 'zod';
const userRoute = createRoute({
path: '/users/$userId',
component: UserPage,
loader: async ({ params }) => ({ user: await fetchUser(params.userId) }),
validateSearch: z.object({
tab: z.enum(['profile', 'settings']).optional(),
page: z.number().int().positive().default(1),
}),
});
function UserPage() {
const { user } = useLoaderData({ from: userRoute.id });
const { tab, page } = useSearch({ from: userRoute.id });
const { userId } = useParams({ from: userRoute.id });
}React Router v7 - Automatic type generation with Framework Mode:
import type { Route } from "./+types/user";
export async function loader({ params }: Route.LoaderArgs) {
return { user: await fetchUser(params.userId) };
}
export default function UserPage({ loaderData }: Route.ComponentProps) {
const { user } = loaderData; // Typed from loader
return <h1>{user.name}</h1>;
}See tanstack-router.md for TanStack patterns and react-router.md for React Router patterns.
</routing><rules>ALWAYS:
- Specific event types (MouseEvent, ChangeEvent, etc)
- Explicit useState for unions/null
- ComponentPropsWithoutRef for native element extension
- Discriminated unions for variant props
- as const for tuple returns
- ref as prop in React 19 (no forwardRef)
- useActionState for form actions
- Type-safe routing patterns (see routing section)
NEVER:
- any for event handlers
- JSX.Element for children (use ReactNode)
- forwardRef in React 19+
- useFormState (deprecated)
- Forget null handling for DOM refs
- Mix Server/Client components in same file
- Await promises when passing to use()
</rules><references>- hooks.md - useState, useRef, useReducer, useContext, custom hooks
- event-handlers.md - all event types, generic handlers
- react-19-patterns.md - useActionState, use(), useOptimistic, migration
- generic-components.md - Table, Select, List, Modal patterns
- server-components.md - async components, Server Actions, streaming
- tanstack-router.md - TanStack Router typed routes, search params, navigation
- react-router.md - React Router v7 loaders, actions, type generation, forms
</references>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

