بنقرة واحدة
add-integration
Add and configure Astro integrations, adapters, and UI framework tooling.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Add and configure Astro integrations, adapters, and UI framework tooling.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Set up and evolve Astro content collections with typed schemas and reliable querying patterns.
Plan and execute migrations to Astro or between Astro versions with minimal regressions.
Apply performant, accessible, and maintainable defaults when building or reviewing Astro projects.
Create Astro components, pages, and layouts with accessible markup and minimal client-side JavaScript.
Look up official Astro documentation and answer version-sensitive Astro questions accurately.
| name | add-integration |
| description | Add and configure Astro integrations, adapters, and UI framework tooling. |
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.
Identify what is being added before changing anything:
This determines whether the change affects rendering mode, hydration, config shape, or build output.
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.
When editing astro.config.*:
output only when the adapter or runtime requires itExample:
import { defineConfig } from 'astro/config'
import react from '@astrojs/react'
export default defineConfig({
integrations: [react()],
})
When adding React, Vue, or another UI framework:
.astro for static contentHydration guidance:
client:visible for below-the-fold or deferred UIclient:idle for non-critical enhancementsclient:load only for immediately interactive UIclient:only only when skipping server rendering is intentionalDo not stop at package installation. Check for:
tailwind.config.*For Tailwind v4, the minimum setup is often just:
@import "tailwindcss";
and importing that stylesheet from a shared layout or entrypoint.
After setup:
astro.config.*astro check, astro build, or the existing test suiteintegrationsoutput.astro component would be simplerclient:load, increasing JavaScript cost