← 返回 Skills 市场
liujiang817

My Docx Formatter

作者 liujiang817 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
265
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install my-docx-formatter
功能描述
生成符合中国公文格式规范的 Word 文档,支持标题分级、字体样式、段落格式、页码与中文标点自动处理。
安全使用建议
Do not run install.sh or the scripts blindly. Specific recommendations: - Inspect and fix install.sh: replace the unknown 'uv' commands with correct commands (e.g., python3 -m venv .venv and .venv/bin/python -m pip install python-docx). The current script will likely fail or do nothing. - Fix runtime issues: quick_api.py imports 'docx_formatter' but the file is named docx-formatter.py; rename or add a proper package/module (or change the import). Examples/content.json appears to contain invalid JSON (unescaped internal quotes) — don't use it as-is. - The tool does not request credentials or network endpoints beyond PyPI for pip; that is good. Still prefer to create/inspect the virtualenv manually and run pip in an isolated environment. - Note the metadata mismatches (ownerId/version) — this may indicate copy/paste or packaging mistakes; confirm the publisher identity if provenance matters. - Because SKILL.md marks many keywords for automatic invocation, review agent settings if you want to restrict when the skill can run (especially for politically sensitive document types). If you want to use this skill safely: correct the install script, test the CLI in an isolated environment, and optionally run a static/lint pass on the Python files to resolve import/formatting errors.
功能分析
Type: OpenClaw Skill Name: my-docx-formatter Version: 1.0.0 The skill is a legitimate utility for generating Chinese official documents (公文) in Word format according to specific formatting standards. The core logic in `docx-formatter.py` uses the standard `python-docx` library to manage fonts, margins, and document structure, while `install.sh` safely sets up a local Python virtual environment. No evidence of malicious behavior, such as data exfiltration, unauthorized network access, or harmful prompt injection, was found across the codebase or documentation.
能力评估
Purpose & Capability
The Python code (docx-formatter.py) implements .docx generation and formatting consistent with the description. However there are mismatches: quick_api.py imports from 'docx_formatter' while the file is named 'docx-formatter.py' (dash vs underscore) which will cause import errors; examples/content.json contains unescaped quote characters that make the example JSON invalid; _meta.json ownerId/version differ from the registry metadata (owner/version mismatch). These inconsistencies suggest sloppy packaging or copy/paste errors rather than coherent release management.
Instruction Scope
SKILL.md instructions are limited to installing dependencies and running the included CLI/API to convert Markdown/JSON to .docx. It does not instruct reading unrelated system files or sending data to external endpoints. Note: SKILL.md marks many keywords for automatic invocation (including political/party document keywords); this affects when the agent may auto-run the skill but is conceptually within purpose (document generation).
Install Mechanism
There is no formal install spec, but an install.sh is provided. The script attempts to create and use a virtualenv and pip-install python-docx — which is reasonable — but it uses an unknown 'uv' command ('uv venv' and 'uv pip install python-docx'). 'uv' is not a standard tool; this looks like a typo or an alias and will likely fail on most systems. The install script does not download arbitrary remote archives (pip will contact PyPI), but you should not run the script unreviewed until the 'uv' lines are fixed.
Credentials
The skill declares no required environment variables or secrets and the code does not reference credentials or remote endpoints. That is proportionate to the stated functionality.
Persistence & Privilege
The skill does not request 'always: true' and has no install-time behavior that modifies other skills or system-wide configuration. It only creates/uses a local virtualenv per its install script (if fixed). Autonomous invocation is enabled by default but not combined with any broad privileges here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install my-docx-formatter
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /my-docx-formatter 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
my-docx-formatter v1.0.0 - 初始发布,严格按照中国公文格式规范生成 Word 文档 - 支持 Markdown 或 JSON 输入自动转换为规范化 docx 文件 - 自动处理字体、段落、页码、标题、引号等公文要素 - 提供一键安装脚本与详细用法说明 - 可自动响应“公文”、“报告”、“材料”等关键词的文档生成与格式化需求
元数据
Slug my-docx-formatter
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 1
历史版本数 1
常见问题

My Docx Formatter 是什么?

生成符合中国公文格式规范的 Word 文档,支持标题分级、字体样式、段落格式、页码与中文标点自动处理。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 265 次。

如何安装 My Docx Formatter?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install my-docx-formatter」即可一键安装,无需额外配置。

My Docx Formatter 是免费的吗?

是的,My Docx Formatter 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

My Docx Formatter 支持哪些平台?

My Docx Formatter 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 My Docx Formatter?

由 liujiang817(@liujiang817)开发并维护,当前版本 v1.0.0。

💬 留言讨论