.claude/skills/audit-css/SKILL.md
Enforce CSS and Tailwind conventions
npx skillsauth add kevwhuang/dev .claude/skills/audit-cssInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Audit .css files and <style> blocks in .astro files.
Skip paths in .gitignore.
Sort all properties lexicographically, case-sensitive, uppercase before lowercase. No blank lines between properties. Vendor prefixes last.
Sort declaration blocks by selector type in this precedence, then sort selectors lexicographically, case-sensitive, uppercase before lowercase. Follow the same precedence within nested rules.
:root: html, body, :root.block, .block__element, .block--modifier.block:hover, .block:focus, .block:first-child.block::before, .block::after, ::-webkit-scrollbar:global(): :global(pre), :global(.line)@media and @keyframes: media queries first, keyframes lastBEM convention: .block, .block__element, .block--modifier.
No bare tag selectors for custom styles. :global() scoped selectors are acceptable.
@apply. Prefer inline utilities.@keyframes blocksAll transitions must use a shared set of durations and easing functions. Flag mismatched values.
All interactive elements must have visible hover and focus states. States must match across similar elements.
No overflow, clipping, or broken layouts at any viewport.
Sort classes in this order. No duplicate classes. Prefer Tailwind over custom CSS.
navbar, card__titlegroup, peer, block, hiddenfixed, absolute, relative, flex, grid, items-*, justify-*z-*w-*, h-*, min-*, max-*, shrink-0p-*, px-*, py-*, m-*, gap-*rounded-*, border, border-*font-*, text-* size, uppercase, tracking-*, leading-*bg-*, text-* color, placeholder-*overflow-*, opacity-*, -translate-*, backdrop-blur-*, shadow-*transition-*, duration-*, outline-none, pointer-events-*, select-none, cursor-*sm:*, md:*, lg:*<style> block per .astro file:root. No hardcoded colors in component styles.bun run lint after all changes are applieddevelopment
Bump version, update packages, lint, test, build, and commit
development
Enforce web project standards for structure, visuals, performance, security, and more
development
Enforce JavaScript and TypeScript conventions
development
Enforce HTML and Astro markup conventions