css-debug

A command that helps diagnose CSS problems, including layout, responsive design, browser compatibility, specificity, and the cascade—the rules that decide which style wins.

In plain words
What is it for?
Use it when Flexbox, Grid, media queries, positioning, stacking, spacing, or styles that are being overridden do not behave as expected.
Why use it?
It replaces trial-and-error styling with questions and checks that narrow down why an element is misplaced, overflowing, hidden, or using the wrong appearance.

Command

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.

agentmods
npx agentmods add commands/andronics/claude-plugin-css-pro/css-debug
Clone the repo
git clone --depth 1 https://github.com/andronics/claude-plugin-css-pro
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,936 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00013 $0.01936
Opus 5 $0.00006 $0.00968
Sonnet 5 $0.00003 $0.00387
Haiku 4.5 $0.00001 $0.00194

Measured yesterday against content hash d9b83a057c5a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

css-debug 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 yesterday.

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.

commands/css-debug.md · 391 lines

How it starts

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

CSS Debugging Assistant

I'll help you debug CSS issues systematically using proven techniques and tools.

What's the Problem?

Describe your CSS issue: $ARGUMENTS

If no description provided, I'll ask diagnostic questions.

Common CSS Issues I Can Debug

1. Layout Problems

  • Flexbox not working
  • Grid items overflowing
  • Collapsed container height
  • Centering not working
  • Unexpected wrapping

2. Specificity Conflicts

  • Styles not applying
  • Rules being overridden
  • !important issues
  • Cascade problems

3. Visual Bugs

  • Elements overlapping
  • Z-index not working
  • Positioning issues
  • Gap/spacing problems

4. Responsive Issues

  • Media queries not triggering
  • Mobile layout broken
  • Container queries not working

5. Browser Compatibility

  • Works in Chrome, broken in Safari
  • Vendor prefix missing
  • Feature not supported

Debugging Process

Step 1: Information Gathering

I'll ask:

  1. What's the expected behavior?
  2. What's actually happening?
  3. When does it occur? (viewport size, browser, etc.)
  4. Which element(s) are affected?
  5. Can you share the CSS code?

Step 2: Systematic Analysis

I'll check:

  • ✓ CSS syntax validity
  • ✓ Selector specificity
  • ✓ Cascade order
  • ✓ Box model values
  • ✓ Display properties
  • ✓ Positioning context
  • ✓ Z-index stacking
  • ✓ Browser DevTools computed values

Step 3: Root Cause Identification

Using elimination:

  1. Remove styles until problem disappears
  2. Add back one at a time
  3. Identify the specific rule causing the issue
  4. Understand why it's causing the problem

Step 4: Solution & Fix

Provide:

  • Root cause explanation
  • Specific fix with code
  • Why the fix works
  • How to prevent in future

Example Debugging Sessions

Example 1: "My flexbox isn't working!"

Your code:

.container {
  display: flex;
}

.item {
  width: 100%;
}

Problem: Items not growing/shrinking as expected

Analysis:

  • width: 100% prevents flex-grow from working
  • Flex items have min-width: auto by default
  • Content width determines minimum size

Read the full file on GitHub · 391 lines

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. yesterday First seen · 391 lines · 13 tokens per session scan A d9b83a057c5a

Subscribe to this mod's changes

css-debug is a command published in the GitHub repository andronics/claude-plugin-css-pro (2 stars, last pushed 10mo ago), licensed MIT. It adds 13 tokens to every session and 1,936 once invoked, about $0.0001 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.