Gongwen Draft 标志

Gongwen Draft

社区
Rimagination
gongwen-draft

起草、修改、润色、审阅、检查并导出中国党政机关公文和政务材料,遵循权威性优先的约束,核查政策研究与引用,接收材料档案和事实台账,润色语言,使用受控的 Markdown/JSON 规范,生成离线提示词包,严格检查公文格式字体,并可在获得授权字段值后生成带通用红头草稿版头的 Word .docx 文件。用户提出 gongwen-draft、公文、公文写作、公文起草、机关文稿、政务写作、政策检索、政策依据、引用核验、领导讲话、会议精神、素材收集、素材整理、事实台账、语言润色、通知、请示、报告、函、纪要、通报、批复、意见、决定、公告、通告、工作总结、工作方案、调研报告、汇报材料、简报、情况专报、讲话稿、回复函、材料改写、公文润色、格式审核、Word公文导出、离线提示词、JSON公文规格、红头版头、发文机关标志、发文字号、签发人等需求,或要求将笔记整理成正式公文风格的中文文件时使用。

Add to TypingMind

概览

发布者Rimagination
代码仓库gongwen-draft
技能名称gongwen-draft
星标数
80
复刻数
5
附带文件
40
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 40 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Rimagination 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Gongwen Draft AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Rimagination/gongwen-draft/tree/main
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Rimagination/gongwen-draft.git \
  .claude/skills/gongwen-draft
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Gongwen Draft,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Gongwen Draft。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Gongwen Draft 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Gongwen Draft

Use this skill to produce practical,规范、准确、克制的中文公文和机关材料. The stable skill/repository name is gongwen-draft.

Treat the gathered local references as guidance, not as permission to invent facts, policies, authority, signatures, seals, dates, document numbers, or data.

Quick Workflow

  1. Identify the task: draft, revise, review, format, template, extract, export, or training.
  2. Apply four-position routing: 文种 -> 行文方向 -> 格式/交付 -> 语言口径.
  3. For policy-sensitive tasks, run policy research first: official source search -> citation ledger -> citation check -> draft.
  4. For messy materials, build a dossier with scripts/prepare_dossier.py or maintain a fact ledger: 已确认事实, 用户判断, 待核实, 建议措辞.
  5. Check five anchors: purpose, audience, facts, structure, tone.
  6. If key facts are missing, either ask 1-3 focused questions or produce a fillable skeleton with bracketed placeholders.
  7. Draft with this order: define purpose -> choose文种 -> verify sources -> structure content -> write concise body -> self-review -> lint/export if requested.
  8. For source-sensitive claims, cite or ask for the specific policy/source. Do not fabricate policy basis, statistics,领导讲话,会议精神, or official decisions.

Load References As Needed

  • For workflow routing, export behavior, and lessons absorbed from GitHub projects, read references/engineering-workflow.md.
  • For quick command shapes, source modes, material boundaries, export sequencing, and versioning, read references/operation-contract.md.
  • For the comparative learning summary of public gongwen-writing projects, read references/project-lessons.md.
  • For explicit community project citations and what was learned from each, read references/citations.md.
  • For the product quality bar and user expectations this skill should meet, read references/quality-bar.md.
  • For legal/制度底线 and official document types, read references/core-rules.md.
  • For messy source materials, source hierarchy, and auditable fact ledgers, read references/material-workflow.md.
  • For current policy, laws, official releases,领导讲话, meeting communiques, and citation ledgers, read references/policy-research.md.
  • For concrete templates and section structures, read references/document-types.md.
  • For writing method, style, revision strategy, and avoiding空心公文, read references/writing-method.md.
  • For language polishing modes, empty wording, overclaiming, and official tone repair, read references/language-polishing.md.
  • For punctuation, colon, quotation marks, hierarchy markers, and avoiding English punctuation in Chinese prose, read references/punctuation-style.md.
  • For reviewing an existing draft, read references/review-checklist.md.
  • For strict公文字体 checks, official font channels, and authorized font assets, read references/font-policy.md.
  • For controlled Markdown/JSON and Word output conventions, read references/format-output.md.
  • For provenance of the local materials used to build this skill, read references/source-index.md.

Drafting Standards

  • Write from the institution's position, not the author's personality.
  • Prefer facts, responsibilities, timelines, measures, and enforceable wording over slogans.
  • Keep language accurate, plain, and actionable. Avoid empty排比, over-grand claims, vague adjectives, and unsupported成果.
  • Use Chinese full-width punctuation in Chinese prose; follow 一、 -> (一) -> 1. -> (1), use : not :, and use “” / ‘’ not straight English quotes.
  • Match文种 to行文关系: 上行 usually 请示/报告; 下行 usually 通知/通报/批复/意见; 平行 or non-subordinate usually 函.
  • Keep one main matter per request when drafting请示. Do not mix report and request functions.
  • Use placeholders like [发文机关], [日期], [依据文件名称] when facts are unknown.
  • For current policy or领导讲话 claims, use official-source citation ledgers. Authoritative media can be background or discovery leads, not a replacement for official policy originals.
  • Preserve confidentiality: if user content appears涉密 or sensitive, warn and draft only with sanitized placeholders.
  • Separate content drafting from formal issuance: do not add red headers, document numbers, signatories, seals, or approval language unless the user supplied authorized values or placeholders and the task is only preparing a draft.
  • Prefer the user's current unit template over generic GB/T-style defaults when the user provides a template.

Lint And Export

  • Before exporting, form a clean Markdown draft. Avoid Markdown tables, bold markers, block quotes, and decorative bullets unless the user requested an informal reading draft.
  • If using JSON spec, run scripts/render_spec.py <spec.json> -o <draft.md> before lint/export.
  • For offline assistants or web chat tools that cannot install skills, run scripts/build_prompt_pack.py --doc-type <doc-type> --task <task> -o <prompt.md> and paste the generated prompt pack into the target tool.
  • For multiple raw material files, run scripts/prepare_dossier.py <materials...> --task <task> -o <materials.md> before drafting, then draft from the dossier.
  • For policy-sensitive topics, run scripts/policy_research.py --topic <topic> -o <policy-ledger.md>, fill the ledger from official sources, then run scripts/check_citations.py <policy-ledger.md> --require-citations.
  • Run scripts/check_sections.py <doc-type> <draft.md> when reviewing or before file export.
  • Run scripts/check_citations.py <draft.md> when the draft includes policy依据,法律法规,领导讲话,会议精神, official data, or standards.
  • Run scripts/check_language.py <draft.md> when polishing, removing AI-like wording, or reviewing high-stakes drafts.
  • Run scripts/check_fonts.py --verify-assets after changing bundled fonts, then run scripts/check_fonts.py --draft <draft.md> before Word export. If authorized font files are in assets/fonts, use --install-assets.
  • Run scripts/generate_docx.py <draft.md> -o <output.docx> --doc-type <doc-type> --install-font-assets when the user asks for Word output. The script creates -vNN files instead of overwriting unless --overwrite is explicit.
  • Run scripts/check_type_consistency.py after changing document types, templates, README coverage language, or lint document-type lists.
  • Run scripts/self_test.py after modifying any script to verify basic correctness of all helper modules.
  • For generic红头版头 output, use controlled front matter such as issuer_mark, doc_number, and issue_person; never invent real机关名称、发文字号、签发人、印章 or approval status.
  • Do not silently replace required公文字体 with generic fonts. If fonts are missing, stop and use official/authorized channels.
  • If Python lacks python-docx, install or use the bundled workspace Python/libraries when available.
  • Keep generated files outside the skill folder unless the user explicitly asks otherwise.
  • If the user asks for a deliverable but not the format, ask whether they want Markdown or Word .docx.
  • Community projects inspired this workflow; cite them when explaining the design or publishing derivative project documentation.

Output Patterns

When drafting from scratch, provide:

  1. A finished draft in formal Chinese.
  2. A short note listing assumptions/placeholders.
  3. Optional review suggestions if the user asked for polish or compliance.

When reviewing or revising, provide:

  1. Main issues by severity.
  2. Revised draft or targeted edits.
  3. A checklist of remaining facts the user must confirm.

When exporting, provide:

  1. The generated file path.
  2. Lint findings or a short "no high-risk issue found" note.
  3. Placeholders or facts that still require human confirmation.

Do Not

  • Do not impersonate a real office, signatory, seal, or official approval.
  • Do not invent legal basis, policy language, statistics, meeting outcomes, or document numbers.
  • Do not quote long passages from reference articles. Summarize methods and cite source names where useful.
  • Do not treat training articles or转载文章 as normative documents. Use official regulations and standards first.
  • Do not copy another public project's long rules verbatim into outputs. Use inspected projects as engineering reference only.
  • Do not confuse near-synonyms common in公文: 制定/制订, 截至/截止, 权利/权力, 受权/授权, 决定/决议, 公告/通告, 批复/复函. When in doubt, check review-checklist.md Section F or the governing regulation.
  • Do not use abbreviated or informal names for行政区域, institutions, or official positions without the full formal name being established first in the same document.
  • Do not remove community citations merely because a rule has been rewritten locally; provenance should remain visible.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Gongwen Draft AI 技能有什么作用?

起草、修改、润色、审阅、检查并导出中国党政机关公文和政务材料,遵循权威性优先的约束,核查政策研究与引用,接收材料档案和事实台账,润色语言,使用受控的 Markdown/JSON 规范,生成离线提示词包,严格检查公文格式字体,并可在获得授权字段值后生成带通用红头草稿版头的 Word .docx 文件。用户提出 gongwen-draft、公文、公文写作、公文起草、机关文稿、政务写作、政策检索、政策依据、引用核验、领导讲话、会议精神、素材收集、素材整理、事实台账、语言润色、通知、请示、报告、函、纪要、通报、批复、意见、决定、公告、通告、工作总结、工作方案、调研报告、汇报材料、简报、情况专报、讲话稿、回复函、材料改写、公文润色、格式审核、Word公文导出、离线提示词、JSON公文规格、红头版头、发文机关标志、发文字号、签发人等需求,或要求将笔记整理成正式公文风格的中文文件时使用。

为什么在 TypingMind 中使用 Gongwen Draft?

因为您只需安装一次,就能搭配任何模型使用。Gongwen Draft 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Gongwen Draft?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Rimagination/gongwen-draft/tree/main。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Gongwen Draft?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Gongwen Draft 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Gongwen Draft 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Gongwen Draft AI 技能免费吗?

Rimagination 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇