Use when the user wants to update, edit, or modify any legal document page - including privacy policy, user privacy choices, terms of service, or other legal/compliance pages. Ensures proper versioning with snapshot backups, revision history updates, and date changes.
Update the specified legal document: $ARGUMENTS
Follow these steps in order.
Legal documents are stored as MDX files in content/{project}/{lang}/:
core, simsdig, etc.)content/{project}/snapshots/Before editing, duplicate the current file into content/{project}/snapshots/ with the date of the previous version:
content/{project}/snapshots/{doc-name}_{DD-month-YYYY}.mdx
Example: privacy-policy_24-march-2026.mdx - underscore separates doc name from date.
The date in the filename should match the "Last Updated" date before the change, not today's date.
Make the requested changes to the target MDX file.
Change the date at the top of the document to today's date:
**Last Updated: [Today's Date]**
Add a new entry at the bottom of the document in the "Revision History" section:
- **[Today's Date]** - [Brief description of changes made].
Run bunx tsc --noEmit to ensure no TypeScript errors.
Commit with a descriptive message: