AgentSkillsCN

uniwind

Uniwind 与 Tailwind CSS 结合的 React Native 样式设计最佳实践。当您使用 Uniwind 编写、审查或重构 React Native 代码时,应优先选用此技能。可通过涉及 Uniwind、className 样式、Tailwind 在 React Native 中的应用、NativeWind 迁移,或主题化等相关任务触发。

SKILL.md
--- frontmatter
name: uniwind
description: Uniwind best practices for React Native styling with Tailwind CSS. This skill should be used when writing, reviewing, or refactoring React Native code using Uniwind. Triggers on tasks involving Uniwind, className styling, Tailwind in React Native, NativeWind migration, or theming.

Uniwind Best Practices

Comprehensive performance optimization and best practices guide for Uniwind - the fastest Tailwind CSS bindings for React Native. Contains 45+ rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Setting up Uniwind in a new React Native project
  • Configuring Metro plugin and CSS entry points
  • Building theme systems with CSS variables
  • Integrating third-party components with className support
  • Creating responsive layouts for mobile and tablet
  • Optimizing styling performance
  • Migrating from NativeWind to Uniwind

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Build-Time ConfigurationCRITICALbuild-
2Theme ArchitectureCRITICALtheme-
3Component IntegrationHIGHcomp-
4Responsive DesignHIGHresp-
5Performance OptimizationMEDIUM-HIGHperf-
6Platform PatternsMEDIUMplat-
7State & InteractionMEDIUMstate-
8Migration & CompatibilityLOW-MEDIUMcompat-

Quick Reference

1. Build-Time Configuration (CRITICAL)

2. Theme Architecture (CRITICAL)

3. Component Integration (HIGH)

4. Responsive Design (HIGH)

5. Performance Optimization (MEDIUM-HIGH)

6. Platform Patterns (MEDIUM)

7. State & Interaction (MEDIUM)

8. Migration & Compatibility (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
AGENTS.mdComplete compiled guide with all rules
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information