Individual skill
weapp-tailwindcss-runtime
设计和排查 weapp-tailwindcss 动态 class 组合与运行时封装,覆盖 @weapp-tailwindcss/runtime、merge、cva、variants、typography、theme-transition、ui、clsx、twMerge、weappTwIgnore、escape/unescape、rpx transformer、缓存和组件 class 覆盖。Use for dynamic classes, cn helpers, variant APIs, runtime package selection, or class escaping at runtime;不用于 bundler 初始接入、React Native 或 Lynx 编译器配置。
skills/weapp-tailwindcss-runtime/SKILL.md
Source commit 30b9e52332aa7f7da1df460bd9f17255988e2037
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Instructions only
- Last checked
- Nov 7, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,865
- Repository last updated
- Nov 7, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- mp Repository topic
- weapp Repository topic
- tailwindcss Repository topic
- webpack Repository topic
- postcss Repository topic
- mini Repository topic
- tailwind Repository topic
- vite Repository topic
- tarojs Repository topic
- uni-app Repository topic
- design Derived category
- engineering Derived category
- design-interface Derived category
- engineering-web Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 2,244 bytesagents/openai.yamlasset · 309 bytesreferences/runtime-guide.mddoc · 4,320 bytes
Read excerpt
# weapp-tailwindcss runtime
使用项目提供的运行时封装保持 class 合并、转义和构建期精确候选一致。
## 工作流
1. 识别 class 来源:静态模板、完整字面量条件、组件外部覆盖、第三方透传或真正的运行时输入。
2. 读取 [references/runtime-guide.md](references/runtime-guide.md),按任务选择最小包和 API。
3. 读取各包当前 manifest 与 exports,避免把 `merge/slim`、`merge/lite`、UI CSS 或插件入口当成主入口。
4. 优先使用完整 class 字面量或枚举;不要拼接 `bg-${color}-500` 这类半截 token。
5. 普通组件覆盖使用 `@weapp-tailwindcss/merge`;单槽 variants 使用 `@weapp-tailwindcss/cva`;多槽 recipes 使用 `@weapp-tailwindcss/variants`。
6. 自定义封装名时检查构建期可识别标识符;需要原样透传时使用 `weappTwIgnore`,不要扩大全局忽略。
7. 自定义 runtime factory、escape/unescape 或 rpx transformer 时保持纯函数边界,并验证缓存淘汰前后的等价输出。