Lightning CSS

Lightning CSS is a skill for Claude Code from laurigates/claude-plugins. It costs 40 tokens per session (1,867 once invoked), scanned A, original, MIT.

A CSS tool for transforming, bundling, and minifying stylesheets. CSS is the language that controls a web page's visual appearance; the tool can also adapt modern CSS to selected browser targets and support CSS modules.

In plain words
What is it for?
Use it when configuring CSS in Vite, replacing a PostCSS and autoprefixer setup, setting browser targets, enabling CSS modules, bundling imports, or minifying production CSS.
Why use it?
It can replace several separate CSS-processing steps, such as adding browser-specific prefixes, lowering newer syntax, combining imports, and reducing production file size.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the TodoWrite tool.

Part of the css-plugin plugin — 2 skills shipped together

Good fit Use it when configuring CSS in Vite, replacing a PostCSS and autoprefixer setup, setting browser targets, enabling CSS modules, bundling imports, or minifying production CSS.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/laurigates/claude-plugins/lightning-css
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.

Any agent
npx skills add laurigates/claude-plugins --skill lightning-css
Clone the repo
git clone --depth 1 https://github.com/laurigates/claude-plugins

Made for: Claude Code.

Or install css-plugin, the plugin that ships this one along with the rest of its 2 skills.

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 Lightning CSS

README.md
[![agentmods](https://agentmods.dev/badge/skills/laurigates/claude-plugins/lightning-css/github.svg)](https://agentmods.dev/skills/laurigates/claude-plugins/lightning-css)
Your own site
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/lightning-css"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/lightning-css/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 Lightning CSS

Your own site · 80×15
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/lightning-css"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/lightning-css.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,867 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00040 $0.01867
Opus 5 $0.00020 $0.00933
Sonnet 5 $0.00008 $0.00373
Haiku 4.5 $0.00004 $0.00187

Measured 2d ago against content hash 1c1d5701d6fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

Lightning CSS 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 2d 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.

css-plugin/skills/lightning-css/SKILL.md · 244 lines

How it starts

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

Lightning CSS

Lightning CSS is an extremely fast CSS parser, transformer, bundler, and minifier written in Rust. It replaces PostCSS + autoprefixer + postcss-preset-env in a single tool.

When to Use This Skill

Use this skill when... Use something else when...
Configuring CSS processing in Vite Generating utility classes (use UnoCSS)
Replacing PostCSS/autoprefixer pipeline Linting CSS rules (use Stylelint)
Setting up browser target transpilation Writing CSS-in-JS (use framework tooling)
Enabling CSS modules Formatting CSS code (use Biome/Prettier)
Minifying CSS for production Need PostCSS plugins with no Lightning CSS equivalent
Bundling CSS @import chains

Core Expertise

  • Rust-native: 100x+ faster than PostCSS for transforms
  • All-in-one: Replaces autoprefixer, postcss-preset-env, postcss-import, cssnano
  • Syntax lowering: Modern CSS to browser-compatible CSS based on targets
  • Vendor prefixing: Automatic addition and removal based on targets
  • CSS modules: Built-in scoped class names
  • Minification: Smaller output than esbuild's CSS minifier
  • Bundling: Inlines @import rules with dependency resolution

Installation

# As Vite dependency (most common)
npm add -D lightningcss browserslist

# Standalone CLI
npm add -g lightningcss-cli

# Bun
bun add -d lightningcss browserslist

Vite Integration

Basic Setup

// vite.config.ts
import { defineConfig } from 'vite'
import browserslist from 'browserslist'
import { browserslistToTargets } from 'lightningcss'

export default defineConfig({
  css: {
    transformer: 'lightningcss',
    lightningcss: {
      targets: browserslistToTargets(browserslist('>= 0.25%'))
    }
  },
  build: {
    cssMinify: 'lightningcss'
  }
})

With UnoCSS (Recommended Combo)

// vite.config.ts
import UnoCSS from 'unocss/vite'
import browserslist from 'browserslist'
import { browserslistToTargets } from 'lightningcss'

export default defineConfig({
  plugins: [UnoCSS()],
  css: {
    transformer: 'lightningcss',
    lightningcss: {
      targets: browserslistToTargets(browserslist('>= 0.25%'))
    }
  },
  build: {
    cssMinify: 'lightningcss'
  }
})

Read the full file on GitHub · 244 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. 2d ago First seen · 244 lines · 40 tokens per session scan A 1c1d5701d6fe

Subscribe to this mod's changes

Lightning CSS is a skill published in the GitHub repository laurigates/claude-plugins (58 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 1,867 once invoked, about $0.0002 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-09-06.

Related

Other skills, from other repositories

use

Reach Anthropic's first-party playground capability in one step: verify the upstream playground plugin is installed, invoke its skill for interactive single-file HTML explorers (controls beside a live preview, output is a prompt you paste back), or emit the exact install commands when it is absent. Use when: 'make me…

melodic-software/claude-code-plugins · 183 tokens

postcss-plugins

Use when postCSS plugin ecosystem — Autoprefixer, cssnano, nesting, custom plugins, preset configuration. Use when working with postcss plugins.

oyi77/1ai-skills · 36 tokens

motion

Use when reviewing motion quality, adding animation, transitions, hover effects, making the UI feel more alive, or when animations stutter and transitions jank. Covers three modes -- audit motion code against Disney's 12 principles (file:line findings), add purposeful animations and micro-interactions to a feature, or…

Sagargupta16/claude-skills · 81 tokens

inspecting-hermes-desktop-dom

When you are developing apps/desktop and the user is running that same app (hgui / npm run dev), you can read the live rendered DOM of the window they are looking at — computed styles, geometry, which CSS rule actually won, console output — instead of inferring it from .tsx and being wrong.

AtlasOmnia/hermes-custom-pack · 28 tokens

ux-interaction-patterns

UX laws as code — micro-interactions, animation choreography, skeleton UIs, optimistic UI, and performance UX patterns for world-class user experience.

systempromptio/systemprompt-marketplace · 34 tokens

modern-css-patterns

Production-ready modern CSS features — container queries, :has(), subgrid, scroll-driven animations, View Transitions, anchor positioning, and cascade layers.

systempromptio/systemprompt-marketplace · 34 tokens