React builder
Skill AtulPurohit/Antigravity-Awesome-Skills/plugins/frontend-architect/skills/react-builder
Build scalable React applications with proper component architecture, custom hooks, state management, and performance optimization.From its SKILL.md
npx -y skills add AtulPurohit/Antigravity-Awesome-Skills --skill react-builderAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.1 KB, 611 tokens by cl100k_base, as published. Nobody here has run it
React Application Builder
Purpose
Build production React applications with clean component architecture, reusable hooks, and optimal performance.
Project Structure
src/
├── components/
│ ├── ui/ # Reusable UI components (Button, Input, Modal)
│ └── features/ # Feature-specific components
├── hooks/ # Custom hooks
├── services/ # API calls
├── stores/ # State management (Zustand)
├── utils/ # Utilities
└── types/ # TypeScript types
Component Patterns
// Compound component pattern
const Select = ({ children, value, onChange }: SelectProps) => {
return (
<SelectContext.Provider value={{ value, onChange }}>
<div className="select-container">{children}</div>
</SelectContext.Provider>
);
};
Select.Option = ({ value, children }: OptionProps) => {
const { value: selected, onChange } = useSelectContext();
return (
<div
role="option"
aria-selected={selected === value}
onClick={() => onChange(value)}
>
{children}
</div>
);
};
// Usage
<Select value={city} onChange={setCity}>
<Select.Option value="nyc">New York</Select.Option>
<Select.Option value="la">Los Angeles</Select.Option>
</Select>
Custom Hooks
// Data fetching hook with caching
function usePost(id: string) {
const [state, setState] = useState<{
data: Post | null;
loading: boolean;
error: Error | null;
}>({ data: null, loading: true, error: null });
useEffect(() => {
const controller = new AbortController();
api.getPost(id, controller.signal)
.then(data => setState({ data, loading: false, error: null }))
.catch(error => {
if (!controller.signal.aborted) {
setState({ data: null, loading: false, error });
}
});
return () => controller.abort();
}, [id]);
return state;
}
Performance
// Memoization
const ExpensiveComponent = memo(({ data }: Props) => {
const processed = useMemo(() => processData(data), [data]);
const handleClick = useCallback(() => doSomething(data), [data]);
return <div onClick={handleClick}>{processed}</div>;
});
// Lazy loading
const HeavyChart = lazy(() => import('./HeavyChart'));
<Suspense fallback={<ChartSkeleton />}>
<HeavyChart data={data} />
</Suspense>
Outputs
- Component library structure
- Custom hooks for data fetching, forms, auth
- State management setup (Zustand/React Query)
- Performance optimization patterns
- Testing setup with React Testing Library
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.