sdd-reverse-init

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

A setup command for a legacy project, meaning older software that needs to be understood before it is changed. It creates a .sys folder and a short README for storing reverse-engineering work.

In plain words
What is it for?
Use it before cataloguing an old project’s structure and behavior. It checks that source code exists, creates the required folder, and points to the next investigation command.
Why use it?
It gives the investigation a known place to store its outputs without changing the legacy code or framework. It also stops when the project has no readable source files.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/zekiriabd/sdd-pro/sdd-reverse-init
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-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/zekiriabd/sdd-pro/sdd-reverse-init.svg)](https://agentmods.dev/commands/zekiriabd/sdd-pro/sdd-reverse-init)
Your own site
<a href="https://agentmods.dev/commands/zekiriabd/sdd-pro/sdd-reverse-init"><img src="https://agentmods.dev/badge/commands/zekiriabd/sdd-pro/sdd-reverse-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 473 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00041 $0.00473
Opus 5 $0.00020 $0.00236
Sonnet 5 $0.00008 $0.00095
Haiku 4.5 $0.00004 $0.00047

Measured 4d ago against content hash 4a6cc29f18db, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sdd-reverse-init 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 4d 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-init.md · 44 lines

What it actually says

/sdd-reverse-init {LegacyProject}

Rôle

Pré-conditionner un projet legacy déposé dans workspace/old/{LegacyProject}/ avant lancement Phase 1 (/sdd-reverse-inventory). Bootstrap purement structurel.

Pré-conditions

  • workspace/old/{LegacyProject}/ existe et contient ≥ 1 fichier source (non vide, non binaire-only)

Si absent → STOP + ERROR [REVERSE_NO_SOURCE].

Si binaire-only détecté (aucun fichier source lisible parmi .cs/.aspx/.java/.php/.pas/.frm/.sql/...) → STOP + ERROR [REVERSE_BINARY_ONLY] + escalade (hors-scope §0 design doc).

Actions

  1. Créer workspace/old/{LegacyProject}/.sys/ si absent
  2. Créer workspace/old/{LegacyProject}/.sys/README.md minimal :
    # .sys/ — Artefacts reverse engineering
    Dossier généré par /sdd-reverse-init. Contient les outputs des phases 1-4 du workflow reverse.
    NE PAS éditer manuellement les .json (ownership scripts déterministes).
    Voir .sdd/docs/reverse-engineering-workflow.md
    
  3. Émettre 1 ligne chat :
    [REVERSE] {LegacyProject} : .sys/ bootstrappé. Prochaine étape : /sdd-reverse-inventory {LegacyProject}. (3%)
    

Anti-derive

  • Aucune écriture hors workspace/old/{LegacyProject}/.sys/README.md
  • Aucune lecture du legacy lui-même (read-only sur la structure, pas sur le contenu)
  • No-spawn

Idempotence

Re-lancer /sdd-reverse-init {P} sur un projet déjà initialisé est un no-op silencieux (le README est préservé).

Voir .sdd/docs/reverse-engineering-workflow.md §1 + §2 pour le contexte pipeline.

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. 4d ago First seen · 44 lines · 41 tokens per session scan A 4a6cc29f18db

Subscribe to this mod's changes

sdd-reverse-init is a command published in the GitHub repository zekiriabd/SDD-Pro (190 stars, last pushed today), licensed Apache-2.0. It adds 41 tokens to every session and 473 once invoked, about $0.0002 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.