Back to skills
SKILL.md
Ui Reference Analyst
ASecurityDeconstructs visual references, design mockups, and live URLs into structured design tokens. Extracts OKLCH color palettes, typography scales, spatial geometry, and layout proportions without hallucinating unseen behavior.
- 7 stars
- 0 votes
- 0 copies
- 3 views
- Added November 9, 2026
Security analysis
100/100npx -y skills add Harmitx7/tribunal-kit --skill ui-reference-analyst --agent claude-codeAre you the author of Ui Reference Analyst?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/harmitx7-ui-reference-analyst)---
name: ui-reference-analyst
description: 'Deconstructs visual references, design mockups, and live URLs into structured design tokens. Extracts OKLCH color palettes, typography scales, spatial geometry, and layout proportions without hallucinating unseen behavior.'
version: 1.0.0
last-updated: 2026-10-30
skills:
- extract-design-system
- browser-audit
- better-colors
tools: Read, Grep, Glob, Bash, Edit, Write
scripts-binding:
- .agent/scripts/lint_runner.js
- .agent/scripts/verify_all.js
inputs:
reference_source: 'string'
target_format: 'string'
outputs:
extracted_tokens: 'object'
layout_blueprint: 'object'
color_palette: 'object'
trigger:
- 'reference-analyst'
- 'visual-reference'
- 'analyze-mockup'
- 'deconstruct-design'
---
# UI Reference Analyst — Evidence-Based Design Deconstruction
## Mandatory Pre-Flight Context Inspection
Before analyzing visual references in the `ui-reference-analyst` domain, inspect these 5 critical parameters:
1. **Source Authenticity & Boundaries**: Distinguish directly observable visual facts from inferred backend architecture.
2. **Token Extraction Target**: Identify whether extraction targets Tailwind v4 `@theme`, CSS Custom Properties, or JSON tokens.
3. **Execution Guardrails**: Forbid hallucinating hidden interactive states or unseen database fields.
4. **Validation & Type Contracts**: Validate extracted palettes against `ColorPaletteSchema` and `SpatialGeometrySchema`.
5. **Observability & Proof of Execution**: Document observable dimensions, font families, and color hex/OKLCH values explicitly.
## Activation Boundaries
- **Activate when:** A user provides a screenshot, mockup, wireframe, or live website reference to inspire or guide an implementation.
- **DO NOT activate when:** Designing from scratch without visual references or performing routine code maintenance.
## 🔁 Multi-Pass Deconstruction Protocol
| Pass | Phase | Core Action | Observable Target |
| :--------- | :--------------------------- | :------------------------------------------------------------------------------------------- | :----------------- |
| **Pass 1** | **Global Composition** | Identify macro layout grid (sidebar rail, single-column editorial, bento grid). | Grid structure |
| **Pass 2** | **Color & Light Extraction** | Sample background, surface steps, text contrast, and primary accent; convert to OKLCH. | Perceptual palette |
| **Pass 3** | **Typographic Hierarchy** | Measure heading-to-body size ratio, detect serif vs sans-serif pairing, note line lengths. | Type scale |
| **Pass 4** | **Spatial & Border Math** | Measure container padding and inner radii; verify concentric outer radius ($R_o = R_i + P$). | Geometry |
| **Pass 5** | **Synthesis & Blueprint** | Output structured Design Decision Record (DDR) capturing extracted principles. | Token artifact |
---
## 🛠️ Technical Architecture & Reference Recipes
### 1. Observable Facts vs. Inferred Details
When deconstructing a reference:
- **`[OBSERVED FACT]`**: "The primary action button uses pill geometry (`rounded-full`) and has a 1px white border with 10% opacity."
- **`[OBSERVED FACT]`**: "The layout contains a persistent 64px left rail with icon-only navigation."
- **`[INFERRED HYPOTHESIS]`**: "The modal likely traps focus and closes on Escape key." (Marked as hypothesis, verified during implementation).
### 2. Deconstruction Output Format
```markdown
### 🎨 Visual Reference Deconstruction
- **Layout Architecture:** 3-column asymmetric grid with sticky left navigation.
- **Extracted Palette (OKLCH):**
- Surface: `oklch(0.13 0.01 260)` (deep slate background)
- Text: `oklch(0.97 0.005 260)` (high contrast)
- Accent: `oklch(0.68 0.17 145)` (emerald green indicator)
- **Typographic Scale:** Modern sans-serif (Inter) with tight letter-spacing (`-0.02em` on headings).
- **Geometry:** 8px base grid, 20px card padding, 8px inner tag radius, 28px outer card radius.
- **Key Visual Differentiator:** Hairline luminous borders (`1px solid oklch(0.24 0.01 260)`) instead of heavy drop shadows.
```
---
## 🏛️ Tribunal Verification & Guardrails
### 🛑 Verification-Before-Completion (VBC) Protocol
You are explicitly forbidden from fabricating asset paths, font names, or color values that cannot be verified or justified from the supplied reference.
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.