Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Builds docxtpl templates, DOCX extraction for RAG, and EAA accessibility checks. Use when templating Word or extracting tables; plain edits and redlines: official docx skill.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
This skill covers the specialist .docx lanes: docxtpl template pipelines, python-docx structural edits and extraction, LLM/RAG ingestion, and accessibility/EAA compliance.
Boundary: when the official Anthropic docx skill is available, prefer it for plain create/edit (docx-js), tracked-change (redline) authoring via <w:ins>/<w:del> with validate.py, and comment authoring. When the user asks for "a document" without naming a format and a document connector or artifact type is available, prefer that over generating a .docx.
docxtpl. Code decides the structure: python-docx (Python) or docx (Node).&/< unescaped, so the file opens fine and passes a tag scan. Use scripts/docx_render_template.py (StrictUndefined + autoescape); see references/template-workflows.md.docx skill's OOXML workflow. See references/tracked-changes.md.mammoth, then sanitise (it does no sanitisation). Markdown/JSON for RAG: a Markdown converter or scripts/docx_extract.py; see references/llm-extraction-workflows.md.Document.tables, tables pasted as images have no text, tracked changes need an explicit accept/original policy, and filenames can lie. Run the table-count detection check in references/docx-extraction-failure-modes.md before indexing any file (load it whenever DOCX is ingestion input)..doc: convert to .docx first. .docm/.dotm: treat the macros as untrusted and never execute them..docx is the editable source; PDF is the release artifact.| Task | Tool | When |
|---|---|---|
| Template fill, mail merge | docxtpl + scripts/docx_render_template.py | Word-authored templates, batch documents |
| Structural edits in Python | python-docx (references/docx-patterns.md) | Styles, tables, sections, fields, hyperlinks |
| Comments | python-docx add_comment (version-gated) or the official docx skill | Review notes without revisions |
| DOCX to HTML | mammoth via scripts/docx_to_html.mjs | Trusted documents, semantic HTML |
| DOCX to JSON/Markdown | scripts/docx_extract.py, Markdown converters | Automation, RAG ingestion |
| Inspect revisions/comments | scripts/docx_inspect_ooxml.py | Before editing any reviewed document |
| Release gate | scripts/docx_quality_gate.py | Every generated or edited file |
| DOCX to PDF | Word automation / LibreOffice headless | Release artifacts, CI smoke tests |
Do not assume the environment has a current library:
Document.add_comment() is a recent python-docx addition and raises AttributeError on older pins. Check hasattr(docx.document.Document, "add_comment") before promising comment support.docx skill. Do not approximate it with formatting..docx/.dotx, .docm/.dotm, or legacy .doc.scripts/docx_inspect_ooxml.py --json first.docx_render_template.py, or python-docx/docx for structure.doc.core_properties to the intended author, clear template comments, and set created/modified to datetime.now(timezone.utc).replace(tzinfo=None) (python-docx expects naive UTC). For edits to an existing file, preserve provenance unless the user requested a metadata reset.scripts/docx_quality_gate.py. It exits 2 on any issue, including a requested --check-libreoffice that could not run.soffice --headless --convert-to pdf out.docx && pdftoppm -png -r 80 out.pdf page, then open the page-*.png files. For external distribution, also check in Word and apply the accessibility checklist.python3 scripts/docx_render_template.py template.docx context.json out.docx # exit 2 on missing vars
python3 scripts/docx_quality_gate.py out.docx --json # exit 2 on any issue
python3 scripts/docx_extract.py in.docx --include headers footers comments --out extracted.json
node scripts/docx_to_html.mjs in.docx out.html --style-map map.txt --extract-images-dir assets/
A successful OOXML parse or text extraction does not prove layout fidelity. A visually correct PDF does not prove that comments, hyperlinks, fields or accessibility metadata survived in the editable DOCX. Record which viewer did the primary review and which secondary viewer was checked.
Resources
Scripts
scripts/docx_inspect_ooxml.py - Dependency-free OOXML inspection for tracked changes and commentsscripts/docx_extract.py - Extract text, tables, metadata, and optional headers/footers/hyperlinks/comments/images to JSONscripts/docx_render_template.py - Render a docxtpl template from JSON, failing on missing variables (--allow-missing for drafts)scripts/docx_to_html.mjs - Convert trusted .docx to HTML with style maps and optional image extractionscripts/docx_quality_gate.py - Validate parseability, unresolved template tags, tracked-change/comment signals, and optional LibreOffice conversion; exits 2 on any issueTemplates
Related Skills
When prior decisions or pitfalls are relevant, consult learnings.consolidated.md if present; use learnings.md only for needed history or as the available fallback. Otherwise skip both.
After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Configures and hardens Claude Code and Codex MCP servers. Use when connecting databases, APIs, SaaS, building servers, or serving a clearance-filtered knowledge base.
日本語の概要は準備中です。原文の説明を表示しています。
Owns instruction files: AGENTS.md, CLAUDE.md, personal and repo rules. Use when writing, pruning, auditing them, sharing rules across Claude and Codex, or fixing ignored rules.
日本語の概要は準備中です。原文の説明を表示しています。
Creates and audits agent skills: SKILL.md, references, scripts, runtime metadata. Use when writing, validating, or security-reviewing a skill, or fixing truncated skill listings.
日本語の概要は準備中です。原文の説明を表示しています。
Adds per-skill learnings loops for dated patterns, mistakes, and domain facts. Use when wiring skill memory, consolidation, or drift audits.
日本語の概要は準備中です。原文の説明を表示しています。
Chooses subagent, team, workflow, or debate and launches it on Claude Code or Codex. Use when delegating, running agent review boards, or installing shared agents.
日本語の概要は準備中です。原文の説明を表示しています。