Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Autonomously build multi-page websites with Stitch using an iterative baton-passing loop pattern
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
resources/baton-schema.md
1# Baton File Schema23The baton file (`next-prompt.md`) is the communication mechanism between loop iterations. It tells the next agent what to build.45## Format67```yaml8---9page: <filename-without-extension>10---11<prompt-content>12```1314## Fields1516### Frontmatter (YAML)1718| Field | Type | Required | Description |19|-------|------|----------|-------------|20| `page` | string | Yes | Output filename (without `.html` extension) |2122### Body (Markdown)2324The body contains the full Stitch prompt, which must include:25261. **One-line description** with vibe/atmosphere keywords272. **Design System block** (required) — copied from `DESIGN.md` Section 6283. **Page Structure** — numbered list of sections/components2930## Example3132```markdown33---34page: achievements35---36A competitive, gamified achievements page with terminal aesthetics.3738**DESIGN SYSTEM (REQUIRED):**39- Platform: Web, Desktop-first40- Theme: Dark, minimal, data-focused41- Background: Deep charcoal/near-black (#0f1419)42- Primary Accent: Teal/Cyan (#2dd4bf)43- Text Primary: White (#ffffff)44- Font: Clean sans-serif (Inter, SF Pro, or system default)45- Layout: Centered content, max-width container4647**Page Structure:**481. Header with title "Achievements" and navigation492. Badge grid showing locked/unlocked states with icons503. Progress section with milestone bars514. Footer with links to other pages52```5354## Validation Rules5556Before completing an iteration, validate your baton:5758- [ ] `page` frontmatter field exists and is a valid filename59- [ ] Prompt includes the design system block60- [ ] Prompt describes a page NOT already in `SITE.md` sitemap61- [ ] Prompt includes specific page structure details62