gluestack-ui-v4 by gluestack/agent-skills
npx skills add https://github.com/gluestack/agent-skills --skill gluestack-ui-v4此技能强制执行 gluestack-ui v4 的约束性、强主张性样式模式,以减少决策疲劳、提升性能、实现一致的主题化,并将解决方案空间限制在规范模式内。
typography-*、neutral-*、gray-*)或数字颜色(red-500、blue-600)。仅使用语义化令牌(text-foreground、bg-primary、border-border 等),并可选择性地使用 alpha 值广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在使用任何组件之前,请务必在 https://v4.gluestack.io/ui/docs/components/${componentName}/ 验证最新的使用模式
此技能被组织成专门的子技能,以提高令牌效率:
用于: 初始项目设置、安装、配置、添加组件
涵盖:
npx gluestack-ui@alpha init -y 和 npx gluestack-ui@alpha add --all -y)在以下情况调用: 在新项目或现有项目中设置 gluestack-ui、通过 CLI 添加组件或排查安装问题时
用于: 逐步创建组件、模板、配方
涵盖:
在以下情况调用: 从头创建新组件或需要组件模板时
用于: 组件使用、复合模式、图标、提供者设置
涵盖:
在以下情况调用: 处理组件结构、属性和组合时
用于: 颜色、间距、深色模式、变体、className
涵盖:
在以下情况调用: 样式化组件、主题化或处理颜色和间距时
用于: 为组件创建自定义变体、扩展设计系统
涵盖:
在以下情况调用: 需要为组件创建自定义变体、扩展组件样式选项或标准化重复样式模式时
用于: 跨平台、性能优化、最佳实践
涵盖:
在以下情况调用: 优化性能、确保跨平台兼容性或遵循 React Native 最佳实践时
用于: 代码审查、反模式、验证检查清单
涵盖:
在以下情况调用: 审查代码、验证实现或检查反模式时
// 使用属性的组件用法
<VStack space="lg" className="p-4">
<Heading size="xl" bold>Title</Heading>
<Text size="md" className="text-muted-foreground">Description</Text>
</VStack>
// 带有复合组件的按钮
<Button variant="outline" size="lg">
<ButtonText>Click Me</ButtonText>
<ButtonIcon as={ChevronRightIcon} />
</Button>
// 带有图标的输入框 (InputIcon 必须放在 InputSlot 内)
<Input>
<InputSlot>
<InputIcon as={MailIcon} className="text-muted-foreground" />
</InputSlot>
<InputField placeholder="Enter email" />
</Input>
// 语义化颜色令牌
<Box className="bg-primary text-primary-foreground">
<Text className="text-foreground">Content</Text>
</Box>
typography-*、neutral-*、gray-*、slate-* 或数字颜色(red-500、blue-600)。仅使用语义化令牌:text-foreground、text-muted-foreground、bg-primary、bg-card、border-border 等,并可选择性地使用 alpha 值(/70、/90)重要提示:在使用组件之前,请务必在官方 v4 文档中验证组件用法和模式。
https://v4.gluestack.io/ui/docs/components/${componentName}/@/components/ui/${componentName}在处理特定任务时,调用相应的子技能以获取详细指导:
gluestack-ui-v4:setupgluestack-ui-v4:creating-componentsgluestack-ui-v4:componentsgluestack-ui-v4:stylinggluestack-ui-v4:variantsgluestack-ui-v4:performancegluestack-ui-v4:validation每个子技能在其特定领域提供专注、详细的指导,同时保持与这些核心原则的一致性。
每周安装数
251
代码仓库
GitHub 星标数
1
首次出现
2026年1月30日
安全审计
已安装于
codex220
opencode218
github-copilot214
gemini-cli211
amp206
kimi-cli206
This skill enforces constrained, opinionated styling patterns for gluestack-ui v4 that reduce decision fatigue, improve performance, enable consistent theming, and limit the solution space to canonical patterns.
typography-*, neutral-*, gray-*) or numbered colors (red-500, blue-600). ONLY use semantic tokens (text-foreground, bg-primary, border-border, etc.) with optional alpha valuesBefore using any component, always verify the latest usage patterns athttps://v4.gluestack.io/ui/docs/components/${componentName}/
This skill is organized into specialized sub-skills for better token efficiency:
Use for: Initial project setup, installation, configuration, adding components
Covers:
npx gluestack-ui@alpha init -y and npx gluestack-ui@alpha add --all -y)Invoke when: Setting up gluestack-ui in a new or existing project, adding components via CLI, or troubleshooting installation issues
Use for: Step-by-step component creation, templates, recipes
Covers:
Invoke when: Creating new components from scratch or need component templates
Use for: Component usage, compound patterns, icons, provider setup
Covers:
Invoke when: Working with component structure, props, and composition
Use for: Colors, spacing, dark mode, variants, className
Covers:
Invoke when: Styling components, theming, or working with colors and spacing
Use for: Creating custom variants for components, extending design system
Covers:
Invoke when: Need to create custom variants for components, extend component styling options, or standardize repeated style patterns
Use for: Cross-platform, performance optimization, best practices
Covers:
Invoke when: Optimizing performance, ensuring cross-platform compatibility, or following React Native best practices
Use for: Code review, anti-patterns, validation checklist
Covers:
Invoke when: Reviewing code, validating implementation, or checking for anti-patterns
// Component usage with props
<VStack space="lg" className="p-4">
<Heading size="xl" bold>Title</Heading>
<Text size="md" className="text-muted-foreground">Description</Text>
</VStack>
// Button with compound components
<Button variant="outline" size="lg">
<ButtonText>Click Me</ButtonText>
<ButtonIcon as={ChevronRightIcon} />
</Button>
// Input with icon (InputIcon MUST be in InputSlot)
<Input>
<InputSlot>
<InputIcon as={MailIcon} className="text-muted-foreground" />
</InputSlot>
<InputField placeholder="Enter email" />
</Input>
// Semantic color tokens
<Box className="bg-primary text-primary-foreground">
<Text className="text-foreground">Content</Text>
</Box>
typography-*, neutral-*, gray-*, slate-*, or numbered colors (red-500, blue-600). ONLY use semantic tokens: text-foreground, text-muted-foreground, bg-primary, bg-card, , etc. with optional alpha values (, )IMPORTANT: Always verify component usage and patterns in the official v4 documentation before using components.
https://v4.gluestack.io/ui/docs/components/${componentName}/@/components/ui/${componentName}When working on specific tasks, invoke the appropriate sub-skill for detailed guidance:
gluestack-ui-v4:setupgluestack-ui-v4:creating-componentsgluestack-ui-v4:componentsgluestack-ui-v4:stylinggluestack-ui-v4:variantsgluestack-ui-v4:performancegluestack-ui-v4:validationEach sub-skill provides focused, detailed guidance on its specific domain while maintaining consistency with these core principles.
Weekly Installs
251
Repository
GitHub Stars
1
First Seen
Jan 30, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex220
opencode218
github-copilot214
gemini-cli211
amp206
kimi-cli206
Perl 5.36+ 现代开发模式与最佳实践 | 构建健壮可维护应用程序指南
790 周安装
Oracle到PostgreSQL迁移缺陷报告模板 | 数据库迁移问题记录指南
646 周安装
Oracle 到 PostgreSQL 数据库迁移计划自动生成工具 | .NET 解决方案分析
649 周安装
Sensei:GitHub Copilot for Azure技能合规性自动化改进工具
659 周安装
Python Excel自动化:openpyxl库操作XLSX文件教程,创建编辑格式化电子表格
655 周安装
数据分析技能:使用DuckDB高效分析Excel/CSV文件,支持SQL查询与统计摘要
662 周安装
GitHub议题字段迁移工具:批量将标签和项目字段迁移至结构化议题字段
678 周安装
border-border/70/90