# Decompose prototype

> Decompose prototype is an open-source agent skill for design and media. Turns a UI prototype into dated flow and mockup docs built from real screenshots. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/vadeg/engineering-skills/tree/main/prototype-decomposition/skills/decompose-prototype
- **Repository:** https://github.com/vadeg/engineering-skills
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** decompose-prototype
- **Collection:** https://github.com/vadeg/engineering-skills
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-12-04

## About

This skill documents an existing UI prototype as two markdown files saved in a dated folder: a user flow with a happy-path diagram, edge-case branches and a step-by-step narrative, and a mockups file that pairs each main screen with its functional requirements and states. It works from a live web app, a Claude Design project, a local prototype file, or screenshots the user shares, and it prefers real renders over reconstructed ones.

The workflow asks the agent to drive the prototype in a browser, fix one viewport size, and look for edge states such as invalid input, empty results and cancel paths. It avoids destructive or live actions such as payments or sent messages, assigns stable screen IDs, and saves screenshots using a numbered naming scheme. Where no live render exists, it analyzes the source code and flags that screens lack a screenshot rather than inventing stand-ins. Gaps in the prototype are listed as open questions.

The skill expects a browser automation tool for live apps and the claude-design MCP tools for Claude Design links. It asks the user for the output location and the scope of flows to document.

## When your agent uses it

> Turns a UI prototype -- a live web app you can browse, a Claude Design project link, a local prototype source file on disk, or screenshots/images you share -- into a dated documentation folder with two markdown deliverables built from real screenshots of the actual prototype (or, when no live render is available, careful analysis of the source itself) -- user-flow.md (a happy-path-plus-edge-cases diagram and step-by-step narrative) and mockups.md (each main screen's real screenshot, or a clearly-flagged source-only writeup, next to its requirements). Use this whenever the user wants to document, formalize, or hand off a prototype's flow or screens -- phrases like "map out the user flow," "document the happy path and edge cases," "turn this prototype into mockups," "what are the requirements for this screen," or "I need something to hand to design/PM/eng" all point here, even if the user doesn't say "artifact," "screenshot," or name this skill directly, and even if all they've handed you is a local prototype f

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/vadeg/engineering-skills/tree/HEAD/prototype-decomposition/skills/decompose-prototype)
- [License: MIT](https://github.com/vadeg/engineering-skills/tree/HEAD/prototype-decomposition/skills/decompose-prototype)

## Features

- **Happy path mapping:** Traces the main sequence of steps a user takes through the prototype as a diagram and narrative.
- **Edge case discovery:** Looks for validation errors, empty states, loading and cancel paths observed in the running prototype.
- **Real screenshot capture:** Captures each screen and state at a fixed viewport so mockups show the actual interface.
- **Requirements per screen:** Lists functional requirements and states for each screen, marking inferred behavior clearly.
- **Open questions list:** Collects gaps where the prototype does not define behavior instead of inventing screens.
- **Dated output folder:** Organizes the flow doc, mockups doc and screenshots into a dated, named folder.

## Good for

- Document the checkout flow of a prototype for a developer handoff
- Turn a prototype's screens into a mockups doc with requirements
- Map out the happy path and edge cases of a sign-up process
- List requirements for a specific screen in a web app prototype
- Create a flow document from screenshots I shared

## Install

### Claude Code

This skill ships in the `prototype-decomposition` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add vadeg/engineering-skills
/plugin install prototype-decomposition@engineering-skills
```

Or copy only this skill to `~/.claude/skills/decompose-prototype`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vadeg/engineering-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/decompose-prototype &&
cp -R "$tmp/prototype-decomposition/skills/decompose-prototype" ~/.claude/skills/decompose-prototype &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/decompose-prototype` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/decompose-prototype` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vadeg/engineering-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/decompose-prototype &&
cp -R "$tmp/prototype-decomposition/skills/decompose-prototype" ~/.agents/skills/decompose-prototype &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/decompose-prototype` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/decompose-prototype` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vadeg/engineering-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/decompose-prototype &&
cp -R "$tmp/prototype-decomposition/skills/decompose-prototype" ~/.cursor/skills/decompose-prototype &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/decompose-prototype` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/vadeg/engineering-skills.git --path prototype-decomposition/skills/decompose-prototype
```

Or copy the folder to `~/.gemini/skills/decompose-prototype` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/decompose-prototype`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vadeg/engineering-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/decompose-prototype &&
cp -R "$tmp/prototype-decomposition/skills/decompose-prototype" ~/.copilot/skills/decompose-prototype &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/decompose-prototype` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/vadeg/engineering-skills.git
```

Then copy `engineering-skills/prototype-decomposition/skills/decompose-prototype` into your agent's skills folder as `decompose-prototype`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What inputs does Decompose prototype need?

It works from a live web app, a Claude Design project link, a local prototype source file, or screenshots the user shares. For live apps it uses browser tools, and for Claude Design links it uses the claude-design MCP tools.

### What files does Decompose prototype create?

It creates a dated folder containing user-flow.md, mockups.md and a screenshots directory, with screens named by stable IDs.

### Does Decompose prototype invent screens that were not in the prototype?

No. The skill instructs the agent to flag gaps as open design questions rather than fabricate screens, and to avoid hand-built stand-ins for screenshots.

### Does Decompose prototype take actions in a live app?

It is told to avoid destructive or hard-to-undo actions such as submitting real payments, deleting records or sending messages, and to ask first when unsure.

### How do I install Decompose prototype in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/decompose-prototype to use it in all your projects, or to .claude/skills/decompose-prototype in one project. Or install the prototype-decomposition plugin, which includes it: /plugin marketplace add vadeg/engineering-skills, then /plugin install prototype-decomposition@engineering-skills.

### Does Decompose prototype run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Decompose prototype?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Decompose prototype?

The closest alternatives to Decompose prototype are Prototype, UX design, Document design system components, Design screens and Design from app.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Prototype](https://ai-powered.com/skills/prototype): Prototype is an open-source agent skill for developer tools.
- [UX design](https://ai-powered.com/skills/ux-design): UX design is an open-source agent skill for design and media.
- [Document design system components](https://ai-powered.com/skills/document-design-system-components): Document design system components is an open-source agent skill for design and media.
- [Design screens](https://ai-powered.com/skills/design-screens): Design screens is an open-source agent skill for design and media.
- [Design from app](https://ai-powered.com/skills/design-from-app): Design from app is an open-source agent skill for design and media.
- [Anti UI slop](https://ai-powered.com/skills/anti-ui-slop): Anti UI slop is an open-source agent skill for design and media.
- [Figma wireframe](https://ai-powered.com/skills/figma-wireframe): Figma wireframe is an open-source agent skill for design and media.
- [Figma implement design](https://ai-powered.com/skills/figma-implement-design-mtarcure): Figma implement design is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/decompose-prototype
