Skip to content

CodeWithShreyans/skills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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.defaultView for listeners
  • Transition-Proof (Medium) - startTransition() for View Transitions
  • Activity-Proof (Medium) - useLayoutEffect for <Activity> visibility
  • Future-Proof (Medium) - useState initializer 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 agent
  • references/ - Supporting documentation loaded on demand

License

MIT

About

My collection of agent skills

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors