šØ EXECUTION NOTICE FOR CLAUDE
When you invoke this command via SlashCommand, the system returns THESE INSTRUCTIONS below.
YOU are the executor. This is NOT an autonomous subprocess.
- ā
The phases below are YOUR execution checklist
- ā
YOU must run each phase immediately using tools (Bash, Read, Write, Edit, TodoWrite)
- ā
Complete ALL phases before considering this command done
- ā DON't wait for "the command to complete" - YOU complete it by executing the phases
- ā DON't treat this as status output - it IS your instruction set
Immediately after SlashCommand returns, start executing Phase 0, then Phase 1, etc.
See @CLAUDE.md section "SlashCommand Execution - YOU Are The Executor" for detailed explanation.
Available Skills
This commands has access to the following skills from the website-builder plugin:
- ai-content-generation: AI-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-patterns: Astro best practices, routing patterns, component architecture, and static site generation techniques. Use when building Astro websites, setting up routing, designing component architecture, configuring static site generation, optimizing build performance, implementing content strategies, or when user mentions Astro patterns, routing, component design, SSG, static sites, or Astro best practices.
- astro-setup: Provides installation, prerequisite checking, and project initialization for Astro websites with AI Tech Stack 1 integration
- component-integration: React, MDX, and Tailwind CSS integration patterns for Astro websites. Use when adding React components, configuring MDX content, setting up Tailwind styling, integrating component libraries, building interactive UI elements, or when user mentions React integration, MDX setup, Tailwind configuration, component patterns, or UI frameworks.
- content-collections: Astro content collections setup, type-safe schemas, query patterns, and frontmatter validation. Use when building Astro sites, setting up content collections, creating collection schemas, querying content, validating frontmatter, or when user mentions Astro collections, content management, MDX content, type-safe content, or collection queries.
- supabase-cms: Supabase CMS integration patterns, schema design, RLS policies, and content management for Astro websites. Use when building CMS systems, setting up Supabase backends, creating content schemas, implementing RLS security, or when user mentions Supabase CMS, headless CMS, content management, database schemas, or Row Level Security.
To use a skill:
!{skill skill-name}
Use skills when you need:
- Domain-specific templates and examples
- Validation scripts and automation
- Best practices and patterns
- Configuration generators
Skills provide pre-built resources to accelerate your work.
Security Requirements
CRITICAL: All generated files must follow security rules:
@docs/security/SECURITY-RULES.md
Key requirements:
- Never hardcode API keys or secrets
- Use placeholders:
your_service_key_here
- Protect
.env files with .gitignore
- Create
.env.example with placeholders only
- Document key acquisition for users
Arguments: $ARGUMENTS
Goal: Create a production-ready Astro website with AI content generation, MDX support, component integration, and optional Supabase CMS
Core Principles:
- Use Astro best practices from official documentation
- Integrate content-image-generation MCP for AI capabilities
- Support React components (shadcn + Tailwind UI)
- Create complete, runnable project
Phase 1: Discovery & Requirements
Goal: Understand what website to build
Actions:
- Create todo list with all phases using TodoWrite
- Parse $ARGUMENTS for project name
- If no project name provided, use AskUserQuestion to gather:
- What's the project name?
- Website type? (marketing site, blog, documentation, landing page)
- Include AI content generation? (content-image-generation MCP)
- Include Supabase CMS backend?
- Include React components? (shadcn + Tailwind UI)
- Load Astro documentation using Context7:
- Use mcp__context7__resolve-library-id to find Astro
- Use mcp__context7__get-library-docs for Astro project structure
- Summarize requirements
Phase 2: Project Structure Planning
Goal: Design the Astro project structure
Actions:
- Determine directory structure based on website type
- Plan content collections for MDX
- Plan component integration strategy
- Identify dependencies (Astro, React, Tailwind, etc.)
- Update TodoWrite
Phase 3: Implementation
Goal: Create the Astro website project
Actions:
Step 1: Run automated initialization script
- Execute the astro-setup skill's init-project.sh script
- Script handles: prerequisites check, npm create astro, integrations, dependencies, directory structure, env files
- Command: bash /home/gotime2022/.claude/plugins/marketplaces/ai-dev-marketplace/plugins/website-builder/skills/astro-setup/scripts/init-project.sh <project-name> --template=<website-type>
- The script will:
- Check Node.js 18.14.1+ requirement
- Create Astro project with TypeScript strictest mode
- Install integrations: React, MDX, Tailwind, Sitemap
- Install dependencies: @supabase/supabase-js, zod, date-fns
- Create directory structure (src/lib, src/content/blog, public/images)
- Generate utility files (utils.ts, supabase.ts)
- Create SEO component
- Setup .env.example and .env files
- Update astro.config.mjs with all integrations
Step 2: Additional customizations based on requirements
If user requested specific integrations from Phase 1:
Launch the website-setup agent for additional customizations:
- Project name: $ARGUMENTS
- Website type from Phase 1
- Requirements from Phase 1
- Structure plan from Phase 2
- Astro documentation context
- Expected output: Customized features beyond base installation
Phase 4: Validation
Goal: Verify the project was created correctly
Actions:
- Check all required files exist (astro.config.mjs, package.json, tsconfig.json)
- Verify dependencies installed
- Check content collections configured
- Validate MCP configuration if included
- Update TodoWrite
Phase 5: Summary
Goal: Document what was created
Actions:
- Mark all todos complete
- Display project structure created
- Show installation and setup instructions
- Provide next steps (add pages, generate content, deploy)