Legal: Command for Claude Code

.claude/commands/rechercher-droit.md

rechercher-droit is a command for Claude Code from BenjoNX/Legal. It costs 19 tokens per session (898 once invoked), scanned A, original, MIT.

A command for searching official French legal sources, including Légifrance for laws and regulations and JudiLibre for court decisions. It supports searches using terms, article references, decision numbers, courts and time periods.

In plain words
What is it for?
Use it to find codes, laws, decrees, ordinances and court decisions; its results support research but are not legal advice.
Why use it?
It reduces the need to search several legal databases separately when looking for French legislation or case law.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is BenjoNX/Legal's own configuration. It tells Claude Code how to work on Legal 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 Legal configures →

Reuse

Borrowing it

Nothing to install: this file belongs to BenjoNX/Legal. 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/BenjoNX/Legal/claude/french-legal-mcp-server-FwIH9/.claude/commands/rechercher-droit.md
Clone the repo
git clone --depth 1 https://github.com/BenjoNX/Legal

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 rechercher-droit

README.md
[![agentmods](https://agentmods.dev/badge/commands/benjonx/legal/rechercher-droit/github.svg)](https://agentmods.dev/commands/benjonx/legal/rechercher-droit)
Your own site
<a href="https://agentmods.dev/commands/benjonx/legal/rechercher-droit"><img src="https://agentmods.dev/badge/commands/benjonx/legal/rechercher-droit/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 rechercher-droit

Your own site · 80×15
<a href="https://agentmods.dev/commands/benjonx/legal/rechercher-droit"><img src="https://agentmods.dev/badge/commands/benjonx/legal/rechercher-droit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 898 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.00019 $0.00898
Opus 5 $0.00010 $0.00449
Sonnet 5 $0.00004 $0.00180
Haiku 4.5 $0.00002 $0.00090

Measured 10d ago against content hash b22edadc4a20, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

rechercher-droit 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 10d 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/rechercher-droit.md · 83 lines

How it starts

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

/rechercher-droit -- Recherche juridique française

Recherche dans les bases officielles du droit français via le serveur MCP Droit Français : Légifrance (codes, lois, décrets, ordonnances) et JudiLibre (jurisprudence).

Avertissement : Cet outil facilite la recherche juridique mais ne constitue pas un conseil juridique. Toute analyse doit être vérifiée par un professionnel du droit qualifié.

Invocation

/rechercher-droit [termes de recherche]

Workflow

Étape 1 : Comprendre la demande

Analyser la demande de l'utilisateur pour déterminer :

  1. Type de recherche : Texte législatif, jurisprudence, ou les deux
  2. Termes de recherche : Mots-clés, références d'articles, numéros de décision
  3. Périmètre : Fonds spécifique (Code civil, JORF, etc.), juridiction, période

Étape 2 : Recherche dans Légifrance

Si la demande concerne des textes législatifs ou réglementaires, utiliser l'outil MCP rechercher_legifrance() :

  • Codes : fond="CODE_ETAT", avec le nom du code (code="Code civil")
  • Lois et décrets : fond="LODA_ETAT" ou fond="JORF"
  • Jurisprudence Légifrance : fond="JURI" (judiciaire), fond="CETAT" (Conseil d'État), fond="CONSTIT" (Conseil constitutionnel)
  • Conventions collectives : fond="KALI"
  • Recherche transversale : fond="ALL"

Pour obtenir le texte intégral d'un résultat, utiliser consulter_legifrance(id).

Étape 3 : Recherche dans JudiLibre

Si la demande concerne la jurisprudence, utiliser rechercher_jurisprudence_judilibre() :

  • Juridiction : cc (Cour de cassation), ca (cours d'appel), tj (tribunaux judiciaires), tcom (tribunaux de commerce)
  • Chambre : civ1, civ2, civ3, comm, soc, cr (criminelle), pl (plénière)
  • Localisation : ca_paris, ca_lyon, etc.
  • Filtres : type de décision, solution, thème, dates

Pour obtenir le texte intégral d'une décision, utiliser consulter_decision_judilibre(id).

Pour connaître les valeurs valides des filtres, utiliser obtenir_taxonomie_judilibre().

Read the full file on GitHub · 83 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. 10d ago First seen · 83 lines · 19 tokens per session scan A b22edadc4a20

Subscribe to this mod's changes

rechercher-droit is a command published in the GitHub repository BenjoNX/Legal (0 stars, last pushed 6mo ago), licensed MIT. It adds 19 tokens to every session and 898 once invoked, about $0.0001 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.