Agent skill

Analyse Design Skill: Reverse-Engineer a Design System

The analyse-design skill makes an AI coding agent read a codebase or screenshots and write down the colors, type, spacing and patterns that make up an existing design system.

Install
git clone https://github.com/sammcj/agentic-coding.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the analyse-design skill?

The analyse-design skill is a SKILL.md in sammcj's agentic-coding repository that reverse-engineers a design system from a codebase, website or screenshots. The agent scans theme and style files in priority order, studies eight dimensions, and produces a ten-section reference document a developer can build new components from.

Most design skills help you create an interface. The analyse-design skill works backwards: it studies an interface that already exists and writes the design system down. It sits in the Skills folder of a repository of agent rules, skills and templates.

The SKILL.md casts the agent as a UI and UX design analyst. Unless you say otherwise, the goal is a reference document that lets a developer build components that belong in the application, whether the source is a codebase, a website or screenshots.

Where it looks first

  1. Theme and token files, such as tailwind.config, Tailwind v4 CSS-first @theme blocks, theme.ts, tokens.json and variables.css.
  2. Global styles, including global.css, app.css and CSS custom properties on :root or [data-theme].
  3. Component library config, such as shadcn components.json, a MUI theme, a Chakra theme or Ant Design config.
  4. Layout components like the shell, sidebar, header and navigation.
  5. Representative components, such as buttons, inputs, cards and modals.

What the reference document contains

  • A design philosophy with a Key Characteristics list, such as 0px radius on primary buttons or a single accent color.
  • A colour table with real values, usage and contrast notes, a typography table, and a spacing scale listing values and where they apply.
  • A component inventory with radii, shadows, states and the source file for each pattern.
  • Do and Don't lists derived from the dominant patterns, plus notes on inconsistencies and one-off values.
  • An AI implementation guide with copy-paste color and type values and sample component descriptions.

Who the analyse-design skill is for

Best for

  • Joining an unfamiliar frontend and needing its visual rules written down before you change anything.
  • Documenting a design system that only exists in code.
  • Giving a coding agent a precise style brief so new components match the old ones.
  • Auditing consistency, since the output lists one-off values and places where the system breaks down.

Not for

  • Designing something new from scratch. The skill describes what exists. For design documents of another kind, see design-md.
  • Scoring visual quality. It records observed patterns and does not give a grade.
  • Cloning a site automatically. It produces documentation, not a rebuilt page.

Use it with UiChemy

If you are recreating a look in WordPress, run the skill on the source site or codebase first, then use its color and type tables as the brief in UiChemy Composer, which writes real HTML, CSS and JS inside Elementor or Gutenberg. Click Get Started on uichemy.com. See also extract-design-system.