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.
npx agentmods add commands/intentdriven/abcd/prepare-this-repogit clone --depth 1 https://github.com/intentdriven/abcdWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00093 | $0.03287 |
| Opus 5 | $0.00046 | $0.01643 |
| Sonnet 5 | $0.00019 | $0.00657 |
| Haiku 4.5 | $0.00009 | $0.00329 |
Grade A, and why
prepare-this-repo 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Prepare this repo
An interim bridge: abcd cannot yet manage repositories directly, so this command
reads the abcd record and brings the current repository up to its conventions
in a way the abcd CLI can later take over without unpicking. It supersedes the
older scaffold-repo layout (.work/ at the repo root); Phase 3 migrates that
layout when found.
Locate the record first. This command file lives at
<abcd-root>/commands/prepare-this-repo.md — the abcd repository root is two
levels up from it, the same root ${CLAUDE_PLUGIN_ROOT} names (Phase 2 onward
uses it for the binary). Call that $ABCD below. Never assume any other
checkout location.
Phase 0 — Refuse unless the user owns this repo
Check the origin remote (git remote get-url origin). If the repository is not
owned by the user (their account or an org they control) — or there is no
remote and the user cannot confirm ownership — stop entirely. No audit, no
local layer, no exceptions: imposing these conventions on a third-party repo
interferes with its own development principles.
Authority ordering
Parts of the abcd record are still being reconciled. When sources conflict, trust in this order:
$ABCD/AGENTS.md— the binding conventions.$ABCD/.abcd/work/CONTEXT.md— current phase and the Live constraints / sharp edges section, which names what is not yet authoritative.$ABCD/.abcd/development/decisions/adrs/— ratified decisions.- Everything else (brief, intents, research) — read for understanding, not as gospel.
Phase 1 — Orient
Read from $ABCD, delegating heavy reading to subagents where available:
.abcd/README.md— the three-tier layout (durability × sharing):development/(durable record, committed),work/(shared working state, committed),.work.local/(local ephemeral, gitignored)..abcd/development/brief/— the shape of a design brief (product, constraints, evidence, surfaces, internals, delivery, glossary)..abcd/development/principles/— one principle per file, plus the three-rung promotion ladder in its README..abcd/development/decisions/adrs/— MADR, sequentialNNNN. Session decisions live inwork/DECISIONS.md; architecture-shaping ones graduate..abcd/development/intents/— lifecycle by directory (drafts/→planned/→shipped/→superseded/).docs/README.md— strict Diátaxis, four directories, present tense only, user-facing only..abcd/docs-lint.jsonandrecord-lint.json— study as patterns (banned-token rules with severity, fix message,allow_contextescapes)..abcd/.work.local/private-names.txt— if present: the banlist for the Phase 2 privacy audit. Its contents are read-only context; never reproduce them in anything committed or published. Do not read anything else under$ABCD/.abcd/.work.local/.
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.
- 2d ago First seen · 253 lines · 93 tokens per session scan A 927405326642
prepare-this-repo is a command published in the GitHub repository intentdriven/abcd (3 stars, last pushed 2d ago), licensed MIT. It adds 93 tokens to every session and 3,287 once invoked, about $0.0005 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-31.
Other commands, from other repositories
legal
Primary entry point for all BetterCallClaude requests — classifies intent, resolves jurisdiction (via swiss-legal-research), runs inline briefing for complexity 4–6, activates full briefing session when complexity ≥ 7 (via legal-intake skill), and routes to specialist agents or workflow pipelines. Invoked explicitly…
help
Show complete BetterCallClaude command reference, available agents, skills, and usage examples.
legal-5step
Execute the BetterCallClaude 5-step Swiss legal framework: intake → research → strategy → adversarial → draft. A complete end-to-end pipeline for any Swiss legal matter, from document analysis through final legal output.
workflow
Define and execute multi-agent legal workflows -- due diligence, litigation prep, contract lifecycle, real estate closing.
briefing
Structured pre-execution briefing session -- collects case context through specialist panel, builds execution plan, supports resume and depth control.
legal-goal
Define a checkable legal success condition for /legal-loop. Accepts a named profile (citations-clean, draft-passes-gate, adversarial-converge, nda-batch-clean, reg-watch, timeline-sourced) or free-text objective. Produces a persisted Goal Record — never starts work itself.