In the Skill's Own Terms
This skill reads a frontend codebase and writes a DESIGN.md that captures its visual language, without building or rendering the app. It detects the framework from package.json and config files (React, Vue, Svelte, Angular, Tailwind, CSS-in-JS, plain CSS), then works through atmosphere, color palette and roles, typography, component stylings, layout principles, and notes for Stitch generation.
The output lands at .stitch/DESIGN.md and must open with a YAML frontmatter block carrying name and a colors mapping, because other skills parse it. Aimed at designers and developers reverse-engineering, auditing, or migrating an existing project's design system.
What it produces
- A DESIGN.md document assembled in the standard design system format.
- A YAML frontmatter block with name and a colors mapping at the top of that file, followed by the markdown sections.
- A final section of design system notes for Stitch generation, covering language, color references and component prompts.
How It Works
- 01Detect the Framework and Stack
Scan the project root for telltale files such as package.json, tailwind.config.js, postcss.config.js, theme.js or tokens.js, then read package.json to learn the framework, CSS tooling and any design-token libraries.
- 02Read the Matching Framework Reference
React/Next/Tailwind, Vue/Nuxt, Svelte, Angular and plain CSS each have a reference file with framework-specific patterns for locating colors, typography and spacing.
- 03Extract the Color Palette and Assign Roles
Colors come from CSS custom properties, Tailwind config, theme files, component styles, scoped classes and CSS-in-JS objects, then get grouped by function rather than by hue.
- 04Analyze Components and Layout
The skill looks at buttons, cards, navigation, inputs and domain-specific components, plus grid, whitespace, alignment and responsive behavior.
- 05Write the DESIGN.md
Everything is assembled into the standard DESIGN.md format and written into a .stitch directory that is created if missing.
- 06Optionally Hand Off to Stitch
If the user wants the design system pushed into Stitch, the written DESIGN.md becomes the input for the manage-design-system skill.