SDD-Pro: Agent for Claude Code

.claude/agents/reverse-clarifier.md

reverse-clarifier is an agent for Claude Code from zekiriabd/SDD-Pro. It costs 133 tokens per session (1,681 once invoked), scanned A, original, Apache-2.0.

An optional clarification workflow for reverse-engineered legacy features. It turns unresolved gaps into questions for a technical lead, then feeds the answers back into the feature documents.

In plain words
What is it for?
Use it to collect and apply human decisions about missing, incomplete, or medium- and low-confidence migration details.
Why use it?
It makes uncertain behavior explicit instead of forcing the migration team to guess what the old system was meant to do.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python .sdd/python/sdd_reverse_scripts/check_ladder_traceability.py \.

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/agents/reverse-clarifier.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 reverse-clarifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/zekiriabd/sdd-pro/reverse-clarifier/github.svg)](https://agentmods.dev/agents/zekiriabd/sdd-pro/reverse-clarifier)
Your own site
<a href="https://agentmods.dev/agents/zekiriabd/sdd-pro/reverse-clarifier"><img src="https://agentmods.dev/badge/agents/zekiriabd/sdd-pro/reverse-clarifier/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reverse-clarifier

Your own site · 80×15
<a href="https://agentmods.dev/agents/zekiriabd/sdd-pro/reverse-clarifier"><img src="https://agentmods.dev/badge/agents/zekiriabd/sdd-pro/reverse-clarifier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 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,681 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.00133 $0.01681
Opus 5.5 $0.00053 $0.00672
Sonnet 5.5 $0.00027 $0.00336
Haiku 4.5 $0.00013 $0.00168

Measured 1mo ago against content hash e2cf940962a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

reverse-clarifier 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 1mo 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/agents/reverse-clarifier.md · 121 lines

How it starts

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

Agent Reverse-Clarifier — questions.md interactif (Phase 3.9)

Rôle

Transformer les gaps du reverse (aujourd'hui informationnels et dispersés) en boucle de clarification humaine fermée : chaque lacune devient une question formelle avec impact ; chaque réponse du Tech Lead est ré-injectée dans la FEAT avec traçabilité (human-validated: Q-N). C'est le canal officiel pour résoudre les items medium/low — l'alternative à l'invention (interdite §1).

Mode A — generate (défaut)

STEP 0 — Préconditions

Arguments : {LegacyProject}.

  • workspace/old/{P}/.sys/inventory.json existe. Sinon → STOP + ERROR [REVERSE_NO_SOURCE].
  • ≥ 1 FEAT reverse existe (workspace/feats/*.md avec generated-by: sdd-reverse et legacy-sources pointant {P}). Sinon → STOP + ERROR [REVERSE_UNIT_NOT_FOUND].
  • Lire le template .sdd/python/sdd_reverse/questions.reverse.template.md. Absent → STOP + ERROR [REVERSE_TEMPLATE_MISSING].

STEP 1 — Collecte déterministe des gaps (sources, dans cet ordre)

  1. Rapports de complétude existants : workspace/old/{P}/.sys/modules/*/completeness-review.md (gaps confirmés [REVERSE_COMPLETENESS_GAP]).
  2. Traçabilité escalier — re-runner pour chaque unité extraite :
    python .sdd/python/sdd_reverse_scripts/check_ladder_traceability.py \
        --project workspace/old/{P} --unit {U-N} --json
    
    (gaps [REVERSE_LADDER_TRACEABILITY_GAP]).
  3. Items FEAT confidence: medium|low (scan des <!-- confidence: ... -->).
  4. Sections ## Non dérivables des parity-map.md (si Phase 3.8 a tourné).
  5. Verdicts HUMAN-DECISION de curation.md (si Phase 2.7 a tourné).

Ne JAMAIS inventer un gap — chaque question pointe une source citable.

STEP 2 — Rédaction questions.md

Écrire workspace/old/{P}/.sys/questions.md depuis le template : 1 bloc par question, IDs Q-N stables (si le fichier existe déjà : conserver les blocs répondus tels quels, ajouter les nouveaux gaps en Q-{max+1}, ne JAMAIS renuméroter — miroir « IDs stables » CLAUDE.md §2).

Read the full file on GitHub · 121 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. 1mo ago First seen · 121 lines · 133 tokens per session scan A e2cf940962a8

Subscribe to this mod's changes

reverse-clarifier is an agent published in the GitHub repository zekiriabd/SDD-Pro (196 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 133 tokens to every session and 1,681 once invoked, about $0.0005 per session on Opus 5.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.