From design
Guidance for working with the modular CSS layer system. Helps developers understand where to add styles, how to validate changes, and maintain the 5-layer architecture.
How this skill is triggered — by the user, by Claude, or both
Slash command
/design:css-architectureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Purpose:** Educational guidance for working with the AIGENSA Vibe Coding Course's modular CSS system. This skill provides decision trees, workflows, and best practices for maintaining the 5-layer architecture.
Purpose: Educational guidance for working with the AIGENSA Vibe Coding Course's modular CSS system. This skill provides decision trees, workflows, and best practices for maintaining the 5-layer architecture.
Type: Guidance-focused (no automation)
The AIGENSA Vibe Coding Course uses a modular CSS architecture organized into 5 distinct layers. This architecture replaces the previous monolithic 1,216-line styles.css with 15 focused modules totaling ~28KB source (~19KB minified).
Benefits:
Build Process:
css-modules.json defines module orderasset-builder.ts concatenates modules sequentiallylightningcss minifies the result → output/styles.cssKey Principle: Module order matters. Variables must load before usage. Never reorder without understanding dependencies.
Use this decision tree to identify the correct layer for your styles:
flowchart TD
Start[I need to add styles] --> Q1{What are you styling?}
Q1 -->|Variables, themes, resets| Layer1[Layer 1: Foundation]
Q1 -->|Page structure, navigation| Layer2[Layer 2: Layout]
Q1 -->|Text, code, tables, lists| Layer3[Layer 3: Content]
Q1 -->|Interactive UI elements| Layer4[Layer 4: Components]
Q1 -->|Animations, breakpoints| Layer5[Layer 5: Utilities]
Layer1 --> L1Q{Which module?}
L1Q -->|CSS variables| V00[00-variables.css]
L1Q -->|Light theme| V01[01-theme-light.css]
L1Q -->|Base styles| V02[02-reset.css]
Layer2 --> L2Q{Which module?}
L2Q -->|Header/nav| V10[10-header.css]
L2Q -->|Grid/layout| V11[11-layout.css]
L2Q -->|Scrollbar| V12[12-scrollbar.css]
Layer3 --> L3Q{Which module?}
L3Q -->|Typography| V20[20-typography.css]
L3Q -->|Code/blockquote| V21[21-code.css]
L3Q -->|Tables| V22[22-tables.css]
L3Q -->|Lists| V23[23-lists.css]
Layer4 --> L4Q{Which module?}
L4Q -->|Images/charts| V30[30-media.css]
L4Q -->|Forms/buttons| V31[31-forms.css]
L4Q -->|AI Playground| V32[32-playground.css]
Layer5 --> L5Q{Which module?}
L5Q -->|Transitions/animations| V40[40-animations.css]
L5Q -->|Responsive| V41[41-responsive.css]
This skill is organized into focused guides:
1. The 5 Layers Guide @.claude/skills/css-architecture/layers-guide.md Understanding each layer's purpose, responsibility, and when to extend vs. create new modules.
2. Common Workflows @.claude/skills/css-architecture/workflows.md Step-by-step guided workflows for 7 common tasks: adding styles, creating components, fixing errors, etc.
3. Build & Validation @.claude/skills/css-architecture/build-validation.md How the build system works, npm scripts, pre-commit hooks, CI validation, and stylelint rules.
4. Decision Trees @.claude/skills/css-architecture/decision-trees.md Visual flowcharts to help you decide: Which layer? New module or extend? Variable or hard-coded?
5. Patterns & Conventions @.claude/skills/css-architecture/patterns.md CSS variable naming, class naming patterns, GSAP animations, theme mapping, spacing/shadow usage.
6. Troubleshooting @.claude/skills/css-architecture/troubleshooting.md Solutions for common issues: styles not applying, theme switching problems, validation errors, performance.
7. Architecture FAQ @.claude/skills/css-architecture/faq.md Frequently asked questions about the 5-layer architecture, module ordering, and design decisions.
Variable Conventions @.claude/skills/css-architecture/references/variable-conventions.md CSS variable naming strategies, primitive vs. semantic variables, and the design token system.
Common Fixes @.claude/skills/css-architecture/references/common-fixes.md Solutions for 15+ common stylelint errors and CSS issues with before/after examples.
Responsive Breakpoints @.claude/skills/css-architecture/references/responsive-breakpoints.md Mobile-first approach, breakpoint values, and responsive patterns for the course site.
Theme System @.claude/skills/css-architecture/references/theme-system.md How dark/light theme switching works, adding theme variables, and testing theme changes.
src/styles/
├── css-modules.json # Build manifest (module order)
├── README.md # Architecture documentation
│
├── Layer 1: Foundation
│ ├── 00-variables.css # CSS custom properties
│ ├── 01-theme-light.css # Light theme overrides
│ └── 02-reset.css # CSS reset, base styles
│
├── Layer 2: Layout
│ ├── 10-header.css # Navigation header
│ ├── 11-layout.css # Grid system
│ └── 12-scrollbar.css # Custom scrollbars
│
├── Layer 3: Content
│ ├── 20-typography.css # Headings, paragraphs
│ ├── 21-code.css # Code blocks, quotes
│ ├── 22-tables.css # Table styling
│ └── 23-lists.css # Lists, markers
│
├── Layer 4: Components
│ ├── 30-media.css # Images, charts
│ ├── 31-forms.css # Forms, buttons
│ └── 32-playground.css # AI Playground
│
└── Layer 5: Utilities
├── 40-animations.css # Animations, transitions
└── 41-responsive.css # Media queries
# Linting
npm run lint:css # Check for CSS errors
npm run lint:css:fix # Auto-fix issues
# Building
npm run build # Build HTML + CSS
npm run dev # Watch mode (auto-rebuild)
# Testing
npm run test # Run all tests
npm run test:charts # Test charts only
src/styles/README.mdsrc/styles/css-modules.jsonsrc/builders/asset-builder.ts.stylelintrc.jsonsrc/styles/00-variables.cssnpm run lint:cssThis skill provides comprehensive guidance for working with the modular CSS system. Use the decision trees, workflows, and reference materials to confidently add, modify, and validate styles while maintaining the 5-layer architecture.
Key principles:
Happy styling! 🎨
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub amdmax/claude_marketplace --plugin design