当前位置: 首页 > Skill >

公文写作专家团

公文写作专家团

公文写作专家团

「公文写作专家团Skill」,七个公文专家一条流水线:识别文种(研判师)→起草成稿(拟稿师)→重构素材(谋篇师)→润色文案(润色师)→审校格式(核校师)→生成Word(制文师),覆盖通知/报告/请示/函/纪要/总结/讲话稿,严守 GB/T 9704-2012 国标,一键出规范 DOCX 送审稿。01【三种模式,覆盖公文全场景】A.新建 — 给个主题和要求,从文种识别、要素补齐到成稿一路走完;B.重组 — 把会议记录、零散素材、粗糙初稿,按逻辑重排成规范公文,数字、日期、人名、政策依据一个不丢;C.审核 — 已有文稿只做格式合规体检和文种校对,出「哪里不达标、怎么改」的清单;02【严守 GB/T 9704-2012 国标格式】页边距(上37下35左28右26mm)、正文仿宋三号、标题二号、固定行距28pt、首行缩进2字、黑体/楷体分级标题——全部按党政机关公文格式国家标准来,以国标为唯一权威源,脚本和参考冲突时国标说了算。03【一键生成 / 格式化 / 校验 DOCX】内置三个脚本:从内容直接生成规范 Word、把现有 DOCX 一键套成国标格式、对成品做格式体检并出审计报告。产出的是排

1.0.0 2026.11.17 621
获取Skill文件查看使用说明
作 者:叶景 许可证: 更新时间:2026.11.17
本文目录展开

Official Document Workflow

Use this skill to run a single-Skill expert workflow for Chinese official document drafting, revision, review, and DOCX formatting.

Operating principle

Act as one orchestrator coordinating seven logical experts:

  1. Orchestrator: choose the workflow, manage checkpoints, resolve conflicts, and assemble final delivery.
  2. Intake Expert: identify task mode, document type, missing fields, and whether user confirmation is required.
  3. Drafting Expert: create the first draft from the selected document type and available facts.
  4. Restructure Expert: analyze and reorganize source materials in revision tasks.
  5. Style Expert: improve official tone without changing facts.
  6. Format Audit Expert: check against the authoritative format standard.
  7. DOCX Tool Expert: generate, format, or inspect Word documents with scripts.

Do not let experts maintain separate standard copies. Treat references/authority-gbt9704.md as the single source of truth for format rules.

Required references

Load only what is needed:

  • For format rules: references/authority-gbt9704.md
  • For document type selection: references/document-types.md
  • For reusable structures: references/templates.md
  • For wording and tone: references/language-style.md
  • For final review: references/review-checklists.md

Workflow selection

Choose one of three modes.

Mode A: Create a new official document

Use when the user provides a topic, purpose, institution, or rough requirements.

Process:

  1. Identify document type and required elements.
  2. Ask for missing core elements when they block drafting.
  3. Create brief.json mentally or as a file when producing artifacts.
  4. Draft in Markdown.
  5. Review official tone and document-type fit.
  6. Audit format requirements.
  7. Generate DOCX if requested or naturally expected.
  8. Deliver draft, DOCX path, and review notes.

Mode B: Revise or restructure source material

Use when the user provides existing material, a rough draft, meeting notes, fragmented facts, or prior documents.

Process:

  1. Preserve all concrete facts, figures, dates, names, and policy references unless the user says otherwise.
  2. Produce a structure analysis before heavy rewriting for complex materials.
  3. Rebuild the document using MECE grouping and conclusion-led headings.
  4. Improve official tone.
  5. Audit format and document-type fit.
  6. Generate DOCX if requested.

Mode C: Format or audit an existing document

Use when the user provides DOCX, Markdown, or text and mainly needs compliance checking or formatting.

Process:

  1. Run content/format audit.
  2. Use scripts/format_docx.py for existing DOCX when applicable.
  3. Use scripts/check_format.py for DOCX inspection.
  4. Report pass/fail findings and required fixes.

Core element policy

Core elements usually include:

  • Document type
  • Issuer
  • Recipient / main sending unit
  • Title or subject
  • Body facts and requirements
  • Date
  • Signature / issuing unit

Ask the user only when a missing element blocks correctness. For optional elements, infer conservatively and state the assumption.

Intermediate artifacts

When producing files, use these names:

  • brief.json: task profile and required fields
  • outline.md: proposed structure
  • draft.md: first draft
  • structure-analysis.md: source-material analysis for revision mode
  • revised-draft.md: revised content
  • style-review.md: tone and wording notes
  • format-audit.md: format compliance report
  • format-spec.json: concrete format parameters
  • final.docx: final Word document
  • final-review.md: final pass/fail review

Quality gates

Use these gates before final delivery:

  1. Task fit: document type and task mode are correct.
  2. Completeness: required document elements are present.
  3. Content integrity: facts, numbers, and user-provided details are preserved.
  4. Structure: headings and sections match the document type.
  5. Tone: wording is formal, accurate, concise, and non-colloquial.
  6. Format: GB/T 9704-2012 key requirements are followed.
  7. File output: DOCX exists, opens, and uses the expected margins, fonts, and spacing when generated.

Conflict rules

  • Format conflicts: references/authority-gbt9704.md wins.
  • Document-type conflicts: references/document-types.md wins.
  • User request conflicts with formal standard: pause and ask for confirmation.
  • Style edits must not change facts.
  • Script output conflicts with format standard: fix the script result or rerun scripts/format_docx.py.

DOCX scope

The scripts produce a correctly typeset document body: page margins, fonts, sizes, fixed line spacing, first-line indent, and heading levels per GB/T 9704-2012. They do not build the formal 版头 (发文机关标志 red masthead, 红色反线 separator, 签发人). Deliver output as a compliant body / review draft, not a print-ready 红头文件. When the user needs a full 红头 issuance, state this boundary.

DOCX scripts

Scripts require Python 3 and python-docx.

Generate a DOCX from JSON:

python3 scripts/generate_docx.py --input brief.json --output final.docx

Format an existing DOCX:

python3 scripts/format_docx.py --input input.docx --output formatted.docx

Check DOCX format:

python3 scripts/check_format.py --input final.docx --output format-audit.md

JSON input for DOCX generation

Use this shape:

{
  "document_type": "notice",
  "issuer": "XX单位",
  "doc_number": "XX发〔2026〕1号",
  "recipient": "各有关单位:",
  "title": "关于开展XX工作的通知",
  "body": [
    "一、总体要求",
    "第一段正文。",
    "(一)具体分工",
    "第二段正文。"
  ],
  "signature": "XX单位",
  "date": "2026年6月26日",
  "attachments": [],
  "copy_to": ""
}

Heading detection in body: lines starting with a Chinese ordinal like 一、 render as level-1 headings (黑体), (一) as level-2 headings (楷体_GB2312). Markdown prefixes also work: ## for level 1, ### for level 2, # for the centered title. Everything else renders as 仿宋 body text. Put heading lines as their own array items, not inline with body sentences.

Final delivery format

For ordinary chat output, deliver:

  1. Final draft or summary of revisions.
  2. Generated file path when a DOCX is created.
  3. Format/tone audit summary.
  4. Any assumptions or missing fields.

For file-producing tasks, place deliverables in the user-requested location or a clear outputs/ path.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,017
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,005
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,003
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,003
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,002
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,001
Skill 文件
  • SKILL.md
    • Official Document Workflow
    • Operating principle
    • Required references
    • Workflow selection
      • Mode A: Create a new official document
      • Mode B: Revise or restructure source material
      • Mode C: Format or audit an existing document
    • Core element policy
    • Intermediate artifacts
    • Quality gates
    • Conflict rules
    • DOCX scope
    • DOCX scripts
    • JSON input for DOCX generation
    • Final delivery format
  • 项目或源文件

相关 Skill

更多
党政机关公文格式 党政机关公文格式 生成、检查、排版党政机关公文 docx,依据 GB/T 9704-2012《党政机关公文格式》标准。当用户需要撰写或生成红头文件、通知、请示、报告、函、批复、通报、决定、通告、公告、纪要等法定公文,或将已有文档按公文格式排版,或检查 docx 是否符合公文格式规范时,使用此技能。触发词包括"公文""红头文件""党政机关公文""发文字号""版头""版记""GB/T 9704"等。
体制内会议纪要生成 体制内会议纪要生成 本 Skill 将用户输入的会议记录(docx/md/pdf/txt/粘贴文本)转化为符合党政机关公文标准的会议纪要草案。核心能力:文本提取、会议类型推断、规范术语起草、分歧标记、意见来源注释、遗留事项整理、质量自检、公文排版集成、议定事项督办表输出。 定位:专门服务体制内(党政机关、事业单位、国有企业)会议纪要起草需求,严格遵循《党政机关公文处理工作条例》(中办发〔2012〕14号)和《党政机关公文格式》(GB/T 9704-2012)。
体制内写作·灵析 体制内写作·灵析 政府公文创作与重构专家,支持修改模式(原文素材重构)和创作模式(主题+提纲+过往材料 → 初稿),输出符合党政机关公文格式(GB/T 9704-2012)的 Word 文档
公文写作 公文写作 《党政机关公文处理工作条例》和 《党政机关公文格式》国家标准公文写作
舍予的OCR小助手(CULR录入) 舍予的OCR小助手(CULR录入) 将扫描版/文字层PDF(党史、工运史、政策文献等)提取文字,经校对、格式统一、模糊文字黄色高亮后,生成符合中国党政机关公文格式(参考GB/T 9704)的Word文档。当用户提到PDF文字录入、公文排版、扫描件OCR、工运史/党史资料整理、繁→简转换、竖排传统中文手写稿识别时使用。