amelia: Command for Claude Code

.claude/commands/review-css-complexity.md

review-css-complexity is a command for Claude Code from existential-birds/amelia. It costs 21 tokens per session (384 once invoked), scanned A, original, Apache-2.0.

A codebase scan for styling and CSS patterns that are harder to maintain than necessary. It looks for complicated positioning, sizing, spacing, and inline style calculations.

In plain words
What is it for?
Use it to review web styling for nested positioning, manual spacing calculations, complex size formulas, placeholder elements, and overly complicated inline styles.
Why use it?
It helps identify layout code that is difficult to understand or likely to break. The review points toward simpler use of common layout tools such as flexbox and grid.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is existential-birds/amelia's own configuration. It tells Claude Code how to work on amelia itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything amelia configures →

Reuse

Borrowing it

Nothing to install: this file belongs to existential-birds/amelia. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/existential-birds/amelia/main/.claude/commands/review-css-complexity.md
Clone the repo
git clone --depth 1 https://github.com/existential-birds/amelia

Made for: Claude Code.

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 review-css-complexity

README.md
[![agentmods](https://agentmods.dev/badge/commands/existential-birds/amelia/review-css-complexity/github.svg)](https://agentmods.dev/commands/existential-birds/amelia/review-css-complexity)
Your own site
<a href="https://agentmods.dev/commands/existential-birds/amelia/review-css-complexity"><img src="https://agentmods.dev/badge/commands/existential-birds/amelia/review-css-complexity/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 review-css-complexity

Your own site · 80×15
<a href="https://agentmods.dev/commands/existential-birds/amelia/review-css-complexity"><img src="https://agentmods.dev/badge/commands/existential-birds/amelia/review-css-complexity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 384 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.00021 $0.00384
Opus 5.5 $0.00008 $0.00154
Sonnet 5.5 $0.00004 $0.00077
Haiku 4.5 $0.00002 $0.00038

Measured 1mo ago against content hash 66421aeb7d8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

review-css-complexity 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 1mo 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.

.claude/commands/review-css-complexity.md · 45 lines

What it actually says

Scan the codebase for overly complex CSS and styling patterns. Look for:

Red Flags

  1. Absolute positioning with placeholders - If you see absolute positioning combined with invisible placeholder elements to maintain layout, it's probably overcomplicated. Use flexbox/grid instead.

  2. Complex width/height calculations - Formulas like width: ${(hasMore ? visibleCount + Math.min(3, hiddenCount) - 1 : visibleCount - 1) * 16 + 120}px are a code smell. Use CSS variables or simpler layouts.

  3. Nested positioning contexts - Multiple layers of relative/absolute positioning that could be flattened.

  4. Transform calculations - Complex translateX/translateY calculations when simple flexbox/grid would work.

  5. Manual spacing calculations - Computing gaps/offsets manually instead of using CSS gap, space-x, or margins.

What to Look For

Search for files containing:

  • style={{ with complex JavaScript expressions
  • Multiple layers of absolute and relative positioning
  • Placeholder divs with opacity-0 used for layout
  • Calculations involving multiple conditional operators in inline styles
  • Comments explaining complex positioning logic (if it needs explaining, it's too complex)

Good Alternatives

  • Flexbox with -space-x-* for overlapping elements
  • CSS Grid for complex layouts
  • CSS custom properties for dynamic values
  • Tailwind utility classes over inline styles

Output

For each file with issues:

  1. File path and line numbers
  2. What's overcomplicated
  3. Suggested simpler approach
  4. Estimated complexity reduction (high/medium/low priority)

Focus on dashboard/src and amelia frontend code.

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. 1mo ago First seen · 45 lines · 21 tokens per session scan A 66421aeb7d8b

Subscribe to this mod's changes

review-css-complexity is a command published in the GitHub repository existential-birds/amelia (21 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 21 tokens to every session and 384 once invoked, about $0.0001 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-08-30.