{"id":"470bb264-5a9c-4b90-9163-ca8442621f31","shortId":"k3sHJp","kind":"skill","title":"docx-processing-openai","tagline":"Toolkit for comprehensive document reading, editing, and creation with visual quality control. Use to work with Word documents (.docx files) for: (1) Reading or extracting content from existing DOCX files, (2) Creating new Word documents with professional formatting, (3) Editing ","description":"# DOCX Skill\n\n## When to use\n- Read or review DOCX content where layout matters (tables, diagrams, pagination).\n- Create or edit DOCX files with professional formatting.\n- Validate visual layout before delivery.\n\n## Workflow\n1. Prefer visual review (layout, tables, diagrams).\n   - If `soffice` and `pdftoppm` are available, convert DOCX -> PDF -> PNGs.\n   - Or use `scripts/render_docx.py` (requires `pdf2image` and Poppler).\n   - If these tools are missing, install them or ask the user to review rendered pages locally.\n2. Use `python-docx` for edits and structured creation (headings, styles, tables, lists).\n3. After each meaningful change, re-render and inspect the pages.\n4. If visual review is not possible, extract text with `python-docx` as a fallback and call out layout risk.\n5. Keep intermediate outputs organized and clean up after final approval.\n\n## Temp and output conventions\n- Use `tmp/docs/` for intermediate files; delete when done.\n- Write final artifacts under `output/doc/` when working in this repo.\n- Keep filenames stable and descriptive.\n\n## Dependencies (install if missing)\nPrefer `uv` for dependency management.\n\nPython packages:\n```\nuv pip install python-docx pdf2image\n```\nIf `uv` is unavailable:\n```\npython3 -m pip install python-docx pdf2image\n```\nSystem tools (for rendering):\n```\n# macOS (Homebrew)\nbrew install libreoffice poppler\n\n# Ubuntu/Debian\nsudo apt-get install -y libreoffice poppler-utils\n```\n\nIf installation isn't possible in this environment, tell the user which dependency is missing and how to install it locally.\n\n## Environment\nNo required environment variables.\n\n## Rendering commands\nDOCX -> PDF:\n```\nsoffice -env:UserInstallation=file:///tmp/lo_profile_$$ --headless --convert-to pdf --outdir $OUTDIR $INPUT_DOCX\n```\n\nPDF -> PNGs:\n```\npdftoppm -png $OUTDIR/$BASENAME.pdf $OUTDIR/$BASENAME\n```\n\nBundled helper:\n```\npython3 scripts/render_docx.py /path/to/file.docx --output_dir /tmp/docx_pages\n```\n\n## Quality expectations\n- Deliver a client-ready document: consistent typography, spacing, margins, and clear hierarchy.\n- Avoid formatting defects: clipped/overlapping text, broken tables, unreadable characters, or default-template styling.\n- Charts, tables, and visuals must be legible in rendered pages with correct alignment.\n- Use ASCII hyphens only. Avoid U+2011 (non-breaking hyphen) and other Unicode dashes.\n- Citations and references must be human-readable; never leave tool tokens or placeholder strings.\n\n## Final checks\n- Re-render and inspect every page at 100% zoom before final delivery.\n- Fix any spacing, alignment, or pagination issues and repeat the render loop.\n- Confirm there are no leftovers (temp files, duplicate renders) unless the user asks to keep them.","tags":["docx","processing","openai","awesome","legal","skills","lawvable","agent-skills","automation","law","legal-work","workflows"],"capabilities":["skill","source-lawvable","skill-docx-processing-openai","topic-agent-skills","topic-automation","topic-law","topic-legal-work","topic-workflows"],"categories":["awesome-legal-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/lawvable/awesome-legal-skills/docx-processing-openai","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add lawvable/awesome-legal-skills","source_repo":"https://github.com/lawvable/awesome-legal-skills","install_from":"skills.sh"}},"qualityScore":"0.605","qualityRationale":"deterministic score 0.60 from registry signals: · indexed on github topic:agent-skills · 310 github stars · SKILL.md body (2,737 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-02T18:53:54.805Z","embedding":null,"createdAt":"2026-04-18T22:04:22.258Z","updatedAt":"2026-05-02T18:53:54.805Z","lastSeenAt":"2026-05-02T18:53:54.805Z","tsv":"'+2011':358 '/path/to/file.docx':306 '/tmp/docx_pages':309 '/tmp/lo_profile_':284 '1':26,75 '100':392 '2':35,115 '3':43,129 '4':141 '5':162 'align':351,400 'approv':172 'apt':243 'apt-get':242 'artifact':187 'ascii':353 'ask':107,421 'avail':87 'avoid':325,356 'basenam':301 'basename.pdf':299 'break':361 'brew':236 'broken':330 'bundl':302 'call':158 'chang':133 'charact':333 'chart':339 'check':383 'citat':367 'clean':168 'clear':323 'client':315 'client-readi':314 'clipped/overlapping':328 'command':278 'comprehens':7 'confirm':409 'consist':318 'content':30,54 'control':16 'convent':176 'convert':88,287 'convert-to':286 'correct':350 'creat':36,61 'creation':12,124 'dash':366 'default':336 'default-templ':335 'defect':327 'delet':182 'deliv':312 'deliveri':73,396 'depend':200,207,263 'descript':199 'diagram':59,81 'dir':308 'document':8,22,39,317 'docx':2,23,33,45,53,64,89,119,153,216,228,279,293 'docx-processing-openai':1 'done':184 'duplic':416 'edit':10,44,63,121 'env':282 'environ':258,272,275 'everi':389 'exist':32 'expect':311 'extract':29,148 'fallback':156 'file':24,34,65,181,415 'filenam':196 'final':171,186,382,395 'fix':397 'format':42,68,326 'get':244 'head':125 'headless':285 'helper':303 'hierarchi':324 'homebrew':235 'human':373 'human-read':372 'hyphen':354,362 'input':292 'inspect':138,388 'instal':104,201,213,225,237,245,252,269 'intermedi':164,180 'isn':253 'issu':403 'keep':163,195,423 'layout':56,71,79,160 'leav':376 'leftov':413 'legibl':345 'libreoffic':238,247 'list':128 'local':114,271 'loop':408 'm':223 'maco':234 'manag':208 'margin':321 'matter':57 'meaning':132 'miss':103,203,265 'must':343,370 'never':375 'new':37 'non':360 'non-break':359 'openai':4 'organ':166 'outdir':290,291,298,300 'output':165,175,307 'output/doc':189 'packag':210 'page':113,140,348,390 'pagin':60,402 'pdf':90,280,289,294 'pdf2image':96,217,229 'pdftoppm':85,296 'pip':212,224 'placehold':380 'png':297 'pngs':91,295 'poppler':98,239,249 'poppler-util':248 'possibl':147,255 'prefer':76,204 'process':3 'profession':41,67 'python':118,152,209,215,227 'python-docx':117,151,214,226 'python3':222,304 'qualiti':15,310 're':135,385 're-rend':134,384 'read':9,27,50 'readabl':374 'readi':316 'refer':369 'render':112,136,233,277,347,386,407,417 'repeat':405 'repo':194 'requir':95,274 'review':52,78,111,144 'risk':161 'scripts/render_docx.py':94,305 'skill':46 'skill-docx-processing-openai' 'soffic':83,281 'source-lawvable' 'space':320,399 'stabl':197 'string':381 'structur':123 'style':126,338 'sudo':241 'system':230 'tabl':58,80,127,331,340 'tell':259 'temp':173,414 'templat':337 'text':149,329 'tmp/docs':178 'token':378 'tool':101,231,377 'toolkit':5 'topic-agent-skills' 'topic-automation' 'topic-law' 'topic-legal-work' 'topic-workflows' 'typographi':319 'u':357 'ubuntu/debian':240 'unavail':221 'unicod':365 'unless':418 'unread':332 'use':17,49,93,116,177,352 'user':109,261,420 'userinstal':283 'util':250 'uv':205,211,219 'valid':69 'variabl':276 'visual':14,70,77,143,342 'word':21,38 'work':19,191 'workflow':74 'write':185 'y':246 'zoom':393","prices":[{"id":"ce0a7ced-0dd5-4208-9dfc-9af44918c5fb","listingId":"470bb264-5a9c-4b90-9163-ca8442621f31","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"lawvable","category":"awesome-legal-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T22:04:22.258Z"}],"sources":[{"listingId":"470bb264-5a9c-4b90-9163-ca8442621f31","source":"github","sourceId":"lawvable/awesome-legal-skills/docx-processing-openai","sourceUrl":"https://github.com/lawvable/awesome-legal-skills/tree/main/skills/docx-processing-openai","isPrimary":false,"firstSeenAt":"2026-04-18T22:04:22.258Z","lastSeenAt":"2026-05-02T18:53:54.805Z"}],"details":{"listingId":"470bb264-5a9c-4b90-9163-ca8442621f31","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"lawvable","slug":"docx-processing-openai","github":{"repo":"lawvable/awesome-legal-skills","stars":310,"topics":["agent-skills","automation","law","legal-work","workflows"],"license":"other","html_url":"https://github.com/lawvable/awesome-legal-skills","pushed_at":"2026-03-03T11:25:06Z","description":"A curated list of awesome Agent Skills for automating legal work","skill_md_sha":"eae5cf6ca4e7edb21a0dddfff45e2162dd41c427","skill_md_path":"skills/docx-processing-openai/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/lawvable/awesome-legal-skills/tree/main/skills/docx-processing-openai"},"layout":"multi","source":"github","category":"awesome-legal-skills","frontmatter":{"name":"docx-processing-openai","description":"Toolkit for comprehensive document reading, editing, and creation with visual quality control. Use to work with Word documents (.docx files) for: (1) Reading or extracting content from existing DOCX files, (2) Creating new Word documents with professional formatting, (3) Editing documents requiring precise typography and layout, or any other DOCX reading or generation tasks."},"skills_sh_url":"https://skills.sh/lawvable/awesome-legal-skills/docx-processing-openai"},"updatedAt":"2026-05-02T18:53:54.805Z"}}