Agent skill

Chinese Official Document Drafting

by zhaohui-yang in zhaohui-yang/official-document-drafting

Drafts, rewrites and standardizes Chinese official documents and formal reports such as notices, requests and meeting minutes, and exports the result to Word.

MITAuto-check passedDocuments & Office

SKILL.md written in Chinese; this summary is our English description.

Install Chinese Official Document Drafting

skills CLI
$ npx skills add zhaohui-yang/official-document-drafting --skill official-document-drafting -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zhaohui-yang/official-document-drafting official-document-drafting --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
official-document-drafting
GitHub stars
140
Token cost
~1.5k tokens
SKILL.md length
248 words
Files
483 (incl. assets)
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Drafts, rewrites and standardizes Chinese official documents and formal reports such as notices, requests and meeting minutes, and exports the result to Word.

  • Works in 7 steps: 先读事实与政策底线(policy.md、doc-type-guardrails.m… → 判断文种:先判断是否法定公文 15… → 按任务类型从“任务路由”读取语言(style.md)、版式(layout.md)等… → …
  • Drafting a notice, request, report or reply letter in formal Chinese
  • SKILL.md covers 调用方式, 文件索引, 任务路由 and 默认流程, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

This is the entry point of a larger Chinese-language skill for official documents. The agent identifies the document type, either one of the 15 statutory types or a common formal material such as a briefing, speech draft or work plan, along with the direction of the correspondence, and then loads only the shared rules and the type-specific `spec.md` that it needs.

The first principle is accuracy over polish: no invented facts, policy bases, figures, document numbers or meeting conclusions, with placeholders for the issuing unit, the date and a to-be-verified mark wherever information is missing. Output is a finished Markdown draft, or an outline on request. For Word, the agent applies the font and layout profiles named in the document type's `meta.toml` and exports with `src/scripts/generate_docx.py`. Sibling skills handle docx export, quality checks and offline prompt packaging.

When your agent uses it

  • Drafting a notice, request, report or reply letter in formal Chinese
  • Rewriting or polishing an existing Chinese official text to standard wording
  • Turning news material into a formal briefing or report
  • Exporting a finished Chinese official document to Word

Example prompts

  • “Draft a notice announcing the office holiday schedule, in standard Chinese official format.”
  • “Rewrite this request to the municipal bureau so it follows the proper headings and numbering.”
  • “Turn these meeting notes into formal minutes and export them as a Word file.”

Requirements

  • Python to run the Word export script `src/scripts/generate_docx.py`

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. 先读事实与政策底线(policy.md、doc-type-guardrails.md);任何起草都以真实性优先于文采。
  2. 判断文种:先判断是否法定公文 15 种,否则落到常见正式材料;判断行文方向(上行/下行/平行/公开)、发文主体、主送对象、事项性质与时间要求。详细文种路由规则见 prompts/core/workflow.md。
  3. 按任务类型从“任务路由”读取语言(style.md)、版式(layout.md)等共享规则,只加载本次需要的部分,不一次性全量加载。
  4. 读取目标文种 spec.md 的“写作规则”“版式要求”“模板”,并按 meta.toml 的 font_profile、layout_profile 应用字体与版式;无独立模板时退回 prompts/core/fallback-template.md。
  5. 默认直接输出最终 Markdown 成稿;用户只要求提纲时输出提纲。信息不足时保留 [发文单位]、[日期]、[待核实] 等占位符,不虚构。
  6. 需要 Word 时,确认 Markdown 结构正确后调用 src/scripts/generate_docx.py,按文种 meta.toml 的字体与版式方案导出。
  7. 成稿前校对错别字、病句、标点、数字、日期、称谓和机构名称。

What it can do on your machine

Read from SKILL.md and the folder at commit 6b4166a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Chinese Official Document Drafting loads about 1.5k tokens when it runs. Until then it costs about 81 tokens; SKILL.md has 248 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~81
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

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.

Safety

Auto-check passed

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from zhaohui-yang/official-document-drafting at commit 6b4166a, republished under its MIT licence (© zhaohui-yang). 248 words, ~1,548 tokens.

Download SKILL.mdSave it as .claude/skills/official-document-drafting/SKILL.md (or your agent's skills folder). This skill also uses 482 other files; get the full folder from GitHub.
name
official-document-drafting
description
起草、改写、润色、扩写、压缩、规范并导出中文公文与行政正式文本。Use when the user asks to write, revise, summarize, standardize, or convert 公文、决议、决定、命令、公告、公报、通告、意见、通知、通报、报告、请示、批复、议案、函、纪要,以及总结、简报、新闻简报、信息专报、舆情专报、汇报材料、讲话稿、工作方案、实施方案、回复函等正式机关或单位文稿,尤其适用于需要固定文种结构、正式机关语气、统一口径、规范标题、层级编号、落款日期、模板套用、Word docx 导出,或将当前新闻材料整理为正式公文和正式汇报材料的场景。
<!-- Generated from prompts/ and src/adapters/skill/build.py. -->

公文写作

official-document-drafting 的统一入口:把新闻素材、零散信息或既有文稿整理成规范的中文公文与正式材料,并可导出 Word。本文件只保留入口、任务路由、默认流程和文种目录;详细规则按需读取 prompts/core/*.md 和对应文种 spec.md,不在此重复展开。

核心原则:真实性优先于文采;不编造事实、政策依据、数字、文件号、会议结论;信息不足时保留占位符或标注待核实。完整边界见 prompts/core/policy.md 与 prompts/core/doc-type-guardrails.md。

调用方式

  • 先按下方“任务路由”读取本次任务需要的共享规则,无需一次性加载全部规则。
  • 判断当前任务最匹配的文种(见“文种目录”与 prompts/core/workflow.md 的文种路由规则)。
  • 文种确定后,先应用 prompts/core/doc-type-guardrails.md,再读取对应文种目录的 spec.md,按其中“写作规则”“版式要求”“模板”章节处理,并按 meta.toml 中的 font_profile 和 layout_profile 应用字体与版式参数。
  • 如存在 examples.md,并且用户明确要求更贴近既有样稿或单位写法,再按需参考。
  • 用户要求 Word 时,先形成结构正确的 Markdown 成稿,再调用 src/scripts/generate_docx.py 导出。

文件索引

official-document-drafting/
├── SKILL.md                       # 本文件:入口、任务路由、默认流程、文种目录(由 prompts/ 生成)
├── prompts/
│   ├── core/                      # 共享总规则主源(在线按需读取,离线提示词内联)
│   │   ├── policy.md              # 政策与交付边界
│   │   ├── doc-type-guardrails.md # 防编造强制约束
│   │   ├── workflow.md            # 文种判断、文种路由规则、保存与命名约定
│   │   ├── style.md               # 语言风格、标题层级、正文结尾、落款、主送/附件/版记
│   │   ├── layout.md              # 基线版式与 Word 导出约定
│   │   └── fallback-template.md   # 无独立文种模板时的兜底骨架
│   ├── doc-types/<id>-<文种>/     # 各文种 spec.md(写作规则/版式要求/模板)、meta.toml、examples.md
│   ├── font-profiles/*.toml       # 字体方案
│   ├── layout-profiles/*.toml     # 版式参数方案
│   └── profiles/*.toml            # 在线/离线构建 profile
├── src/scripts/generate_docx.py       # Markdown 成稿导出 .docx(--doc-type 自动套用字体与版式)
├── src/adapters/skill/build.py        # 由 prompts/ 生成 SKILL.md 等在线产物(--check 校验同步)
└── docs/references/                    # 面向读者的说明文档,操作性规则以 prompts/core 为准

任务路由

根据本次请求读取对应文件(可一次读取多个):

请求类型读取
任何起草、改写、润色前的事实与政策底线prompts/core/policy.md、prompts/core/doc-type-guardrails.md
文种判断、行文方向、文种路由规则、保存与命名约定prompts/core/workflow.md
撰写思路与语域prompts/core/drafting-thinking.md
语言风格、标题与层级编号、正文与结尾、落款、主送/附件/版记prompts/core/style.md
基线版式、字体字号、Word 导出参数与脚本约定prompts/core/layout.md
具体文种的写作规则、版式要求、模板下方“文种目录”对应的 spec.md
字体与版式精确参数prompts/font-profiles/<方案>.toml、prompts/layout-profiles/<方案>.toml
没有独立文种模板时的兜底骨架prompts/core/fallback-template.md

默认流程

  1. 先读事实与政策底线(policy.md、doc-type-guardrails.md);任何起草都以真实性优先于文采。
  2. 判断文种:先判断是否法定公文 15 种,否则落到常见正式材料;判断行文方向(上行/下行/平行/公开)、发文主体、主送对象、事项性质与时间要求。详细文种路由规则见 prompts/core/workflow.md。
  3. 按任务类型从“任务路由”读取语言(style.md)、版式(layout.md)等共享规则,只加载本次需要的部分,不一次性全量加载。
  4. 读取目标文种 spec.md 的“写作规则”“版式要求”“模板”,并按 meta.toml 的 font_profile、layout_profile 应用字体与版式;无独立模板时退回 prompts/core/fallback-template.md。
  5. 默认直接输出最终 Markdown 成稿;用户只要求提纲时输出提纲。信息不足时保留 [发文单位]、[日期]、[待核实] 等占位符,不虚构。
  6. 需要 Word 时,确认 Markdown 结构正确后调用 src/scripts/generate_docx.py,按文种 meta.toml 的字体与版式方案导出。
  7. 成稿前校对错别字、病句、标点、数字、日期、称谓和机构名称。

相关 skill

本入口负责「起草」。以下同源 skill(在 skills/,共用同一份 prompts/ 主源,不复制规则)处理相邻能力:

  • skills/docx-export:成稿后导出机关版式 .docx、调字体/页边距/页码。
  • skills/document-qa:校验成稿章节是否齐全、层级是否规范、有无无依据表述。
  • skills/offline-prompt-packager:打包断网单机可用的离线提示词。
  • skills/skill-build:从 prompts/ 主源重新生成并 --check 校验产物同步。

文种目录

下表中文种的规则文件位于 prompts/doc-types/<id>-<文种>/spec.md,字体方案位于 prompts/font-profiles/<方案>.toml,版式方案位于 prompts/layout-profiles/<方案>.toml。

法定公文
  • announcement / 公告 / 别名:公告 / 字体方案:official-standard / 版式方案:official-standard / 向国内外宣布重要事项或者法定事项。
  • approval / 批复 / 别名:批复 / 字体方案:official-standard / 版式方案:official-standard / 用于答复下级机关请示事项。
  • circular / 通报 / 别名:通报 / 字体方案:official-standard / 版式方案:official-standard / 用于表彰先进、批评错误或传达重要情况。
  • communique / 公报 / 别名:公报 / 字体方案:official-standard / 版式方案:official-standard / 公开发布重要决定、重大事项或重要会议情况。
  • decision / 决定 / 别名:决定 / 字体方案:official-standard / 版式方案:official-standard / 对重要事项作出部署、奖惩、处理或调整。
  • letter / 函 / 别名:函 / 字体方案:official-standard / 版式方案:official-standard / 用于平行机关或不相隶属机关之间商洽、询问、答复。
  • minutes / 纪要 / 别名:纪要、会议纪要 / 字体方案:official-standard / 版式方案:official-standard / 用于记载会议主要情况和议定事项。
  • motion / 议案 / 别名:议案 / 字体方案:official-standard / 版式方案:official-standard / 具有特定法定主体和程序要求的议案。
  • notice / 通知 / 别名:通知 / 字体方案:official-standard / 版式方案:official-standard / 用于发布、传达、转发事项或安排部署工作。
  • opinion / 意见 / 别名:意见 / 字体方案:official-standard / 版式方案:official-standard / 对重要问题提出见解和处理办法。
  • order / 命令(令) / 别名:命令、令、命令令 / 字体方案:official-standard / 版式方案:official-standard / 用于公布规章、施行重大强制性措施等。
  • public-notice / 通告 / 别名:通告 / 字体方案:official-standard / 版式方案:official-standard / 在一定范围内公布应当遵守或者周知的事项。
  • report / 报告 / 别名:报告 / 字体方案:official-standard / 版式方案:official-standard / 用于向上级汇报工作、反映情况、回复询问。
  • request / 请示 / 别名:请示 / 字体方案:official-standard / 版式方案:official-standard / 用于向上级请求指示、批准。
  • resolution / 决议 / 别名:决议 / 字体方案:official-standard / 版式方案:official-standard / 会议讨论通过的重要决策事项。
常见正式材料
  • briefing / 简报 / 别名:简报、信息简报、新闻简报 / 字体方案:internal-readable / 版式方案:internal-readable / 用于简要报送动态、会议情况、阶段成果和新闻整理。
  • presentation / 汇报材料 / 别名:汇报材料、汇报稿 / 字体方案:internal-readable / 版式方案:internal-readable / 用于向领导、检查组或上级进行阶段性工作汇报。
  • reply / 回复函 / 别名:回复函、复函 / 字体方案:official-standard / 版式方案:official-standard / 用于对来函、来文、咨询事项作出正式回复。
  • special-report / 情况专报 / 别名:情况专报、信息专报、舆情专报、专报 / 字体方案:internal-readable / 版式方案:internal-readable / 用于向领导或上级报送专题信息、风险情况和舆情态势。
  • speech / 讲话稿 / 别名:讲话稿、发言稿 / 字体方案:speech-readable / 版式方案:speech-readable / 用于领导讲话、会议发言、动员部署和总结点评。
  • summary / 工作总结 / 别名:工作总结、总结、总结材料 / 字体方案:internal-readable / 版式方案:internal-readable / 用于阶段性复盘、年度总结、专项工作总结。
  • work-plan / 工作方案 / 别名:工作方案、实施方案、方案 / 字体方案:internal-readable / 版式方案:internal-readable / 用于专项行动、阶段性工作、制度落地和项目推进。

© zhaohui-yang, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 482 other files (assets) in the repository root of zhaohui-yang/official-document-drafting.

  • SKILL.md
  • .agent/closeout.json
  • .claude/settings.json
  • .clawhubignore
  • .codex/agents/deep-reviewer.toml
  • .codex/agents/fast-explorer.toml
  • .codex/agents/verification-runner.toml
  • .codex/agents/xhigh-worker.toml
  • .codex/config.toml
  • .github/ISSUE_TEMPLATE/bug_report.md
  • .github/ISSUE_TEMPLATE/config.yml
  • .github/ISSUE_TEMPLATE/feature_request.md
  • .github/ISSUE_TEMPLATE/question.md
  • .github/workflows/ci.yml
  • … and 469 more

Open the folder on GitHubat commit 6b4166a

Compare with similar skills

Chinese Official Document Drafting 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.

Chinese Official Document Drafting compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Chinese Official Document Drafting this skillzhaohui-yang/official-document-drafting140—~1.5kAutomated safety check: PassMIT
Industry Bid Document WriterGet00/BiaoShu-SKILL172—~4.6kAutomated safety check: PassApache-2.0
Hermes3000 WritingHybridAIOne/hybridclaw158—~2.7kAutomated safety check: PassMIT
Training and Workshop Reportsamber/cc-skills228—~2.7kAutomated safety check: PassMIT
Text Format Organizeraipoch/medical-research-skills2k—~1.9kAutomated safety check: PassMIT
Word Document Reader and WriterHKUDS/DeepTutor41k—~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • Industry Bid Document Writer

    Get00/BiaoShu-SKILL

    Converts a tender document into Markdown, extracts scoring criteria and requirements, then drafts an industry-formatted technical bid as a Word file.

    172 GitHub stars~4.6k tokensUpdated 15 days ago
    Documents & OfficeAuto-check passed
  • Hermes3000 Writing

    HybridAIOne/hybridclaw

    Use Hermes3000 to plan, draft, revise, save, check consistency, and export long-form manuscripts through the Hermes3000 AI writing portal API.

    158 GitHub stars~2.7k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Produces a training or workshop report as a Word file, with participant feedback and recommendations, drafted in Markdown first and converted once at the end.

    228 GitHub stars~2.7k tokensUpdated 8 days ago
    Documents & OfficeAuto-check passed
  • Text Format Organizer

    aipoch/medical-research-skills

    A local text formatting organizer for biomedical/academic writing; use it when you need to clean whitespace/line endings while preserving Markdown structures or when normalizing .docx/.md/.txt…

    2k GitHub stars~1.9k tokensUpdated 22 days ago
    Documents & OfficeAuto-check passed
  • Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.

    41k GitHub stars~2.5k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • BiSheng DOCX Builder

    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.

    12k GitHub stars~2.6k tokensUpdated today
    Documents & OfficeAuto-check passed

More from zhaohui-yang/official-document-drafting

All 8 skills in this repo
  • Official Document Type Routing

    zhaohui-yang/official-document-drafting

    Decides which type of Chinese official document to write and in which direction it travels, using three questions, before handing off to the drafting skill.

    140 GitHub stars~441 tokensUpdated 1 mo ago
    Auto-check passed
  • Chinese Official Document QA

    zhaohui-yang/official-document-drafting

    Checks the structure and quality of a finished Chinese official document with a section-checking script and a manual checklist, without rewriting it.

    140 GitHub stars~466 tokensUpdated 1 mo ago
    Auto-check passed
  • Official Document DOCX Exporter

    zhaohui-yang/official-document-drafting

    Exports a finished Chinese official-document Markdown draft to a .docx with government-style fonts and layout, with options to preview the font and layout plan first.

    140 GitHub stars~585 tokensUpdated 1 mo ago
    Auto-check passed
  • Ministry News Daily Report

    zhaohui-yang/official-document-drafting

    Collects the latest updates from Chinese central ministry websites and drafts a daily formal report on them, optionally exported to Word.

    140 GitHub stars~555 tokensUpdated 1 mo ago
    Auto-check passed
  • Policy Keyword Tracker

    zhaohui-yang/official-document-drafting

    Collects policies and developments on one topic from Chinese central ministries and compiles them into a verified situation report, with optional Word export.

    140 GitHub stars~555 tokensUpdated 1 mo ago
    Auto-check passed
  • Skill Build

    zhaohui-yang/official-document-drafting

    从 prompts/ 单一主源生成并校验本项目的 skill 产物。Use when working on 构建/重新生成 SKILL.md、agent 接口、dist 副本、assets/templates/ 模板或离线提示词,校验产物是否与 prompts/ 主源同步(--check / 防漂移),或维护 prompts/ → 产物 的单一信息源构建范式。

    140 GitHub stars~487 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Chinese Official Document Drafting

What does Chinese Official Document Drafting do?

Drafts, rewrites and standardizes Chinese official documents and formal reports such as notices, requests and meeting minutes, and exports the result to Word. This is the entry point of a larger Chinese-language skill for official documents.md` that it needs.

When should I use Chinese Official Document Drafting?

Chinese Official Document Drafting fits situations like: drafting a notice, request, report or reply letter in formal Chinese; rewriting or polishing an existing Chinese official text to standard wording; turning news material into a formal briefing or report; exporting a finished Chinese official document to Word.

How do I install Chinese Official Document Drafting in Claude Code?

Run `npx skills add zhaohui-yang/official-document-drafting --skill official-document-drafting -a claude-code`. Or copy the skill folder (the zhaohui-yang/official-document-drafting repository) into .claude/skills/official-document-drafting in your project. Claude Code loads it when a task matches its description.

How do I install Chinese Official Document Drafting in Codex?

Run `npx skills add zhaohui-yang/official-document-drafting --skill official-document-drafting -a codex`. Or copy the skill folder (the zhaohui-yang/official-document-drafting repository) into .agents/skills/official-document-drafting in your project. Codex loads it when a task matches its description.

Can I use Chinese Official Document Drafting in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zhaohui-yang/official-document-drafting --skill official-document-drafting -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/official-document-drafting, .gemini/skills/official-document-drafting, .github/skills/official-document-drafting and .opencode/skills/official-document-drafting in your project.

What does Chinese Official Document Drafting need to run?

SKILL.md names no scripts, command-line tools or credentials: Chinese Official Document Drafting is instructions for the agent only. Our summary lists: Python to run the Word export script `src/scripts/generate_docx.py`.

Does Chinese Official Document Drafting access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Chinese Official Document Drafting safe to install?

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. Review the folder before installing.

What licence does Chinese Official Document Drafting use?

Chinese Official Document Drafting is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Chinese Official Document Drafting use?

About 1.5k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Chinese Official Document Drafting?

Skills that share tags, products or a category with Chinese Official Document Drafting: Industry Bid Document Writer (Get00/BiaoShu-SKILL, 172 stars), Hermes3000 Writing (HybridAIOne/hybridclaw, 158 stars), Training and Workshop Report (samber/cc-skills, 228 stars) and Text Format Organizer (aipoch/medical-research-skills, 2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Chinese Official Document Drafting?

zhaohui-yang (a GitHub user) maintains it in zhaohui-yang/official-document-drafting, which has 140 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on August 19, 2026.

Source: zhaohui-yang/official-document-drafting on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.