Borrowing it
Nothing to install: this file belongs to Piyush8296/claude-workspace. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Piyush8296/claude-workspace/main/.claude/skills/css-architecture/SKILL.mdgit clone --depth 1 https://github.com/Piyush8296/claude-workspaceWrote 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.
[](https://agentmods.dev/skills/piyush8296/claude-workspace/css-architecture)<a href="https://agentmods.dev/skills/piyush8296/claude-workspace/css-architecture"><img src="https://agentmods.dev/badge/skills/piyush8296/claude-workspace/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.
<a href="https://agentmods.dev/skills/piyush8296/claude-workspace/css-architecture"><img src="https://agentmods.dev/badge/skills/piyush8296/claude-workspace/css-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.01635 |
| Opus 5 | $0.00018 | $0.00817 |
| Sonnet 5 | $0.00007 | $0.00327 |
| Haiku 4.5 | $0.00004 | $0.00163 |
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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CSS Architecture
Styling Strategy Decision
| Approach | When | Trade-offs |
|---|---|---|
| Tailwind CSS | Most components, rapid iteration | Verbose JSX, but zero unused CSS |
| CSS Modules | Complex animations, stateful styles | Scoped by default, slightly more setup |
| CSS Custom Properties | Theme tokens, dynamic values | Great for runtime theming |
Inline style |
Only truly dynamic values | style={{ '--progress': ${pct}% }} |
Tailwind CSS Patterns
Class Order Convention
Follow a consistent order for readability:
layout > position > sizing > spacing > typography > visual > state > responsive
<div className="
flex items-center gap-4 {/* layout */}
relative {/* position */}
w-full max-w-md h-12 {/* sizing */}
px-4 py-2 mt-6 {/* spacing */}
text-sm font-medium text-gray-900 {/* typography */}
bg-white rounded-lg shadow-sm border {/* visual */}
hover:shadow-md focus:ring-2 {/* state */}
md:max-w-lg lg:gap-6 {/* responsive */}
">
Extracting Repeated Patterns
// GOOD: Extract into a component (preserves tree-shaking)
function Badge({ variant, children }: BadgeProps) {
const styles = {
info: 'bg-blue-50 text-blue-700 ring-blue-600/20',
success: 'bg-green-50 text-green-700 ring-green-600/20',
warning: 'bg-yellow-50 text-yellow-800 ring-yellow-600/20',
error: 'bg-red-50 text-red-700 ring-red-600/20',
};
return (
<span className={`inline-flex items-center rounded-md px-2 py-1 text-xs font-medium ring-1 ring-inset ${styles[variant]}`}>
{children}
</span>
);
}
// AVOID: @apply in CSS (breaks tree-shaking)
// .badge { @apply inline-flex items-center rounded-md ... }
Conditional Classes
import { clsx } from 'clsx'; // or classnames
import { twMerge } from 'tailwind-merge';
// Utility for safe Tailwind class merging
function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
// Usage
<button
className={cn(
'rounded-lg px-4 py-2 font-medium transition-colors',
variant === 'primary' && 'bg-blue-600 text-white hover:bg-blue-700',
variant === 'ghost' && 'bg-transparent text-gray-700 hover:bg-gray-100',
disabled && 'opacity-50 cursor-not-allowed',
)}
/>
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.
- 8d ago First seen · 211 lines · 37 tokens per session scan A 63cb53e8797f
css-architecture is a skill published in the GitHub repository Piyush8296/claude-workspace (2 stars, last pushed 4mo ago), licensed MIT. It adds 37 tokens to every session and 1,635 once invoked, about $0.0002 per session on Opus 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-08-31.
Other skills, from other repositories
animation-patterns
SwiftUI animation patterns including springs, transitions, PhaseAnimator, KeyframeAnimator, SF Symbol effects, scroll-driven effects, mesh gradients, text renderers, and shader effects. Use when implementing, reviewing, or fixing animation or visual-effect code on iOS/macOS.
frontend-enhancer
This skill should be used when enhancing the visual design and aesthetics of web applications. It provides modern UI components, design patterns, color palettes, animations, and layout templates. REQUIRES ui-research skill first. Use this skill for tasks like improving styling, creating responsive designs…
generic-design-system
Complete design system reference for any project - colors, typography, spacing, components, animations. Adapts to project theme and tech stack. Use when implementing UI, choosing colors, creating animations, or ensuring brand consistency. For new design systems, use ui-research skill first.
generic-react-design-system
Complete design system reference for React applications. Covers colors, typography, spacing, component patterns, glassmorphism effects, GPU-accelerated animations, and WCAG AA accessibility. Use when implementing UI, choosing colors, applying spacing, creating components, or ensuring brand consistency.
generic-static-design-system
Complete design system reference for static HTML/CSS/JS sites. Covers colors, typography, component patterns, animations, and accessibility. Use when implementing UI, choosing colors, or ensuring brand consistency.
generic-static-ux-designer
Professional UI/UX design expertise for static HTML/CSS/JS sites. Covers design thinking, user psychology, visual hierarchy, minimalist interaction patterns, accessibility, and performance-driven design. Use when designing features, improving UX, or conducting design reviews.