From docx
Deterministically reformat a Corgi-Tech insurance policy `.docx` (a document bearing a `CORGI-TECH-*` or `CORG-TECH-*` running-header code) into Corgi's canonical heading, list, and layout conventions via a bundled Python CLI. Use ONLY for these policy documents — the classifier is hard-coded to Corgi insurance-policy structure (SECTION I:, Coverage A —, typed 1)/a)/(i) list markers) and will mis-format any other document.
How this skill is triggered — by the user, by Claude, or both
Slash command
/docx:insure-policy-formatThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Deterministic reformatter for Corgi-Tech insurance policies. Ships with
Deterministic reformatter for Corgi-Tech insurance policies. Ships with
this plugin as a self-contained Python CLI; uv resolves its deps on
first run via PEP 723 inline script metadata — no install step.
.docx and wants it
put into canonical form.CORGI-TECH-* / CORG-TECH-* or title
matches … INSURANCE POLICY in all-caps.SECTION I:, Coverage A —,
typed list markers like 1), a), (i)) and will mis-format other
documents.word-bridge skill for
that.docx skill.uv on PATH (https://docs.astral.sh/uv/). The script declares its own
Python and dependency requirements inline via PEP 723; uv handles
environment setup automatically on first run.pandoc on PATH. The pipeline shells out to pandoc for DOCX → JSON
AST conversion.uv run "${CLAUDE_PLUGIN_ROOT}/skills/insure-policy-format/scripts/format.py" \
/abs/path/to/input.docx \
-o /abs/path/to/output.docx
Debug run (writes *.blocks.json, *.ast.json, *.report.json):
uv run "${CLAUDE_PLUGIN_ROOT}/skills/insure-policy-format/scripts/format.py" \
/abs/path/to/input.docx \
-o /abs/path/to/output.docx \
--artifacts-dir /abs/path/to/debug
Replay from a previously captured blocks file:
uv run "${CLAUDE_PLUGIN_ROOT}/skills/insure-policy-format/scripts/format.py" \
/abs/path/to/input.docx \
-o /abs/path/to/output.docx \
--blocks-in /abs/path/to/prev.blocks.json
word-bridge skill to open or refresh the
document.docx skill from the
document-skills plugin.pandoc to convert the source DOCX to a JSON AST.1), a), (i), (1),
(a), (i)) into a six-level ordered-list hierarchy.space, strip paragraph-level indent overrides,
fix list-marker font.Output is byte-deterministic: same input DOCX → same output DOCX.
--artifacts-dir) are for debugging only; production runs
should omit that flag.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub fix-fast/corgi --plugin docx