site-md
google-labs-code/stitch-skills
Synthesize project requirements into a SITE.md constitution file for Stitch Build Loop alignment.
What is site-md?
The site-md skill analyzes project descriptions and requirements to generate a `.stitch/SITE.md` file that serves as the long-term memory and constitution for the Stitch Build Loop. Use it when initializing a new project or formalizing existing requirements into a structured project document.
- Extracts core project identity (name, mission, target audience, voice) from requirement briefs
- Defines visual language and aesthetic direction with primary, secondary, and tertiary vibe keywords
- Maps project architecture and file structure including asset flow and navigation strategy
- Generates a live sitemap tracking completed and pending pages
- Organizes development tasks into High, Medium, and Low priority roadmap backlogs
- Validates output against the official SITE.md schema with all required sections
How to install site-md
npx skills add https://github.com/google-labs-code/stitch-skills --skill site-md- Access to a project requirements brief, description document, or existing site content
- Optionally, a Stitch Project ID if the project has already been initialized
How to use site-md
- 1.Gather your project requirements document or description brief
- 2.Run the skill and provide the requirements as input
- 3.Review the generated `.stitch/SITE.md` file in your project root
- 4.Validate that all seven sections (Core Identity, Visual Language, Architecture, Sitemap, Roadmap, Creative Freedom Guidelines) are present and accurate
- 5.Commit the SITE.md file to version control as your project constitution
Use cases
- Initialize a new Stitch project by converting a product requirements document into SITE.md
- Formalize scattered project notes and design briefs into a single source of truth for coding agents
- Establish visual and architectural consistency across multiple build iterations
- Onboard new team members by providing a clear project constitution and roadmap
- Restructure an existing project's scope and priorities into prioritized development tasks
- Product owners and architects defining project scope
- Development teams using the Stitch Build Loop framework
- Project leads formalizing requirements for agent-driven development
- Teams needing a shared constitution document for multi-iteration projects
site-md FAQ
SITE.md is a project constitution file that serves as long-term memory for the Stitch Build Loop. It ensures coding agents stay aligned on project scope, visual direction, and navigation flow across successive build iterations.
Yes. You can analyze existing site content, design documents, or scattered requirements and synthesize them into a formal SITE.md structure.
Use the placeholder `[Stitch Project ID]` in the generated SITE.md. You can update it later once your project is initialized in Google Stitch.
Parse requirements into concrete development tasks grouped by priority (High, Medium, Low). High priority covers core pages and primary user flows; Medium covers interactive features; Low covers enhancements and optional states.
The skill will create the `.stitch/` directory automatically before writing the SITE.md file to the root of your project.
Full instructions (SKILL.md)
Source of truth, from google-labs-code/stitch-skills.
name: site-md description: Analyze a project description or site requirements and synthesize a project constitution into SITE.md for the Stitch Build Loop allowed-tools:
- "Read"
- "Write"
- "web_fetch"
Stitch SITE.md Skill
You are a Lead Product Owner and Architect. Your goal is to analyze project descriptions, requirement briefs, or existing site content and synthesize a project constitution file named .stitch/SITE.md.
Overview
This skill helps you initialize and structure .stitch/SITE.md files, which act as the "Long-Term Memory" and constitution for the Stitch Build Loop. A properly structured SITE.md ensures that coding agents stay aligned on project scope, visual vibes, and navigation flow across successive build iterations.
Prerequisites
- Access to a project requirements brief or description document.
- Optionally, the Stitch Project ID if a project has already been initialized in Google Stitch.
The Goal
Generate a .stitch/SITE.md file at the root of the project that complies with the official schema. It must cover:
- Core Identity (Name, Mission, Voice).
- Visual Language Vibe.
- Architecture & File Structure.
- Sitemap (Current and target pages).
- Roadmap Backlog (High, Medium, Low priority tasks).
- Creative Freedom Guidelines.
Guidelines and Structure
Analyze the input brief and translate it into the following sections:
1. Core Identity
- Project Name: Extracted from requirements.
- Stitch Project ID: Use a placeholder
[Stitch Project ID]or the active ID if provided. - Mission: A 1-2 sentence description of what the application/site does.
- Target Audience: Who the main users are.
- Voice: Tone adjectives (e.g. professional, playful, clean).
2. Visual Language
- Vibe (Adjectives): Define a primary, secondary, and tertiary aesthetic keyword matching the project's visual direction.
3. Architecture & File Structure
- Map out the directory structure. Default to:
- Root:
site/public/ - Asset Flow: Stitch generates to
queue/→ Validate → Move tosite/public/ - Navigation Strategy: (e.g., standard header links, shared navigation bar).
- Root:
4. Live Sitemap
- Map out the files requested in the brief. Mark completed files as
[x]and pending/target files as[ ]. At initialization, at leastindex.htmlshould be listed.
5. The Roadmap (Backlog)
- Parse the requirements into concrete development tasks, grouped by priority:
- High Priority: Core pages, basic layouts, primary user flows.
- Medium Priority: Interactive features, forms, secondary pages.
- Low Priority: Enhancements, visual assets, optional states.
Action Plan
- Read input requirements: Locate and read the project description document or text input.
- Draft the structure: Map the project details directly into the
SITE.mdformat. - Write the file: Write the output to
.stitch/SITE.md. If the.stitch/directory does not exist, create it first. - Validate: Verify that all seven sections of the
SITE.mdtemplate are present and properly formatted.
Related skills
More from google-labs-code/stitch-skills and the wider catalog.

stitch-design
Unified design system and high-fidelity UI generation for Stitch projects.

stitch-loop
Autonomous website builder using Stitch with iterative baton-passing loop pattern

stitch::code-to-design
Convert existing frontend code (React, Vue, Angular) into Stitch Design projects.

stitch::extract-design-md
Extract a comprehensive design system (DESIGN.md) from frontend source code without building or rendering.

stitch::extract-static-html
Extract self-contained static HTML from web apps by inlining CSS and images.

stitch::generate-design
Generate and edit UI screens from text prompts, images, or mockups using Stitch MCP with design system integration.