SDD-Pro: Agent for Claude Code

.claude/agents/reverse-ui-extractor.md

reverse-ui-extractor is an agent for Claude Code from zekiriabd/SDD-Pro. It costs 97 tokens per session (2,872 once invoked), scanned A, original, Apache-2.0.

A workflow that turns one selected unit of an old web interface into semantic HTML mockups while preserving its main visual structure.

In plain words
What is it for?
Use it to extract forms, grids, navigation, colors, fonts, and spacing from legacy templates and CSS for later implementation with a modern UI framework.
Why use it?
It helps modern frontend work understand legacy screens without copying the old interface pixel for pixel.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

This is zekiriabd/SDD-Pro's own configuration. It tells Claude Code how to work on SDD-Pro itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything SDD-Pro configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zekiriabd/SDD-Pro. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/zekiriabd/SDD-Pro/main/.claude/agents/reverse-ui-extractor.md
Clone the repo
git clone --depth 1 https://github.com/zekiriabd/SDD-Pro

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reverse-ui-extractor

README.md
[![agentmods](https://agentmods.dev/badge/agents/zekiriabd/sdd-pro/reverse-ui-extractor/github.svg)](https://agentmods.dev/agents/zekiriabd/sdd-pro/reverse-ui-extractor)
Your own site
<a href="https://agentmods.dev/agents/zekiriabd/sdd-pro/reverse-ui-extractor"><img src="https://agentmods.dev/badge/agents/zekiriabd/sdd-pro/reverse-ui-extractor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reverse-ui-extractor

Your own site · 80×15
<a href="https://agentmods.dev/agents/zekiriabd/sdd-pro/reverse-ui-extractor"><img src="https://agentmods.dev/badge/agents/zekiriabd/sdd-pro/reverse-ui-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,872 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00097 $0.02872
Opus 5.5 $0.00039 $0.01149
Sonnet 5.5 $0.00019 $0.00574
Haiku 4.5 $0.00010 $0.00287

Measured 1mo ago against content hash fe729478e1d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

reverse-ui-extractor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/reverse-ui-extractor.md · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Reverse-UI-Extractor — Phase 4 UI sémantique

Rôle

Pour une unité fonctionnelle déjà extraite en FEAT (Phase 3), produire des mockups HTML sémantiques qui :

  • Préservent la structure visuelle legacy (formulaires, grids, navigation)
  • Utilisent les couleurs/fonts/spacings dérivés du CSS legacy via css_palette_extractor
  • Restent interprétation sémantique, pas clone pixel-perfect (hors-scope §0)
  • Sont consommables par dev-frontend (mapping vers Radzen/Vuetify/shadcn via le stack UI cible)

STEP 0 — Préconditions

Arguments requis : {U-N} (ex. U-3).

  1. workspace/old/{P}/.sys/inventory.json existe et contient units[id={U-N}]
  2. La FEAT correspondante existe : workspace/feats/{n}-{FeatName}.md (Phase 3 préalable)
  3. inventory.json._featAllocations[{U-N}] est renseigné (résolution n figée)

Sinon → STOP + ERROR [REVERSE_UNIT_NOT_FOUND] ou [REVERSE_NO_SOURCE].

STEP 1 — Lecture sélective

Read en mémoire :

  1. workspace/old/{P}/.sys/inventory.json → units[id={U-N}]
  2. workspace/feats/{n}-{FeatName}.md (le contrat sémantique de Phase 3)
  3. Tous les templates de l'unité : fichiers de units[U-N].evidenceFiles dont extension ∈ {.aspx, .ascx, .cshtml, .jsp, .blade.php, .html, .dfm, .frm, .xaml} (.xaml ajouté 2026-06-10 — audit M12)
  4. Sélectif CSS : tous les .css du projet (limite : ≤ 10 fichiers, ≤ 200 KB total)

Lecture STRICT bornée : pas plus de 15 fichiers Read par invocation.

STEP 2 — Extraction palette + parsing templates

Délégation aux scripts déterministes (jamais émuler ce parsing en LLM) :

# Palette globale (1 fois par projet)
# NOTE: `import sys; sys.path.insert(0, '.sdd/python')` est OBLIGATOIRE en
# tête — .sdd/python n'est pas sur le PYTHONPATH par défaut ; sans ce
# bootstrap, `from sdd_reverse...` lève ModuleNotFoundError (convention
# identique à reverse-tech-analyst.md). Invoquer depuis la racine du repo.
python -c "
import sys; sys.path.insert(0, '.sdd/python')
from sdd_reverse.scan_legacy import load_signatures, scan_project
from sdd_reverse.css_palette_extractor import extract_palette
import json
sigs = load_signatures('.sdd/python/sdd_reverse/language_signatures.yml')
sr = scan_project('workspace/old/{P}', sigs)
print(json.dumps(extract_palette('workspace/old/{P}', sr), indent=2))
"

# Parsing template par fichier evidence UI
python -c "
import sys; sys.path.insert(0, '.sdd/python')
from sdd_reverse.ui_template_parser import parse_template
import json
print(json.dumps(parse_template('workspace/old/{P}/Login.aspx'), indent=2))
"

Read the full file on GitHub · 193 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 193 lines · 97 tokens per session scan A fe729478e1d3

Subscribe to this mod's changes

reverse-ui-extractor is an agent published in the GitHub repository zekiriabd/SDD-Pro (196 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 97 tokens to every session and 2,872 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

ux-flow-auditor

Use this agent when the user mentions UX flow issues, dead-end views, dismiss traps, missing empty states, broken user journeys, or wants a UX audit of their iOS app.

CharlesWiltgen/Axiom · 43 tokens

canvas-create-screens

Groups approved functional intent into task-oriented screens, in-screen states and navigation without choosing Canvas controls.

microsoft/power-platform-skills · 24 tokens

design

Design system generator — maps product domain to style, palette, typography, anti-patterns. Creates .rune/design-system.md. Use BEFORE any frontend code generation.

Rune-kit/rune · 35 tokens

mobile-ux-optimizer

Use this agent when you need to optimize UI/UX components or interfaces for mobile-first experiences, analyze existing design themes, or ensure mobile usability standards are met. Examples: Context: User has created a desktop-focused component and needs it optimized for mobile. user: 'I've built this navigation…

xbim08/awesome-claude-code-plugins · 0 tokens

visual-reviewer

Visual regression reviewer that compares live web pages against Figma designs. Takes screenshots of both, runs pixel-level diff, and uses AI vision to evaluate whether differences are bugs or acceptable variations. Use before merge or deployment to catch visual regressions.

mukiwu/muki-ai-plugins · 52 tokens

designer

Use for visual/UX design authoring — reference decomposition, design principles, divergent concept drafts, milestone screen prototypes, and DESIGN.md authoring support. Generation only; auditing stays with reviewer[design].

kohj1018/agentic-dev-harness · 42 tokens