Markitdown
ImCa0/just-laws
Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.
中文公文(党政机关公文 GB/T 9704-2012)格式检查、自动修复、模板生成、版头版记页码注入与 AI 风格优化工具。
$ npx skills add linhut/document-ai-assistant --skill gongwen-optimizer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install linhut/document-ai-assistant gongwen-optimizer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/linhut/document-ai-assistant.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skill .claude/skills/gongwen-optimizer && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "gongwen-optimizer" agent skill from https://github.com/linhut/document-ai-assistant/tree/master/skill into .claude/skills/gongwen-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gongwen-optimizer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/linhut/document-ai-assistant/tree/master/skillType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add linhut/document-ai-assistant --skill gongwen-optimizer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install linhut/document-ai-assistant gongwen-optimizer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/linhut/document-ai-assistant.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skill .agents/skills/gongwen-optimizer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "gongwen-optimizer" agent skill from https://github.com/linhut/document-ai-assistant/tree/master/skill into .agents/skills/gongwen-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gongwen-optimizer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add linhut/document-ai-assistant --skill gongwen-optimizer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install linhut/document-ai-assistant gongwen-optimizer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/linhut/document-ai-assistant.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skill .cursor/skills/gongwen-optimizer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "gongwen-optimizer" agent skill from https://github.com/linhut/document-ai-assistant/tree/master/skill into .cursor/skills/gongwen-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gongwen-optimizer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/linhut/document-ai-assistant.git --path skill--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add linhut/document-ai-assistant --skill gongwen-optimizer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install linhut/document-ai-assistant gongwen-optimizer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/linhut/document-ai-assistant.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skill .gemini/skills/gongwen-optimizer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "gongwen-optimizer" agent skill from https://github.com/linhut/document-ai-assistant/tree/master/skill into .gemini/skills/gongwen-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gongwen-optimizer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install linhut/document-ai-assistant gongwen-optimizerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add linhut/document-ai-assistant --skill gongwen-optimizer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/linhut/document-ai-assistant.git skills-src && mkdir -p .github/skills && cp -r skills-src/skill .github/skills/gongwen-optimizer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "gongwen-optimizer" agent skill from https://github.com/linhut/document-ai-assistant/tree/master/skill into .github/skills/gongwen-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gongwen-optimizer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add linhut/document-ai-assistant --skill gongwen-optimizer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install linhut/document-ai-assistant gongwen-optimizer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/linhut/document-ai-assistant.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skill .opencode/skills/gongwen-optimizer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "gongwen-optimizer" agent skill from https://github.com/linhut/document-ai-assistant/tree/master/skill into .opencode/skills/gongwen-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "gongwen-optimizer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
gongwen-optimizer中文公文(党政机关公文 GB/T 9704-2012)格式检查、自动修复、模板生成、版头版记页码注入与 AI 风格优化工具。
Gongwen Optimizer is an agent skill from linhut/document-ai-assistant. 中文公文(党政机关公文 GB/T 9704-2012)格式检查、自动修复、模板生成、版头版记页码注入与 AI 风格优化工具。
Its SKILL.md is about 510 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/install.sh`).
It sits in Documents & Office, covering Word documents. It works with Microsoft Word. The repository describes itself as: AI 公文智能优化助手 — 基于 GB/T 9704 标准的公文格式智能检测与优化桌面应用,可本地离线部署. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit a55f1b5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (PowerShell and Shell), which the agent can run.
Shell commands in SKILL.md call:
pythonbashpipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Gongwen Optimizer loads about 507 tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 120 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from linhut/document-ai-assistant at commit a55f1b5, republished under its MIT licence (© linhut). 120 words, ~507 tokens.
.claude/skills/gongwen-optimizer/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.本项目为「AI 公文智能优化助手」的 Agent 可调用发行版。它把文档处理引擎打包成 可供 Claude Code / Codex / OpenCode / Kimi / Trae / ZCode 等 Agent 直接调用的 Skill: 克隆仓库即用,不依赖桌面端与数据库。
| 能力 | 说明 | 调用方式 |
|---|---|---|
| 格式检查 | 按 GB/T 9704-2012 规则检查字体/字号/缩进/行距/页边距/页码等,输出问题清单(含标准条款 standard_ref) | check |
| 自动修复 | 一键修复格式问题并生成优化后的 .docx | optimize |
| 要素语义校验 | 文号、成文日期、发文机关署名等语义级检查(CHK-S 系列) | 随 check 输出 |
| 特殊版式 | 信函双线、命令格式、红头预印套打预留、联合行文 | 规则/模板层支持 |
| 模板生成 | 22 种法定文种模板(.dotx/.docx)生成 | 仓库 templates/ 提供 |
| AI 风格优化 | 22 文种去 AI 味润色提示词库(backend/ai/style_library.py) | 配合 AI 调用 |
要求:Python 3.12+,安装依赖 pip install -r backend/requirements.txt。
# 从仓库根目录执行
python backend/wfp_cli.py check 输入.docx --doc-type notice
python backend/wfp_cli.py format 输入.docx --doc-type notice -o 输出.docx
python backend/wfp_cli.py optimize 输入.docx --doc-type notice -o 优化.docx --apply-fixes常用参数:
--doc-type:notice/report/request/meeting/decision/letter 等 22 种文种--apply-fixes:同时应用修复规则(默认关闭,仅检查)--selected-rules:只应用指定规则 ID(逗号分隔)rules/official/*.yaml(公共基础层 _common.yaml + 各文种层,三级优先级官方 < 自定义 < 用户)standard_ref),证据矩阵见 docs/gbt9704-audit-matrix.mdbackend/core/rules/semantic.pybackend/core/document/modifier.py(单一变更点),勿直接改模型。backend/core/document/font_utils.py 的 set_run_font()(同时设置 ascii/hAnsi/eastAsia/cs 四属性)。standard_ref 为 GB/T 9704-2012 条款号,供审计与人工复核。bash skill/scripts/install.sh --all # macOS / Linux(符号链接,源目录只维护一份)
powershell -File skill/scripts/install.ps1 -All # Windows(复制,避免符号链接权限问题)支持的平台目录(随版本可能变化,可用环境变量 SKILL_DIRS 覆盖):
Claude Code、Codex、OpenCode、Trae Code、Kimi Code、ZCode、TraeWork、WorkBuddy、Cursor。
MIT。字体文件(方正小标宋简等)按其各自授权使用。
© linhut, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (scripts) in skill of linhut/document-ai-assistant.
Open the folder on GitHubat commit a55f1b5
Gongwen Optimizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Gongwen Optimizer this skilllinhut/document-ai-assistant | 115 | — | ~507 | Automated safety check: Pass | MIT | |
| MarkitdownImCa0/just-laws | 781 | 14 repos | ~3.2k | Automated safety check: Notes | MIT | |
| DOCXrvdbreemen/OTGW-firmware | 207 | 33 repos | ~4.3k | Automated safety check: Pass | Proprietary | |
| Word Document Reader and WriterHKUDS/DeepTutor | 41k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| Gzh Designisjiamu/gzh-design-skill | 4k | — | ~2.2k | Automated safety check: Pass | AGPL-3.0 | |
| GenOffice Document CLIgenspark-ai/genoffice | 9.2k | — | ~19k | Automated safety check: Pass | Apache-2.0 |
ImCa0/just-laws
Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.
rvdbreemen/OTGW-firmware
A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).
HKUDS/DeepTutor
Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.
isjiamu/gzh-design-skill
微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…
genspark-ai/genoffice
Creates, converts, reads and edits real pptx, xlsx, docx and PDF files locally through the genoffice command line.
dataelement/bisheng
Builds or edits Word .docx documents inside BiSheng's code executor with python-docx, handling Chinese fonts, tables of contents, page numbers and official-document layout.
Works with
Categories
中文公文(党政机关公文 GB/T 9704-2012)格式检查、自动修复、模板生成、版头版记页码注入与 AI 风格优化工具。. Gongwen Optimizer is an agent skill from linhut/document-ai-assistant.
Gongwen Optimizer fits situations like: tasks that involve Word documents.
Run `npx skills add linhut/document-ai-assistant --skill gongwen-optimizer -a claude-code`. Or copy the skill folder (skill in linhut/document-ai-assistant) into .claude/skills/gongwen-optimizer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add linhut/document-ai-assistant --skill gongwen-optimizer -a codex`. Or copy the skill folder (skill in linhut/document-ai-assistant) into .agents/skills/gongwen-optimizer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add linhut/document-ai-assistant --skill gongwen-optimizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gongwen-optimizer, .gemini/skills/gongwen-optimizer, .github/skills/gongwen-optimizer and .opencode/skills/gongwen-optimizer in your project.
Going by SKILL.md and its folder, Gongwen Optimizer needs PowerShell and a shell for the scripts in its folder and the command-line tools its instructions call (python, bash and pip). Our summary lists: Python 3; A Bash shell; PowerShell.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Gongwen Optimizer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 507 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Gongwen Optimizer: Markitdown (ImCa0/just-laws, 781 stars), DOCX (rvdbreemen/OTGW-firmware, 207 stars), Word Document Reader and Writer (HKUDS/DeepTutor, 41k stars) and Gzh Design (isjiamu/gzh-design-skill, 4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
linhut (a GitHub user) maintains it in linhut/document-ai-assistant, which has 115 GitHub stars. The repository was last updated on September 26, 2026.
Source: linhut/document-ai-assistant on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.