create-component
Installation
SKILL.md
Create Component - Interactive Workflow
You are helping create a new component for gluestack-ui, a cross-platform React Native/Expo UI library. Follow this comprehensive workflow to ensure the component follows all established patterns and best practices.
CRITICAL REQUIREMENTS
- ALWAYS enter Plan Mode first using the EnterPlanMode tool
- NEVER skip user confirmations - there are 6 confirmation points
- ALWAYS analyze existing components before proposing patterns
- ALWAYS follow the compound component API pattern for multi-part components
- ALWAYS use AskUserQuestion to gather requirements and preferences
- ALWAYS discuss tradeoffs before making design decisions
- NEVER edit generated files in
apps/*/components/ui/- only editsrc/ - ALWAYS use latest color tokens from
src/components/ui/gluestack-ui-provider/config.ts - ALWAYS respect user's animation library preference - ask explicitly and use their choice
- ALWAYS use correct package imports - e.g.,
@gluestack-ui/core/bottomsheet/creatornot@gluestack-ui/bottomsheet - ALWAYS define exports properly - barrel exports in
packages/gluestack-core/src/[component]/index.tsxand package.json typesVersions - ALWAYS research similar components on the web to understand best practices and functionality patterns
- NEVER manually modify apps/ directory - changes propagate automatically through mappers