# Design Doc To Ui Visual Audit

> Audit visual parity and baseline replication for design-doc-to-ui React and Figma outputs. Use when comparing rendered React route screenshots or Figma frames against approved AI UI images. Scores every required page across layout, components, visual style, typography, assets, and interaction state coverage. Requires each page to reach visual_similarity_score at least 0.80 and fails hard for miss…

- **Type:** Skill
- **Install:** `agentstack add skill-kilimiaosix-agent-skills-design-doc-to-ui-visual-audit`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [KilimiaoSix](https://agentstack.voostack.com/s/kilimiaosix)
- **Installs:** 0
- **Category:** [Content & Media](https://agentstack.voostack.com/c/content-and-media)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [KilimiaoSix](https://github.com/KilimiaoSix)
- **Source:** https://github.com/KilimiaoSix/agent-skills/tree/main/skills/design-doc-to-ui-visual-audit

## Install

```sh
agentstack add skill-kilimiaosix-agent-skills-design-doc-to-ui-visual-audit
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Design Doc To UI Visual Audit

Use this companion skill from `$design-doc-to-ui` for React and Figma visual parity gates.

## Inputs

Required:

- `ui-run.json`;
- approved AI page images;
- rendered React route screenshots or Figma frame screenshots;
- structured design document;
- page briefs and worker reviews.

Do not score from descriptions alone. If screenshots are unavailable, mark the audit blocked.

## Scoring Rubric

Score each page out of 100:

- layout and information hierarchy: 25;
- component completeness: 20;
- color, material, and visual style: 20;
- typography, copy language, and density: 15;
- key images, icons, and decorative assets: 10;
- interaction states and prototype links: 10.

Convert the page score to `visual_similarity_score` by dividing by 100.

Baseline replication is a separate qualitative check. A page passes this check only when the implementation preserves the approved AI image's major regions, section order, visual density, component shape language, key imagery, primary actions, and state presentation. A generic redesign that covers the same requirements but does not look like the approved image fails even if individual rubric categories seem partially satisfied.

For React, also check interaction fidelity:

- primary navigation targets load the intended route;
- primary buttons produce the declared route, modal, toast, or state change;
- controls that look interactive actually update state or are explicitly disabled/blocked;
- declared success, error, empty, loading, modal, blocked, and quota states are reachable or documented as unavailable.

For Figma, also check prototype-link fidelity:

- primary navigation and main actions have prototype links where Figma supports them;
- modal/state/recovery flows are linked or clearly annotated;
- frames are editable reconstructions, not pasted full-screen images.

## Pass/Fail Rules

- Every required page must have `visual_similarity_score >= 0.80`.
- Global average is advisory only.
- Do not allow the average score to hide a failed page.
- Hard fail when a required page is missing, the implementation is a full-screen screenshot/image browser, baseline replication fails, primary navigation/main actions are absent, React interactions are broken, Figma primary prototype links are missing, language is wrong, or material visual drift is obvious.

## Repair Guidance

For each failed page, produce concise repair prompts:

- name the missing/mismatched sections;
- identify style drift;
- call out missing controls/states/assets;
- state whether repair belongs in React, Figma, or asset generation.

## Audit Output

Write `qa/visual-parity-audit.json`:

```json
{
  "passed": true,
  "target": "react",
  "page_scores": [
    {
      "page_id": "home",
      "visual_similarity_score": 0.84,
      "baseline_replica_passed": true,
      "interaction_or_prototype_links_passed": true,
      "layout": 22,
      "components": 18,
      "style": 17,
      "typography": 13,
      "assets": 7,
      "interactions": 7,
      "notes": "Main structure and actions match; minor card spacing drift."
    }
  ],
  "global_average": 0.84,
  "hard_failures": [],
  "repair_prompts": []
}
```

Set `target` to `react` or `figma`. Do not mark `passed: true` unless every required page passes.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [KilimiaoSix](https://github.com/KilimiaoSix)
- **Source:** [KilimiaoSix/agent-skills](https://github.com/KilimiaoSix/agent-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-kilimiaosix-agent-skills-design-doc-to-ui-visual-audit
- Seller: https://agentstack.voostack.com/s/kilimiaosix
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
