SDD-Pro: Command for Claude Code

.claude/commands/sdd-reverse-ui.md

sdd-reverse-ui is a command for Claude Code from zekiriabd/SDD-Pro. It costs 66 tokens per session (865 once invoked), scanned A, original, Apache-2.0.

A workflow command that turns one unit of a legacy application into semantic HTML mockups while preserving its visual structure. It prepares UI reference files for frontend development.

In plain words
What is it for?
Use it to extract interface mockups from legacy files such as ASPX, JSP, Blade, HTML, or XAML. The mockups can then guide frontend implementation.
Why use it?
It helps developers understand and rebuild an old interface without relying on pixel-by-pixel copying. It also skips units that contain no user interface.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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/commands/sdd-reverse-ui.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 sdd-reverse-ui

README.md
[![agentmods](https://agentmods.dev/badge/commands/zekiriabd/sdd-pro/sdd-reverse-ui.svg)](https://agentmods.dev/commands/zekiriabd/sdd-pro/sdd-reverse-ui)
Your own site
<a href="https://agentmods.dev/commands/zekiriabd/sdd-pro/sdd-reverse-ui"><img src="https://agentmods.dev/badge/commands/zekiriabd/sdd-pro/sdd-reverse-ui.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 865 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.00066 $0.00865
Opus 5 $0.00033 $0.00432
Sonnet 5 $0.00013 $0.00173
Haiku 4.5 $0.00007 $0.00086

Measured 3d ago against content hash d61ab52de7fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

sdd-reverse-ui 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 3d 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/commands/sdd-reverse-ui.md · 64 lines

How it starts

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

/sdd-reverse-ui {U-N} [--json]

Rôle

Lancer la Phase 4 : traduire les templates legacy d'une unité U-N en mockups HTML sémantiques préservant la structure visuelle (sans clonage pixel-perfect).

Args

Arg Type Description
{U-N} string requis Identifiant U-N stable, doit avoir une FEAT Phase 3 déjà produite
--json flag Émet rapport extraction en JSON

Pré-conditions

  1. Phase 1 + Phase 3 préalables pour cette unité :
    • workspace/old/{P}/.sys/inventory.json contient units[id={U-N}]
    • inventory.json._featAllocations[{U-N}] renseigné → résolution n figée
    • workspace/feats/{n}-{FeatName}.md existe (sinon → ERROR [REVERSE_NO_SOURCE])
  2. Les units[U-N].evidenceFiles contiennent au moins 1 fichier UI (.aspx, .ascx, .cshtml, .jsp, .blade.php, .html, .dfm, .frm, .xaml). Sinon → SKIP silencieux (unité backend-only sans UI). (.xaml ajouté 2026-06-10 — audit M12 : WPF supporté en Phase 1 mais SKIPpé en silence en Phase 4.)

Actions

  1. Spawn unique Agent(reverse-ui-extractor) avec args = {U-N}
  2. L'agent suit STEP 1 à 5 documenté dans .sdd/agents/reverse-ui-extractor.md
  3. Délégation scripts déterministes : css_palette_extractor + ui_template_parser
  4. Génération 1-5 fichiers HTML par unité (selon écrans détectés)
  5. Émission ligne chat finale [REVERSE] {U-N} → {M} écran(s) UI. (75%)

Sortie

workspace/ui/
├── {n}-1-{Name}.html             (écran principal)
├── {n}-2-{Name}.html             (modale / wizard step 2 / écran secondaire, si applicable)
└── ...

Format : HTML5 sémantique pur (pas de framework UI inline). Mapping vers Radzen/Vuetify/shadcn fait par dev-frontend lors de /sdd-full {n}.

Voie d'usage standard

Phase 4 est optionnelle. Elle s'invoque après Phase 3 :

/sdd-reverse-inventory MyLegacy
/sdd-reverse U-3              # Phase 3 → FEAT 7-Login.md
/sdd-reverse-ui U-3           # Phase 4 → workspace/ui/7-1-Login.html

Skip cohérent : si le Tech Lead préfère que dev-frontend regénère l'UI from scratch via le mapping FEAT-only (sans mockup HTML), ne pas lancer cette phase. La FEAT seule reste valide pour /sdd-full.

Read the full file on GitHub · 64 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. 3d ago First seen · 64 lines · 66 tokens per session scan A d61ab52de7fa

Subscribe to this mod's changes

sdd-reverse-ui is a command published in the GitHub repository zekiriabd/SDD-Pro (191 stars, last pushed 4d ago), licensed Apache-2.0. It adds 66 tokens to every session and 865 once invoked, about $0.0003 per session on Opus 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-09-03.