AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Css

skill-mintuz-skills-css · by mintuz

WHEN authoring CSS/styles/layout for web UI; outputs production-ready, accessible, maintainable CSS.

No reviews yet
0 installs
34 views
0.0% view→install

Install

$ agentstack add skill-mintuz-skills-css

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-mintuz-skills-css)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
7mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Css? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

CSS Best Practices

Production-grade CSS development with architectural principles, proper specificity management, and maintainable patterns.

Core Principles

  1. Single Responsibility - Each class handles one concern only
  2. Open/Closed - Open for extension, closed for modification
  3. Immutable CSS - Utilities and objects never change after creation
  4. Behavior over implementation - Focus on what the code does, not how
  5. Accessibility first - Semantic HTML before ARIA, proper contrast and sizing

Quick Reference

| Topic | Guide | | -------------------------------------------------------- | ----------------------------------------------------------------------- | | Specificity hierarchy, safe techniques, !important rules | [specificity.md](references/specificity.md) | | rem vs px, margins, layout algorithms | [units-margins.md](references/units-margins.md) | | @extend vs mixins, refactoring workflow, code smells | [preprocessors-refactoring.md](references/preprocessors-refactoring.md) | | Architectural principles and common code patterns | [patterns.md](references/patterns.md) |

When to Use Each Guide

Specificity

Use [specificity.md](references/specificity.md) when you need:

  • Specificity hierarchy and calculations
  • Safe techniques (self-chaining, attribute selectors)
  • Anti-patterns (IDs, deep nesting, qualified selectors)
  • !important rules (proactive vs reactive)
  • Shorthand property gotchas
  • Alternatives to reactive !important

Units and Margins

Use [units-margins.md](references/units-margins.md) when you need:

  • rem vs px decision framework
  • Line-height best practices
  • Margin encapsulation rules
  • Single-direction margin patterns
  • Margin collapse behavior
  • Layout algorithm awareness (Flow, Flexbox, Grid)
  • Common gotchas (z-index, magic space under images)

Preprocessors and Refactoring

Use [preprocessors-refactoring.md](references/preprocessors-refactoring.md) when you need:

  • @extend vs mixins guidance
  • Avoiding & concatenation
  • CSS @import performance issues
  • Finding dead CSS with beacons
  • The Three I's refactoring workflow
  • Code smell reference tables

Patterns

Use [patterns.md](references/patterns.md) when you need:

  • Single Responsibility Principle examples
  • Open/Closed Principle patterns
  • Immutable CSS patterns and prefixes
  • Component without margin examples
  • Utility class patterns
  • Self-chaining for specificity
  • CSS custom properties for design scales

Quick Reference: Decision Trees

Should I use !important?

Is this a utility class that must be immutable?
├── Yes → Use !important (proactive)
└── No → Is there a specificity conflict?
    ├── Yes → Try: self-chain, attribute selector, or restructure cascade
    └── No → Don't use !important

Should I use px or rem?

Should this scale with user font preferences?
├── Yes → Use rem
│   Examples: font-size, vertical text margins, media queries
└── No → Use px
    Examples: borders, box-shadows, horizontal padding

Should I use shorthand?

Am I intentionally setting ALL related properties?
├── Yes → Shorthand is fine
└── No → Use longhand to avoid unintentional resets

Should component have margin?

Is this a layout component (grid, stack, container)?
├── Yes → Margin/gap is appropriate
└── No → Move spacing to parent or use utility classes

@extend or mixin?

Are these selectors thematically related (same component)?
├── Yes → @extend might be acceptable
└── No → Use mixin (safer, doesn't disrupt source order)

How should I refactor this CSS?

Step 1: Identify - Is this frequently used and problematic?
├── Yes → Continue
└── No → Skip refactoring, focus elsewhere

Step 2: Isolate - Build new version separately
├── Use CodePen/jsFiddle
└── Don't build on top of existing CSS

Step 3: Implement - Reintegrate carefully
├── Component fixes → component's partial
└── Legacy conflicts → shame.css

Summary Checklist

Before committing CSS, verify:

  • [ ] Classes follow single responsibility (structure separate from cosmetics)
  • [ ] No ID selectors for styling
  • [ ] No reactive !important (only proactive for utilities)
  • [ ] Components have no margin (spacing controlled by parent)
  • [ ] Using rem for font-size and scalable spacing
  • [ ] Using px for borders, shadows, and fixed visual elements
  • [ ] Longhand properties when only setting one value
  • [ ] No deep nesting (4+ levels)
  • [ ] No qualified selectors (e.g., ul.nav)
  • [ ] Layout algorithm appropriate for context (Flow, Flex, Grid)
  • [ ] Accessible color contrast ratios
  • [ ] Semantic HTML before adding ARIA

Source & license

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

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

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.