Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计通过

cssCSS 搜索

Agent Skill

css 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

212

周安装

9

GitHub Stars

17

下载量

74
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:css(CSS 搜索)
来源仓库:https://github.com/mintuz/claude-plugins
仓库路径:skills/css
安装命令:
npx skills add https://github.com/mintuz/claude-plugins --skill css
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/mintuz/claude-plugins --skill css

简介

用于记录任务执行中的错误、用户纠正和经验缺口。

  • 适合让 Agent 持续沉淀问题、修正和最佳实践。
  • 可结合来源仓库和原始 README 继续核验具体用法。
  • 安装方式:github,通过 npx skills add 命令从 mintuz/claude-plugins 仓库添加。
  • 适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。

SKILL.md

CSS Best Practices

Production-grade CSS development with architectural principles, proper specificity management, and maintainable patterns.

Core Principles

  1. Single Responsibility - Each class handles one concern only
  2. Open/Closed - Open for extension, closed for modification
  3. Immutable CSS - Utilities and objects never change after creation
  4. Behavior over implementation - Focus on what the code does, not how
  5. Accessibility first - Semantic HTML before ARIA, proper contrast and sizing

Quick Reference

TopicGuide
Specificity hierarchy, safe techniques,!important rulesspecificity.md
rem vs px, margins, layout algorithmsunits-margins.md
@extend vs mixins, refactoring workflow, code smellspreprocessors-refactoring.md
Architectural principles and common code patternspatterns.md

When to Use Each Guide

Specificity

Use specificity.md when you need:

  • Specificity hierarchy and calculations
  • Safe techniques (self-chaining, attribute selectors)
  • Anti-patterns (IDs, deep nesting, qualified selectors)
  • !important rules (proactive vs reactive)
  • Shorthand property gotchas
  • Alternatives to reactive!important

Units and Margins

Use units-margins.md when you need:

  • rem vs px decision framework
  • Line-height best practices
  • Margin encapsulation rules
  • Single-direction margin patterns
  • Margin collapse behavior
  • Layout algorithm awareness (Flow, Flexbox, Grid)
  • Common gotchas (z-index, magic space under images)

Preprocessors and Refactoring

Use preprocessors-refactoring.md when you need:

  • @extend vs mixins guidance
  • Avoiding & concatenation
  • CSS @import performance issues
  • Finding dead CSS with beacons
  • The Three I's refactoring workflow
  • Code smell reference tables

Patterns

Use patterns.md when you need:

  • Single Responsibility Principle examples
  • Open/Closed Principle patterns
  • Immutable CSS patterns and prefixes
  • Component without margin examples
  • Utility class patterns
  • Self-chaining for specificity
  • CSS custom properties for design scales

Quick Reference: Decision Trees

Should I use!important?

Is this a utility class that must be immutable?
├── Yes → Use !important (proactive)
└── No → Is there a specificity conflict?
    ├── Yes → Try: self-chain, attribute selector, or restructure cascade
    └── No → Don't use !important

Should I use px or rem?

Should this scale with user font preferences?
├── Yes → Use rem
│   Examples: font-size, vertical text margins, media queries
└── No → Use px
    Examples: borders, box-shadows, horizontal padding

Should I use shorthand?

Am I intentionally setting ALL related properties?
├── Yes → Shorthand is fine
└── No → Use longhand to avoid unintentional resets

Should component have margin?

Is this a layout component (grid, stack, container)?
├── Yes → Margin/gap is appropriate
└── No → Move spacing to parent or use utility classes

@extend or mixin?

Are these selectors thematically related (same component)?
├── Yes → @extend might be acceptable
└── No → Use mixin (safer, doesn't disrupt source order)

How should I refactor this CSS?

Step 1: Identify - Is this frequently used and problematic?
├── Yes → Continue
└── No → Skip refactoring, focus elsewhere

Step 2: Isolate - Build new version separately
├── Use CodePen/jsFiddle
└── Don't build on top of existing CSS

Step 3: Implement - Reintegrate carefully
├── Component fixes → component's partial
└── Legacy conflicts → shame.css

Summary Checklist

Before committing CSS, verify:

  • Classes follow single responsibility (structure separate from cosmetics)
  • No ID selectors for styling
  • No reactive!important (only proactive for utilities)
  • Components have no margin (spacing controlled by parent)
  • Using rem for font-size and scalable spacing
  • Using px for borders, shadows, and fixed visual elements
  • Longhand properties when only setting one value
  • No deep nesting (4+ levels)
  • No qualified selectors (e.g., ul.nav)
  • Layout algorithm appropriate for context (Flow, Flex, Grid)
  • Accessible color contrast ratios
  • Semantic HTML before adding ARIA

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.54%
按下载量换算20

trae

23.11%
按下载量换算17

Antigravity

17.6%
按下载量换算13

Codex

10.73%
按下载量换算8

windsurf

6.34%
按下载量换算5

Gemini CLI

3.5%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills