SDD-Pro: Command for Claude Code

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

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

A migration-review command that compares a legacy project with its intended technology stack and sorts code units into migrate, discard, or human-decision groups. A technology stack is the set of languages, frameworks, and services used by the target system.

In plain words
What is it for?
Use it before extracting legacy code to document the differences between old and target architectures, choose whether to adopt the target design, preserve the old one, or combine them, and curate the migration inventory.
Why use it?
It helps teams avoid blindly moving obsolete code when the old and new systems work in different ways, such as a server-rendered application versus a browser-based application with a separate API. Its findings are advisory and do not delete or block anything.

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-paradigm.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-paradigm

README.md
[![agentmods](https://agentmods.dev/badge/commands/zekiriabd/sdd-pro/sdd-reverse-paradigm.svg)](https://agentmods.dev/commands/zekiriabd/sdd-pro/sdd-reverse-paradigm)
Your own site
<a href="https://agentmods.dev/commands/zekiriabd/sdd-pro/sdd-reverse-paradigm"><img src="https://agentmods.dev/badge/commands/zekiriabd/sdd-pro/sdd-reverse-paradigm.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 845 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.00084 $0.00845
Opus 5 $0.00042 $0.00423
Sonnet 5 $0.00017 $0.00169
Haiku 4.5 $0.00008 $0.00085

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

Security

Grade A, and why

sdd-reverse-paradigm 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 7d 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-paradigm.md · 65 lines

How it starts

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

/sdd-reverse-paradigm {LegacyProject} [--json]

Rôle

Avant l'extraction Phase 3 : (1) documenter l'écart de paradigme entre le legacy (ex. WebForms postback/ViewState) et la stack cible déclarée dans stack.md (ex. React SPA + API stateless), avec une décision consciente à arbitrer (adopt-target / preserve-legacy / hybrid) ; (2) curer les unités de l'inventory pour ne pas migrer du code mort (suggestion --units consommable par /sdd-reverse-full).

Args

Arg Type Description
{LegacyProject} requis Sous-dossier workspace/old/
--json flag Émet le résumé en JSON

Pré-conditions

  1. workspace/old/{P}/.sys/inventory.json existe (Phase 1 a tourné). Sinon → ERROR [REVERSE_NO_SOURCE].
  2. Recommandé (non bloquant) : Phase 2 (tech-audit.md, deps-graph.json) — sans elle les verdicts DISCARD perdent leur signal principal (orphelins).
  3. workspace/stack/stack.md avec lignes actives — sinon la partie paradigme est émise en mode « cible non déclarée » (informational).

Actions

  1. Spawn unique Agent(reverse-paradigm-advisor) avec arg = {P}.
  2. L'agent produit la table de gap (mécanisme legacy file:line → idiome cible → risque), la recommandation 3-options avec Décision: PENDING, et la table de curation par unité.

Sortie

workspace/old/{P}/.sys/paradigm-decision.md
workspace/old/{P}/.sys/curation.md          (header machine-parseable <!-- CURATION: ... -->)

Émission chat

[REVERSE] Paradigme {legacy}→{cible} : {G} gaps ; curation {N} MIGRATE / {K} DISCARD / {H} à arbitrer. (PROGRESS%)

H > 0 ou Décision: PENDING[REVERSE/WARN] + [REVERSE_CURATION_PENDING].

Anti-derive

  • No-spawn d'agent autre que reverse-paradigm-advisor
  • Jamais destructif : aucune unité retirée d'inventory.json, aucun fichier legacy touché
  • Jamais bloquant : le Tech Lead arbitre (Phase 5) ; /sdd-reverse-full reste intégral par défaut — la curation n'est qu'une suggestion --units
  • Idempotent : relancer régénère l'analyse en préservant les arbitrages humains posés

Read the full file on GitHub · 65 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. 7d ago First seen · 65 lines · 84 tokens per session scan A e1c07decc71b

Subscribe to this mod's changes

sdd-reverse-paradigm is a command published in the GitHub repository zekiriabd/SDD-Pro (191 stars, last pushed 3d ago), licensed Apache-2.0. It adds 84 tokens to every session and 845 once invoked, about $0.0004 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-08-30.