Logo vun Astro Builder

Astro Builder

Communautéit
IncomeStreamSurfer
astro-builder

Build complete, SEO-optimized websites using Astro with Tailwind CSS, content collections, and optional Turso database. Use this skill whenever the user wants to create a website, build a site that ranks on Google, start an Astro project, make a landing page, build a business website, create a blog, or any web project where SEO matters. Also trigger when the user mentions Astro or wants a site built with modern web tech. Even if they just say 'build me a website' or 'I need a site for my business' — this skill handles it.

Iwwersiicht

EditeurIncomeStreamSurfer
Repositoryastro-builder-skill
Skill-Nummastro-builder
Stären
76
Forks
36
Matgeliwwert Fichieren
8
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 8 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum IncomeStreamSurfer op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Astro Builder an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/IncomeStreamSurfer/astro-builder-skill/tree/main/skill
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/IncomeStreamSurfer/astro-builder-skill.git /tmp/astro-builder-skill
mkdir -p .claude/skills
cp -r /tmp/astro-builder-skill/skill .claude/skills/astro-builder
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Astro Builder an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Astro Builder automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Astro Builder net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Astro SEO Website Builder

You build complete, deployment-ready websites in Astro that are engineered to rank on Google. Every site ships with proper meta tags, structured data, semantic HTML, optimized images, sitemaps, and real researched content — not placeholder text.

Every frontend you produce must be premium and non-generic. Read references/taste-skill.md before writing any UI code — it contains the design rules that prevent generic "AI slop" output.

Tech Stack

  • Astro — Static-first framework, zero JS by default, perfect for SEO
  • React — Interactive components via Astro islands (forms, nav, animations)
  • Tailwind CSS — All styling. No shadcn defaults — customize everything per the taste-skill rules
  • Astro Content Collections — Type-safe Markdown/MDX content for blog posts, services, testimonials
  • Turso + Drizzle — Edge SQLite database (optional, for forms/dynamic data)

Workflow Overview

Every project follows this sequence. Don't skip steps.

Phase 1: Discovery & Research

  1. Ask the user about their niche, business, and goals
  2. Ask if they need a database (for contact forms, leads, bookings, etc.)
  3. Research the niche — what's ranking, what keywords matter, what content gaps exist
  4. Propose a site structure with page list, content strategy, and keyword targets
  5. Get user approval before building

Phase 2: Project Setup

  1. Scaffold the Astro project
  2. Install and configure integrations (React, Tailwind, sitemap)
  3. Set up the base layout, SEO components, and design system

Phase 3: Build Every Page

  1. Read references/taste-skill.md for design rules
  2. If user wants generated images, read references/image-generation.md and generate images for each page
  3. Create each page with real, researched content
  4. Full SEO on every page — meta tags, OG tags, structured data, semantic HTML
  5. Wire up interactive components (forms, navigation, etc.)

Phase 4: Content Collections & Database

  1. Configure Astro content collections for blog posts, services, etc.
  2. If database requested: set up Turso, create schemas, build API routes
  3. Build admin dashboard for database data if applicable

Phase 5: Deployment Prep

  1. Generate sitemap, robots.txt
  2. Configure deployment (Vercel/Netlify)
  3. Final SEO audit of every page

Phase 1: Discovery & Research

Ask the User

Before writing any code, understand the project:

  1. What's your niche/business? — "I'm a plumber in Dublin" or "I sell handmade candles online"
  2. What's the site's primary goal? — Lead generation, e-commerce, portfolio, blog, SaaS landing page
  3. How many pages do you want? — Small (5-10 pages) or content-heavy (15-30+ pages with blog)
  4. Do you need a database? — For storing form submissions, bookings, user data, etc. If yes, set up Turso.
  5. Do you want generated images? — "I can generate custom stock images for your site using Gemini. If you'd like this, add your GEMINI_API_KEY to the .env file."
  6. Do you have a domain? — Needed for sitemap/canonical URLs. Use a placeholder if not yet purchased.
  7. Any design preferences? — Colors, style, existing branding

Research the Niche

Use web search to find:

  • What's currently ranking for the target keywords — top 5-10 results
  • Content gaps — what questions aren't being answered well
  • Long-tail keywords — specific phrases with less competition
  • Local SEO signals if it's a local business
  • Competitor site structures — what pages they have, what they're missing

Propose the Site Structure

Based on research, create a concrete proposal. Example for a plumber:

Proposed Pages:
1. Home — "Plumber Dublin | 24/7 Emergency Plumbing Services"
2. Services — Overview of all services
3. Services/Emergency-Plumbing — Targeted landing page
4. Services/Bathroom-Renovations — Targeted landing page
5. Services/Boiler-Repair — Targeted landing page
6. About — Trust signals, team, qualifications
7. Blog — Ongoing content for SEO
8. Blog/[slug] — Individual posts targeting long-tail keywords
9. Contact — Form + map + phone
10. Areas We Serve — Local SEO pages
11. Testimonials — Social proof

Target Keywords: emergency plumber dublin, plumber near me dublin, boiler repair dublin...
Content Strategy: Weekly blog posts targeting "how to fix [common issue]" queries

Get the user's sign-off before proceeding.


Phase 2: Project Setup

Read references/astro-setup.md for exact commands and configuration.

1. Create the Project

bash
npm create astro@latest [project-name] -- --template minimal --install --no-git
cd [project-name]

2. Install Integrations

bash
npx astro add react tailwind sitemap
npm install @astrojs/check typescript
npm install @fontsource/geist-sans @fontsource/geist-mono  # Premium fonts per taste-skill

3. If Database Requested

Read references/turso-setup.md for full Turso configuration.

bash
npm install @libsql/client drizzle-orm

4. Project Structure

src/
├── components/
│   ├── SEOHead.astro
│   ├── Header.astro
│   ├── Footer.astro
│   ├── Navigation.tsx    # React island
│   └── ContactForm.tsx   # React island
├── content.config.ts     # Content collection schemas (NOT in content/)
├── content/
│   ├── blog/
│   ├── services/
│   └── testimonials/
├── layouts/
│   └── BaseLayout.astro
├── lib/
│   ├── turso.ts          # If database
│   └── utils.ts
├── pages/
│   ├── index.astro
│   ├── about.astro
│   ├── contact.astro
│   ├── blog/
│   │   ├── index.astro
│   │   └── [...slug].astro
│   └── api/              # API routes (if database)
├── styles/
│   └── globals.css
└── middleware.ts
astro.config.mjs

Phase 3: Build Every Page — Design + SEO

Before writing any page, read both:

  • references/seo-checklist.md — SEO rules for every page
  • references/taste-skill.md — Design rules to prevent generic output

The SEOHead Component

Create src/components/SEOHead.astro — goes in <head> of every page. Handles:

  • Title tag (unique per page, primary keyword, under 60 chars)
  • Meta description (unique, CTA, under 160 chars)
  • Canonical URL
  • Open Graph tags
  • Twitter Card tags
  • JSON-LD structured data

See references/seo-checklist.md for the exact component code.

Content Writing Rules

  • Write for humans first, search engines second.
  • Every page targets a specific keyword cluster. Primary keyword in title, H1, first paragraph, meta description, URL slug.
  • Proper heading hierarchy. One H1. H2s for sections. H3s for subsections. Never skip levels.
  • Internal linking. Every page links to 2-3+ other pages. Descriptive anchor text.
  • Image alt text. Every image gets descriptive alt text with natural keywords.
  • Content length. Service pages: 800-1500 words. Blog posts: 1500-3000 words. Home: 500-1000 words.
  • Schema markup. Every page gets appropriate JSON-LD.

Design Rules (from taste-skill)

These are non-negotiable for every page you build:

  • Typography: Use Geist, Satoshi, Outfit, or Cabinet Grotesk. NEVER Inter. Headlines: text-4xl md:text-6xl tracking-tighter leading-none.
  • Colors: Max 1 accent color, saturation < 80%. No purple/blue AI gradients. Neutral bases (Zinc/Slate).
  • Layout: No centered hero when DESIGN_VARIANCE > 4. Use split-screen, asymmetric, or left-aligned layouts.
  • Cards: Only when elevation communicates hierarchy. No generic 3-column card layouts.
  • Spacing: min-h-[100dvh] not h-screen. Grid not flexbox math. max-w-7xl mx-auto.
  • States: Every interactive component needs loading, empty, and error states.
  • No AI slop: No emojis, no "John Doe", no "Acme Corp", no filler words like "seamless" or "unleash".

Astro Islands for Interactivity

  • Static content (headings, text, images) — .astro components, zero JS
  • Interactive elements (forms, mobile nav, scroll animations) — React .tsx with client:visible or client:load
  • Animations: For motion (MOTION_INTENSITY > 5), use Framer Motion in isolated React islands. Spring physics: type: "spring", stiffness: 100, damping: 20.

Read references/tailwind-components.md for component patterns (nav, forms, FAQ, etc.)


Phase 4: Content Collections & Database

Astro Content Collections

Read references/content-collections.md for the full setup. Content collections replace a CMS — content lives as Markdown files in src/content/ with type-safe schemas.

IMPORTANT: Define schemas in src/content.config.ts (NOT src/content/config.ts — the old path throws LegacyContentConfigError in Astro v5+). Every collection must have a loader (use glob() from astro/loaders).

Define schemas in src/content.config.ts:

  • Blog posts: title, description, pubDate, image, tags, author, draft
  • Services: title, description, icon, order, featured
  • Testimonials: name, role, quote, rating

Query collections in pages with getCollection() and getEntry().

Turso Database (If Requested)

Read references/turso-setup.md for complete setup. Turso handles dynamic data — form submissions, leads, bookings, newsletter signups.

  1. Create the database client in src/lib/turso.ts
  2. Define schemas with Drizzle ORM
  3. Create API routes in src/pages/api/ for form handling
  4. Build an admin dashboard to view submitted data

Admin Dashboard (If Database)

Build at /admin using React islands with Tailwind-styled tables and cards. Uses:

  • Middleware for basic auth
  • API routes to fetch data from Turso
  • Clean, tasteful data presentation (per taste-skill rules — no generic card grids)

Phase 5: Deployment Prep

Sitemap & Robots.txt

@astrojs/sitemap auto-generates the sitemap. Set site in astro.config.mjs.

Dynamic robots.txt at src/pages/robots.txt.ts:

typescript
import type { APIRoute } from 'astro';

const getRobotsTxt = (siteURL: string) => `User-agent: *
Allow: /
Disallow: /admin
Sitemap: ${siteURL}sitemap-index.xml`;

export const GET: APIRoute = ({ site }) => {
  return new Response(getRobotsTxt(site?.toString() || ''));
};

Deployment Configuration

Read references/deployment.md for Vercel/Netlify configs.

For sites with API routes or Turso, add an adapter but keep the default static output. Mark individual server routes with export const prerender = false;:

javascript
import vercel from '@astrojs/vercel';

export default defineConfig({
  // Do NOT use output: 'hybrid' — removed in Astro v5.
  // Default is 'static'. Server-rendered routes opt out individually.
  adapter: vercel(),
});

In each API route or server-rendered page:

typescript
// src/pages/api/contact.ts
export const prerender = false; // This route runs on the server

export const POST: APIRoute = async ({ request }) => {
  // ...
};

Final SEO Audit

Audit every page against references/seo-checklist.md:

  • Unique title, description, canonical URL per page
  • All images have alt text
  • JSON-LD validates
  • Internal links work
  • Mobile responsive (test taste-skill mobile override rules)
  • Sitemap includes all pages
  • robots.txt correct

Important Notes

  • Do NOT use output: 'hybrid' — it was removed in Astro v5. Use the default 'static' output. For server-rendered routes (API endpoints, form handlers), add export const prerender = false; in each file.
  • React islands need hydration directives — client:load or client:visible.
  • Content collections are file-based. Blog posts and services live as .md files in src/content/. Turso is for dynamic data (form submissions) only.
  • Research before building. The niche research phase determines SEO quality.
  • Real content wins. Write substantive, helpful content. No lorem ipsum.
  • Premium design always. Follow the taste-skill rules. Every page should look like a $10k agency build, not generic AI output.
  • Image generation is optional. If the user provides a GEMINI_API_KEY, generate custom images per references/image-generation.md. If not, use styled placeholder divs with proper alt text.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Astro Builder?

Build complete, SEO-optimized websites using Astro with Tailwind CSS, content collections, and optional Turso database. Use this skill whenever the user wants to create a website, build a site that ranks on Google, start an Astro project, make a landing page, build a business website, create a blog, or any web project where SEO matters. Also trigger when the user mentions Astro or wants a site built with modern web tech. Even if they just say 'build me a website' or 'I need a site for my business' — this skill handles it.

Firwat Astro Builder op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Astro Builder besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Astro Builder an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/IncomeStreamSurfer/astro-builder-skill/tree/main/skill an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Astro Builder benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Astro Builder benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Astro Builder domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Astro Builder gratis?

De Skill gëtt vum IncomeStreamSurfer op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇