KS
Killer-Skills

astro-tailwind-expert — how to use astro-tailwind-expert how to use astro-tailwind-expert, astro-tailwind-expert setup guide, what is astro-tailwind-expert, astro-tailwind-expert vs other frameworks, astro-tailwind-expert install, astro and tailwind integration, tailwind v4 tutorial, astro routing tutorial, vite and typescript setup

v1.0.0
GitHub

About this Skill

Perfect for Frontend Agents needing efficient Astro project management with Tailwind styling. astro-tailwind-expert is a skill that integrates Astro and Tailwind for optimized web development, utilizing technologies like Vite and TypeScript.

Features

Utilizes Astro for routing, treating src/pages/ as the routing surface
Leverages Tailwind v4 via @tailwindcss/vite for styling
Manages shared structure in src/layouts/ with a default layout in src/layouts/Layout.astro
Loads global styles from src/styles/global.css
Supports aliasing with @/* for src/*, configured in tsconfig.json
Streamlines build output in the dist directory

# Core Topics

ZafTec ZafTec
[0]
[0]
Updated: 3/6/2026

Quality Score

Top 5%
29
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add ZafTec/zaf_tech_landing/astro-tailwind-expert

Agent Capability Analysis

The astro-tailwind-expert MCP Server by ZafTec is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use astro-tailwind-expert, astro-tailwind-expert setup guide, what is astro-tailwind-expert.

Ideal Agent Persona

Perfect for Frontend Agents needing efficient Astro project management with Tailwind styling.

Core Value

Empowers agents to streamline routing and layout management using Astro and Tailwind v4 via @tailwindcss/vite, while leveraging global styles from src/styles/global.css and shared structures in src/layouts/

Capabilities Granted for astro-tailwind-expert MCP Server

Streamlining Astro project routing using src/pages/
Managing layouts with src/layouts/Layout.astro
Applying global styles from src/styles/global.css
Utilizing Tailwind v4 for styling via @tailwindcss/vite

! Prerequisites & Limits

  • Requires Astro project setup
  • Dependent on Tailwind v4 via @tailwindcss/vite
  • Limited to projects using src/pages/ as routing surface
Project
SKILL.md
3.8 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Astro + Tailwind Expert (Repo Skill)

Use these project facts

  • Treat src/pages/ as the routing surface. Each .astro or .md file becomes a route.
  • Keep shared structure in src/layouts/. The default layout is src/layouts/Layout.astro.
  • Load global styles from src/styles/global.css (already imported in Layout.astro).
  • Rely on Tailwind v4 via @tailwindcss/vite in astro.config.mjs.
  • Use the @/* alias for src/* (configured in tsconfig.json).
  • Leave build output in dist/ and dependencies in node_modules/ untouched.
  • Refer to Astro docs: https://docs.astro.build/llms-full.txt and Tailwind docs: https://tailwindcss.com/docs for guidance. Use Context7 and/or Astro Docs MCP for up-to-date info.
  • Use Bun for all package operations (bun add, bun remove, bun update) instead of npm.

Workflow: create or update a page

  1. Create or edit a file in src/pages/.
  2. Import the layout with import Layout from '@/layouts/Layout.astro';.
  3. Wrap page content in <Layout>...</Layout>.
  4. Use Tailwind utility classes for styling.
  5. If the page needs a sub-route, create a folder in src/pages/ and add index.astro.

Workflow: add a new layout or shared wrapper

  1. Create a new layout in src/layouts/.
  2. Import @/styles/global.css once in the layout frontmatter.
  3. Provide a <slot /> for page content.
  4. Use this layout by importing it in pages that need it.

Workflow: add a reusable component

  1. Create src/components/ if it does not exist.
  2. Add .astro components there.
  3. Keep components focused and stateless unless state is required.
  4. Use component props with Astro.props in frontmatter.
  5. Import components with @/components/....

Workflow: use client islands

  • Keep pages mostly static; hydrate only what needs interactivity.
  • Use client:load, client:visible, or client:idle on React/TSX islands.
  • Avoid global client JS when an island will do.
  • Prefer is:inline scripts for small interactions scoped to a section.

Workflow: use images

  • Use import { Image } from 'astro:assets' for optimized images.
  • Store optimized images under src/assets/ and import them.
  • Keep unoptimized/static files (favicons, robots.txt, manifest) under public/.
  • Provide explicit width, height, and sizes for Image.

Workflow: environment variables

  • For build-time config, use import.meta.env.
  • For runtime server config (SSR/API routes on Node), prefer process.env.
  • Never expose secrets to the client; only use public vars in client code.

Workflow: style with Tailwind

  • Prefer utility classes over custom CSS for one-off styles.
  • Place shared or base styles in src/styles/global.css.
  • If you need design tokens or theme extension, add a Tailwind config and include Astro file globs in content.
  • Keep class names readable and scoped to the element they affect.

Workflow: author Markdown routes

  • Add .md files under src/pages/ for simple content routes.
  • Use frontmatter for titles, metadata, or layout selection.
  • Keep Markdown lightweight; move advanced layouts to .astro.

Astro patterns to use

  • Use frontmatter for imports and server-side logic.
  • Use class:list only when conditional classes are necessary.
  • Keep layout structure in Layout folder; keep page-specific markup in pages.
  • Make use of @/ alias for cleaner imports. Implement it if not configured.
  • Prefer export const prerender = false for API routes that must run at request time.
  • Refer to latest docs online for new features or best practices.

Quality checks

  • Run bun dev for local development.
  • Run bun build before shipping changes.
  • Use bun preview to verify the built output.

Change discipline

  • Make minimal, focused edits.
  • Avoid editing generated output in dist/.
  • Avoid editing dependency artifacts in node_modules/ or lockfiles unless asked.

Related Skills

Looking for an alternative to astro-tailwind-expert or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication