原始内容
Agent Skills
A collection of skills for AI coding agents. Skills are packaged instructions and references that extend agent capabilities.
Skills follow the Agent Skills format.
Available Skills
bulletproof-react-components
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
Installation
npx skills add CodeWithShreyans/skills
Usage
Skills 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
Skill Structure
Each skill contains:
SKILL.md- Instructions for the agentreferences/- Supporting documentation loaded on demand
License
MIT