This skill reverse-engineers a design system from source code. It detects the framework, reads theme files, Tailwind configs, CSS variables and component styles, and writes a DESIGN.md at .stitch/DESIGN.md with a YAML color block and six sections.
It works on React, Next.js, Vue, Svelte, Angular and vanilla CSS projects, and uses a reference file per framework to know where colors, type and spacing live.
What You Get
- A .stitch/DESIGN.md with YAML frontmatter holding the name and color tokens
- Colors grouped by function with descriptive names, hex codes and roles
- Typography, component and layout sections written in descriptive language
- Stitch generation notes with example component prompts
Common Use Cases
- Documenting the design language of an existing codebase
- Preparing a project for migration into Stitch
- Finding near-duplicate colors and inconsistent styles across a repo
What Makes It Unique
It reads source files, so it works when the app cannot be built or run. Per-framework reference files guide the search, and the checklist asks for the intent behind styling choices, such as comments in theme files.
Under The Hood
The skill is instructions plus reference files for each framework. The agent reads package.json, Tailwind and PostCSS configs, theme and token files and component styles with file read tools, then writes .stitch/DESIGN.md. It runs no build and no network calls of its own.