stylelint

Lint CSS files with Stylelint and the Tailwind v4 plugin.

1|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/matthewharwood/dean-stack --skill stylelint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stylelint
Source: https://github.com/matthewharwood/dean-stack/tree/main/.claude/skills/stylelint
Command: npx skills add https://github.com/matthewharwood/dean-stack --skill stylelint

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stylelint enforces CSS correctness and consistency across the dean-stack repo, using the Tailwind v4 plugin to validate Tailwind directives while ensuring zero warnings at gate.

Core Features & Use Cases

  • Owns CSS linting and ensures that only CSS is linted by Stylelint; Biome handles TS/JS/JSON.
  • Validates Tailwind directives (@tailwind, @apply, @layer, etc.) via a syntax-aware plugin.
  • Integrates with CLI gate workflow to fail on warnings and support a watch mode for live development.

Quick Start

Run the stylelint gate to lint all CSS files with zero warnings.

Frequently Asked Questions about stylelint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I lint CSS files using Stylelint with Tailwind v4 directives?

Lint CSS files using Stylelint with the Tailwind v4 plugin to validate directives like @tailwind and @apply, enforcing zero warnings at gate to block commits.

What is the best way to prevent Biome from linting CSS in a repository?

Use Stylelint to own CSS linting so Biome only handles TS, JS, and JSON files, preventing overlapping linting rules across different file types.

Can I run Stylelint in watch mode during development?

Yes, you can wire stylelint --watch into your development workflows to provide live CSS linting feedback while editing stylesheets.

How does the Stylelint gate enforce zero warnings on commit?

The CLI gate workflow runs Stylelint to lint all CSS files and fails the build on any warnings, strictly blocking commits that introduce CSS errors.

Does the Stylelint Tailwind plugin validate @layer and @apply syntax?

Yes, the syntax-aware Tailwind v4 plugin validates Tailwind directives including @tailwind, @apply, and @layer to ensure correct CSS generation.