SDD-Pro: Command for Claude Code

.claude/commands/arch-init.md

arch-init is a command for Claude Code from zekiriabd/SDD-Pro. It costs 21 tokens per session (1,386 once invoked), scanned A, original, Apache-2.0.

A command that prepares the basic structure of a software project from the selected technology stack. When a database is configured, it can also inspect the database and create starter application models and context code.

In plain words
What is it for?
Use it to bootstrap an empty project, create its projects and dependencies, and optionally scaffold database-first code.
Why use it?
It creates the initial projects and connections needed before development can begin, and can be run again without replacing work that is already initialized.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

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/arch-init.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 arch-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/zekiriabd/sdd-pro/arch-init/github.svg)](https://agentmods.dev/commands/zekiriabd/sdd-pro/arch-init)
Your own site
<a href="https://agentmods.dev/commands/zekiriabd/sdd-pro/arch-init"><img src="https://agentmods.dev/badge/commands/zekiriabd/sdd-pro/arch-init/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 arch-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/zekiriabd/sdd-pro/arch-init"><img src="https://agentmods.dev/badge/commands/zekiriabd/sdd-pro/arch-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 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,386 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.00021 $0.01386
Opus 5.5 $0.00008 $0.00554
Sonnet 5.5 $0.00004 $0.00277
Haiku 4.5 $0.00002 $0.00139

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

Security

Grade A, and why

arch-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 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/commands/arch-init.md · 145 lines

How it starts

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

/arch-init — Bootstrap idempotent (projets vides + scaffolding DB)

⚠️ Commande interne v7.0.0 — invoquée par /dev-run STEP 5. Utilisateur final : préférer /sdd-full ou /dev-run (gèrent pré-conditions, idempotence, état).

Invoque l'agent arch pour préparer l'ossature complète du projet à partir des stacks actifs :

  • Phase A : création de la solution, des projets vides, des références inter-projets, et installation des dépendances racine
  • Phase B : si DatabaseType ≠ none, introspection READ-ONLY de la base + scaffolding Database-First (entities + DbContext)

Idempotent : relancer la commande ne casse rien — les projets déjà initialisés sont skippés. Le scaffolding DB --force est incrémental.

Usage : /arch-init (aucun argument).


STEP 1 — Vérifier le stack

Vérifier que workspace/stack/stack.md existe et contient au moins une entrée non commentée sous ## Active Tech Specs.

Si absent ou vide →

ERROR: /arch-init — stack non sélectionné
CAUSE: [STACK_MALFORMED] workspace/stack/stack.md manque ou ## Active Tech Specs vide
FIX: créer workspace/stack/stack.md et activer au moins un backend ou frontend

STEP 2 — Vérifier les blocs ## Active Database + ## Active Auth Specs

Lire workspace/stack/stack.md → récupérer le bloc ## Active Database (depuis 2026-05-14, DatabaseType n'est plus dans ## Project Config).

  • Si ## Active Database absent OU DatabaseType: none → SKIP le check DB.
  • Sinon → vérifier que les 5 clés sont présentes (valeur non vide) : DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD. Si une seule manque :
    ERROR: /arch-init — clé(s) DB manquante(s) dans ## Active Database
    CAUSE: [ENV_MISSING] clés non définies : {liste}
    FIX: renseigner les valeurs dans workspace/stack/stack.md ## Active Database
    

Si un stack auth est listé sous ## Active Auth Specs, vérifier les clés AZ_* (cf. auth/azure-ad.md §2). Manquantes → ERROR similaire.

Read the full file on GitHub · 145 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 · 145 lines · 21 tokens per session scan A 6f9bb7bb0be0

Subscribe to this mod's changes

arch-init is a command published in the GitHub repository zekiriabd/SDD-Pro (196 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 21 tokens to every session and 1,386 once invoked, about $0.0001 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.