ao92265/claude-code-playbook/doc-finalise

Claude Code and agent skill by ao92265/claude-code-playbook

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Finalise a Word (.docx) deliverable with embedded visuals, integrity checks, and a paste-ready commit block. Covers status reports, board packs, sprint retrospectives, RFCs, and compliance documents where factual accuracy and style consistency both matter. Triggers: "finalise this doc", "doc-finalise", "wrap the report", "embed the chart", "board pack". Do NOT use this skill for: drafting from scratch (use a writer skill), slide decks (.pptx), or plain markdown where style inheritance and PDF r…

Install

npx vskill@latest install ao92265/claude-code-playbook/doc-finalise

SKILL.md

The same SKILL.md was published earlier as ao92265/claude-code-playbook/doc-finalise.

Document Finalisation

Structured workflow for finishing a .docx deliverable: programmatic integrity check, embedded visuals, style normalisation, PDF regeneration, and a Closeout Trio summary. Built for the case where a reviewer will spot every wandering em-dash and every rounding drift.

When to Use

  • Executive status reports where rounded numbers must be replaced with exact ones.
  • Board packs and compliance documents with claim-level provenance requirements.
  • Any second-pass edit where "tighten this up" has historically rephrased a number into an inaccuracy.
  • Documents where visuals must survive the .docx → PDF conversion unchanged.

When Not to Use

  • Drafting the document from scratch — use a writer skill, then finalise with this one.
  • Slide decks (.pptx) — different library, different gotchas.
  • Plain markdown deliverables — style inheritance and PDF rendering are not in scope.

Steps

  1. Read the docx toolchain reference before touching the file. Load the Anthropic bundled docx skill (if available) or your project's python-docx reference. Do not skip this even if the model thinks it knows the API — the style-map and image-anchor details are where real documents break.
  1. Inventory the source document programmatically. Capture a baseline so any later claim of "I only changed X" is verifiable.
CheckWhat to capture
StructureParagraph count, table count, section count, page count
StylesFull style map, every explicit style override on every run
TypographyEm-dash (—) and en-dash (–) counts across document.xml, header*.xml, footer*.xml
AssetsEvery embedded image (id, size, anchor paragraph text)
ThemeFont references — majorFont / minorFont — and any theme fallback
  1. Embed visuals as PNG, not linked images. Linked images break on email handoff and PDF conversion.
  • Use doc.add_picture() inside a centred paragraph, not floating anchors.
  • Insert at named text anchors — "before the paragraph starting with Quarterly summary" — not "around the end of section 3". Paragraph indices shift; sentence fragments do not.
  • Render charts with matplotlib at the target font size, save to PNG at 150 DPI minimum, embed from memory.
  1. Normalise style inheritance once. Set explicit values so run-level overrides become non-conflicting rather than competing.
  • Explicit font name on Normal and every heading style.
  • Explicit line spacing on docDefaults.
  • Replace theme font references (majorFont / minorFont) with concrete names so the doc renders the same on a machine without the source theme installed.
  1. Regenerate the PDF and spot-check it, not the docx. Visuals and fonts can render correctly in Word and badly in the PDF conversion.
  • libreoffice --headless --convert-to pdf <file>.docx
  • Rasterise the pages with embedded visuals (pdftoppm or pdf2image).
  • Compare each visual in the PDF against the original PNG. Size, crop, DPI loss, font substitution — all show up here, not in the docx.
  1. Produce a Closeout Trio summary. See prompt-patterns.md §22. Include concrete numbers, not prose.

``` What I did

  • 98 paragraphs → 108 paragraphs (+10: two five-element chart blocks)
  • 3 embedded PNGs, 150 DPI, 412/438/391 KB
  • PDF regenerated, 14 pages, visuals verified against source PNGs
  • Em-dash count unchanged across body, headers, footers (47)

What I could not do and why

  • No repo access — producing files + paste-ready commit block instead

What needs your eyes

  • Appendix B table row 4 conflicts with prose on page 7 (see anti-pattern 22 — flagged, not resolved)
  • Cover-page colour matches brand guide sample but sandbox has no Calibri installed (see Gotchas)

```

  1. If sandboxed without repo access, emit a paste-ready commit block. Do not fabricate a commit or a push.

``` # Paste-ready commit Branch: docs/q3-board-pack Message: finalise(q3): embed charts, normalise styles, regen PDF Files:

  • reports/q3-board-pack.docx
  • reports/q3-board-pack.pdf
  • reports/assets/chart-revenue.png
  • reports/assets/chart-runrate.png

```

Gotchas

  • Default stack: python-docx + matplotlib for anything chart-heavy. The unpack-and-rewrite-XML route is a last resort — it breaks style inheritance and is easy to get subtly wrong. Stick with the library APIs.
  • Font fallback: sandboxes without Calibri fall back to Liberation Sans. Visually near-identical at chart scale, but different metrics. Do not claim a chart was "rendered in Calibri" unless you verified the font is installed.
  • Accessibility: libreoffice --headless --convert-to pdf emits tagged PDFs by default. Relevant when the audience is accessibility-sensitive (screen readers, WCAG). Do not strip tags during any post-processing step.
  • Em-dash and en-dash audit: these characters travel poorly through copy-paste and some linters auto-"fix" them. A pre/post count across document.xml, headers, and footers catches silent drift.
  • Silent conflict resolution: if two numbers in the same document disagree, flag the conflict — do not pick one. See anti-patterns.md §22.

Related

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
13
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ao92265/claude-code-playbook/doc-finalise/badge)](https://verified-skill.com/skills/ao92265/claude-code-playbook/doc-finalise)

Something wrong with this skill or its page? Tell us.