mcpField
U
update-legal-pdfs

update-legal-pdfs

github.com/remotion-devDocuments68.6k172 installsUpdated today
Repository

About update-legal-pdfs

update-legal-pdfs is a skill for regenerating legal PDFs from MDX source files in a repository. It specifies a generation and review workflow so source documents and PDFs can be committed together.

Key features

  1. 01Generate PDFs from MDX sources
  2. 02Review content and page layout
  3. 03Commit sources and PDFs together
  4. 04Preserve legal notices and document details

Use cases

  1. 01Regenerate PDFs after legal text changes
  2. 02Check PDF pagination and links
  3. 03Prepare source and PDF files for a commit

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/remotion-dev/remotion --skill update-legal-pdfs

After installing, type/update-legal-pdfsin Claude Code to confirm it loaded.

Bundled filesscripts/generate.py

Details

From the project README

Update legal PDFs

The source of truth is packages/docs/docs/{terms,privacy,dpa,dpia}.mdx. Do not edit the PDFs directly.

  1. Run python3 .agents/skills/update-legal-pdfs/scripts/generate.py from the repository root. Use a Python environment with reportlab installed. In Codex desktop, load_workspace_dependencies provides one.
  2. Review the four files in packages/docs/static/docs/. Confirm each PDF retains the source title, notices, headings, tables, links, and final contact details. Render the pages to check wrapping and page breaks.
  3. Commit the changed MDX source and regenerated PDFs together. /terms.pdf, /privacy.pdf, /dpa.pdf, and /dpia.pdf redirect to the corresponding /docs/*.pdf files in packages/docs/vercel.ts.

The generator omits the MDX-only download link to avoid a PDF linking to itself. It keeps the source's legal status notices, including the upcoming Remotion 5.0 notices in the Terms and Privacy Policy.

Comments

Markdown supported