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:

  1. Detects title/author from .planning/ACTIVE_WORKFLOW.md or PRECIS.md
  2. Combines all drafts/*Draft*.md files in section order (Introduction → Parts → Conclusion → Appendix)
  3. Strips YAML frontmatter and prefixes footnote labels to avoid cross-section collisions
  4. Resolves <!-- include: PATH --> sentinels by inlining file contents (paths must be absolute or ~-expanded)
  5. Runs pandoc with --reference-doc pointing to the law review template
  6. Optionally runs the docx-footnotes repair script (--fix-footnotes)

Compile-Time Includes

Installs
4
GitHub Stars
17
First Seen
Apr 27, 2026
law-review-docx — edwinhu/workflows