# Css Debugging

> Debugging patterns and workflows for CSS layout, stacking, paint, and rendering issues.

- **Type:** Skill
- **Install:** `agentstack add skill-caraya-agent-skills-css-debugging`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [caraya](https://agentstack.voostack.com/s/caraya)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [caraya](https://github.com/caraya)
- **Source:** https://github.com/caraya/agent-skills/tree/main/skills/css-debugging

## Install

```sh
agentstack add skill-caraya-agent-skills-css-debugging
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# CSS Debugging

Purpose: give a concise, repeatable workflow to diagnose and fix common CSS bugs (layout shifts, stacking/context, specificity, subpixel issues).

Workflow:
1. Reproduce in minimal page: strip to minimal HTML/CSS that reproduces the issue.
2. Inspect with DevTools: computed styles, layout outlines, box model, and event listeners.
3. Isolate the cause: toggle rules, disable properties, and check cascade/specificity.
4. Verify fix across breakpoints and devices.

Common problems & checks:
- Specificity and cascade: use DevTools "Force element state" and "Show matched styles".
- Stacking context / z-index: inspect transform/opacity/flex/grid creates contexts.
- Collapsing margins: check adjacent block margins and wrapper padding/border.
- Flexbox/grid sizing: look for min-height/min-width, flex-basis, and intrinsic sizing issues.
- Reflow/paint hotspots: use Performance → Rendering paint flashing to find expensive repaints.

Color-related debugging:
- For perceptual color mismatches, conversions between color spaces, or contrast failures, call the `color-expert` skill and re-evaluate palettes in OKLCH (unless `color-expert` recommends otherwise).

Tools and shortcuts:
- Chrome/Edge/Safari DevTools (Elements, Computed, Layout, Rendering tabs).
- `outline: 2px solid hotpink` for quick debugging of invisible elements.
- Use Lighthouse and accessibility linters for automated checks.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [caraya](https://github.com/caraya)
- **Source:** [caraya/agent-skills](https://github.com/caraya/agent-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-caraya-agent-skills-css-debugging
- Seller: https://agentstack.voostack.com/s/caraya
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
