css-architecture

css-architecture is a skill for Claude Code, Codex from saajunaid/caddis-plugin. It costs 44 tokens per session (2,613 once invoked), scanned A, original, MIT.

A set of conventions for organizing CSS in frontend projects. It covers design tokens, Tailwind, CSS Modules, responsive layouts, dark mode, container queries, typography, and animations.

In plain words
What is it for?
Use it to choose CSS organization patterns and implement responsive layouts, custom properties, dark mode, container queries, and animations.
Why use it?
It helps keep styles predictable and maintainable as a user interface grows across screen sizes and themes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to choose CSS organization patterns and implement responsive layouts, custom properties, dark mode, container queries, and animations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saajunaid/caddis-plugin/css-architecture
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add saajunaid/caddis-plugin --skill css-architecture
Clone the repo
git clone --depth 1 https://github.com/saajunaid/caddis-plugin

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for css-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/css-architecture/github.svg)](https://agentmods.dev/skills/saajunaid/caddis-plugin/css-architecture)
Your own site
<a href="https://agentmods.dev/skills/saajunaid/caddis-plugin/css-architecture"><img src="https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/css-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for css-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/saajunaid/caddis-plugin/css-architecture"><img src="https://agentmods.dev/badge/skills/saajunaid/caddis-plugin/css-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.02613
Opus 5.5 $0.00018 $0.01045
Sonnet 5.5 $0.00009 $0.00523
Haiku 4.5 $0.00004 $0.00261

Measured 29d ago against content hash fb7d11461300, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

css-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 29d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/frontend/css-architecture/SKILL.md · 306 lines

How it starts

The opening of the file, as written. The whole thing — 306 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CSS Architecture Skill

How to implement what frontend-design specifies. Covers design token strategy, Tailwind conventions, responsive patterns, dark mode, and animation architecture.

1. Design Token Strategy — CSS Custom Properties

Hierarchy (global → component)

/* Layer 1: Primitive tokens (raw values) */
:root {
  --color-slate-900: #0f172a;
  --color-slate-100: #f1f5f9;
  --color-amber-500: #f59e0b;
  --space-4: 1rem;
  --space-8: 2rem;
  --radius-md: 0.5rem;
  --font-sans: 'Inter Variable', system-ui, sans-serif;

  /* Layer 2: Semantic tokens (intent) */
  --color-bg: var(--color-slate-900);
  --color-surface: hsl(220 15% 12%);
  --color-text: var(--color-slate-100);
  --color-accent: var(--color-amber-500);
  --color-border: hsl(220 15% 20%);

  /* Layer 3: Component tokens */
  --button-bg: var(--color-accent);
  --button-text: var(--color-slate-900);
  --card-padding: var(--space-8);
}

Naming Conventions

  • Primitive: --color-{hue}-{shade}, --space-{n}, --radius-{size}
  • Semantic: --color-{role} (bg, surface, text, accent, border, error, success)
  • Component: --{component}-{property} (button-bg, card-radius)
  • Never skip semantic layer — primitives must not be used directly in components.

2. Tailwind Conventions

v3 Config (tailwind.config.ts)

import type { Config } from 'tailwindcss'
import { fontFamily } from 'tailwindcss/defaultTheme'

const config: Config = {
  content: ['./src/**/*.{ts,tsx,mdx}'],
  darkMode: 'class',  // or 'media'
  theme: {
    extend: {
      colors: {
        // Map to CSS custom properties so tokens work everywhere
        bg: 'hsl(var(--color-bg) / <alpha-value>)',
        surface: 'hsl(var(--color-surface) / <alpha-value>)',
        accent: 'hsl(var(--color-accent) / <alpha-value>)',
        border: 'hsl(var(--color-border) / <alpha-value>)',
      },
      fontFamily: {
        sans: ['var(--font-sans)', ...fontFamily.sans],
        display: ['var(--font-display)', ...fontFamily.serif],
      },
      borderRadius: { DEFAULT: 'var(--radius-md)' },
      animation: {
        'fade-up': 'fadeUp 0.4s ease-out',
        'fade-in': 'fadeIn 0.3s ease-out',
      },
      keyframes: {
        fadeUp: { from: { opacity: '0', transform: 'translateY(12px)' }, to: { opacity: '1', transform: 'none' } },
        fadeIn: { from: { opacity: '0' }, to: { opacity: '1' } },
      },
    },
  },
  plugins: [
    require('@tailwindcss/typography'),
    require('@tailwindcss/container-queries'),
  ],
}
export default config

Read the full file on GitHub · 306 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 29d ago Changed · -31 tokens per session fb7d11461300
  2. 1mo ago First seen · 306 lines · 75 tokens per session scan A f743ba6c03af

Subscribe to this mod's changes

css-architecture is a skill published in the GitHub repository saajunaid/caddis-plugin (0 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 2,613 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

render-html-page

Convert a finished trip plan into a polished, self-contained HTML page using the design system.

mochow13/keen-agent · 22 tokens

moai-design-tools

Design tool integration specialist covering Figma MCP, Pencil renderer, and Pencil-to-code export. Use when fetching design context from Figma, rendering Pencil designs, or exporting to React/Tailwind code.

modu-ai/moai-adk · 45 tokens

moai-ref-ui-polish

UI polish and interface-completion reference: the small visual details — concentric border radius, optical alignment, shadow-vs-border, motion easing, typography smoothing, tabular numbers, icon stroke weight, hit areas — that separate polished interfaces from generic ones. Agent-extending skill that amplifies…

modu-ai/moai-adk · 98 tokens

mcp-host-styling-integration

Integrates MCP App UI with host theming system. Applies host CSS variables, handles onhostcontextchanged, safe area insets, display mode detection, and fullscreen configuration.

a5c-ai/babysitter · 44 tokens

anti-slop-frontend

A mechanical, countable anti-slop checklist for AI-generated frontend. Catches the specific signatures an undirected model defaults to: AI-purple glows, Inter-everywhere, em-dashes, div-based fake screenshots, eyebrow-on-every-section, beige+brass "premium" palettes, generic Jane Doe / Acme data. Advisory layer that…

BlackBeltTechnology/pi-agent-dashboard · 147 tokens

accessibility-a11y

Semantic HTML, keyboard navigation, focus states, ARIA labels, skip links, and WCAG contrast requirements. Use when ensuring accessibility compliance, implementing keyboard navigation, or adding screen reader support.

BlackBeltTechnology/pi-agent-dashboard · 44 tokens