How the SpaceZero template is designed for AI agents to autonomously build micro-apps from seed specifications.
SpaceZero is built from the ground up for AI agent consumption.
docs/seed.md is the contract between human and AI:
# App Name — Seed Specification
## 1. Product Decision & Core Value Proposition
- **Application Name**: SchemaCraft
- **One-Line Pitch**: Generate valid JSON-LD for any webpage
- **Target Domain**: SEO / Structured Data
- **Core Promise**: URL → Fetch → Generate JSON-LD → Download
## 2. Target Customers & Beachhead
- **Primary**: Freelance SEOs
- **Secondary**: Agencies, indie hackers
## 3. Product Workflow
sequenceDiagram User->>Frontend: Enter URL Frontend->>Edge: Dispatch Request Edge->>Edge: Execute Logic Edge->>Frontend: Return Results
## 4. Core Features (3-5)
1. Fetch URL, extract existing JSON-LD
2. Validate against Schema.org
3. Generate corrected JSON-LD
4. Download as .json or copy
## 5. Differentiation
1. Observable Evidence
2. Direct Remediation
3. Time-to-Value < 60s
## 6. Pricing
- Free: 3 generations/day
- Lifetime:
## 7. Database Tables
- schemacraft_generations (user_id, url, results, created_at)
## 8. Branding
- Primary: #8b5cf6 (Violet)
- Font: Geist + JetBrains Mono
- Tone: Technical, minimalist
## 9. Landing Copy
- Hero: "Stop Guessing Schema. Generate Valid JSON-LD Instantly."
- CTA: "Generate Free Schema"
docs/agents.md tells the agent how to work:
seed.md first// tailwind.config.js - only these values work
spacing: { 0, 1, 2, 3, 5, lg, 7xl, full }
fontSize: { hero, title, base, small }
Agent can't use p-4 — it doesn't exist. Forces correct usage.
// Pages compose, don't style
<PageLayout>
<PageMain>
<Card>
<CardTitle><Icon name="Server" /><span>Feature</span></CardTitle>
<CardContent>Description</CardContent>
</Card>
</PageMain>
</PageLayout>
src/components/ui/ // Reusable components
src/contexts/ // React contexts (Fast Refresh boundary)
src/components/infra/ // ErrorBoundary, ProtectedRoute
src/pages/ // Page compositions
src/hooks/ // Custom hooks
src/lib/ // Utilities + data
src/app.ts // App configuration
functions/api/ // Edge functions
npm run typecheck && npm run lint && npm run build && npm run test
Agent must pass all before "done".
seed.md and agents.mdsrc/app.ts, vite.config.ts, index.htmlfunctions/api/src/pages/Home.tsxsupabase/migrations/docs/