sdd-reverse-inventory

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

Prvá fáza spätného rozboru staršieho projektu, ktorá vytvorí jeho mapu. Zaznamená zdrojové súbory, databázovú štruktúru a použité programovacie jazyky.

In plain words
What is it for?
Na preskenovanie projektu v priečinku legacy, vytvorenie inventára a popisu databázy. Existujúci platný inventár môže kontrolu preskočiť pomocou cache.
Why use it?
Odstraňuje potrebu ručne zisťovať, z čoho sa starý projekt skladá. Jej výstup je potrebný pre neskoršie fázy rozboru.

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-inventory
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-inventory

README.md
[![agentmods](https://agentmods.dev/badge/commands/zekiriabd/sdd-pro/sdd-reverse-inventory.svg)](https://agentmods.dev/commands/zekiriabd/sdd-pro/sdd-reverse-inventory)
Your own site
<a href="https://agentmods.dev/commands/zekiriabd/sdd-pro/sdd-reverse-inventory"><img src="https://agentmods.dev/badge/commands/zekiriabd/sdd-pro/sdd-reverse-inventory.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,068 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.00060 $0.01068
Opus 5 $0.00030 $0.00534
Sonnet 5 $0.00012 $0.00214
Haiku 4.5 $0.00006 $0.00107

Measured 5d ago against content hash 3279e8ae95a5, 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-inventory 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 5d 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-inventory.md · 74 lines

How it starts

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

/sdd-reverse-inventory {LegacyProject} [--use-cache] [--json]

Rôle

Lancer la Phase 1 : produire inventory.{md,json} + db-schema.{md,json} + language-detected.json sous workspace/old/{LegacyProject}/.sys/. Bloquant pour /sdd-reverse {U-N} (Phase 3).

Args

Arg Type Description
{LegacyProject} string requis Nom du sous-dossier sous workspace/old/
--use-cache flag Saute le scan si inventory.json existant + valide ADV-23 (schemaVersion + _allocatedNames)
--json flag Émet le rapport final en JSON sur stdout (machine-readable)

Pré-conditions

  1. workspace/old/{LegacyProject}/.sys/ doit exister (sinon → /sdd-reverse-init {P} d'abord)
  2. workspace/old/{LegacyProject}/ contient des fichiers source non-binaires
  3. .sdd/python/sdd_reverse/language_signatures.yml présent (sinon → erreur framework, problème d'install)

Si manquant → STOP + ERROR [REVERSE_NO_SOURCE] ou [INFRA_BLOCKED].

Actions

  1. Spawn unique Agent(reverse-inventory) avec args = {LegacyProject}
  2. L'agent vérifie préconditions + invoque python .sdd/python/sdd_reverse_scripts/reverse_inventory.py --project workspace/old/{LegacyProject} (+ --use-cache / --refresh / --json si transmis — invocation canonique par chemin de fichier, C6)
  3. Le script écrit les 9 artefacts .sys/* (recompte audit 2026-08-30 — reverse_inventory.py écrit aussi les 4 artefacts L0/L1) :
    • inventory.json — unités fonctionnelles U-N (fingerprint stable) + evidence + allocations
    • inventory.md — rendu FR (enrichi ensuite par l'agent, étape 4)
    • code-graph.json — graphe de classes symbol-level + rôles (L0)
    • data-access.json — SQL inline + appels de procédures stockées + params (L1)
    • config.json — connection strings, secrets masqués (L1)
    • dependencies.json — NuGet/.csproj/PackageReference + assembly refs + DLLs bin (L1)
    • db-schema.json — schéma DB basique déduit du code
    • db-schema.md — rendu markdown du schéma
    • language-detected.json — langages détectés + confidence caps appliqués

Read the full file on GitHub · 74 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. 5d ago First seen · 74 lines · 60 tokens per session scan A 3279e8ae95a5

Subscribe to this mod's changes

sdd-reverse-inventory is a command published in the GitHub repository zekiriabd/SDD-Pro (191 stars, last pushed 2d ago), licensed Apache-2.0. It adds 60 tokens to every session and 1,068 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-08-30.