Preface¶
Documents such as requests for instructions, notices, and letters that circulate daily in government agencies often require formatting adjustments according to national standards after the body text is completed: font size, line spacing, page margins, positions of document elements, etc. Manually checking each item in Word is time-consuming and prone to omissions. General formatting templates may not cover all statutory document types, nor may they be fully consistent with GB/T 9704-2012 on a clause-by-clause basis.
Below we introduce the community Skill on SkillHub, “Generate Official Document Format.” It embeds national standard formatting requirements into the Agent’s execution guidelines, helping to produce Word or PDF documents that meet specifications based on the user’s existing draft, rather than writing the body text or designing the letterhead.
What Is This¶
“Generate Official Document Format” is an Agent Skill for content formatting of Party and government official documents, with coordinates @user_3f7163e7/official-doc-layout-skillhub, current version 1.0.0, source community, category office-efficiency. The publisher identifier is user_3f7163e7, and the SkillHub page lists the author as Lu Fei.
The Skill’s positioning: based on the official document text provided or already available by the user, adjust the layout according to the GB/T 9704-2012 national standard to generate standardized documents; no API Key required (tag requires_api_key=false).
Core Features¶
According to the SkillHub description, verified capabilities include:
- National Standard Formatting: Output standardized documents compliant with GB/T 9704-2012.
- Document Type Coverage: Supports 15 statutory official document types (specific types as described within the Skill).
- Export Formats: Supports output in Word, PDF, and other formats.
- Natural Language Triggers: When expressions such as “official document formatting”, “format official document”, “official document format”, “format adjustment”, “national standard formatting”, “GB/T 9704”, “red-header document format”, “official document specifications”, “Party and government official document format” appear in the conversation, the Agent can activate this Skill accordingly.
Items explicitly not within the Skill’s scope: content writing of official documents, letterhead design, PDF merge/split/encryption operations, and table data processing.
Installation and Activation¶
The Skill is based on the general SKILL.md format. When installing on SkillHub, the Agent should be instructed to fetch this Skill according to the official installation instructions, or use the skillhub CLI to specify the skills directory for the current environment.
Method 1: Install via AI Conversation¶
Send the prompt provided on the SkillHub page to the current Agent, roughly as follows (see the full installation guide at skillhub.cn/install/skillhub.md):
请根据 https://skillhub.cn/install/skillhub.md,安装 @user_3f7163e7/official-doc-layout-skillhub。
Method 2: Use the skillhub CLI¶
First check whether the CLI is already installed on this machine:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub documentation to perform a full installation (CLI + default Skill):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
When installing this Skill, must use --dir to point to the skills directory actually used by the current Agent; otherwise it defaults to ./skills/, which the Agent may not recognize. Common paths are as follows (depending on your current client):
| Client | skills directory (example) |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
Installation command example (replace <skills directory> with the corresponding path from the table above):
skillhub install @user_3f7163e7/official-doc-layout-skillhub --dir <skills 目录>
After installation, restart or refresh the skills list according to your Agent’s instructions to activate the new Skill.
Typical Usage¶
The official page does not provide a separate “sample document” repository; usage relies on the Skill’s step-by-step instructions for GB/T 9704-2012 combined with conversational triggers. A reproducible starting approach is as follows:
- Confirm the Skill is installed in the current Agent’s skills directory.
- State the requirement in the conversation and include trigger keywords, e.g., “Please format this notice according to the national standard and output Word” or “Adjust official document format to comply with GB/T 9704”.
- Provide the body text to be formatted (paste text or specify an existing file path, depending on the Agent’s actual capabilities).
- Specify the desired output format (Word or PDF); the Agent will generate a standardized document according to the Skill’s guidelines.
To check whether a Skill with the same name already exists, you can search before installing:
skillhub search official-doc-layout
Use Cases and Notes¶
Who It’s For
- Secretaries, administrative staff, and general affairs positions: body text is finalized, need to quickly align with national standard formatting.
- Users who need to switch between multiple statutory document types without manually checking standard clauses each time.
Usage Notes
- This Skill addresses layout and formatting, not a substitute for drafting, reviewing, and signing workflows; letterhead style design is also out of scope.
- Regarding PDF, the Skill focuses on generating or exporting PDFs according to the national standard, not merging, splitting, or encrypting existing PDFs.
- Organizing and calculating table data should use other tools; do not rely on this Skill for that.
- On SkillHub, this Skill has a rating of 100000 and approximately 1159 downloads (statistics based on the SkillHub page); before selecting it, check SkillHub for updates to the version and description.
Conclusion¶
“Generate Official Document Format” packages the formatting requirements of GB/T 9704-2012 and 15 statutory document types into an Agent Skill, reducing the manual formatting workload in the “draft exists, layout needs to match national standard” stage. Installation coordinates are @user_3f7163e7/official-doc-layout-skillhub, no API Key required.
Official access:
- SkillHub page: https://www.skillhub.cn/skills/user_3f7163e7/official-doc-layout-skillhub
- API coordinates page: https://api.skillhub.cn/user_3f7163e7/official-doc-layout-skillhub