Intelligent Official Document Writing Assistant: Full-Process Writing Support for Statutory Administrative Documents

Preface

Government agency documents usually need to satisfy three requirements at once: type standards, policy references, and precise wording. Checking files takes time, applying templates often omits required elements, and formatting and sensitive expressions must be repeatedly verified before finalization. Relying solely on general-purpose large-model chat is hard to consistently align with the “Regulations on the Handling of Official Documents of Party and Government Organs” and an organization’s own writing conventions.

Below we introduce the SkillHub community skill “Smart Official Document Writing Assistant” (@user_fd308b11/govwriter-skill), which ties together policy search, structural frameworks, and compliance checks into a reusable writing assistance pipeline tailored to the daily drafting scenarios of government staff.

What is this

The “Smart Official Document Writing Assistant” is a professional community skill on SkillHub, located at @user_fd308b11/govwriter-skill. The current version is 1.0.1, maintained by the publisher user_fd308b11. The page is marked requires_api_key=false, so no separate API key is needed after installation.

The official introduction positions it as: for government staff, covering 15 statutory types of official documents with full-process writing assistance, addressing three kinds of repetitive labor: “finding references, structuring content, and checking compliance.”

  • SkillHub showcase page: https://www.skillhub.cn/skills/user_fd308b11/govwriter-skill
  • Data index address: https://api.skillhub.cn/user_fd308b11/govwriter-skill

(SkillHub page data: rating 100000, 10919 downloads, 274 installations.)

Core features

The following capabilities come from SkillHub’s official introduction; implementation details not separately expanded on the page are not extended here.

Before or during writing, through the skill-guided search capability, quickly locate:

  • Document basis
  • Superior-level guidance
  • Reference cases of similar type

Used to reduce time spent manually digging through scattered materials.

Framework generation

According to the type of official document you specify, generate a standard structural template compliant with the “Regulations on the Handling of Official Documents of Party and Government Organs,” avoiding missing statutory elements or disordered section ordering.

Compliance check

Validate finished or semi-finished drafts, covering several categories of issues mentioned in the official description:

  • Format compliance
  • Rigor of wording
  • Security-related risks

And provide revision suggestions to facilitate convergence before finalization.

Installation and activation

The skill is based on the common SKILL.md format. The installation method given on the official page is: have your current AI agent fetch the skill according to the SkillHub installation documentation.

Method 1: Hand the prompt to the agent (original text from the official page)

Send the following prompt to clients that support Skills, such as Cursor or Claude Code:

Please install `@user_fd308b11/govwriter-skill` according to https://skillhub.cn/install/skillhub.md.

The agent will follow the documentation to check the CLI, select the local skills directory, and complete the installation.

Method 2: SkillHub CLI

If skillhub is already installed on your machine, you can first verify the CLI, then install into the skills directory that the current agent actually reads (installing into the wrong directory will cause the skill not to load).

Check the CLI:

command -v skillhub && skillhub --version

If not installed, you can follow SkillHub’s documentation to perform the full installation (excerpt):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

Install this skill (replace <skills directory> with the path corresponding to your environment):

skillhub install @user_fd308b11/govwriter-skill --dir <skills directory>

Common directory examples recorded in SkillHub’s documentation:

Client Skills path (example)
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project

After installation, restart or refresh the agent as required by your client so the new skill takes effect.

Typical usage

The official page does not provide item-by-item dialogue scripts, but the introduction clarifies a recommended working order. After enabling this skill in your agent, you can follow the process below (expressions should be adapted to your organization’s actual matters and desensitization requirements):

  1. State the type and task of the official document
    Write clearly the statutory type of official document to be drafted (the skill claims support for 15 kinds), the topic, the recipient, and the deadline, so that framework generation aligns with type standards.

  2. Do policy search first
    Ask the skill to help find document bases, superior-level guidance, and reference expressions of similar type; use the search results as the source of arguments in the body to avoid fabricating policy statements out of thin air.

  3. Generate and fill the framework
    After confirming the structural template, write section by section or let the agent complete the content within the template, keeping heading hierarchy and statutory elements intact.

  4. Compliance check and revision
    After the draft is completed, trigger the compliance check, revise item by item according to formatting, wording, and security-risk prompts, then export the final version.

Through the above steps, each drafting can be fixed as a closed loop of “search → framework → drafting → check,” rather than trying from scratch with prompts each time.

Applicable scenarios and notes

Who it suits

  • Government and public institution staff who frequently draft and revise materials of statutory official document types.
  • Those already using agent environments such as Cursor, Claude Code, or Codex that support SkillHub skills, and want to internalize writing standards into the dialogue workflow.

Usage notes

  • The source is a community skill; the responsibility for finalization remains with the author and the review process; model outputs and “compliance check” results should be manually reviewed, especially for security-related and policy citations.
  • The timeliness and authority of policy searches and case references must be vetted by your organization’s rules; the skill cannot replace formal legal review or confidentiality review.
  • The page does not list the specific list of the 15 official document types or version update notes; if type boundaries are unclear, your organization’s official document handling regulations should prevail.
  • During installation, ensure you use --dir to point to the current agent’s skills directory, to avoid installing to the default ./skills/ which may prevent recognition.

Closing

The “Smart Official Document Writing Assistant” ties together policy search, regulation-aligned framework generation, and compliance checking into a writing assistance pipeline, suitable for shifting official document work from “experience-based template patching” to “stepwise drafting and convergence.” If you need to view version and installation instructions, please visit the SkillHub showcase page: https://www.skillhub.cn/skills/user_fd308b11/govwriter-skill .

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye