← Back to Skills Marketplace
hugosbl

Legal Docs FR

by HugoSbl · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
1890
Downloads
1
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install legal-docs-fr
Description
Génère en HTML CGV, mentions légales, contrats, et devis conformes au droit français pour freelances et micro-entrepreneurs.
README (SKILL.md)

Legal Docs FR

Générateur de documents juridiques français pour freelances/micro-entrepreneurs. Génère des CGV, mentions légales, contrats de prestation et devis en HTML.

Scripts

Tout dans scripts/. Python 3 stdlib uniquement. Documents dans ~/.freelance/legal/.

legal.py — Génération de documents juridiques

# CGV — Conditions Générales de Vente
python3 legal.py generate cgv [--no-open]
python3 legal.py generate cgv --tribunal "Paris" --mediateur "CMAP, Paris"

# Mentions légales pour un site web
python3 legal.py generate mentions --hebergeur "Vercel Inc, San Francisco" [--site "monsite.fr"] [--dpo "[email protected]"]

# Contrat de prestation de services
python3 legal.py generate contrat --client "Acme Corp" --mission "Développement application web" \
  --montant 5000 --duree "3 mois" [--client-address "10 rue Example, Paris"] \
  [--client-siret "12345678900010"] [--date-debut "01/03/2026"] [--non-sollicitation]

# Devis
python3 legal.py generate devis --client "Acme Corp" --items "Dev frontend:10:400" "Design UX:3:500" \
  [--number DEV-2026-001] [--date 2026-02-15]

# Lister tous les documents générés
python3 legal.py list [--json]

# Voir la configuration prestataire
python3 legal.py config [--json]

Tous les documents supportent --no-open pour ne pas ouvrir dans le navigateur.

Overrides prestataire (sur toutes les commandes generate)

--nom "Hugo Dupont" --siret "12345" --adresse "42 rue X" --email "[email protected]" --phone "06..."

Si ~/.freelance/config.json existe (du freelance-toolkit), les infos sont pré-remplies.

Documents générés

Type Fichier Contenu
CGV cgv.html 10 articles : objet, commandes, paiement (30j, 3×taux légal, 40€), délais, PI, responsabilité, résiliation, force majeure, juridiction, médiation
Mentions mentions.html Identité, hébergeur, directeur publication, RGPD (droits, finalités, DPO), cookies, PI
Contrat contrat-{client}-{ts}.html Parties, mission, durée, prix (30/70), obligations, confidentialité, PI, résiliation, non-sollicitation optionnelle
Devis DEV-YYYY-NNN.html Numéro auto, validité 30j, lignes de prestation, conditions de paiement, signature "Bon pour accord"

Configuration

Utilise ~/.freelance/config.json (partagé avec freelance-toolkit) :

{
  "provider": { "name": "...", "address": "...", "siret": "...", "email": "...", "phone": "..." },
  "micro_entreprise": true,
  "tva_rate": 0
}

Si micro_entreprise: true → mention art. 293B du CGI sur tous les documents.

Données

~/.freelance/legal/
├── cgv.html / cgv.json
├── mentions.html / mentions.json
├── contrat-acme-20260215-143022.html / .json
├── DEV-2026-001.html / .json
└── ...

Contenu juridique

Les documents incluent les clauses obligatoires du droit français :

  • Paiement : 30 jours, pénalités 3× taux légal, indemnité 40€ (art. D441-5 Code de commerce)
  • PI : Cession subordonnée au paiement intégral
  • Médiation : Obligatoire depuis 2016 (art. L611-1 Code de la consommation)
  • RGPD : Droits des personnes, finalités, durée conservation, contact DPO
  • Force majeure : Art. 1218 du Code civil

Voir references/french-legal-ref.md pour le détail des obligations légales.

Notes

  • HTML avec CSS inline, optimisé pour impression / export PDF
  • Montants au format français (2 900,00 €)
  • Initiales du prestataire comme logo (même style que les factures)
  • --json disponible sur list et config
Usage Guidance
This skill appears coherent and limited to local document generation. Before installing, consider: (1) review ~/.freelance/config.json contents — it may contain personal data (name, SIRET, email) you may not want written unencrypted; (2) generated files are stored under ~/.freelance/legal/ — verify file permissions if you share the machine; (3) the script may open generated HTML in your default browser unless you use --no-open; (4) the tool is not legal advice — have an attorney review any contract templates before use; (5) if you want maximum assurance, scan the entire scripts/legal.py file for any network calls or subprocess usage (the visible code uses only stdlib and webbrowser). If you are comfortable with local file writes and prefilling from your freelance config, the skill is reasonable to install.
Capability Analysis
Type: OpenClaw Skill Name: legal-docs-fr Version: 1.0.0 The OpenClaw AgentSkills bundle is benign. The `scripts/legal.py` script generates HTML legal documents and saves them, along with JSON metadata, to the user's `~/.freelance/legal/` directory. It reads configuration from `~/.freelance/config.json`. All file operations are confined to these user-specific directories, and it uses only Python standard libraries. The `webbrowser.open()` function is used to open locally generated HTML files, not remote URLs. There is no evidence of data exfiltration, malicious execution, persistence, obfuscation, or prompt injection attempts in `SKILL.md` or the Python code. The functionality is clearly aligned with its stated purpose.
Capability Assessment
Purpose & Capability
Name, intended outputs (CGV, mentions légales, contrats, devis) and the included Python script align. The skill requires no external credentials or binaries and only uses a shared local config (~/.freelance/config.json) as documented — this is appropriate for a document generator.
Instruction Scope
SKILL.md instructs running the included Python script, explains command-line options, and states where documents are stored (~/.freelance/legal/) and that it will read ~/.freelance/config.json if present. The script (as shown) reads/writes only local files and optionally opens HTML in the browser. There are no instructions to read unrelated system files or exfiltrate data.
Install Mechanism
No install spec is provided (instruction-only with a bundled Python script). That minimizes install risk; the script claims to use only the Python standard library, which matches the visible imports (argparse, json, os, webbrowser, datetime, pathlib).
Credentials
The skill requests no environment variables, no external credentials, and only references a local config file (~/.freelance/config.json) documented in SKILL.md. That local config is reasonable for prefilling provider data; there are no disproportionate secret requests.
Persistence & Privilege
always is false, the skill is user-invocable, and it does not request persistent elevated privileges or modify other skills. It writes its own data under the user's home directory (~/.freelance/legal/), which is expected behavior for a document generator.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install legal-docs-fr
  3. After installation, invoke the skill by name or use /legal-docs-fr
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Generate CGV, legal notices, contracts, quotes. French law compliant HTML output.
Metadata
Slug legal-docs-fr
Version 1.0.0
License
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Legal Docs FR?

Génère en HTML CGV, mentions légales, contrats, et devis conformes au droit français pour freelances et micro-entrepreneurs. It is an AI Agent Skill for Claude Code / OpenClaw, with 1890 downloads so far.

How do I install Legal Docs FR?

Run "/install legal-docs-fr" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Legal Docs FR free?

Yes, Legal Docs FR is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Legal Docs FR support?

Legal Docs FR is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Legal Docs FR?

It is built and maintained by HugoSbl (@hugosbl); the current version is v1.0.0.

💬 Comments