css-development
CSSの作成、要素のスタイリング、コードレビューなど、CSS全般の作業を効率的に支援するSkill。
📜 元の英語説明(参考)
This skill should be used when working with CSS, creating components, styling elements, refactoring styles, or reviewing CSS code. Triggers on "CSS", "styles", "Tailwind", "dark mode", "component styling", "semantic class", "@apply", "stylesheet". Routes to specialized sub-skills for creation, validation, or refactoring.
🇯🇵 日本人クリエイター向け解説
CSSの作成、要素のスタイリング、コードレビューなど、CSS全般の作業を効率的に支援するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o css-development.zip https://jpskill.com/download/6553.zip && unzip -o css-development.zip && rm css-development.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/6553.zip -OutFile "$d\css-development.zip"; Expand-Archive "$d\css-development.zip" -DestinationPath $d -Force; ri "$d\css-development.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
css-development.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
css-developmentフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
CSS開発スキル
概要
Tailwindとセマンティックコンポーネントパターンを使用したCSS開発のための包括的なワークフローです。このスキルは、コンテキストに基づいて適切な専門ワークフローに自動的にルーティングします。
このスキルは、以下の3つのサブスキルのいずれかを呼び出します。
css-development:create-component- 新しいCSSコンポーネントの作成css-development:validate- 既存のCSSのレビューcss-development:refactor- CSSをセマンティックパターンに変換
このスキルが適用される場合
Claude Codeは、以下の場合にこのスキルを自動的にロードします。
- 新しいCSSコンポーネントまたはスタイルを作成する
- 既存のCSSコードをレビューまたは検証する
- インラインスタイルまたはユーティリティクラスをリファクタリングする
- 任意のフレームワークでコンポーネントのスタイリングを扱う
- ダークモードのサポートを追加する必要がある
- CSSテストを作成する
CSS開発パターン
すべてのサブスキルは、これらのコアパターンに従います。CSSを扱う際には、このセクションを参照してください。
コア原則
- セマンティックネーミング - ユーティリティ名(
.btn-blue、.card-hdr)ではなく、記述的なクラス名(.button-primary、.card-header)を使用します。 - Tailwindコンポジション -
@applyディレクティブを介してTailwindユーティリティを活用します。 - デフォルトでダークモード - すべての色付き/インタラクティブな要素に
dark:バリアントを含めます。 - 作成よりもコンポジション - 新しいクラスを作成する前に、既存のクラスを再利用します。
- テストカバレッジ - 静的CSSテスト + コンポーネントレンダリングテスト
- ドキュメンテーション - 各コンポーネントクラスの上に用途コメントを記述します。
コンポーネントクラスパターン
/* Button component - Primary action button with hover states
Usage: <button className="button-primary">Click me</button> */
.button-primary {
@apply bg-indigo-500 hover:bg-indigo-700 dark:bg-indigo-600 dark:hover:bg-indigo-800;
@apply px-6 py-3 rounded-lg font-medium text-white;
@apply transition-all duration-200 hover:-translate-y-0.5;
}
主な特徴:
- 関連するユーティリティを論理的にグループ化します(背景、間隔、タイポグラフィ、トランジション)。
- ホバー/フォーカス/アクティブ状態を含めます。
dark:プレフィックスを使用してダークモードバリアントを含めます。- Tailwindの組み込みスケール(indigo-500、gray-800など)を使用します。
ファイル構造の慣例
styles/
├── components.css # すべてのセマンティックコンポーネントクラス
└── __tests__/
└── components.test.ts # CSSおよびコンポーネントテスト
マークアップ統合(フレームワーク非依存)
React、Vue、Svelte、またはバニラHTMLで動作します。
React:
const classes = `button-primary ${className}`.trim();
<button className={classes}>...</button>
バニラHTML:
<button class="button-primary custom-class">...</button>
Vue:
<button :class="['button-primary', customClass]">...</button>
主要原則: セマンティッククラスを適用し、カスタマイズのための追加クラスを許可します。
アトミックデザインレベル
- アトム: 基本的な構成要素(
.button、.input、.badge、.spinner) - 分子: 構成されたコンポーネント(
.card、.form-field、.empty-state) - 有機体: 複雑なコンポーネント(
.page-layout、.session-card、.conversation-timeline)
テストパターン
静的CSSテスト:
it('should have button component classes', () => {
const content = readFileSync('styles/components.css', 'utf-8');
expect(content).toContain('.button-primary');
});
コンポーネントレンダリングテスト:
it('applies semantic class and custom className', () => {
render(<Button variant="primary" className="custom" />);
expect(screen.getByRole('button')).toHaveClass('button-primary', 'custom');
});
ワークフロー: コンテキスト検出とルーティング
このスキルが呼び出されたら、以下の手順に従って適切なサブスキルにルーティングします。
ステップ1: コンテキストの分析
ユーザーのリクエストと最近の会話を見て、意図を判断します。
新しいコンポーネントを作成していますか?
- キーワード: "create"、"add"、"new component"、"build a"、"make a"
- ファイル: components.cssまたは新しいコンポーネント名の言及
- 意図: ユーザーが新しいCSSを追加したい
既存のCSSを検証していますか?
- キーワード: "review"、"validate"、"check"、"audit"、"look at"
- ファイル: 既存のCSSファイルまたはコンポーネントへの参照
- 意図: ユーザーが既存のCSSに関するフィードバックを求めている
CSSをリファクタリングしていますか?
- キーワード: "refactor"、"clean up"、"extract"、"improve"、"convert"
- コード: マークアップにインラインスタイルまたはユーティリティクラスが見える
- 意図: ユーザーが既存のCSSパターンを変換したい
ステップ2: サブスキルの選択
コンテキスト分析に基づいて:
作成する場合: Skillツールを使用してcss-development:create-componentを呼び出します。
検証する場合: Skillツールを使用してcss-development:validateを呼び出します。
リファクタリングする場合: Skillツールを使用してcss-development:refactorを呼び出します。
曖昧な場合: AskUserQuestionツールを使用してユーザーに質問します。
Question: "CSSで何をしたいですか?"
Options:
- "新しいコンポーネントを作成する" (新しいセマンティックCSSコンポーネントクラスの作成をガイドする)
- "既存のCSSを検証する" (確立されたパターンに対してCSSをレビューする)
- "CSSをリファクタリングする" (インライン/ユーティリティスタイルをセマンティックコンポーネントに変換する)
ステップ3: サブスキルの呼び出し
Skillツールを使用して、選択したサブスキルを呼び出します。
例:
create-componentワークフローにルーティングしています。
[Invoke Skill tool with skill: "css-development:create-component"]
ステップ4: 制御の引き渡し
サブスキルが呼び出されると、それが制御を引き継ぎます。メインスキルの役割は完了です。
重要な注意事項
- ルーティングをスキップしないでください: 常にコンテキストを分析し、適切なサブスキルを選択してください。
- サブスキルのロジックを重複させないでください: サブスキルにそれぞれのワークフローを処理させてください。
- パターン文書を参照してください: サブスキルは上記の文書化されたパターンを参照します。
- ユーザーは直接呼び出すことができます: ユーザーはサブスキルを直接呼び出すことができます(例: "use css-development:validate")。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
CSS Development Skill
Overview
Comprehensive workflow for CSS development using Tailwind + semantic component patterns. This skill automatically routes you to the appropriate specialized workflow based on context.
This skill will invoke one of three sub-skills:
css-development:create-component- Creating new CSS componentscss-development:validate- Reviewing existing CSScss-development:refactor- Transforming CSS to semantic patterns
When This Skill Applies
Claude Code will automatically load this skill when you:
- Create new CSS components or styles
- Review or validate existing CSS code
- Refactor inline styles or utility classes
- Work with component styling in any framework
- Need to add dark mode support
- Write CSS tests
CSS Development Patterns
All sub-skills follow these core patterns. Reference this section when working with CSS.
Core Principles
- Semantic Naming - Use descriptive class names (
.button-primary,.card-header) not utility names (.btn-blue,.card-hdr) - Tailwind Composition - Leverage Tailwind utilities via
@applydirective - Dark Mode by Default - Include
dark:variants for all colored/interactive elements - Composition Over Creation - Reuse existing classes before creating new ones
- Test Coverage - Static CSS tests + component rendering tests
- Documentation - Usage comments above each component class
Component Class Pattern
/* Button component - Primary action button with hover states
Usage: <button className="button-primary">Click me</button> */
.button-primary {
@apply bg-indigo-500 hover:bg-indigo-700 dark:bg-indigo-600 dark:hover:bg-indigo-800;
@apply px-6 py-3 rounded-lg font-medium text-white;
@apply transition-all duration-200 hover:-translate-y-0.5;
}
Key characteristics:
- Group related utilities logically (background, spacing, typography, transitions)
- Include hover/focus/active states
- Include dark mode variants using
dark:prefix - Use Tailwind's built-in scales (indigo-500, gray-800, etc.)
File Structure Convention
styles/
├── components.css # All semantic component classes
└── __tests__/
└── components.test.ts # CSS and component tests
Markup Integration (Framework-Agnostic)
Works with React, Vue, Svelte, or vanilla HTML:
React:
const classes = `button-primary ${className}`.trim();
<button className={classes}>...</button>
Vanilla HTML:
<button class="button-primary custom-class">...</button>
Vue:
<button :class="['button-primary', customClass]">...</button>
Key principle: Apply semantic class + allow additional classes for customization.
Atomic Design Levels
- Atoms: Basic building blocks (
.button,.input,.badge,.spinner) - Molecules: Composed components (
.card,.form-field,.empty-state) - Organisms: Complex components (
.page-layout,.session-card,.conversation-timeline)
Testing Pattern
Static CSS Tests:
it('should have button component classes', () => {
const content = readFileSync('styles/components.css', 'utf-8');
expect(content).toContain('.button-primary');
});
Component Rendering Tests:
it('applies semantic class and custom className', () => {
render(<Button variant="primary" className="custom" />);
expect(screen.getByRole('button')).toHaveClass('button-primary', 'custom');
});
Workflow: Context Detection and Routing
When this skill is invoked, follow these steps to route to the appropriate sub-skill:
Step 1: Analyze Context
Look at the user's request and recent conversation to determine intent:
Creating new components?
- Keywords: "create", "add", "new component", "build a", "make a"
- Files: Mention of components.css or new component names
- Intent: User wants to add new CSS
Validating existing CSS?
- Keywords: "review", "validate", "check", "audit", "look at"
- Files: Reference to existing CSS files or components
- Intent: User wants feedback on existing CSS
Refactoring CSS?
- Keywords: "refactor", "clean up", "extract", "improve", "convert"
- Code: Inline styles or utility classes in markup visible
- Intent: User wants to transform existing CSS patterns
Step 2: Choose Sub-Skill
Based on context analysis:
If creating: Use the Skill tool to invoke css-development:create-component
If validating: Use the Skill tool to invoke css-development:validate
If refactoring: Use the Skill tool to invoke css-development:refactor
If ambiguous: Ask the user using AskUserQuestion tool:
Question: "What would you like to do with CSS?"
Options:
- "Create new component" (Guide creating new semantic CSS component classes)
- "Validate existing CSS" (Review CSS against established patterns)
- "Refactor CSS" (Transform inline/utility styles to semantic components)
Step 3: Invoke Sub-Skill
Use the Skill tool to invoke the chosen sub-skill:
Example:
I'm routing you to the create-component workflow.
[Invoke Skill tool with skill: "css-development:create-component"]
Step 4: Hand Off Control
Once the sub-skill is invoked, it takes over. The main skill's job is complete.
Important Notes
- Don't skip routing: Always analyze context and choose the right sub-skill
- Don't duplicate sub-skill logic: Let sub-skills handle their workflows
- Reference pattern documentation: Sub-skills will reference the patterns documented above
- User can invoke directly: User can call sub-skills directly (e.g., "use css-development:validate")