law-review-docx
Installation
SKILL.md
Law Review DOCX Export
Convert markdown drafts into a properly formatted Word document using the law review template via pandoc.
Usage
uv run python3 ${CLAUDE_SKILL_DIR}/scripts/build_docx.py PROJECT_DIR [--output PATH] [--fix-footnotes]
The script:
- Detects title/author from
.planning/ACTIVE_WORKFLOW.mdorPRECIS.md - Combines all
drafts/*Draft*.mdfiles in section order (Introduction → Parts → Conclusion → Appendix) - Strips YAML frontmatter and prefixes footnote labels to avoid cross-section collisions
- Resolves
<!-- include: PATH -->sentinels by inlining file contents (paths must be absolute or~-expanded) - Runs pandoc with
--reference-docpointing to the law review template - Optionally runs the docx-footnotes repair script (
--fix-footnotes)