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

Custom licenceAuto-check passedDocuments & Office

Install Skill Build

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

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

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

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

Manual copy
$ git clone --depth 1 https://github.com/zhaohui-yang/official-document-drafting.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/skill-build .claude/skills/skill-build && rm -rf skills-src

Use ~/.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/

Facts

Skill name
skill-build
GitHub stars
140
Token cost
~487 tokens
SKILL.md length
66 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
Custom licence

At a glance

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

  • Works in 4 steps: 改主源:任何规则、文种、字体/版式方案、profile 的修改都只改… → 重新生成:python3… → 校验同步:python3 src/adapters/skill/build.py… → …
  • Working on 构建/重新生成 SKILL.md、agent 接口、dist 副本、assets/templates/ 模板或离线提示词,校验产物是否与 prompts/ 主源同步(--check / 防漂移),或维护 prompts/ → 产物 的单一信息源构建范式
  • SKILL.md covers 文件索引, 调用方式, 默认流程 and 单一信息源原则, plus 1 more section
  • Calls python3

What it does

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

Its SKILL.md is about 490 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Documents & Office. It works with Microsoft Word. The repository describes itself as: A Codex skill for drafting, standardizing, and exporting Chinese official documents and formal reports to Markdown and Word (.docx).

When your agent uses it

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

Example prompts

  • “/skill-build”

Requirements

  • Python 3

Workflow steps

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

  1. 改主源:任何规则、文种、字体/版式方案、profile 的修改都只改 prompts/(及 *.toml、spec.md),不直接手改 SKILL.md / dist/ / 模板。
  2. 重新生成:python3 src/adapters/skill/build.py(涉及离线用 src/scripts/build_all.py)。
  3. 校验同步:python3 src/adapters/skill/build.py --check 必须通过;CI(.github/workflows/ci.yml)会强制跑 --check + pytest。
  4. 跑测试:test_build_sync 断言「主源渲染 == 落盘」,test_reference_consistency 守 references 不与主源漂移。

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

    Shell commands in SKILL.md call:

    • python3

    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

Skill Build loads about 487 tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 66 words of instructions outside code blocks.

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

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 66 words (~487 tokens).

“本项目的 SKILL.md、agent 接口、dist/ 副本、assets/templates/ 模板和离线提示词都不是手写,而是从 prompts/ 单一主源生成。本 skill 管「生成 + 校验同步」,防止改了主源忘了重新 build 导致产物漂移。”

— opening of SKILL.md by zhaohui-yang, Custom licence
name
skill-build

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/skill-build of zhaohui-yang/official-document-drafting.

Open the folder on GitHubat commit 6b4166a

Compare with similar skills

Skill Build 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 Build compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Skill Build this skillzhaohui-yang/official-document-drafting140—~487Automated safety check: PassCustom licence
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
DOCXrvdbreemen/OTGW-firmware20733 repos~4.3kAutomated safety check: PassProprietary
Word Document Reader and WriterHKUDS/DeepTutor41k—~2.5kAutomated safety check: PassApache-2.0
Gzh Designisjiamu/gzh-design-skill4k—~2.2kAutomated safety check: PassAGPL-3.0
GenOffice Document CLIgenspark-ai/genoffice9.2k—~19kAutomated safety check: PassApache-2.0

Similar skills

  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • DOCX

    rvdbreemen/OTGW-firmware

    A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).

    207 GitHub starsUsed in 33 repos~4.3k tokens
    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 2 days ago
    Documents & OfficeAuto-check passed
  • Gzh Design

    isjiamu/gzh-design-skill

    微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…

    4k GitHub stars~2.2k tokensUpdated today
    Documents & OfficeAuto-check passed
  • GenOffice Document CLI

    genspark-ai/genoffice

    Creates, converts, reads and edits real pptx, xlsx, docx and PDF files locally through the genoffice command line.

    9.2k GitHub stars~19k tokensUpdated today
    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.7k tokensUpdated today
    Documents & OfficeAuto-check passed

More from zhaohui-yang/official-document-drafting

All 8 skills in this repo
  • Chinese Official Document Drafting

    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.

    140 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • 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

Works with

Questions about Skill Build

What does Skill Build do?

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

When should I use Skill Build?

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

How do I install Skill Build in Claude Code?

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

How do I install Skill Build in Codex?

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

Can I use Skill Build 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 skill-build -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/skill-build, .gemini/skills/skill-build, .github/skills/skill-build and .opencode/skills/skill-build in your project.

What does Skill Build need to run?

Going by SKILL.md and its folder, Skill Build needs the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Skill Build 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 Skill Build 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 Skill Build use?

Skill Build has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Skill Build use?

About 487 tokens (SKILL.md is roughly 1.9k 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 Skill Build?

Skills that share tags, products or a category with Skill Build: 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.

Who maintains Skill Build?

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.