/website-builder:component-integrationfrom website-builder
Provides patterns, setup scripts, and templates for integrating React components, MDX content, and Tailwind CSS into Astro websites with type safety and performance optimization.
Claude never picks this skill on its own
Claude Code cannot parse its frontmatter, so it ignores every field there: the description on this page is for you to read, but Claude never sees it. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /website-builder:component-integration still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Comprehensive patterns for integrating React components, MDX content, and Tailwind CSS into Astro websites with type safety, performance optimization, and best practices.
This skill provides:
Assess Current Setup
# Check existing integrations
bash scripts/validate-integration.sh
Install Required Integrations
# Setup React
bash scripts/setup-react.sh
# Setup MDX
bash scripts/setup-mdx.sh
# Setup Tailwind
bash scripts/setup-tailwind.sh
Validate Installation
Generate Component Structure
# Create new component
bash scripts/generate-component.sh ComponentName --type interactive
Apply Templates
Implement Type Safety
Configure Tailwind Theme
Create Component Variants
Setup Base Styles
Setup MDX Processing
Create MDX Layouts
Register Custom Components
Apply Islands Architecture
Optimize Component Loading
bash scripts/optimize-components.sh
Implement Code Splitting
Add Component Libraries
# Add shadcn/ui
bash scripts/add-component-library.sh shadcn-ui
Configure Library Theming
Create Wrapper Components
// Component with selective hydration
import { useState } from 'react';
interface Props {
initialCount?: number;
}
export default function Counter({ initialCount = 0 }: Props) {
const [count, setCount] = useState(initialCount);
return (
<button onClick={() => setCount(count + 1)}>
Count: {count}
</button>
);
}
Usage in Astro:
---
import Counter from '@/components/Counter';
---
<Counter client:visible initialCount={5} />
---
title: "Blog Post with Components"
---
import { Alert } from '@/components/Alert';
# My Blog Post
<Alert type="info">
This is custom component in MDX
</Alert>
import { cva, type VariantProps } from 'class-variance-authority';
const buttonVariants = cva(
'rounded-md font-medium transition-colors'
{
variants: {
variant: {
primary: 'bg-blue-600 text-white hover:bg-blue-700'
secondary: 'bg-gray-200 text-gray-900 hover:bg-gray-300'
}
size: {
sm: 'px-3 py-1.5 text-sm'
md: 'px-4 py-2 text-base'
lg: 'px-6 py-3 text-lg'
}
}
defaultVariants: {
variant: 'primary'
size: 'md'
}
}
);
type ButtonProps = VariantProps<typeof buttonVariants> & {
children: React.ReactNode;
};
export function Button({ variant, size, children }: ButtonProps) {
return (
<button className={buttonVariants({ variant, size })}>
{children}
</button>
);
}
Problem: Components render statically but don't have interactivity
Solution:
client:load, client:visible, or client:idleProblem: MDX files fail to compile
Solution:
Problem: Tailwind utilities not working in components
Solution:
rm -rf .astroProblem: TypeScript errors in React components
Solution:
Plugin: website-builder Version: 1.0.0
examples/basic-integration.md (opens in a new tab)examples/component-library-integration.md (opens in a new tab)examples/mdx-blog-post.md (opens in a new tab)scripts/add-component-library.sh (opens in a new tab)scripts/generate-component.sh (opens in a new tab)scripts/optimize-components.sh (opens in a new tab)scripts/setup-mdx.sh (opens in a new tab)scripts/setup-react.sh (opens in a new tab)scripts/setup-tailwind.sh (opens in a new tab)scripts/validate-integration.sh (opens in a new tab)templates/integration/astro-config-full.ts (opens in a new tab)templates/integration/tsconfig-components.json (opens in a new tab)templates/mdx/basic-mdx.mdx (opens in a new tab)templates/mdx/mdx-with-components.mdx (opens in a new tab)templates/react/basic-component.tsx (opens in a new tab)templates/react/component-with-context.tsx (opens in a new tab)templates/react/data-fetching-component.tsx (opens in a new tab)templates/react/form-component.tsx (opens in a new tab)templates/react/interactive-component.tsx (opens in a new tab)templates/react/island-component.tsx (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
astro, react-integration, mdx, tailwind-css, component-patterns, type-safety
npx claudepluginhub vanman2024/ai-dev-marketplace --plugin website-builderRead when SKILL.md points to them; scripts run unread.
6 skills in this plugin
/ai-content-generationAI-powered content and image generation using content-image-generation MCP with Google Imagen 3/4, Veo 2/3, Claude Sonnet, and Gemini 2.0. Use when generating marketing content, creating hero images, building blog posts, generating product descriptions, creating videos, optimizing AI prompts, estimating generation costs, or when user mentions Imagen, Veo, AI content, AI images, content generation, image generation, video generation, marketing copy, or Google AI./astro-patternsAstro PatternsComprehensive best practices, routing patterns, component architecture, and static site generation techniques for building high-performance Astro websites./Other plugins' skills for the same job