esporta-documento

esporta-documento is a skill for Claude Code from capazme/mcp-legal-it. It costs 157 tokens per session (1,887 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.

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, 9 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, 9 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 1,887 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.01887
Opus 5.5 $0.00063 $0.00755
Sonnet 5.5 $0.00031 $0.00377
Haiku 4.5 $0.00016 $0.00189

Measured 1mo ago against content hash c85a02e119f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 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, con uno stile forense di base (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 · 138 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. 1mo ago Changed · -7 lines c85a02e119f4
  2. 3mo 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 (33 stars, last pushed 15d ago), licensed Apache-2.0. It adds 157 tokens to every session and 1,887 once invoked, about $0.0006 per session on Opus 5.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

esporta-documento compared with skills from other repositories

esporta-documento next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
esporta-documentocapazme/mcp-legal-itSkill3315d agoApache-2.0A157Claude Code
meta-pdf-reformat-pipelineopensquilla/opensquillaSkill7.2k7d agoApache-2.0A35Claude Code, Codex
audit-exportSnowflake-Labs/cocoplusSkill73026d agoMITA15Claude Code
docx-to-hlzlsj4232/KR_PATENT_SKILLSkill7113d agoMITA52Claude Code, Codex
contract-analyzerSwih/mistral-mcpSkill15todayMITA38Claude Code
format-monitoring-reportsergeionlyart/minius_codex_labSkill61mo agoApache-2.0A91Codex
partnership-docmishahanin/heading-osSkill112mo agoApache-2.0A116Claude Code