esporta-documento

esporta-documento is a skill for Claude Code from capazme/mcp-legal-it. It costs 157 tokens per session (2,093 once invoked), scanned A, original, Apache-2.0.

A tool for saving an already-written legal deliverable as a Word document or PDF. Legal deliverables include items such as privacy notices, data-processing agreements, impact assessments, legal opinions, and case-law analyses.

In plain words
What is it for?
Use it to export legal text into .docx and/or PDF files in the active folder, including privacy, compliance, litigation, and billing documents.
Why use it?
It removes the manual formatting and file-generation work after the legal text has been prepared. It can apply the specified law-firm typography when that template is available.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the legal-it plugin — 23 skills, 8 commands, 6 agents, 1 hook, 1 MCP server shipped together

Good fit Use it to export legal text into .docx and/or PDF files in the active folder, including privacy, compliance, litigation, and billing documents.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add capazme/mcp-legal-it
Claude Code
/plugin install legal-it

Made for: Claude Code.

Or install legal-it, the plugin that ships this one along with the rest of its 23 skills, 8 commands, 6 agents, 1 hook, 1 MCP server.

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 esporta-documento

README.md
[![agentmods](https://agentmods.dev/badge/skills/capazme/mcp-legal-it/esporta-documento/github.svg)](https://agentmods.dev/skills/capazme/mcp-legal-it/esporta-documento)
Your own site
<a href="https://agentmods.dev/skills/capazme/mcp-legal-it/esporta-documento"><img src="https://agentmods.dev/badge/skills/capazme/mcp-legal-it/esporta-documento/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 esporta-documento

Your own site · 80×15
<a href="https://agentmods.dev/skills/capazme/mcp-legal-it/esporta-documento"><img src="https://agentmods.dev/badge/skills/capazme/mcp-legal-it/esporta-documento.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,093 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.00157 $0.02093
Opus 5 $0.00078 $0.01046
Sonnet 5 $0.00031 $0.00419
Haiku 4.5 $0.00016 $0.00209

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

Security

Grade A, and why

esporta-documento 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 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/render_legal_docx.js, scripts/render_legal_pdf.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugin/skills/esporta-documento/SKILL.md · 145 lines

How it starts

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

esporta-documento — Word/PDF di un deliverable legale

Scopo

Rendere un deliverable testuale gia' prodotto (un parere, un'informativa privacy, un DPA, una DPIA, un registro trattamenti, una parcella, un atto, una sintesi giurisprudenziale) in un file .docx e/o .pdf salvato nella cartella attiva, applicando — quando disponibile — il canone tipografico dello Studio SAPG (Times New Roman 12, interlinea 1,5, rientro prima riga 0,5 cm, corpo giustificato).

Lo skill NON richiama alcun tool MCP: si limita a invocare due script locali via Bash. La generazione del contenuto (il parere, l'informativa, ecc.) avviene PRIMA, con i tool o le skill appropriate; questo skill prende quel testo e lo trasforma in un file consegnabile.

Quando usare lo skill

  • L'utente chiede esplicitamente di esportare / salvare un documento in Word o PDF.
  • Al termine di un workflow (/parere, /giurisprudenza, /compliance, oppure le skill parere-legale, analisi-giurisprudenziale, compliance-privacy) quando l'utente vuole il deliverable come file.
  • L'utente ha appena ricevuto da un tool un dict con un campo testo (es. genera_informativa_privacy, genera_dpa, genera_dpia, genera_registro_trattamenti, genera_notifica_data_breach) e vuole il file finito.

Sorgente del contenuto

Due casi, entrambi gestiti dallo stesso flusso:

  1. Markdown dal transcript — il documento e' gia' stato scritto nella conversazione come testo markdown. Riusa quel markdown tale e quale.
  2. Campo testo di un tool — un tool GDPR/Privacy ha restituito un dict {"testo": "...", ...}. Estrai il valore di testo (e' gia' markdown/testo formattato) e usalo come contenuto.

In entrambi i casi: scrivi il contenuto in un file markdown temporaneo con lo strumento Write, poi passalo agli script con --input. In alternativa puoi passarlo via stdin.

Cartella attiva (active folder)

Il file viene scritto nella cartella attiva, cioe' la directory di lavoro del processo (process.cwd() / os.getcwd()). L'utente puo' forzare una cartella diversa con --dir. Lo script stampa su stdout il path assoluto del file creato: riportalo SEMPRE all'utente.

Read the full file on GitHub · 145 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 145 lines · 157 tokens per session scan A 41f2075e584f

Subscribe to this mod's changes

esporta-documento is a skill published in the GitHub repository capazme/mcp-legal-it (15 stars, last pushed yesterday), licensed Apache-2.0. It adds 157 tokens to every session and 2,093 once invoked, about $0.0008 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-30.

Related

Other skills, from other repositories

contract-analyzer

OCR a contract PDF with mistralocr, then extract structured clauses and risk scores with mistralchat + jsonschema. Use when the user provides a contract document to analyze for risks, obligations, and key terms.

Swih/mistral-mcp · 44 tokens

meta-pdf-reformat-pipeline

Modernize a legacy PDF: structural extraction → natural-language rewrite of problem pages → audit summary → re-merge into the final PDF.

opensquilla/opensquilla · 35 tokens

audit-export

Export the full CocoAudit trail as a stakeholder-ready compliance document.

Snowflake-Labs/cocoplus · 15 tokens

pdf-invoice-extractor

OCR a PDF invoice with mistralocr and extract structured line-item data (vendor, date, amounts, VAT) for accounting reconciliation. Use when the user provides an invoice PDF to process.

Swih/mistral-mcp · 39 tokens

official-doc

Produce a 31C official document (board resolution, formal notice, letter of position, certificate of authority) using the locked corporate template. Authoritative voice, declarative language, reference numbering, and official seal block. Renders to PDF + DOCX. Trigger when the user says "board resolution", "formal…

mishahanin/heading-os · 98 tokens

partnership-doc

Produce a 31C partnership document (MOU, Letter of Intent, or term sheet) using the locked corporate template. Legal-adjacent document defining mutual obligations, governance, territory, exclusivity, and confidentiality between 31 Concept and a counterparty. Renders to PDF + DOCX. Trigger when the user says "MOU"…

mishahanin/heading-os · 116 tokens