机关公文排版skill
v1.0.0公文排版工具 - 根据公文格式规范自动排版Word文档。适用于发送Word文件前进行格式调整。
⭐ 1· 341·0 current·0 all-time
by@batduke
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description match the included code: format_gw.py uses python-docx to adjust fonts, margins, headings, tables and save a new .docx. The required runtime (python3) and declared dependency (python-docx in SKILL.md) are consistent with this purpose.
Instruction Scope
Runtime instructions only run the formatter on an input .docx and produce an output .docx (no network calls, no env vars). Notes: SKILL.md shows an example invocation path (~/.npm-global/...), which may be incorrect depending on how the skill is installed; references/format-rules.md mentions stopping when fonts are missing but the code does not implement a font-availability check. The code only reads the provided input file and local reference file, so scope is limited to document processing.
Install Mechanism
No install spec (instruction-only with a bundled Python script). This minimizes install-time risk. The script requires the third-party python-docx package (not enforced by registry metadata), which is a common Python dependency.
Credentials
No environment variables, credentials, or config paths are requested or accessed. The skill does not attempt to read unrelated system files or network endpoints.
Persistence & Privilege
always is false and the skill does not request persistent or elevated privileges. It does not modify other skills or system-wide settings.
Assessment
This skill appears to do what it says: format .docx files locally using python-docx. Before installing/using it: 1) Install python3 and python-docx in a controlled environment (virtualenv) and test on non-sensitive sample documents. 2) Be aware the script assumes several Chinese fonts; if fonts are missing the output may be incorrect (references mention halting on missing fonts but the script doesn't enforce that). 3) The script contains a bug in the table formatting loop (uses an undefined variable row_index) that can cause a runtime error — you may need to fix that or avoid documents with tables until patched. 4) The SKILL.md example path may not match your installation layout; run the bundled format_gw.py directly. No secrets or network access are requested, so main risks are functional (fonts, formatting) rather than data-exfiltration.Like a lobster shell, security has layers — review code before you run it.
latestvk97e8q4ggh4k4b8q4kdk34spc582vmj7
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
Runtime requirements
📝 Clawdis
Binspython3
