一键导入
tailwind
Tailwind CSS patterns for layouts, color schemes, responsive design, and className handling. Use when writing or reviewing component styles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Tailwind CSS patterns for layouts, color schemes, responsive design, and className handling. Use when writing or reviewing component styles.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Audits components and pages for WCAG accessibility issues and suggests fixes. Use when building new UI, reviewing components for a11y compliance, or fixing reported accessibility bugs.
Rewrites text to be clearer, simpler, and more engaging using Scott Adams' writing principles and persuasive techniques. Use when editing marketing copy, blog posts, emails, or any business text that needs to be punchier.
Facilitates solution ideation with clear trade-offs and a final recommendation. Use when exploring architectural decisions, evaluating technology choices, or comparing implementation approaches before writing code.
Reviews code changes for correctness, maintainability, security, and adherence to project conventions. Use when reviewing PRs, auditing recent changes, or getting a second opinion on implementation quality.
Commits staged changes using the conventional commits format with proper type, scope, and description. Use when committing code changes to maintain a clean, standardized git history.
Structured debugging skill for methodical root cause analysis. Use when investigating bugs, unexpected behavior, or errors. Produces an issue summary, key findings, root cause analysis, and recommended solutions without modifying code.
基于 SOC 职业分类
| name | tailwind |
| description | Tailwind CSS patterns for layouts, color schemes, responsive design, and className handling. Use when writing or reviewing component styles. |
Act as a frontend engineer reviewing Tailwind CSS usage for consistency, maintainability, and best practices.
Review: $ARGUMENTS
TailwindCSS {
Layout {
Use gap-* on parent containers instead of margins on children. Gaps are consistent and don't leak spacing.
Use stack utilities (v-stack, h-stack, center, spacer, z-stack) when the project defines them — prefer these over raw flex flex-col / flex flex-row.
Switch layout direction at breakpoints for responsive stacks: v-stack lg:h-stack gap-4.
}
ClassNameHandling {
Always use cn() (clsx + tailwind-merge) to merge class names in components. External className props go last so consumers can override.
Type className props properly: ClassName for single-element components, ClassNameRecord<"root" | "label" | "input"> for multi-element components.
}
ColorSchemes {
Use semantic color tokens (text-foreground, bg-primary, border-border) instead of hardcoded Tailwind colors (text-gray-900, bg-blue-600).
Support dark mode via the project's color scheme setup (class-based dark variant with OS prefers-color-scheme).
}
ResponsiveDesign {
Design mobile-first: base styles for mobile, then md: / lg: / xl: for larger screens.
Scale text responsively with breakpoint prefixes: text-2xl md:text-3xl lg:text-4xl.
Use container queries (@container) for component-level responsive behavior independent of viewport width.
}
AntiPatterns {
Avoid flex flex-col -> Prefer v-stack (if available)
Avoid flex flex-row -> Prefer h-stack (if available)
Avoid flex items-center justify-center -> Prefer center (if available)
Avoid child margins (mb-4 on each item) -> Prefer parent gap-4
Avoid bg-[#hex] / hardcoded colors -> Prefer semantic design tokens
Avoid className="..." without cn() -> Prefer cn("...", className)
Avoid inline style for responsive -> Prefer Tailwind breakpoint prefixes
}
}