Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

expert-report-docx

БесплатноЗапускает вложенные скриптыНе проверен

Use this skill to BUILD the served Word file of an EXPERT REPORT for litigation from markdown drafts — page-1 court caption, numbered paragraphs, Bluebook…

edwinhuот edwinhu★ 28 звёзд на GitHub

Об этом скилле

Expert Report DOCX Export

What this skill carries — grep references/ for any subject the names below miss: !d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"

Builds the served form of an expert report from drafts/*Draft*.md: caption on page 1, text starting under it, no running header, numbered paragraphs, real Word footnotes with Bluebook short forms. The layout values are measured from a served reference report (docs/investigations/2026-11-10_expert-report-template.md).

This is the only correct way to build the report's .docx — never hand-roll pandoc. Agents without the Skill tool run the script directly:

Usage

uv run python3 ${CLAUDE_SKILL_DIR}/scripts/build_docx.py PROJECT_DIR [--output PATH] \
    [--caption FILE] [--bib FILE] [--draft-header] [--exhibits DIR] [--pdf] \
    [--typography smallcaps|plain]
Flag Default
--output PROJECT_DIR/output/expert-report.docx
--caption PROJECT_DIR/caption.yaml, then caption: in the frontmatter of the writing plan (.planning/*.md with workflow: writing); none → warning, no caption
--bib PROJECT_DIR/references/sources.bib, else the only references/*.bib
--draft-header off: no header, as served. On (or draft_header: true in the caption) adds "DRAFT, PRIVILEGED AND CONFIDENTIAL"
--exhibits none. A directory, lettered in filename order (or caption exhibits: list); .md rendered (lists as Ordinal Point paragraphs), .pdf/.docx listed by name, each after an EXHIBIT A slip page
--pdf off. Renders through real Word in the Windows guest (docx-render word-remote), never another engine; exits non-zero unless the Producer is Microsoft Word, every text font is Times New Roman, and the PDF holds this document's text (the guest has one job slot, no lock). Reports producer, fonts, page count, [@ left, placeholders
--typography caption typography:, else smallcaps (as served: journals, books, firm memos in small caps). plain = court-document style: those roman, book and memo titles italic

The pipeline: law-review-docx's combining (section order, frontmatter strip, footnote-label prefixes, <!-- include: PATH -->) → bib to CSL JSON, normalised → pandoc --citeproc with assets/bluebook-expert-report.csl to the JSON AST → AST pass → pandoc to docx with references/templates/expert_report_template.docx → OOXML pass → checks.

Draft conventions the build reads

In the draft Becomes
# I. TITLE. / ## A. TITLE. Part / lettered heading, numeral + tab
1\. Text numbered paragraph: number at 0.5", tab to 1.0"
*First*, … (unnumbered) ordinal point: bullet, single-spaced
> quote Block Text
:::: {.continuation} … :::: after a block quote the paragraph continues: Body Text, flush left (w:firstLine="0"), never numbered even if it opens with digits
\* \* \* \* centred four-asterisk break
[TO SUPPLY: …] yellow highlight, body and footnotes, counted
[@key, at 4 ¶ 4], [@key, at *3] citation with its pin printed once
short lines after the last numbered paragraph signature block: lines naming the expert or "signature" at 4", the rest (date) flush left. No such lines → generated from caption expert and date

Caption YAML

court: |                       # centred, bold
  UNITED STATES DISTRICT COURT
  DISTRICT OF DELAWARE
plaintiffs: [ACME WIDGET CO., ET AL.,]    # or `matter:` lines for an In re caption
defendants: [GLOBEX INDUSTRIAL CORP., ET AL.,]
plaintiffs_label: "Plaintiffs,"           # optional; default shown
defendants_label: "Defendants."
case_number: "CASE NO. 1:24-cv-00999-UNA"
report_title: |                # bold, right column
  REBUTTAL REPORT OF
  PROFESSOR JANE Q. PUBLIC
expert: "Jane Q. Public"       # typed signature name
date: "November 10, 2026"
draft_header: false
typography: smallcaps          # or plain; --typography overrides
exhibits: [exhibits/a.md]      # relative to this file

Template (generated — never edit in Word)

scripts/make_template.py builds the template from pandoc --print-default-data-file reference.docx; rerun it after changing a value. build_docx_test.py fails when the shipped template is stale.

Style / part Value (served measurement)
Page Letter, 1" margins, footer 0.5", page 1 numbered, no header
Normal Times New Roman 12, single, 0 after
Body Text / First Paragraph double (27.6 pt), justified, first line 0.5"
Heading 1 bold caps, flush left, numeral at 0", text and wraps at 0.5", one blank line above and below
Heading 2 bold caps, letter at 0.5", text and wraps at 1.0"
Blo
Полный SKILL.md на GitHub

Установить expert-report-docx в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/bluebook-expert-report.cslreferences/bib-conventions.mdreferences/templates/expert_report_template.docxscripts/build_docx.pyscripts/build_docx_test.pyscripts/make_template.pyscripts/strip_metadata.py

FAQ

Что делает скилл expert-report-docx?

Use this skill to BUILD the served Word file of an EXPERT REPORT for litigation from markdown drafts — page-1 court caption, numbered paragraphs, Bluebook supra/Id./hereinafter footnotes. Triggers: 'build the expert report docx', 'export the report to Word', 'rebuttal report Word file', 'surrebuttal docx', 'make the served version of the expert report', 'the expert report caption looks wrong', 'the footnotes in the report docx look off'. NEGATIVE ROUTING: NOT 'law-review-docx' (law review articles: title page, TOC, Bluebook law-review CSL), NOT 'law-econ-docx' (author-date manuscripts for JLE/JLS/JLEO), NOT 'docx-typst' (source is Typst, not markdown), NOT the generic 'docx' skill (edits docx content), NOT 'docx-render' (renders an existing docx to PDF/PNG only).

Как установить скилл expert-report-docx?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл expert-report-docx запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить expert-report-docx с