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
- 01Generate PDFs from MDX sources
- 02Review content and page layout
- 03Commit sources and PDFs together
- 04Preserve legal notices and document details
Use cases
- 01Regenerate PDFs after legal text changes
- 02Check PDF pagination and links
- 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-pdfsAfter installing, type/update-legal-pdfsin Claude Code to confirm it loaded.
Bundled filesscripts/generate.py
Details
From the project READMEUpdate legal PDFs
The source of truth is packages/docs/docs/{terms,privacy,dpa,dpia}.mdx. Do not edit the PDFs directly.
- Run
python3 .agents/skills/update-legal-pdfs/scripts/generate.pyfrom the repository root. Use a Python environment withreportlabinstalled. In Codex desktop,load_workspace_dependenciesprovides one. - 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. - Commit the changed MDX source and regenerated PDFs together.
/terms.pdf,/privacy.pdf,/dpa.pdf, and/dpia.pdfredirect to the corresponding/docs/*.pdffiles inpackages/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