sdd-reverse-crosscut

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

A deterministic report generator for finding shared technical concerns in a legacy project. A legacy project is an older system being understood or migrated.

In plain words
What is it for?
Use it to create feature documents listing libraries to install and database details such as entities, fields, relationships, stored procedures, and masked connection information.
Why use it?
It gathers dependency and database facts in one place, reducing the need to inspect package files, assemblies, schemas, and connection settings separately.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is python .sdd/python/sdd_reverse_scripts/generate_crosscutting_feats.py \.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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

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

Measured 6d ago against content hash 5c6168138d53, 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-crosscut 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 6d 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-crosscut.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-crosscut {LegacyProject} [--feats-dir DIR] [--json]

Rôle

Émettre les deux FEATs transversales (cross-cutting) d'une migration legacy, 100 % déterministes (aucun agent LLM, 0 token) à partir des artefacts produits en Phase 1 :

  • {n}-Libraries.md — inventaire des librairies/DLL à installer (NuGet packages.config + .csproj PackageReference + Directory.Packages.props + références d'assembly + DLL bin/ ; npm/maven/pypi/composer) avec evidence.
  • {n}-Database.mdschéma (entités + champs + relations FK), procédures stockées (nom + paramètres typés + OUTPUT), connection strings (provider/serveur/base, secrets masqués), avec evidence file:line.

Ce sont des FEATs reverse standard (frontmatter + REVERSE-GATE + 6 sections + evidence/confidence par item + AC Given/When/Then) — consommables par /sdd-full.

Args

Arg Type Description
{LegacyProject} string requis Sous-dossier de workspace/old/ (Phase 1 préalable obligatoire)
--feats-dir DIR flag Override du dossier de sortie (défaut workspace/feats)
--json flag Émet le rapport en JSON

Pré-conditions

  • workspace/old/{LegacyProject}/.sys/inventory.json (Phase 1)
  • Au moins un de : dependencies.json, db-schema.json/db-schema.merged.json, data-access.json, config.json (tous produits par Phase 1 depuis L1).

Sinon → STOP + ERROR [REVERSE_NO_SOURCE] + suggérer /sdd-reverse-inventory {LegacyProject}.

Actions

python .sdd/python/sdd_reverse_scripts/generate_crosscutting_feats.py \
    --project workspace/old/{LegacyProject} [--feats-dir DIR] [--json]
  1. Charge dependencies.json + db-schema(.merged).json + data-access.json + config.json.
  2. Alloue n de façon idempotente via inventory.json._featAllocations (clés synthétiques XC-Libraries / XC-Database) sous .alloc.lock.
  3. Écrit {n}-Libraries.md + {n}-Database.md (atomique), met à jour l'inventory.
  4. Ligne chat [REVERSE] Cross-cutting FEATs: …. (100%).

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. 6d ago First seen · 64 lines · 59 tokens per session scan A 5c6168138d53

Subscribe to this mod's changes

sdd-reverse-crosscut is a command published in the GitHub repository zekiriabd/SDD-Pro (191 stars, last pushed 3d ago), licensed Apache-2.0. It adds 59 tokens to every session and 814 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.