360 Secure SkillHub
360 安全技能中心

MiniMax DOCX Pro

这是专业的企业级Word文档生成工具,提供「新建」「模板套用」两种生成模式。核心功能涵盖文档构建、合规校验、预览等,生成的.docx文件需通过技术与视觉双重验证。典型场景包括企业标准化报告、合同等文档生成,可从零创建或基于用户提供的.docx/.doc模板定制,确保跨应用兼容,配套命令行工具操作便捷。

luaqnyin
luaqnyin
热度 52.90
最近更新 2026-05-18 11:28:52
分类:效率依赖:代码执行 / 读写文件应用场景:模板 / 文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add minimax-docx-pro
Metadata
name
minimax-docx
description
Enterprise-grade Word document generation. Creates validated .docx files with professional formatting, visual hierarchy, and cross-application compatibility.

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 Guide
Create No user template/reference guides/create-workflow.md
Template-Apply User provides .docx/.doc file guides/template-apply-workflow.md

Exit Criteria (All Lanes)

Technical Gates

  • python3 <skill-path>/docx_engine.py audit <output.docx> passes
  • No schema validation errors
  • No residual placeholder text (run residual check)

Visual Gates

  • Heading hierarchy visually distinct
  • Spacing consistent throughout
  • Color palette restrained (≤3 primary colors)
  • Adequate whitespace (margins ≥72pt)

Quick Commands

# Environment check
python3 <skill-path>/docx_engine.py doctor

# Build (Create lane)
python3 <skill-path>/docx_engine.py render [output.docx]

# Build (Template-Apply lane)
dotnet run --project <skill-path>/src/DocForge.csproj -- from-template <template.docx> <output.docx>

# Validate
python3 <skill-path>/docx_engine.py audit <file.docx>

# Preview content
python3 <skill-path>/docx_engine.py preview <file.docx>

# Check residual placeholders
python3 <skill-path>/docx_engine.py residual <file.docx>

Reference Index

Resource When to Read
guides/create-workflow.md Before any Create task
guides/template-apply-workflow.md Before any Template-Apply task
guides/development.md Before writing C# code
guides/troubleshooting.md When encountering errors
guides/styling.md When designing visual appearance
src/Templates/*.cs For code patterns and examples
src/Core/*.cs For OpenXML primitives

Tooling Constraints

Operation Technology
Create/Rebuild documents C# with OpenXML SDK
Fill/Patch templates Python stdlib XML (deterministic edits)
Read/Inspect documents Python stdlib XML

Restricted: Do not use python-docx, docx-js, or similar wrapper libraries.