explaingit

verona136/common-official-document-format-skill

1ShellAudience · writerComplexity · 2/5ActiveSetup · easy

TLDR

Chinese-language skill pack for Codex, Claude, and openclaw that makes the assistant produce .docx files following standard official Chinese government document layout, margins, fonts, and spacing rules.

Mindmap

mindmap
  root((official-doc-skill))
    Inputs
      User prompt in Chinese
      Document type request
    Outputs
      .docx Word file
      Official layout formatting
    Use Cases
      Government notices
      Internal reports
      Meeting minutes
      Formal replies
    Tech Stack
      Shell
      Markdown
      Codex
      Claude
      openclaw

Things people build with this

USE CASE 1

Install the skill into Claude Code so it auto formats formal Chinese notices and replies as .docx.

USE CASE 2

Plug into Codex CLI to generate meeting minutes that follow standard government margin and font rules.

USE CASE 3

Reuse the layout spec as a reference when writing a custom Python or docx generator.

USE CASE 4

Drop into openclaw for batch generation of internal reports without hand setting fonts.

Tech stack

ShellMarkdownCodexClaudeopenclaw

Getting it running

Difficulty · easy Time to first run · 5min

Just run install.sh with the right host flag, or copy the folder into the host skills directory and restart.

In plain English

This repository is a small skill pack written in Chinese, meant to be plugged into AI coding assistants such as Codex, Claude, and openclaw. Its job is narrow. When the assistant sees that the user is asking for a formal Chinese government or organisational document, things like notices, reports, requests, replies, minutes, decisions, announcements, and so on, the skill tells the assistant to produce a .docx Word file using a standard official Chinese document layout. The README spells out the layout rules in detail. The page is A4 portrait with specific margins, 3.3 cm at the top, 3.4 cm at the bottom, and 2.7 cm on the left and right. The title uses Founder Xiaobiao Song Simplified font, centred. First-level headings use Heihei size three, second-level headings use Kaiti GB2312 size three, and body text uses Fangsong GB2312, all with the first line indented by two characters. Line spacing is fixed at 28 points, with no extra space before or after paragraphs and standard character spacing. Page numbers sit in the bottom-right corner in Fangsong GB2312 size four, formatted with dashes, and odd and even pages are treated differently. The skill also cleans up things like extra blank lines, leading spaces, trailing spaces, repeated spaces, and stray automatic numbering. There is an install script that wires the skill into one of three host tools. You run install.sh with a target flag of codex, claude, or openclaw, and pass force if you want to overwrite an existing copy. The script handles where the skill folder needs to live so the host can find it. If you would rather not use the script, the README describes a manual install. You copy the common-official-document-format-skill folder into the host's skills directory, for example into the .codex/skills location in your home folder, and restart the host. After that the skill is available and the assistant will follow these formatting rules by default when the conversation calls for a formal document. The repository itself is small. It is mostly the skill description and the install shell script, with no example documents or template files shown in the README. Stars on the project are low, which fits its niche focus on a specific Chinese office writing convention.

Copy-paste prompts

Prompt 1
Run install.sh from common-official-document-format-skill with target claude and force, then verify the skill folder lands in the right place.
Prompt 2
Manually copy the common-official-document-format-skill into my ~/.codex/skills folder and restart Codex so it picks up the new skill.
Prompt 3
Use this skill to draft a formal notice in Chinese about a holiday schedule change, output as a .docx with the prescribed Founder Xiaobiao Song title font.
Prompt 4
Reproduce the layout rules from this skill as a Python python-docx script that writes the same A4 margins, Heihei headings, and Fangsong body text.
Prompt 5
Adapt the cleanup rules in this skill to also strip Chinese full-width spaces and double punctuation from the input text.
Open on GitHub → Explain another repo

Generated 2026-05-22 · Model: sonnet-4-6 · Verify against the repo before relying on details.