stitch-astro-wp-delivery

SOP for delivering client websites using Google Stitch for design, Astro for frontend, and headless WordPress CMS for dynamic content.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "stitch-astro-wp-delivery" with this command: npx skills add mayank1059/stitch-astro-wp-skill/mayank1059-stitch-astro-wp-skill-stitch-astro-wp-delivery

Stitch → Astro + WordPress Website Delivery

Complete workflow for AI-generated designs → production websites.

Stack

ComponentTechnologyPurpose
DesignGoogle StitchAI mockup generation
FrontendAstroStatic site generation
StylingTailwind CSSStitch-native
CMSWordPress (headless)Blog, portfolio
SEORankMathMeta, schema
HostingCloudflare PagesFrontend CDN

Phase 1: Design Generation (1-2 hrs)

1.1 Write Stitch Prompts

Use detailed prompts with: sections, colors, typography, content.

1.2 Generate in Stitch

# Use Stitch MCP tools:
mcp_stitch_create_project
mcp_stitch_generate_screen_from_text
mcp_stitch_fetch_screen_code

1.3 Organize Exports

client-name/
├── stitch-exports/
│   ├── homepage.html
│   ├── about.html
│   └── ...

Phase 2: WordPress Setup (2-3 hrs)

2.1 Install WordPress

  • Subdomain: wp.clientdomain.com
  • Plugins: RankMath, ACF, Classic Editor

2.2 Configure

// wp-config.php - CORS
header("Access-Control-Allow-Origin: *");

Phase 3: Astro Setup (1 hr)

npm create astro@latest client-name
npx astro add tailwind sitemap

Project Structure

src/
├── components/
├── layouts/MainLayout.astro
├── lib/wordpress.js
├── pages/
│   ├── index.astro
│   └── blog/[...slug].astro

Phase 4: Convert Stitch HTML (4-8 hrs)

4.1 WordPress API Helper

// src/lib/wordpress.js
const WP_URL = 'https://wp.clientdomain.com/wp-json/wp/v2';

export async function getPosts(count = 10) {
  const res = await fetch(`${WP_URL}/posts?per_page=${count}&_embed`);
  return res.json();
}

export async function getPost(slug) {
  const res = await fetch(`${WP_URL}/posts?slug=${slug}&_embed`);
  const posts = await res.json();
  return posts[0];
}

4.2 Convert Pages

  1. Create .astro file for each Stitch export
  2. Wrap with MainLayout
  3. Extract reusable components

Phase 5: Testing (1-2 hrs)

npm run dev

Checklist:

  • All pages load
  • Blog pulls from WordPress
  • Mobile responsive
  • SEO meta present

Phase 6: Deployment (30 min)

npm run build
npx wrangler pages deploy ./dist --project-name=client-name

Or connect GitHub to Cloudflare Pages.


Phase 7: Handoff (1 hr)

Provide client:

  • WordPress admin URL + credentials
  • Brief editing guide
  • Support contact

Time Estimate

PhaseHours
Design2-4
WordPress2-3
Astro1
Conversion4-8
Testing1-2
Deploy0.5
Handoff1
Total12-20

Maintenance

Requires Rebuild:

  • Homepage changes, new pages, service updates

Auto-Reflects:

  • Blog posts (from WP API)
  • Portfolio items

Final Checklist

  • All Stitch exports converted
  • WordPress + RankMath configured
  • Blog pulling from WordPress
  • Sitemap + robots.txt
  • Deployed to Cloudflare
  • Custom domain + SSL
  • Client has credentials

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Agent Dev Workflow

Orchestrate coding agents (Claude Code, Codex, etc.) to implement coding tasks through a structured workflow. Use when the user gives a coding requirement, f...

Registry SourceRecently Updated
Coding

Tesla Commander

Command and monitor Tesla vehicles via the Fleet API. Check status, control climate/charging/locks, track location, and analyze trip history. Use when you ne...

Registry SourceRecently Updated
Coding

Skill Creator (Opencode)

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize a...

Registry SourceRecently Updated
Coding

Documentation Writer

Write clear, comprehensive documentation. Covers README files, API docs, user guides, and code comments. Create documentation that users actually read and un...

Registry SourceRecently Updated