Agent skill

Official Document Type Routing

by zhaohui-yang in 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.

Custom licenceAuto-check passedWriting & Content

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

Install Official Document Type Routing

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

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

GitHub CLI
$ gh skill install zhaohui-yang/official-document-drafting doc-type-routing --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/doc-type-routing .claude/skills/doc-type-routing && 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
doc-type-routing
GitHub stars
140
Token cost
~441 tokens
SKILL.md length
77 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
Custom licence

At a glance

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.

  • Works in 3 steps: 行文方向:上行(向上级)/下行(向下级)/平行或不相隶属/对外公开。 → 目的:请求批准、汇报情况、部署执行、答复、告知、商洽、记载、提请审议、公布。 → 是否需对方回应:需批复(请示)、需审议(议案)、本身即回应(批复/复函)、不强制(…
  • Unsure whether to write a notice, report, request or letter
  • SKILL.md covers 文件索引, 三维判定法, 快速路由 and 高频易错辨析, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Choosing the wrong document type undermines everything after it, such as a report written as a request or a letter written as a notice. The skill narrows the choice with three questions: the direction of the document, meaning upward, downward, parallel or public; its purpose, such as asking for approval, reporting, deploying work, replying or announcing; and whether the other side must respond. A quick routing list then maps cases to types like request, reply, report, notice, letter, announcement, minutes and decision.

It also lists frequent mix-ups, including report versus request, decision versus resolution, circular versus public notice and why bodies without a reporting line always use a letter. The skill only judges type and direction and never writes the body, which goes to the drafting skill, and a later check goes to document-qa. The criteria come from two core prompt files that are also inlined in the offline system prompt. The SKILL.md is in Chinese.

When your agent uses it

  • Unsure whether to write a notice, report, request or letter
  • Deciding whether a document goes upward, downward or across to a peer body
  • Checking whether the other side must reply before drafting

Example prompts

  • “Tell me which document type to use for asking my superior unit to approve a budget.”
  • “Decide the document type for informing a partner agency of a meeting; they are not our subordinate.”
  • “Classify this draft as a report or a request and explain the difference.”

Workflow steps

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

  1. 行文方向:上行(向上级)/下行(向下级)/平行或不相隶属/对外公开。
  2. 目的:请求批准、汇报情况、部署执行、答复、告知、商洽、记载、提请审议、公布。
  3. 是否需对方回应:需批复(请示)、需审议(议案)、本身即回应(批复/复函)、不强制(报告/通知/通报)。

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

Official Document Type Routing loads about 441 tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 77 words of instructions outside code blocks.

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

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 77 words (~441 tokens).

name
doc-type-routing

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/doc-type-routing of zhaohui-yang/official-document-drafting.

Open the folder on GitHubat commit 6b4166a

Compare with similar skills

Official Document Type Routing 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.

Official Document Type Routing compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Official Document Type Routing this skillzhaohui-yang/official-document-drafting140—~441Automated safety check: PassCustom licence
Bookforge Korean Ebook PDF Makergongnyang/bookforge3161 repos~1.7kAutomated safety check: PassMIT
Typst Authorjihe520/MathModelAgent6.2k1 repos~2.3kAutomated safety check: PassNone
Markdown to HTML ReportMegaSuperKitty/WeClaw370—~456Automated safety check: PassMIT
Industry Bid Document WriterGet00/BiaoShu-SKILL173—~4.6kAutomated safety check: PassApache-2.0
Video Transcript Report Builderimexlovery/video-report-agent195—~1.9kAutomated safety check: PassNone

Similar skills

  • Produces book-style Korean ebook PDFs from a topic or finished manuscript, with six design styles, real book parts and quality-check gates before output.

    316 GitHub starsUsed in 1 repo~1.7k tokens
    Documents & OfficeAuto-check passed
  • Typst Author

    jihe520/MathModelAgent

    Generates, edits and debugs Typst (.typ) documents using the bundled Typst documentation as the source of truth, with formatting checks after each edit.

    6.2k GitHub starsUsed in 1 repo~2.3k tokens
    Documents & OfficeAuto-check passed
  • Markdown to HTML Report

    MegaSuperKitty/WeClaw

    Drafts a report in Markdown with numbered inline citations and a references section, then renders it to a styled HTML file through a Jinja2 template on Windows.

    370 GitHub stars~456 tokensUpdated 5 mo ago
    Documents & OfficeAuto-check passed
  • 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.

    173 GitHub stars~4.6k tokensUpdated 16 days ago
    Documents & OfficeAuto-check passed
  • Video Transcript Report Builder

    imexlovery/video-report-agent

    Edits a video transcript or long text into a self-contained HTML reading report, organized by what the content is about instead of a fixed outline.

    195 GitHub stars~1.9k tokensUpdated 8 days ago
    Writing & ContentAuto-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.

    159 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
  • 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

Questions about Official Document Type Routing

What does Official Document Type Routing do?

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. Choosing the wrong document type undermines everything after it, such as a report written as a request or a letter written as a notice. The skill narrows the choice with three questions: the direction of the document, meaning upward, downward, parallel or public; its purpose, such as asking for approval, reporting, deploying work, replying or announcing; and whether the other side must respond.

When should I use Official Document Type Routing?

Official Document Type Routing fits situations like: unsure whether to write a notice, report, request or letter; deciding whether a document goes upward, downward or across to a peer body; checking whether the other side must reply before drafting.

How do I install Official Document Type Routing in Claude Code?

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

How do I install Official Document Type Routing in Codex?

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

Can I use Official Document Type Routing 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 doc-type-routing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/doc-type-routing, .gemini/skills/doc-type-routing, .github/skills/doc-type-routing and .opencode/skills/doc-type-routing in your project.

What does Official Document Type Routing need to run?

SKILL.md names no scripts, command-line tools or credentials: Official Document Type Routing is instructions for the agent only.

Does Official Document Type Routing 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 Official Document Type Routing 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 Official Document Type Routing use?

Official Document Type Routing 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 Official Document Type Routing use?

About 441 tokens (SKILL.md is roughly 1.8k 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 Official Document Type Routing?

Skills that share tags, products or a category with Official Document Type Routing: Bookforge Korean Ebook PDF Maker (gongnyang/bookforge, 316 stars), Typst Author (jihe520/MathModelAgent, 6.2k stars), Markdown to HTML Report (MegaSuperKitty/WeClaw, 370 stars) and Industry Bid Document Writer (Get00/BiaoShu-SKILL, 173 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Official Document Type Routing?

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.