docx
Unified DOCX skill — create, template-apply, edit/fill, read, repair, and compare Word documents. Use for formal Word deliverables and DOCX diagnosis. Not for PDF/PPT or casual plain-text drafting.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 253
- Forks
- 20
01 前言 Front Matter
- name
- docx
- metadata
- { "author": "MiniMaxAI", "status": "stable", "sources": [ "ECMA-376 Office Open XML File Formats", "GB/T 9704-2012 Layout Standard for Official Documents", "IEEE / ACM / APA / MLA / Chicago / Turabian Style Guides", "Springer LNCS / Nature / HBR Document Templates" ], "version": "4.0.0", "category": "document-processing" }
- triggers
- [ "Word", "docx", "document", "文档", "Word文档", "报告", "合同", "公文", "套模板", "排版", "修目录", "修页眉页脚" ]
- description
- Unified DOCX skill — create, template-apply, edit/fill, read, repair, and compare Word documents. Use for formal Word deliverables and DOCX diagnosis. Not for PDF/PPT or casual plain-text drafting.
- descriptions
- { "zh-Hans": "创建、套模板、编辑、读取、修复和比较 Word DOCX 文档,适用于正式文档交付。" }
02 资源文件 115
- 其他.gitignore17 B
- 资产文件assets/styles/academic_styles.xml7.2 KB
- 资产文件assets/styles/corporate_styles.xml8.3 KB
- 资产文件assets/styles/default_styles.xml12.0 KB
- 资产文件assets/xsd/aesthetic-rules.xsd24.6 KB
- 资产文件assets/xsd/business-rules.xsd5.4 KB
- 资产文件assets/xsd/common-types.xsd5.0 KB
- 资产文件assets/xsd/wml-subset.xsd25.1 KB
- 参考文档docs/acceptance-checklists/create.md212 B
- 参考文档docs/acceptance-checklists/edit.md206 B
- 参考文档docs/acceptance-checklists/layout-repair.md212 B
- 参考文档docs/acceptance-checklists/template.md193 B
- 参考文档docs/acceptance.md4.9 KB
- 参考文档docs/anti-patterns.md663 B
- 参考文档docs/backends.md5.1 KB
- 参考文档docs/evidence.md3.2 KB
- 参考文档docs/failure-taxonomy.md1.7 KB
- 参考文档docs/index.md1.6 KB
- 参考文档docs/rendered-delivery.md5.2 KB
- 参考文档docs/router.md4.2 KB
- 参考文档docs/tables-and-numbering.md869 B
- 参考文档docs/task-apply-template.md6.5 KB
- 参考文档docs/task-compare-two-docx.md1.1 KB
- 参考文档docs/task-create.md5.9 KB
- 参考文档docs/task-edit-fill.md2.1 KB
- 参考文档docs/task-read-content.md8.2 KB
- 参考文档docs/task-read-rendered.md2.8 KB
- 参考文档docs/task-read-structure.md8.3 KB
- 参考文档docs/task-repair-layout.md1.8 KB
- 参考文档docs/template-dsl.md839 B
- 参考文档docs/track-changes.md525 B
- 参考文档docs/xml-patch-dsl.md781 B
- 许可证LICENSE1.0 KB
- 参考文档references/cjk_typography.md12.9 KB
- 参考文档references/cjk_university_template_guide.md8.5 KB
- 参考文档references/comments_guide.md6.4 KB
- 参考文档references/design_good_bad_examples.md30.7 KB
- 参考文档references/design_principles.md27.2 KB
- 参考文档references/openxml_element_order.md10.7 KB
- 参考文档references/openxml_encyclopedia_part1.md137.2 KB
- 参考文档references/openxml_encyclopedia_part2.md92.7 KB
- 参考文档references/openxml_encyclopedia_part3.md119.4 KB
- 参考文档references/openxml_namespaces.md7.3 KB
- 参考文档references/openxml_units.md3.4 KB
- 参考文档references/sample-patch-plans.json402 B
- 参考文档references/sample-task-intents.json277 B
- 参考文档references/sample-template-manifests.json616 B
- 参考文档references/scenario_a_create.md8.8 KB
- 参考文档references/scenario_b_edit_content.md7.8 KB
- 参考文档references/scenario_c_apply_template.md19.2 KB
- 参考文档references/track_changes_guide.md5.2 KB
- 参考文档references/troubleshooting.md18.5 KB
- 参考文档references/typography_guide.md13.5 KB
- 参考文档references/xsd_validation_guide.md5.5 KB
- 脚本scripts/build_patch_plan.py1011 B
- 脚本scripts/diff_docx_structure.py2.2 KB
- 脚本scripts/doc_to_docx.ps13.2 KB
- 脚本scripts/doc_to_docx.sh872 B
- 脚本scripts/docx_preview.ps13.2 KB
- 脚本scripts/docx_preview.sh836 B
- 脚本scripts/docx_to_pdf.py2.8 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Cli/MiniMaxAIDocx.Cli.csproj497 B
- 脚本scripts/dotnet/MiniMaxAIDocx.Cli/Program.cs583 B
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Commands/AnalyzeCommand.cs6.0 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Commands/ApplyTemplateCommand.cs12.7 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Commands/CreateCommand.cs16.1 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Commands/DiffCommand.cs6.0 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Commands/EditContentCommand.cs19.3 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Commands/FixOrderCommand.cs4.4 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Commands/MergeRunsCommand.cs4.7 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Commands/ValidateCommand.cs4.1 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/MiniMaxAIDocx.Core.csproj425 B
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/CommentSynchronizer.cs6.3 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/ElementOrder.cs4.1 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/NamespaceConstants.cs3.5 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/RunMerger.cs2.6 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/StyleAnalyzer.cs2.9 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/TrackChangesHelper.cs3.0 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/UnitConverter.cs1.0 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch1.cs37.9 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch2.cs42.4 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch3.cs44.3 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch4.cs47.1 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples.cs75.6 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/CharacterFormattingSamples.cs46.1 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/DocumentCreationSamples.cs52.2 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/FieldAndTocSamples.cs26.4 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/FootnoteAndCommentSamples.cs30.1 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/HeaderFooterSamples.cs35.4 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/ImageSamples.cs39.2 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/ListAndNumberingSamples.cs34.4 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/ParagraphFormattingSamples.cs55.5 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/StyleSystemSamples.cs64.1 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/TableSamples.cs50.6 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Samples/TrackChangesSamples.cs26.2 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Typography/CjkHelper.cs2.7 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Typography/FontDefaults.cs898 B
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Typography/PageSizes.cs979 B
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Validation/BusinessRuleValidator.cs9.0 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Validation/GateCheckValidator.cs5.8 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Validation/ValidationResult.cs651 B
- 脚本scripts/dotnet/MiniMaxAIDocx.Core/Validation/XsdValidator.cs2.1 KB
- 脚本scripts/dotnet/MiniMaxAIDocx.slnx153 B
- 脚本scripts/env_check.ps114.1 KB
- 脚本scripts/env_check.sh12.3 KB
- 脚本scripts/extract_docx_text.py39.3 KB
- 脚本scripts/pack_docx.py966 B
- 脚本scripts/read_docx_structure.py42.2 KB
- 脚本scripts/render_docx_pages.py4.7 KB
- 脚本scripts/rendered_report.py25.6 KB
- 脚本scripts/setup.ps122.5 KB
- 脚本scripts/setup.sh17.2 KB
- 脚本scripts/unpack_docx.py816 B
- 脚本scripts/validate_template_manifest.py2.0 KB
- 脚本scripts/verify_anchor_atomicity.py2.6 KB
03 SKILL.md 正文
<!-- Copied from MiniMaxAI/minimax-code (packages/local-runtime/assets/skills/docx) at revision 564e9166d81f87b0b767b005e4779d4697b512be. Copyright (c) 2026 MiniMax Code. Licensed under MIT. Modified by ZCode: added the provenance notice; added a ZCodium capability-matrix section (read / render / full and what each level needs), and documented that setup.sh is report-only unless --install-dotnet is passed. Skill instructions are otherwise unchanged. See THIRD-PARTY-NOTICES.md in the repository root for license and provenance. -->
docx
Replace <skill_dir> with the actual skill path shown by the loader.
Unified DOCX skill. SKILL.md is the dispatch layer. Pick the route that matches the user’s intent,
read that route guide, then go straight into execution. Do not front-load every task with the full
evidence/backend/acceptance waterfall.
Environment gates
The env gate ships in two equivalent dialects so the skill works on macOS, Linux/WSL, and Windows without any cygwin/git-bash hack:
| Platform | Setup | Env check |
|---|---|---|
| macOS / Linux / WSL | bash <skill_dir>/scripts/setup.sh |
bash <skill_dir>/scripts/env_check.sh --level <lvl> |
| Windows (PowerShell 5.1+) | powershell -ExecutionPolicy Bypass -File <skill_dir>\scripts\setup.ps1 |
powershell -ExecutionPolicy Bypass -File <skill_dir>\scripts\env_check.ps1 -Level <lvl> |
Both dialects accept the same three levels (read | render | full, default full) and produce
the same [OK] / [FAIL] / Status: READY|NOT READY lines, so a route may be gated on either one.
The skill loader runs only the read gate at load time, so missing dotnet/soffice does not block read-only routes.
Read gate
Checked at skill load time (automatic). Applies to: READ_CONTENT, READ_STRUCTURE, COMPARE_TWO_DOCX.
# macOS / Linux / WSL
bash <skill_dir>/scripts/env_check.sh --level read
# Windows
powershell -ExecutionPolicy Bypass -File <skill_dir>\scripts\env_check.ps1 -Level Read
Requires: python3 (or python launcher on Windows), unzip (or tar.exe on Windows 10+), UTF-8 console.
If the read gate fails, the skill cannot load at all.
Render gate
Run before READ_RENDERED routes. Includes all read-level checks plus:
bash <skill_dir>/scripts/env_check.sh --level render # *nix
powershell -ExecutionPolicy Bypass -File <skill_dir>\scripts\env_check.ps1 -Level Render # Windows
Requires (in addition to read): soffice / soffice.exe, pdftoppm (or pdftocairo).
If the render gate fails, stop and report. Do not silently fall back to structure-only reads.
Full gate
Run before CREATE_DOCX, APPLY_TEMPLATE, EDIT_FILL_DOCX, REPAIR_LAYOUT routes.
bash <skill_dir>/scripts/env_check.sh --level full # *nix
powershell -ExecutionPolicy Bypass -File <skill_dir>\scripts\env_check.ps1 -Level Full # Windows
Requires (in addition to render): dotnet >= 9, pandoc, zip (or Compress-Archive on Windows),
dotnet project built.
If the full gate fails, stop and report. Do not attempt generation with missing dependencies.
Capability matrix in ZCodium
The levels above assume a machine where the skill may install its own toolchain. In ZCodium the
repo skills must not silently change the host, so scripts/setup.sh is report-only unless you
opt in. Check the level you actually need before promising a deliverable:
| Level | Needs | Without it |
|---|---|---|
read |
python3 (+ pdftoppm for page images) |
— |
render |
read + soffice / pandoc |
no PDF/PNG preview of the result |
full |
render + dotnet >= 9 + zip |
creation, template application, validation and track-changes editing are unavailable — say so instead of guessing |
.NET is a global SDK and the upstream installer fetched it with curl | sh, so this fork makes it
opt-in: run bash scripts/setup.sh --install-dotnet (writes ~/.dotnet, no sudo) only after the
user agrees. The setup script never edits ~/.zprofile / ~/.zshrc and never installs global npm
packages; it prints the lines the user may want to add themselves.
On an air-gapped or intranet host the curl | sh and package-manager paths cannot work at all.
Plan for read / render and use the full gate only where a pre-provisioned SDK exists.
Cross-platform path & temp-dir convention
Examples in docs/ and references/ are written for *nix shells. When you execute on Windows,
do these substitutions consistently:
| In the example | Windows substitute |
|---|---|
<skill_dir>/scripts/foo.sh |
<skill_dir>\scripts\foo.ps1 (every .sh has a .ps1 peer) |
python3 <skill_dir>/scripts/foo.py |
python <skill_dir>\scripts\foo.py (the .py files are cross-platform) |
/tmp/docx-<thing> |
$env:TEMP\docx-<thing> |
bash <skill_dir>/scripts/setup.sh |
powershell -ExecutionPolicy Bypass -File <skill_dir>\scripts\setup.ps1 |
forward slashes in paths |
backslashes; quote any path containing spaces |
Never invoke a .sh script through git-bash on Windows — setup.sh will refuse to install
anything on MINGW*/MSYS*/CYGWIN* and tell you to switch to powershell.exe / pwsh.exe.
Operational rules — read before doing anything
1. Dispatch by user intent, not by backend.
Start with the shortest route choice:
- creating a new formal Word deliverable ->
CREATE_DOCX- preserving content but changing template / institutional style ->
APPLY_TEMPLATE- editing an existing DOCX in place ->
EDIT_FILL_DOCX- reading text / structure / rendered pages -> matching read route
- fixing visible defects ->
REPAIR_LAYOUT- comparing two DOCX files ->
COMPARE_TWO_DOCXRead
docs/router.mdonly to settle the route. Do not readdocs/evidence.md,docs/backends.md, anddocs/acceptance.mdbefore route selection.
2. For generation routes, choose style family / recipe before backend.
The old benchmarked generation core stays in this skill. For
CREATE_DOCXandAPPLY_TEMPLATE, the first substantive decision is the visual system, not the backend. Reuse these files as the generation core:
references/typography_guide.mdreferences/design_principles.mdreferences/cjk_typography.mdscripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples*.csThese are not optional decoration. They are the quality-preserving recipe layer.
3. Backend comes after route + recipe.
Dis the default write backend for formal DOCX creation, template application, and most edits.Sis only for OpenXML graph work beyond the builtin CLI surface.Xis only for deterministic local XML patch / inspection work.- Formal
CREATE_DOCXis never routed to pandoc as a generation backend.- If a chosen backend gate fails, stop and report it. Do not silently switch.
4. Rendered acceptance is a post-write gate, not a pre-dispatch hop.
For template, layout, TOC, multi-section, header/footer, and page-number work, finish the write first, then run rendered acceptance from
docs/acceptance.md/docs/rendered-delivery.md.
5. Keep DOCX execution inside this skill.
Do not bounce rendered diagnosis to another skill. Do not treat raw XML string replace as a valid editing strategy. Do not use
readlink,$0, or shell path tricks in skill docs; use<skill_dir>only.
6. DOCX→PDF is native to this skill. If the user asks to convert an existing Word/DOCX document to PDF while preserving layout, do it here via
python3 <skill_dir>/scripts/docx_to_pdf.py(orsoffice --headless --convert-to pdfas fallback), then verify the PDF. Do not route DOCX→Markdown/HTML→PDF for a preservation task: DOCX already carries page geometry, sections, headers/footers, fields, numbering, and table layout. HTML/PDF belongs to redesign/recomposition after native render fails or when explicitly requested.
Routes — pick one, then read that guide
WRITE / GENERATE a DOCX
| Intent | Guide | What happens next |
|---|---|---|
| CREATE_DOCX — author a new report / proposal / contract / memo / thesis / 公文 | docs/task-create.md |
normalize source -> choose recipe family -> choose D/S -> write -> acceptance |
| APPLY_TEMPLATE — preserve content but move into a template / institutional visual system | docs/task-apply-template.md |
choose template mode -> align recipe family -> read only the needed structure -> choose D/S -> write -> strict rendered acceptance |
| EDIT_FILL_DOCX — mutate content in an existing DOCX while keeping it the same document | docs/task-edit-fill.md |
choose edit mode -> choose X/D/S -> mutate -> acceptance |
READ / DIAGNOSE / REPAIR a DOCX
| Intent | Guide | Primary truth |
|---|---|---|
| READ_CONTENT — summarize / quote / retrieve text | docs/task-read-content.md |
content |
| READ_STRUCTURE — inspect styles / sections / numbering / TOC / comments / revisions | docs/task-read-structure.md |
structure |
| READ_RENDERED — inspect what the pages actually look like | docs/task-read-rendered.md |
rendered + structure |
| REPAIR_LAYOUT — fix page-level defects | docs/task-repair-layout.md |
rendered -> structure -> rendered |
| COMPARE_TWO_DOCX — explain before/after or source/template differences | docs/task-compare-two-docx.md |
content + structure + rendered |
Deep docs — only after the route is clear
| File | Use when |
|---|---|
docs/router.md |
settle route choice |
docs/evidence.md |
the selected route needs truth-source clarification |
docs/backends.md |
the selected route needs backend arbitration |
docs/acceptance.md |
you are ready to validate deliverables |
docs/rendered-delivery.md |
rendered issue report shape is required |
Generation core references
Use these after CREATE_DOCX / APPLY_TEMPLATE is selected:
| File | Role |
|---|---|
references/scenario_a_create.md |
create-from-scratch mechanics |
references/scenario_c_apply_template.md |
template transfer and multi-section rules |
references/typography_guide.md |
font pairings, sizes, spacing, page layout, table rules |
references/design_principles.md |
visual judgment rules when exact specs are missing |
references/cjk_typography.md |
CJK fonts, 字号, mixed-script rules, 公文 defaults |
scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples*.cs |
benchmarked recipe families; choose one instead of inventing values |
Runtime shorthands
# macOS / Linux / WSL
CLI="dotnet run --project <skill_dir>/scripts/dotnet/MiniMaxAIDocx.Cli --"
TMPDIR_DOCX="${TMPDIR:-/tmp}"
# Windows PowerShell
$CLI = "dotnet run --project <skill_dir>\scripts\dotnet\MiniMaxAIDocx.Cli --"
$TmpDocx = $env:TEMP
Common commands (substitute $TMPDIR_DOCX / $TmpDocx for the literal /tmp examples elsewhere
in docs/):
$CLI analyze --input in.docx --json
$CLI diff --before before.docx --after after.docx
$CLI merge-runs --input out.docx
$CLI validate --input out.docx --xsd <skill_dir>/assets/xsd/wml-subset.xsd
$CLI validate --input out.docx --business
$CLI validate --input out.docx --gate-check <skill_dir>/assets/xsd/business-rules.xsd
python3 <skill_dir>/scripts/docx_to_pdf.py --input in.docx --output "$TMPDIR_DOCX/docx-render.pdf"
python3 <skill_dir>/scripts/render_docx_pages.py in.docx --output-dir "$TMPDIR_DOCX/docx-pages"
On Windows substitute python3 -> python, / -> \, and $TMPDIR_DOCX -> $env:TEMP. The
underlying .py scripts use tempfile.TemporaryDirectory and Path(...).expanduser().resolve()
so they do not care which slash style you pass in.
Structural non-negotiables
w:p=pPr-> runsw:r=rPr-> text-like childrenw:tbl=tblPr->tblGrid-> rowsw:bodyends withsectPr- heading styles need
OutlineLevel - direct formatting contamination must be stripped unless explicitly preserved
- template and multi-section work must preserve section graph,
titlePg, and per-section headers/footers
Out of scope
- PDF / PPT deliverables -> use
pdf/pptx - casual plain-text drafting with no DOCX output
- pretending a Word-authored DOCX can be safely round-tripped through pandoc for formal output
04 同仓库更多 Skills
plugin-mcp-ping
E2E workspace Plugin skill marker
zcode-configuration-guide
Use when configuring ZCode's extension resources (MCP servers, slash commands, skills, hooks, and plugins) or instruction files such as AGENTS.md in the ZCode client. Explains where each resource is configured at the user and workspace scope, the discovery order, precedence, and merge rules, plus guidance on which location to choose. Use when someone asks how to add an MCP server, command, skill, hook, plugin, or AGENTS.md instructions, where a configuration file lives, why a configuration is not taking effect, or needs routing to a specific diagnostic skill.
diagnosing-skills
Use to diagnose and fix ZCode skill configuration problems in the ZCode client. Applies when a skill is not discovered, is installed but does not trigger automatically, is shadowed by a higher-precedence skill of the same name, is disabled by configuration, has a SKILL.md frontmatter error, fails to load because its description is too long, or disappears because the plugin providing it is disabled. Provides the discovery order, how to inspect skills in the client, common pitfalls, and a step-by-step localization and repair workflow.
diagnosing-plugins
Use to diagnose and fix ZCode plugin and marketplace problems in the ZCode client. Applies when a plugin is not listed, adding a marketplace or installing a plugin fails, a plugin is enabled but its skills or commands are missing, a built-in plugin still appears after being disabled, a plugin is not enabled as expected, a plugin.json manifest has a parse error, a plugin name is invalid, a dependency is unresolved or blocked across marketplaces, or a sensitive configuration value cannot be entered in the interface. Provides the plugin lifecycle, manifest schema, how to manage plugins in the client, and a step-by-step localization and repair workflow.
diagnosing-mcp
Use to diagnose and fix ZCode MCP (Model Context Protocol) server configuration problems in the ZCode client. Applies when an MCP server will not connect, its tools (mcp__server__tool) do not appear, it shows as disabled or failed, connections time out, a command cannot be found, template variables are not expanded, or a server defined in a configuration file has no effect. Provides configuration locations, how to inspect status in Settings, common pitfalls, and a step-by-step localization and repair workflow.
diagnosing-hooks
Use to diagnose and fix ZCode hook configuration problems in the ZCode client. Applies when a hook does not trigger, an event name is wrong, a matcher does not match a tool name, a script is not executable, template variables are not expanded, a timeout unit is mistaken (seconds versus milliseconds), the command and process field styles are mixed, a hook's JSON output fails validation, a hook blocks the session unexpectedly, or configuration-file hooks are not enabled. Provides configuration sources, the hooks.json schema, how to inspect hooks in the client, and a step-by-step localization and repair workflow.