Solid foundation for keeping CSS organized at scale. Covers BEM, SMACSS, CSS-in-JS, utility-first patterns, and CSS custom properties with practical examples for each. The naming convention guides are especially useful if you're onboarding developers or trying to standardize across teams. Most valuable when you're dealing with component libraries or design systems where consistency actually matters. The BEM examples show the classic block/element/modifier structure clearly, and the best practices section is refreshingly brief instead of lecturing you. If your stylesheets are turning into spaghetti or your team keeps arguing about class names, this gives you concrete patterns to point to.

skills.sh installs
969
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill css-architecture --agent claude-code

Installs into .claude/skills of the current project.

Files

CSS Architecture

Table of Contents

Overview

Build maintainable CSS systems using methodologies like BEM (Block Element Modifier), SMACSS, and CSS-in-JS patterns with proper organization and conventions.

When to Use

  • Large-scale stylesheets
  • Component-based styling
  • Design system development
  • Multiple team collaboration
  • CSS scalability and reusability

Quick Start

Minimal working example:

/* Block - standalone component */
.button {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

/* Element - component part */
.button__icon {
  margin-right: 8px;
  vertical-align: middle;
}

/* Modifier - variant */
.button--primary {
  background-color: #007bff;
  color: white;
}

.button--primary:hover {
  background-color: #0056b3;
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Frontend Development, Code Review & Quality, AI & Agent Building
First seen
May 16, 2026

More from aj-geddes/useful-ai-prompts

All 258
1auth0 avatarauth0-react-nativeauth0/agent-skillsUse when adding Auth0 login, logout, or biometric auth to a bare React Native app (not Expo). Integrates react-native-auth0 with native deep linking.963skills.sh installs
2appandflow avatarreact-native-ease-refactorappandflow/react-native-easeScan for Animated/Reanimated code and migrate to EaseView953skills.sh installs
3heyman333 avatarapple-ui-designerheyman333/atelier-uiRedesign mobile app UI to feel unmistakably Apple-like, iOS-forward, and native. Use this skill when building iOS apps, applying Apple Human Interface Guideline916skills.sh installs
4affaan-m avatarreact-testingaffaan-m/everything-claude-codereact testing910skills.sh installs
5affaan-m avatarreact-performanceaffaan-m/everything-claude-codereact performance903skills.sh installs
6carmahhawwari avatarui-design-braincarmahhawwari/ui-design-brainui design brain877skills.sh installs