360 Secure SkillHub
360 安全技能中心

tailwind-css

用于在 Tailwind 项目中添加或修复样式类、处理 v4 配置与迁移,并按需参考 tailwind-variants、tw-animate-css 和 ESLint 约定;强调沿用本地设计令牌与组件规范,完成构建与渲染检查。

分类:开发
PaulRBerg
热度 11.91
最近更新 2026-10-23 02:12:20

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add paulrberg/agent-skills/tailwind-css
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
tailwind-css
user-invocable
false
description
Use for Tailwind v4 styling: add/fix classes, configure or migrate Tailwind, use tailwind-variants, or tw-animate-css.

Tailwind CSS

Follow the installed Tailwind version and the repository's tokens, components, class-merging utility, CSS entrypoint, and nearby UI. They take precedence over this skill. Do not add packages, change integration, or migrate versions without a request and local need.

Routing

Do not apply v4 syntax to an older installation. Preserve responsive, interaction, accessible, and dark-mode behavior. Do not redesign beyond the request.

Completion

Define the intended visual and state change. Reuse local conventions. Keep classes statically discoverable.

If source registration or generated mappings change, run the real Tailwind build and confirm the expected utilities. Run required repository checks and inspect the changed states at one representative viewport for a small style edit. Broaden to narrow/wide viewports, themes, and interactions when responsive rules or shared styling changed. When markup is transformed by JavaScript or a component library, inspect the final DOM too. Textual class review alone is insufficient. Repeat checks only when subsequent edits affect their evidence.

Finish with ### 🎨 Tailwind — ✅ styling updated (or ### 🎨 Tailwind — 🔎 inspected, no files written) and code-check and rendered-inspection evidence. Use prose for one inspected state and a compact table for several. Add ### ⚠️ Remaining only when needed. Keep source UI copy and diagnostics undecorated.