AgentSkillsCN

frontend-css

按照项目既定的方法论(Tailwind、BEM、CSS模块等)编写并维护CSS样式。在为组件添加样式、运用CSS实用类、维护设计系统令牌(颜色、间距、字体)、避免覆盖框架自带样式,或针对生产环境优化CSS时,均可运用此技能。适用文件包括*.css、*.scss、*.less、Tailwind配置文件,以及组件文件中的样式部分。

SKILL.md
--- frontmatter
name: frontend-css
description: Write and maintain CSS following the project's established methodology (Tailwind, BEM, CSS modules, etc.). Use this skill when adding styles to components, working with CSS utility classes, maintaining design system tokens (colors, spacing, typography), avoiding framework style overrides, or optimizing CSS for production. Applies to files like *.css, *.scss, *.less, Tailwind configurations, and style sections in component files.

When to use this skill

  • When adding CSS styles to components or pages
  • When using Tailwind CSS utility classes
  • When following BEM or other CSS naming conventions
  • When working with CSS modules or styled-components
  • When maintaining design tokens (colors, spacing, typography)
  • When avoiding unnecessary overrides of framework styles
  • When minimizing custom CSS in favor of framework utilities
  • When configuring CSS purging or tree-shaking for production
  • When editing *.css, *.scss, *.less, or *.module.css files
  • When adding styles in JSX className or Vue style sections
  • When working on tailwind.config.js or theme configurations

Frontend CSS

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle frontend CSS.

Instructions

For details, refer to the information provided in this file: frontend CSS