joe-salamy/agent-docx ? reverse-engineered prompt

Reverse engineered prompt

Build me a local first legal drafting tool that takes Markdown and turns it into real DOCX files for motions and court filings.

I want to start with a project file, add one or more documents, make revision checkpoints, and then export either a clean version or a redlined version with tracked changes. It should keep drafts reproducible, reject stale edits, and show guidance for page and line limits before exporting. Please include validation against a rule pack, support for filing sets, and a way to inspect or compare revisions so I can see what changed. If it helps, look up current docs online for Word or LibreOffice validation details.

Make it feel like a serious command line tool that an agent can use, with clear errors, JSON output where useful, and a simple workflow that does not depend on Pandoc. I also want optional checks against Microsoft Word or LibreOffice, but the document generation itself should happen locally in the app.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab