legalfrance

Search & Research
v1.0.1
Benign

Assistant juridique français RAG sur codes et lois consolidés (LEGI/DILA)

517 downloads517 installsby @msgnoki

Setup & Installation

Install command

clawhub install msgnoki/legalfrance

If the CLI is not installed:

Install command

npx clawhub@latest install msgnoki/legalfrance

Or install with OpenClaw CLI:

Install command

openclaw skills install msgnoki/legalfrance

or paste the repo link into your assistant's chat

Install command

https://github.com/openclaw/skills/tree/main/skills/msgnoki/legalfrance

What This Skill Does

French legal assistant that answers questions about French law using hybrid retrieval (full-text search + vector search) over the LEGI/DILA consolidated legislative corpus. Answers include verifiable citations to specific articles. Requires a one-time index initialization that downloads roughly 2GB of data.

Grounds answers in the actual consolidated LEGI corpus via hybrid retrieval rather than relying on an LLM's potentially outdated or hallucinated knowledge of French legislation.

When to Use It

  • Looking up specific articles in the French Civil Code or other codes
  • Checking whether a contract clause meets legal requirements under French law
  • Getting a structured breakdown of a legislative provision with its limits
  • Searching raw text across consolidated French codes for a keyword or concept
  • Summarizing applicable law for a given situation with cited sources
View original SKILL.md file
# LegalFrance

Assistant juridique FR basé sur un retrieval hybride (FTS + vector) avec citations d'articles.

## Première utilisation — initialisation du référentiel

Si les index sont absents (`data/chroma_db` ou `data/fts_index.db` manquants), **demander confirmation à l'utilisateur avant d'exécuter** :

```bash
python scripts/ingest.py
```

⚠️ Cette étape télécharge le corpus LEGI (HuggingFace) et le modèle d'embeddings BGE-M3 (~2 Go au total) puis écrit les index sur disque. Durée estimée : 20–40 min selon la connexion.

Demander : *"L'initialisation va télécharger ~2 Go de données (corpus juridique + modèle). Confirmer ?"*

## Utilisation

Question juridique :

```bash
python scripts/one_shot.py "<question>"
```

Mode structuré JSON :

```bash
python scripts/one_shot.py "<question>" --json
```

Recherche brute dans les codes :

```bash
python scripts/search.py "<requête>" 5
```

## Règles de réponse

- Citer uniquement les sources retrouvées dans les index
- Ne jamais inventer d'article ou de décision
- Si sources insuffisantes : le dire explicitement
- Format recommandé : Principe → Application → Limites → Sources
- Disclaimer obligatoire en fin de réponse (information générale, pas conseil juridique personnalisé)

## Module jurisprudence (optionnel)

Le module `search_jurisprudence` (Cour de cassation / Conseil d'État) est optionnel.
S'il est absent, le skill fonctionne normalement sur les codes législatifs uniquement.

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Looking up specific articles in the French Civil Code or other codes

AGENT
  1. 1Looking up specific articles in the French Civil Code or other codes
  2. 2Checking whether a contract clause meets legal requirements under French law
  3. 3Getting a structured breakdown of a legislative provision with its limits
  4. 4Searching raw text across consolidated French codes for a keyword or concept
  5. 5Summarizing applicable law for a given situation with cited sources
OUTPUT
Assistant juridique français RAG sur codes et lois consolidés (LEGI/DILA)

Share this skill

Security Audits

VirusTotalBenign
OpenClawBenign
View full report

These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.

Details

LanguageMarkdown
Last updatedFeb 26, 2026