Reprompt Design
Role
Act as a design reconstruction synthesizer.
Build DESIGN.md as the long-lived visual source of truth that complements SPEC.md.
Treat code, screenshots, styles, and assets as evidence.
Do not modify SPEC.md, PLAN.md, or DEVLOG.md.
Input
Use any available evidence:
- Project root
SPEC.md when present, to understand essential workflows and roles
- Running app URL when available
- Login or test-access instructions when available
- Current code, routes, styles, templates, assets, docs, and existing screenshots
Prefer live screenshot evidence. If the app cannot be launched or authenticated, continue from static evidence and record the gap in DESIGN.md.
Output Target
Write or rewrite:
DESIGN.md
design-assets/screenshots/
design-assets/source-assets/
DESIGN.md is stack-neutral and rebuild-oriented. It should explain visual decisions and evidence clearly enough for another agent to recreate the app's design in a different stack.
Capture Scope
Capture essential states, not every possible variant:
- primary public or guest view
- authenticated user views when applicable
- administrative or operator views when applicable
- core workflow screens
- important empty, error, success, complete, focused, expanded, modal, and loading states
- desktop and mobile breakpoints when the app is responsive
- tablet only when it has meaningfully distinct layout behavior
If a state matters but cannot be reached, document it from code or static evidence and mark missing screenshot evidence.
Asset Policy
Inventory product-defining visual assets:
- backgrounds and hero imagery
- logos and marks
- icons and SVGs with product meaning
- fonts and type choices
- illustrations, textures, and major media
- reusable visual motifs that materially shape identity
Copy assets into design-assets/source-assets/ only when copying is useful and safe.
Reference large, generated, numerous, or externally managed assets by path instead of archiving everything.
Do not preserve every static file by default.
DESIGN.md Shape
Use this section order unless the project clearly needs another structure:
- Title and design summary
- View inventory
- Screenshot evidence
- Responsive behavior
- Interaction states
- Visual system
- Asset inventory
- Reconstruction requirements
- Visual acceptance checks
- Evidence gaps, only if relevant
Keep DESIGN.md visual and interaction-focused. Functional behavior belongs in SPEC.md.
Evidence Filtering
Keep:
- visual identity, density, tone, and major layout principles
- screen structure, navigation placement, and information hierarchy
- responsive layout rules and breakpoint-level behavior
- meaningful interaction states and transitions
- colors, typography, spacing rhythm, icon style, shape language, elevation, borders, and motion where product-defining
- screenshots with viewport, state, route or view, and purpose
- product-defining asset roles and source paths
- stack-neutral visual acceptance checks
Usually drop:
- framework class names
- internal component names unless they clarify reusable UI patterns
- raw CSS dumps
- one-off numeric constants unless they materially define layout or identity
- test harness details
- transient experiments and superseded visual choices
If a detail might be noise, omit it unless removing it would make a rebuild visibly or interactively different.
Workflow
- Resolve the project root.
- Read
SPEC.md if present to identify essential workflows, roles, and states.
- Discover routes, app entrypoints, styles, templates, asset directories, and existing docs.
- Prefer live capture:
- use the running app URL if provided
- otherwise infer how to launch the app when practical
- capture essential desktop and mobile screenshots into
design-assets/screenshots/
- If live capture fails or is incomplete, inspect code, styles, assets, docs, and existing screenshots instead.
- Inventory product-defining assets and copy or reference them according to the asset policy.
- Write
DESIGN.md from scratch in a clean, stack-neutral structure.
- Link screenshots and preserved assets with relative paths.
- Record evidence gaps explicitly when runtime capture or state coverage is incomplete.
Validation Check
Before finalizing, verify:
DESIGN.md complements SPEC.md instead of repeating functional requirements.
- Essential views and states are represented by screenshots, static evidence, or explicit evidence gaps.
- Product-defining assets are inventoried without archiving the whole asset tree.
- Design rules are stack-neutral and can guide a reimplementation.
- Low-level implementation detail was excluded unless necessary for visual reconstruction.
- Visual acceptance checks are specific enough to verify a rebuilt interface.
Output
Report the generated or updated DESIGN.md, screenshot directory, copied or referenced assets, and any evidence gaps.
1---2name: reprompt-design3description: Build project-root DESIGN.md and design-assets from screenshots, visual assets, styles, docs, and current app evidence as a stack-neutral visual source of truth for reimplementation. Use when the user wants to preserve or reconstruct an app's design, visual system, essential screens, responsive layouts, interaction states, or product-defining assets.4---56# Reprompt Design78## Role910Act as a design reconstruction synthesizer.11Build `DESIGN.md` as the long-lived visual source of truth that complements `SPEC.md`.12Treat code, screenshots, styles, and assets as evidence.13Do not modify `SPEC.md`, `PLAN.md`, or `DEVLOG.md`.1415## Input1617Use any available evidence:1819- Project root20- `SPEC.md` when present, to understand essential workflows and roles21- Running app URL when available22- Login or test-access instructions when available23- Current code, routes, styles, templates, assets, docs, and existing screenshots2425Prefer live screenshot evidence. If the app cannot be launched or authenticated, continue from static evidence and record the gap in `DESIGN.md`.2627## Output Target2829Write or rewrite:3031- `DESIGN.md`32- `design-assets/screenshots/`33- `design-assets/source-assets/`3435`DESIGN.md` is stack-neutral and rebuild-oriented. It should explain visual decisions and evidence clearly enough for another agent to recreate the app's design in a different stack.3637## Capture Scope3839Capture essential states, not every possible variant:4041- primary public or guest view42- authenticated user views when applicable43- administrative or operator views when applicable44- core workflow screens45- important empty, error, success, complete, focused, expanded, modal, and loading states46- desktop and mobile breakpoints when the app is responsive47- tablet only when it has meaningfully distinct layout behavior4849If a state matters but cannot be reached, document it from code or static evidence and mark missing screenshot evidence.5051## Asset Policy5253Inventory product-defining visual assets:5455- backgrounds and hero imagery56- logos and marks57- icons and SVGs with product meaning58- fonts and type choices59- illustrations, textures, and major media60- reusable visual motifs that materially shape identity6162Copy assets into `design-assets/source-assets/` only when copying is useful and safe.63Reference large, generated, numerous, or externally managed assets by path instead of archiving everything.64Do not preserve every static file by default.6566## DESIGN.md Shape6768Use this section order unless the project clearly needs another structure:69701. Title and design summary712. View inventory723. Screenshot evidence734. Responsive behavior745. Interaction states756. Visual system767. Asset inventory778. Reconstruction requirements789. Visual acceptance checks7910. Evidence gaps, only if relevant8081Keep `DESIGN.md` visual and interaction-focused. Functional behavior belongs in `SPEC.md`.8283## Evidence Filtering8485Keep:8687- visual identity, density, tone, and major layout principles88- screen structure, navigation placement, and information hierarchy89- responsive layout rules and breakpoint-level behavior90- meaningful interaction states and transitions91- colors, typography, spacing rhythm, icon style, shape language, elevation, borders, and motion where product-defining92- screenshots with viewport, state, route or view, and purpose93- product-defining asset roles and source paths94- stack-neutral visual acceptance checks9596Usually drop:9798- framework class names99- internal component names unless they clarify reusable UI patterns100- raw CSS dumps101- one-off numeric constants unless they materially define layout or identity102- test harness details103- transient experiments and superseded visual choices104105If a detail might be noise, omit it unless removing it would make a rebuild visibly or interactively different.106107## Workflow1081091. Resolve the project root.1102. Read `SPEC.md` if present to identify essential workflows, roles, and states.1113. Discover routes, app entrypoints, styles, templates, asset directories, and existing docs.1124. Prefer live capture:113 - use the running app URL if provided114 - otherwise infer how to launch the app when practical115 - capture essential desktop and mobile screenshots into `design-assets/screenshots/`1165. If live capture fails or is incomplete, inspect code, styles, assets, docs, and existing screenshots instead.1176. Inventory product-defining assets and copy or reference them according to the asset policy.1187. Write `DESIGN.md` from scratch in a clean, stack-neutral structure.1198. Link screenshots and preserved assets with relative paths.1209. Record evidence gaps explicitly when runtime capture or state coverage is incomplete.121122## Validation Check123124Before finalizing, verify:125126- `DESIGN.md` complements `SPEC.md` instead of repeating functional requirements.127- Essential views and states are represented by screenshots, static evidence, or explicit evidence gaps.128- Product-defining assets are inventoried without archiving the whole asset tree.129- Design rules are stack-neutral and can guide a reimplementation.130- Low-level implementation detail was excluded unless necessary for visual reconstruction.131- Visual acceptance checks are specific enough to verify a rebuilt interface.132133## Output134135Report the generated or updated `DESIGN.md`, screenshot directory, copied or referenced assets, and any evidence gaps.