Legal: Command for Claude Code

.claude/commands/analyser-contrat.md

analyser-contrat is a command for Claude Code from BenjoNX/Legal. It costs 17 tokens per session (1,381 once invoked), scanned A, original, MIT.

A command for reviewing contracts under French law and an organisation's written requirements. It examines clauses, suggests changes, and assesses legal impact, but it is not a substitute for a qualified lawyer.

In plain words
What is it for?
Use it to review a PDF, DOCX, pasted contract, or link; provide your role, deadline, concerns, business context, and the organisation's requirements when available.
Why use it?
It helps identify differences and possible legal concerns without requiring a person to inspect every clause manually from the start.

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/analyser-contrat.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 analyser-contrat

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/benjonx/legal/analyser-contrat"><img src="https://agentmods.dev/badge/commands/benjonx/legal/analyser-contrat.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 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,381 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.00017 $0.01381
Opus 5 $0.00009 $0.00691
Sonnet 5 $0.00003 $0.00276
Haiku 4.5 $0.00002 $0.00138

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

Security

Grade A, and why

analyser-contrat 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 8d 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/analyser-contrat.md · 129 lines

How it starts

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

/analyser-contrat -- Analyse de contrat droit français

Analyse un contrat clause par clause selon le droit français, le Code civil (réforme de 2016), et le cahier des charges de l'organisation. Identifie les écarts, génère des suggestions de modification et évalue l'impact juridique.

Avertissement : Cet outil facilite l'analyse mais ne constitue pas un conseil juridique. Toute analyse doit être vérifiée par un avocat qualifié.

Invocation

/analyser-contrat

Workflow

Étape 1 : Réceptionner le contrat

Accepter le contrat sous tout format : fichier (PDF, DOCX), texte collé, ou lien.

Étape 2 : Recueillir le contexte

Demander à l'utilisateur :

  1. Votre position : prestataire, client, concédant, licencié, partenaire
  2. Échéance : Date limite de finalisation
  3. Points d'attention : Préoccupations spécifiques (données personnelles, responsabilité, PI, etc.)
  4. Contexte commercial : Taille du contrat, importance stratégique, relation existante

Étape 3 : Charger le cahier des charges

Chercher le cahier des charges dans legal-fr.local.md ou les fichiers de configuration locaux.

Si aucun cahier des charges n'est configuré :

  • Informer l'utilisateur
  • Proposer de procéder avec les standards du droit français (Code civil, droit des contrats post-réforme 2016)
  • Mentionner clairement que l'analyse repose sur le droit commun français

Étape 4 : Analyse clause par clause

Analyser systématiquement selon le droit français :

Catégorie de clause Points de contrôle clés
Formation du contrat Capacité, consentement (art. 1128 C. civ.), vices du consentement (erreur, dol, violence)
Objet et contrepartie Détermination du contenu (art. 1163), déséquilibre significatif (art. 1171), clauses abusives
Responsabilité contractuelle Plafond de responsabilité, clauses limitatives (art. 1231-3), force majeure (art. 1218)
Garanties et assurances Garantie des vices cachés, garantie d'éviction, assurance RC Pro
Propriété intellectuelle Cession de droits (L.131-3 CPI), licence, œuvres créées dans le cadre du contrat
Données personnelles Conformité RGPD, DPA/sous-traitance (art. 28 RGPD), CNIL
Confidentialité Durée, périmètre, exceptions, restitution
Durée et résiliation Durée déterminée/indéterminée, reconduction tacite (art. L.215-1 C. consom.), résiliation pour faute
Droit applicable et litiges Loi applicable, juridiction compétente, clause compromissoire, médiation (art. 750-1 CPC)
Cession du contrat Consentement requis (art. 1216 C. civ.), intuitu personae
Imprévision Clause de hardship, art. 1195 C. civ.
Clauses pénales Art. 1231-5 C. civ., pouvoir modérateur du juge

Read the full file on GitHub · 129 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. 8d ago First seen · 129 lines · 17 tokens per session scan A 3964d8901c69

Subscribe to this mod's changes

analyser-contrat is a command published in the GitHub repository BenjoNX/Legal (0 stars, last pushed 6mo ago), licensed MIT. It adds 17 tokens to every session and 1,381 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.