Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计未展示

css-standardsCSS standards 搜索

Agent Skill

css-standards 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,972

周安装

200

GitHub Stars

公开资料未说明

下载量

1,766
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add maxritter/claude-codepro --skill "css-standards"

简介

css-standards 用于发现并安装 AI 代理的技能。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中扩展 Agent 能力边界时使用。
  • 提供技能元数据检索与一键安装支持。
  • 安装命令:npx skills add maxritter/claude-codepro --skill "css-standards";需确保 npx 环境可用。
  • 注意技能来源可靠性,避免引入恶意或低质模块。

SKILL.md

CSS Standards

Rule: Follow project CSS methodology consistently, leverage framework patterns, maintain design system tokens.

When to use this skill

  • When writing or modifying CSS files (.css,.scss,.sass,.less,.module.css)
  • When applying utility classes in Tailwind CSS or similar utility-first frameworks
  • When implementing CSS-in-JS or styled-components in React/Vue/Svelte components
  • When defining or using design tokens (colors, spacing, typography, shadows)
  • When maintaining consistency with the project's CSS methodology (BEM, OOCSS, SMACSS, utility-first)
  • When optimizing CSS for production with purging or tree-shaking unused styles
  • When avoiding excessive framework style overrides by working with framework patterns
  • When implementing global styles or theme configurations
  • When refactoring inline styles or scattered CSS into organized, maintainable patterns
  • When establishing or following CSS naming conventions for the project

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.

Identify Project Methodology First

Before writing any styles, check existing codebase for:

Utility-first (Tailwind/UnoCSS):

<div className="flex items-center gap-4 p-6 bg-white rounded-lg shadow-md">

CSS Modules:

import styles from './Component.module.css'
<div className={styles.container}>

BEM (Block Element Modifier):

.card { }
.card__header { }
.card__header--highlighted { }

CSS-in-JS (styled-components/emotion):

const Button = styled.button`
  padding: 1rem;
  background: ${props => props.theme.primary};
`

Once identified, use that methodology exclusively. Never mix methodologies.

Design System Tokens

Always use design tokens instead of hardcoded values:

Bad:

color: #3b82f6;
padding: 16px;
font-size: 14px;

Good (Tailwind):

className="text-blue-500 p-4 text-sm"

Good (CSS variables):

color: var(--color-primary);
padding: var(--spacing-4);
font-size: var(--text-sm);

Check for existing tokens before creating new ones:

  1. Search for color/spacing/typography definitions
  2. Use existing tokens if available
  3. Only create new tokens if genuinely needed
  4. Document new tokens in design system file

Framework Patterns Over Overrides

Work with framework, not against it:

Bad (fighting Tailwind):

<div className="flex items-center" style={{gap: '17px', padding: '13px'}}>

Good (using framework values):

<div className="flex items-center gap-4 p-3">

Bad (overriding component library):

.MuiButton-root {
  padding: 12px !important;
  background: red !important;
}

Good (using component API):

<Button sx={{ padding: 3, bgcolor: 'error.main' }}>

If you need !important or deep style overrides, reconsider your approach.

Minimize Custom CSS

Prefer framework utilities over custom CSS:

Bad:

.custom-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

Good (Tailwind):

<div className="flex flex-col gap-4 p-6 bg-white rounded-lg shadow-sm">

Only write custom CSS for:

  • Complex animations
  • Unique visual effects not in framework
  • Third-party library integration
  • Browser-specific fixes

Naming Conventions

Follow project convention consistently:

BEM:

.block-name { }
.block-name__element { }
.block-name--modifier { }

CSS Modules (camelCase):

.cardContainer { }
.cardHeader { }
.isActive { }

Utility-first (descriptive class names for custom components):

.prose-headings { }
.custom-scrollbar { }

Organization Patterns

Structure CSS logically:

/* 1. Layout */
.component {
  display: flex;
  position: relative;
}

/* 2. Box model */
.component {
  width: 100%;
  padding: 1rem;
  margin: 0 auto;
}

/* 3. Typography */
.component {
  font-size: 1rem;
  line-height: 1.5;
}

/* 4. Visual */
.component {
  color: var(--text-primary);
  background: var(--bg-surface);
  border-radius: 0.5rem;
}

/* 5. Misc */
.component {
  cursor: pointer;
  transition: all 0.2s;
}

Group related styles, separate concerns with comments.

Performance Optimization

Production CSS should be optimized:

Tailwind (purge unused):

// tailwind.config.js
module.exports = {
  content: ['./src/**/*.{js,jsx,ts,tsx}'],
  // Only includes classes actually used
}

CSS Modules (automatic tree-shaking):

// Unused styles automatically removed in production

Avoid:

  • Importing entire CSS frameworks when using few components
  • Duplicate style definitions across files
  • Overly specific selectors (.a.b.c.d.e)
  • Large inline styles that could be extracted

Common Mistakes

Mixing methodologies:

// BAD - mixing Tailwind with inline styles and CSS modules
<div className={`${styles.card} flex p-4`} style={{gap: '12px'}}>

Hardcoding values:

/* BAD */
color: #3b82f6;
padding: 17px;

/* GOOD */
color: var(--color-primary);
padding: var(--spacing-4);

Fighting framework:

/* BAD */
.override {
  margin: 13px !important;
}

/* GOOD - use framework's spacing scale */
className="m-3"

Verification Checklist

Before completing CSS work:

  • Identified and followed project CSS methodology
  • Used design tokens instead of hardcoded values
  • Leveraged framework utilities where possible
  • Avoided !important and deep overrides
  • Followed project naming conventions
  • Organized styles logically
  • Verified no unused styles in production build
  • Tested visual output in browser

Quick Reference

SituationAction
New component stylingCheck existing patterns first
Need specific colorUse design token, not hex code
Framework doesn't have utilityWrite minimal custom CSS
Styles not applyingCheck specificity, avoid !important
Large CSS fileExtract to utilities or components
Production bundle largeEnable CSS purging/tree-shaking

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Claude Code

30.05%
按下载量换算531

OpenCode

21.84%
按下载量换算386

Cursor

17.35%
按下载量换算306

Codex

11.23%
按下载量换算198

windsurf

7.6%
按下载量换算134

trae

3.36%
按下载量换算59

安全审计

暂无安全审计结果可展示。

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills