A collection of skills for AI coding agents. Skills are packaged instructions and references that extend agent capabilities.
Skills follow the Agent Skills format.
Nine patterns for building React components that survive real-world conditions — SSR, hydration, concurrent rendering, portals, transitions, and future React changes. Based on Shu Ding's guide.
Use when:
- Writing reusable React components
- Fixing hydration mismatches
- Handling SSR edge cases
- Building component libraries
Patterns covered:
- Server-Proof (Critical) - no browser APIs during render
- Hydration-Proof (Critical) - inline scripts before hydration
- Instance-Proof (High) -
useId()over hardcoded IDs - Concurrent-Proof (High) -
React.cache()deduplication - Composition-Proof (High) - Context over
cloneElement - Portal-Proof (Medium) -
ownerDocument.defaultViewfor listeners - Transition-Proof (Medium) -
startTransition()for View Transitions - Activity-Proof (Medium) -
useLayoutEffectfor<Activity>visibility - Future-Proof (Medium) -
useStateinitializer for stable values
npx skills add CodeWithShreyans/skillsSkills are automatically available once installed. The agent will use them when relevant tasks are detected.
Examples:
Review this component for bulletproof patterns
Make this component SSR-safe
Check this component for hydration issues
Each skill contains:
SKILL.md- Instructions for the agentreferences/- Supporting documentation loaded on demand
MIT