← 返回 Skills 市场
msgnoki

LegalFrance

作者 msgnoki · GitHub ↗ · v1.0.1
cross-platform ✓ 安全检测通过
755
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install legalfrance
功能描述
Assistant juridique français RAG sur codes et lois consolidés (LEGI/DILA). Utiliser pour questions de droit français, recherche d'articles, explication de textes législatifs, synthèse juridique avec citations vérifiables.
使用说明 (SKILL.md)

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 :

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 :

python scripts/one_shot.py "\x3Cquestion>"

Mode structuré JSON :

python scripts/one_shot.py "\x3Cquestion>" --json

Recherche brute dans les codes :

python scripts/search.py "\x3Crequê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.

安全使用建议
This skill appears to do what it says: build a local RAG assistant over the LEGI dataset and produce SYSTEM+USER prompts for an LLM. Before installing/running: (1) review the scripts yourself (they are included) and run them in an isolated environment/VM if you are concerned; (2) ensure you have ~2+ GB free and sufficient disk space for indexes; (3) be prepared to install Python packages (datasets, chromadb, sentence_transformers) and possibly provide a HuggingFace token if a model requires authentication; (4) note the skill will write persistent indexes under data/, so back up or choose an appropriate working directory; (5) understand the skill supplies a strict system prompt that will control downstream LLM outputs — this is normal for RAG but worth reviewing if you plan to run the LLM with different safety settings.
功能分析
Type: OpenClaw Skill Name: legalfrance Version: 1.0.1 The OpenClaw skill 'legalfrance' is designed as a RAG-based legal assistant. All code and instructions align with this stated purpose. The `SKILL.md` explicitly instructs the AI agent to ask for user confirmation before executing the `scripts/ingest.py` command, which downloads approximately 2GB of legal corpus and embedding models from HuggingFace. This is a critical safeguard against unauthorized resource consumption. The Python scripts use standard practices, including parameterized queries for SQLite, mitigating common injection vulnerabilities. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempts designed to subvert the agent's intended behavior or compromise the system. All network and disk operations are directly tied to the skill's legitimate functionality.
能力评估
Purpose & Capability
Name/description match the code and scripts: ingestion from AgentPublic/legi, ChromaDB + SQLite FTS search, RAG prompt builder and helpers. No unrelated env vars, binaries, or external services are requested.
Instruction Scope
SKILL.md instructs running ingest/search/one_shot scripts and requires user confirmation before the ingest (which downloads ~2 GB). The code builds a strong SYSTEM_PROMPT for the LLM (this triggered a 'system-prompt-override' pattern). That is expected for a RAG assistant, but you should be aware the skill supplies explicit system-level instructions that will guide any LLM used with the prompts.
Install Mechanism
There is no automated install spec (instruction-only), which lowers automated install risk. Running the scripts requires third-party Python packages (datasets, chromadb, sentence_transformers) and will download a large embedding model (BAAI/bge-m3) and the HF dataset. Downloads come from known hosts (HuggingFace, model hub) rather than arbitrary URLs, but expect heavy network and disk activity.
Credentials
The skill declares no required environment variables or credentials (good). One caveat: downloading some models or private HF resources can require a HuggingFace token (HF_TOKEN) or similar not declared here; this may cause runtime prompts or failures but is not evidence of hidden credential demands.
Persistence & Privilege
The skill writes indexes to a local data/ directory (chroma_db and fts_index.db) as expected for a local RAG assistant. It does not request always:true or modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install legalfrance
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /legalfrance 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Correctifs sécurité : confirmation explicite avant ingest, import search_jurisprudence optionnel (gracieux si absent), SKILL.md révisé.
v1.0.0
Version initiale en français : base RAG juridique FR avec initialisation automatique du référentiel.
元数据
Slug legalfrance
版本 1.0.1
许可证
累计安装 0
当前安装数 0
历史版本数 2
常见问题

LegalFrance 是什么?

Assistant juridique français RAG sur codes et lois consolidés (LEGI/DILA). Utiliser pour questions de droit français, recherche d'articles, explication de textes législatifs, synthèse juridique avec citations vérifiables. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 755 次。

如何安装 LegalFrance?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install legalfrance」即可一键安装,无需额外配置。

LegalFrance 是免费的吗?

是的,LegalFrance 完全免费(开源免费),可自由下载、安装和使用。

LegalFrance 支持哪些平台?

LegalFrance 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 LegalFrance?

由 msgnoki(@msgnoki)开发并维护,当前版本 v1.0.1。

💬 留言讨论