plugins/astro-expert/skills/astro-styling/SKILL.md
Use when styling Astro components with scoped CSS, CSS Modules, Tailwind CSS, UnoCSS, or Sass. Covers class:list directive, global styles, CSS custom properties, and Vite-powered preprocessors.
npx skillsauth add fusengine/agents astro-stylingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Before ANY implementation, use TeamCreate to spawn 3 agents:
After implementation, run fuse-ai-pilot:sniper for validation.
.astro components with component-scoped CSSclass:list for conditional class application| Method | Scope | When to Use |
|--------|-------|-------------|
| <style> in .astro | Component | Default — scoped to component |
| <style is:global> | Global | Base styles, resets |
| CSS Modules .module.css | Component | Framework components (React, Vue) |
| Tailwind CSS | Utility | Rapid UI development |
| UnoCSS | Utility | Lightweight, configurable atomic CSS |
| Sass/SCSS | Component/Global | Advanced features, variables, mixins |
| Topic | Reference | When to Consult | |-------|-----------|-----------------| | Scoped CSS | scoped-css.md | Component styling | | CSS Modules | css-modules.md | Framework components | | Global styles | global-styles.md | Resets, base styles | | Tailwind | tailwind.md | Utility-first CSS | | UnoCSS | unocss.md | Atomic CSS engine | | Sass/SCSS | sass.md | Preprocessor features | | CSS Variables | css-variables.md | Design tokens, themes |
| Template | When to Use | |----------|-------------| | scoped-component.md | Component with scoped + conditional classes | | tailwind-setup.md | Full Tailwind CSS project setup | | unocss-setup.md | Full UnoCSS project setup |
<style> in .astro files by defaultis:global in components — Reserve for layouts and global filesis:global inside non-layout componentsdevelopment
Use when optimizing entity-based / semantic SEO 2026. Covers entity maps, Google Knowledge Graph resolution, salience scoring, passage-level ranking, about/sameAs/knowsAbout schema, Cloud Natural Language API validation.
development
Use when running SEO, GEO, schema, Core Web Vitals, sitemap, hreflang, E-E-A-T, AI Overviews, technical SEO, or structured data tasks. Covers full-site audits, single-page analysis, schema markup, content quality, AI search optimization, local SEO, sitemap/robots, internal linking, semantic clustering, and search experience.
development
Use when optimizing search experience (SXO). Covers intent matching, user personas, user stories, page-type analysis, dwell time, scroll depth, pogo-sticking prevention.
development
Use when optimizing local SEO. Covers Google Business Profile, NAP consistency, citations, reviews acquisition, Local Pack ranking, location pages, LocalBusiness schema.