Analyze a project description or site requirements and synthesize a project constitution into SITE.md for the Stitch Build Loop
Written by Google Stitch and published in google-labs-code/stitch-skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.
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.
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.
Generate a .stitch/SITE.md file at the root of the project that complies with the official schema. It must cover:
Analyze the input brief and translate it into the following sections:
[Stitch Project ID] or the active ID if provided.site/public/queue/ → Validate → Move to site/public/[x] and pending/target files as [ ]. At initialization, at least index.html should be listed.SITE.md format..stitch/SITE.md. If the .stitch/ directory does not exist, create it first.SITE.md template are present and properly formatted.Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /site-md in Claude Code or $site-md in Codex.
Copy the site-md folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/google-labs-code/stitch-skills.git /tmp/google-labs-code-stitch-skills
mkdir -p .claude/skills
cp -r /tmp/google-labs-code-stitch-skills/plugins/stitch-utilities/skills/site-md .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if site-md does not appear.
git clone --depth 1 https://github.com/google-labs-code/stitch-skills.git /tmp/google-labs-code-stitch-skills
mkdir -p .agents/skills
cp -r /tmp/google-labs-code-stitch-skills/plugins/stitch-utilities/skills/site-md .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for site-md and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
site-md ships one file, SKILL.md, shown above.