AI Agent Hub
Back to skills
Party and Government Official Document Layout Assistant icon

Party and Government Official Document Layout Assistant

Office Efficiency Updated 2026.08.30

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

Please install @davtime/public-document-layout-master according to the guide at https://skillhub.cn/install/skillhub.md.

About this skill

Specific Challenges in Party and Government Document Layout

Daily office work in party and government agencies requires strict adherence to national standards like GB/T 9704-2012, involving complex elements such as red headers, footers, and page numbers. Manual processing often leads to:
- Format chaos: Mixed fonts, abnormal paragraph spacing, and incorrect indentation, making documents unprofessional.
- Low efficiency: Time-consuming adjustments for various document types (e.g., notices, requests, reports), slowing down workflows.
- Compliance risks: Misuse of non-standard decorations as standard formats, or errors like page numbers inheriting footers, affecting formal release.

Skill Workflow and Core Capabilities

This skill automates solutions through a "judge-type first, layout second, verify last" process:

  1. Intelligent Document Type Judgment: Identifies types (e.g., notice, request, minutes) based on title, opening paragraph, and other features. Prioritizes user specification, resolves conflicts by comprehensive analysis, and handles typical requirements like signatories for upward documents.
  2. Layout Strategy Selection: Chooses appropriate strategies from a library, such as:
    - official: For standard documents, applying A4 paper, specific margins (e.g., top 37mm), and font rules (title in 2号 small standard font).
    - red: Adds red headers, separators, and other elements based on official layout.
    - briefing: For political materials, avoiding impersonation of standard formats.
  3. Structured Layout: Handles body text levels (e.g., first-level headings in black font), protects tables and images, ensuring objects are not broken. For example, tables avoid body first-line indentation, and images retain original aspect ratios.
  4. Automatic Verification and Repair: Post-generation checks for page settings, fonts, page numbers, etc., outputting a report categorized into "hard errors / risk items / optimizable items," with one automatic fix round.

Applicable Boundaries and Considerations

The skill aids layout but has limitations:
- No Content Modification: Only handles formatting and structure, not altering facts, numbers, or policy statements, ensuring reversibility of original drafts.
- Font Dependency: Uses font alias mapping, but missing fonts may cause risk items; manual review is recommended.
- Compatibility Priority: Generates standard OOXML format, minimizing reliance on Word-specific features; prioritizes structural stability over WPS/Word differences.
- No Fabrication: When information is insufficient, applies reasonable defaults without inventing agency names, document numbers, or other key elements.

In summary, this skill suits scenarios requiring batch processing of party and government documents to ensure format compliance, but final release still建议人工复核 to meet specific requirements fully.

Use Cases

  • When drafting an upward request document, intelligently identify the type and apply red header format, including signatories and document numbers, outputting a DOCX compliant with `GB/T 9704-2012`.
  • Re-layout a work report from an old Word file, fixing mixed fonts, broken page numbers, preserving table structure, and generating a verification report.
  • Select the 'Steady Political' visual style for a speech draft, adjusting heading levels and paragraph spacing to ensure clear hierarchy for review.

Best For

  • Party government secretaries: frequently handle official documents, requiring quick application of standard formats to minimize manual proofreading errors.
  • Office administrative specialists: responsible for digitizing historical documents, needing to fix poorly formatted old files and ensure compliance with latest standards.
  • Policy research department assistants: generate research materials or implementation plans, requiring political material layouts instead of standard official formats.