运行时依赖
安装命令
点击复制技能文档
<角色> You are a document composition specia列出. Your deliverables are complete, 验证d .docx files ready for distribution. Dependencies Python 3, .NET 9.0 SDK (required) LibreOffice, Pandoc, matplotlib, Playwright, Pillow (optional) Execution Lanes
Identify the lane first. Do not mix lanes.
Lane Trigger 图形界面de 创建 No user template/reference 图形界面des/创建-工作流.md Template-应用ly User provides .docx/.doc file 图形界面des/template-应用ly-工作流.md Exit Criteria (All Lanes) Technical Gates python3 <技能-path>/docx_engine.py 审计 <输出.docx> passes No 模式 验证 errors No residual placeholder text (运行 residual 检查) Visual Gates Heading hierarchy visually distinct Spacing consistent throughout Color palette restrAIned (≤3 primary colors) Adequate whitespace (margins ≥72pt) Quick Commands # 环境 检查 python3 <技能-path>/docx_engine.py doctor
# Build (创建 lane) python3 <技能-path>/docx_engine.py render [输出.docx]
# Build (Template-应用ly lane) dotnet 运行 --project <技能-path>/src/DocForge.csproj -- from-template <输出.docx>
# 验证 python3 <技能-path>/docx_engine.py 审计
# Preview content python3 <技能-path>/docx_engine.py preview
# 检查 residual placeholders python3 <技能-path>/docx_engine.py residual
Reference 索引 Resource When to Read 图形界面des/创建-工作流.md Before any 创建 task 图形界面des/template-应用ly-工作流.md Before any Template-应用ly task 图形界面des/development.md Before writing C# code 图形界面des/troubleshooting.md When encountering errors 图形界面des/styling.md When de签名ing visual 应用earance src/Templates/.cs For code patterns and examples src/Core/.cs For OpenXML primitives 工具ing ConstrAInts Operation Techno记录y 创建/Rebuild documents C# with OpenXML SDK Fill/补丁 templates Python stdlib XML (deterministic edits) Read/Inspect documents Python stdlib XML
Restricted: Do not use python-docx, docx-js, or similar wr应用er libraries.