diagramar-peca

Converts written legal documents into professionally typeset PDFs using Typst templates.

50|17|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/emidio-trancoso/advocacia-aberta --skill diagramar-peca-emidio-trancoso
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: diagramar-peca
Source: https://github.com/emidio-trancoso/advocacia-aberta/tree/main/.agents/skills/3.2-diagramar-peca
Command: npx skills add https://github.com/emidio-trancoso/advocacia-aberta --skill diagramar-peca-emidio-trancoso

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires typst.

What problem does it solve? Legal documents written in plain Markdown or text lack professional visual presentation. This Skill transforms an already-written legal piece into a well-typeset PDF with Legal Design elements—cover page, highlights, block quotes, legal foundations, and timelines—without altering a single word of the original content. ## Core Features & Use Cases - Content-Preserving Typesetting: Copies the exact wording of the original piece; only the visual form changes, never the legal substance. - Legal Design Components: Applies visual elements like #destaque (highlights), #citacao (block quotes), #fundamento (legal foundations), #cronologia (timelines), and #marcador (section labels) with moderation. - Typst-Based PDF Generation: Creates a .typ file alongside the original document and compiles it to PDF using the Typst compiler and a bundled template. - Use Case: A lawyer finishes drafting a contestação (defense brief) in Markdown and needs to deliver it with a professional appearance. The Skill reads the file, maps each section to the right visual component, and produces a polished PDF ready for review. ## Quick Start Ask the assistant to diagram the legal piece at a given path, for example: diagram the piece at casos/meu-caso/pecas/contestacao-v1.md into a PDF.

Frequently Asked Questions about diagramar-peca

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a Markdown legal document into a formatted PDF?▼

Provide the path to your .md file and the Skill reads it, maps each section to visual components like highlights, block quotes, and timelines, generates a .typ file, and compiles it to PDF using Typst. The original wording is copied exactly without rewriting.

What tool does this Skill use to generate PDFs?▼

It uses Typst, a modern typesetting system, together with a bundled template file (template.typ). You compile the generated .typ file with the command typst compile to produce the final PDF.

Does the Skill change or rewrite the legal content of my document?▼

No. The Skill follows an absolute rule of never inventing, adding, or paraphrasing content. It only changes the visual form, copying the exact words from the original piece into the typeset output.

What happens if Typst is not installed on my system?▼

The Skill checks for Typst with typst --version and suggests installing it via brew install typst on macOS or from the official Typst repository. Without it, you can still receive the piece as clean formatted Markdown instead of a PDF.

Why does my Typst compilation fail with special characters?▼

Compilation usually fails because of unescaped characters. In running text, write \$ for the dollar sign (e.g., R\$ 2.400,00), but inside quoted strings use $ without the backslash. Characters like #, @, *, _, <, and > may also need escaping.