MCPInstall

add-integration

Add and configure Astro integrations, adapters, and UI framework tooling.

Installs
405
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/incluud/astro-agent-skills --skill add-integration
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads add-integration automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Add Astro Integration

Use this skill when adding official or community integrations to an Astro project, including UI frameworks, styling tools, adapters, content tooling, and utilities.

If astro-best-practices is available, apply it alongside this skill for performance, accessibility, and hydration defaults.

Workflow

1. Classify the integration

Identify what is being added before changing anything:

  • UI framework: React, Vue, Svelte, Preact, Solid
  • Styling: Tailwind, UnoCSS, Sass, CSS tooling
  • Deployment adapter: Netlify, Vercel, Cloudflare, Node
  • Content tooling: MDX, Markdoc, CMS integrations
  • Utilities: sitemap, Partytown, analytics, database helpers

This determines whether the change affects rendering mode, hydration, config shape, or build output.

2. Prefer the official Astro path

Use astro add when an official integration supports it:

npx astro add react
npx astro add tailwind
npx astro add netlify

If the integration is community-maintained, install it with the project package manager and wire it into astro.config.* manually.

Before finalizing, verify the current setup in the official Astro docs or the integration README, especially when Astro or the integration recently changed versions.

If the project is also upgrading Astro itself, upgrade Astro and official integrations together. For Astro 6, confirm the environment is running Node 22.12.0 or newer before treating integration issues as application bugs.

3. Configure Astro deliberately

When editing astro.config.*:

  • add integrations explicitly and keep the array readable
  • set output only when the adapter or runtime requires it
  • avoid enabling server output unless the feature actually needs request-time work
  • preserve existing config ordering unless the integration docs require a specific sequence

Example:

import { defineConfig } from 'astro/config'
import react from '@astrojs/react'

export default defineConfig({
  integrations: [react()],
})

4. Handle framework components with restraint

When adding React, Vue, or another UI framework:

  • prefer .astro for static content
  • keep framework components for interactive islands
  • choose the lightest client directive that satisfies the UX

Hydration guidance:

  • client:visible for below-the-fold or deferred UI
  • client:idle for non-critical enhancements
  • client:load only for immediately interactive UI
  • client:only only when skipping server rendering is intentional

5. Finish the surrounding setup

Do not stop at package installation. Check for:

  • stylesheet imports or entrypoints
  • environment variables
  • config files such as tailwind.config.*
  • adapter-specific output requirements
  • platform deployment settings

For Tailwind v4, the minimum setup is often just:

@import "tailwindcss";

and importing that stylesheet from a shared layout or entrypoint.

6. Validate the result

After setup:

  • confirm the integration is registered in astro.config.*
  • run the project checks that make sense for the repo, such as astro check, astro build, or the existing test suite
  • confirm the deployment/runtime environment still matches the adapter requirements after major Astro upgrades
  • inspect for hydration mismatches, missing styles, or adapter/runtime drift

Common Failure Modes

  • Package installed but not added to integrations
  • Adapter added without matching output
  • Styles present but never imported
  • Framework component added where a plain .astro component would be simpler
  • Overuse of client:load, increasing JavaScript cost

FAQ

What does the add-integration skill do?

Add and configure Astro integrations, adapters, and UI framework tooling.

How do I install add-integration?

Run npx skills add https://github.com/incluud/astro-agent-skills --skill add-integration in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/add-integration/ (personal) or .claude/skills/add-integration/ (project).

Which AI agents can use add-integration?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is add-integration safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains add-integration?

It is published by incluud in incluud/astro-agent-skills. It has 405 recorded installs.

More from incluud/astro-agent-skills

View all →

astro-best-practices

incluud/astro-agent-skills

Apply performant, accessible, and maintainable defaults when building or reviewing Astro projects.

create-component

incluud/astro-agent-skills

Open the skill to read its SKILL.md instructions.

Frontend & Design429 installs

docs-lookup

incluud/astro-agent-skills

Open the skill to read its SKILL.md instructions.

Docs & Writing423 installs

content-collection

incluud/astro-agent-skills

Open the skill to read its SKILL.md instructions.

AI & Agents414 installs

migrate

incluud/astro-agent-skills

Plan and execute migrations to Astro or between Astro versions with minimal regressions.

AI & Agents366 installs

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs