AI Agent Hub
Back to skills
Official Document Writer icon

Official Document Writer

Professional Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_bccbe8ee/official-document-writer-skill according to https://skillhub.cn/install/skillhub.md.

About this skill

Specific Problem Addressed

When drafting official documents like requests or reports, two core challenges emerge: strict adherence to the GB/T 9704-2020 national formatting standard—which includes intricate details of fonts, line spacing, and indentation—and the need to incorporate timely, accurate policy references from disparate and frequently updated sources.

Core Capabilities and Workflow

This skill automates the process through four key stages:
1. Requirement Collection and Policy Search: Extracts critical fields such as document type, issuing authority, and recipient from user input, then queries authoritative sources listed in references/policy-sources.md (e.g., State Council websites) to ensure reliable citations.
2. Framework Generation and Content Drafting: Uses templates from references/gbwriting-standards.md and references/doc-templates.md to build a compliant structure, controlling total length within 3500-4500 characters (approximately 4-5 A4 pages).
3. Formatted Output: Applies precise rules via the scripts/docx-generator.js script—for instance, only the document title (in Fangzheng Xiaobiaosong, size 22pt) is set to bold: true, while all other headings and body text are false; line spacing is fixed at 28pt (line: 560, lineRule: "exact").
4. Quality Assurance and Delivery: Checks against a self-audit list for aspects like title symmetry, citation accuracy, and absence of colloquialisms, finally outputting both .docx and .pdf formats.

Applicable Boundaries and Notes

  • Dependent on User Input: The skill actively asks for missing information (e.g., background materials, special requirements), but users must provide accurate details like full authority names.
  • Strict Formatting Compliance: Output must meet GB/T 9704-2020 standards; custom formatting (e.g., alternative fonts) is not supported.
  • Search-Dependent Content: Policy citations rely on real-time web searches, so users should verify highly time-sensitive references (e.g., recent speeches) independently.
  • Limited Document Types: Only supports requests (one-document-one-matter) and reports (no intermixed requests); other types like notices or letters require separate handling.

Use Cases

  • A department needs to submit a project funding request to superiors, with the document strictly following GB/T 9704-2020 format standards and citing latest policy documents from relevant national ministries issued within the past 6 months as the basis.
  • A policy researcher writing an industry analysis report needs to automatically search and cross-verify recent speeches from the State Council and relevant department leaders, ensuring the report content is verifiable and output as Word and PDF files compliant with administrative norms.
  • A corporate compliance officer needs to draft a rectification report on new regulation adaptation, which must accurately cite regulation document numbers and ensure formatting details like first-level headings in SimHei font size 16pt not bolded and line spacing fixed at 28pt are fully compliant.
  • A municipal government office clerk needs to complete a situation report within 3 hours, requiring a symmetrical title, first-line indent of 2 characters in the body text, and length controlled within 5 A4 pages.

Best For

  • Government agency clerks: Need to handle multiple upward-facing official documents weekly, requiring quick generation of formatting-error-free requests or reports with accurate, sourced policy citations.
  • Corporate administrative specialists: Responsible for regular reporting to superiors, needing to integrate latest regulatory requirements into reports, with output files meeting formal usage standards.
  • Policy research and consulting analysts: Need to produce authoritative analysis reports during research, requiring rigorous document structure, symmetrical titles, and automatic integration of latest policy search results.
  • Public institution office staff: Undertake report drafting tasks, needing to complete documents compliant with national official document formats under tight deadlines and avoid common formatting errors.