360 Secure SkillHub
360 安全技能中心

tailwind-css

面向已安装 Tailwind 的项目,按本地设计令牌、组件与 CSS 入口添加或修复类名;需要时处理 v4 配置、迁移、tailwind-variants、tw-animate-css 与 ESLint,并通过构建、仓库检查和代表性视口或最终 DOM 验证样式结果。

PaulRBerg
热度 33.99
最近更新 2026-10-19 01:41:11
分类:开发依赖:代码执行 / 联网浏览搜索 / 读写文件应用场景:代码生成 / 调试排错 / UI 原型

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: 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.