ワンクリックで
word
此技能用于创建符合中国政府及央企规范的Word文档(.docx)。当用户要求创建公文、国央企文档、规范文书、正式报告等需要特定中国公文格式的文档时使用此技能。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
此技能用于创建符合中国政府及央企规范的Word文档(.docx)。当用户要求创建公文、国央企文档、规范文书、正式报告等需要特定中国公文格式的文档时使用此技能。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Resolve dual-perspective collaboration conflicts by classifying them into 5 types and applying targeted integration strategies. Use when two agents (or an agent and user) have different approaches to the same problem — e.g., qualitative vs. quantitative, strategic vs. tactical, creative vs. analytical. Provides conflict taxonomy, resolution strategies, and a 5-metric dashboard for validation.
A free skill by Kami SmartHome. Get notified the moment a package arrives at your door. Detects packages, parcels, and bags from RTSP camera streams using AI vision.
Use this skill whenever the user wants Claude Code to write, scaffold, compile, debug, or review an arXiv-style academic paper, especially survey papers with LaTeX, BibTeX citations, TikZ figures, tables, and PDF output. This skill should trigger for requests like writing a full paper, creating an arXiv paper project, turning a research topic into a LaTeX manuscript, reproducing the Paper-Write-Skill-Test agent-survey workflow, or setting up a Windows/Linux Claude Code paper-writing loop.
排查 CLI Proxy API(codex-api-proxy)的配置、认证、模型注册和请求问题。适用场景包括:(1) AI 请求报错 unknown provider for model, (2) 模型列表中缺少预期模型, (3) codex-api-key/auth-dir 配置不生效, (4) CLI Proxy 启动后 AI 无法调用, (5) 认证成功但请求失败或超时。包含源码级排查方法:模型注册表架构、认证加载链路、 SanitizeCodexKeys 规则、常见错误的真实根因。
排查 DeepSeek V4-Pro 在 tool-call 模式下因 reasoning_content 字段缺失导致的 API 400 错误。适用场景:(1) DeepSeek V4-Pro 使用 thinking/reasoning 模式时遇到 400 error, (2) 报错内容为 'The reasoning_content in the thinking mode must be passed back to the API', (3) 与 OpenClaw/OpenAI-compatible 客户端集成时 multi-turn + tool call 场景下报错。包含触发条件、复现方法、临时 workaround、官方修复跟踪。
解决飞书 IM 语音气泡问题——通过 ffmpeg 将 TTS 输出的 mp3 转为飞书支持的 ogg-opus 格式。适用场景:(1) 在飞书机器人的 TTS 回复中需要显示语音气泡而非文件附件, (2) Edge TTS 或其他只支持 mp3/webm 输出的 TTS 引擎需要适配飞书, (3) 自定义 TTS provider 的飞书集成。包含核心原理、ffmpeg 命令、OpenClaw pipeline 集成方案。
| name | 国央企word文档 |
| description | 此技能用于创建符合中国政府及央企规范的Word文档(.docx)。当用户要求创建公文、国央企文档、规范文书、正式报告等需要特定中国公文格式的文档时使用此技能。 |
| author | 刘洪亮 |
| version | 1.6 |
本技能用于创建符合中国政府及央企规范的Word文档(.docx),使用Microsoft Word最新格式。
| 属性 | 值 |
|---|---|
| 纸张 | A4 |
| 上边距 | 3.7厘米 |
| 下边距 | 3.5厘米 |
| 左边距 | 2.8厘米 |
| 右边距 | 2.6厘米 |
| 页码 | 居中显示,宋体四号 |
| 样式 | 中文字体 | 西文字体 | 字号 |
|---|---|---|---|
| 首页大标题 | 方正小标宋简体 (FZXiaoBiaoSong-B05S) | Times New Roman | 小二号 (18pt) |
| 正文 | 方正仿宋简体 (FZFangSong-Z02S) | Times New Roman | 小三号 (15pt) |
| 一级标题 | 黑体 | Times New Roman | 小三号 (15pt) |
| 二级标题 | 楷体 | Times New Roman | 小三号 (15pt) |
| 三级标题 | 方正仿宋简体 (FZFangSong-Z02S) | Times New Roman | 小三号 (15pt) 加粗 |
| 页码 | 宋体 | - | 四号 (14pt) |
| 表格 | 方正仿宋简体 (FZFangSong-Z02S) | Times New Roman | 小五号 (9pt) |
| 样式 | 行间距 |
|---|---|
| 首页大标题 | 固定28磅 |
| 正文 | 固定28磅 |
| 一级标题 | 固定28磅 |
| 二级标题 | 固定28磅 |
| 三级标题 | 固定28磅 |
| 图片 | 单倍行距 |
| 表格 | 单倍行距 |
| 样式 | 序号格式 | 首行缩进 | 大纲级别 |
|---|---|---|---|
| 正文有缩进 | 无 | 2字符 | - |
| 一级的标题 | 一、二、三、 | 2字符 | 1级 |
| 二级的标题 | (一)(二)(三) | 2字符 | 2级 |
| 三级的标题 | 1.2.3. | 2字符 | 3级 |
创建文档时,必须使用以下样式名称:
首页大标题 - 首页大标题正文有缩进 - 正文段落一级的标题 - 一级标题二级的标题 - 二级标题三级的标题 - 三级标题图片样式 - 图片表格样式 - 表格页码样式 - 页脚页码const {
createDocument,
createTitleParagraph,
createBodyParagraph,
createLevel1Heading,
createLevel2Heading,
createLevel3Heading,
createTable,
createImageParagraph,
CHINESE_FONTS,
FONT_SIZES,
CONTENT_WIDTH,
Packer,
BorderStyle,
WidthType,
ShadingType,
VerticalAlign,
Paragraph,
TextRun,
Table,
TableRow,
TableCell,
Footer,
ImageRun,
} = require('~/.workbuddy/skills/gov-doc-writing/scripts/create_gov_doc.js');
// 创建文档
const doc = createDocument({
title: '文档标题',
sections: [
// 首页大标题
createTitleParagraph('这是文档标题'),
// 一级标题
createLevel1Heading('第一章', 0), // 输出: 一、第一章
createLevel1Heading('第二章', 1), // 输出: 二、第二章
// 二级标题
createLevel2Heading('第一节', 0), // 输出: (一)第一节
createLevel2Heading('第二节', 1), // 输出: (二)第二节
// 三级标题
createLevel3Heading('第一点', 0), // 输出: 1.第一点
createLevel3Heading('第二点', 1), // 输出: 2.第二点
// 正文
createBodyParagraph('这是正文内容,首行自动缩进2字符。'),
// 表格
createTable(
[
{ children: ['表头1', '表头2', '表头3'] },
{ children: ['内容1', '内容2', '内容3'] },
],
{ columnWidths: [2000, 2000, 2000] }
),
]
});
// 生成文件
Packer.toBuffer(doc).then(buffer => {
fs.writeFileSync('output.docx', buffer);
});
node scripts/create_gov_doc.js output.docx '{
"title": "文档标题",
"body": [
{"type": "heading1", "text": "第一章", "number": 0},
{"type": "paragraph", "text": "正文内容"},
{"type": "table", "rows": [...], "columnWidths": [2000, 2000, 2000]}
]
}'
columnWidths 参数控制(DXA 相对值,实际宽度自动缩放)// 表格示例
const border = { style: BorderStyle.SINGLE, size: 1, color: "000000" };
const borders = { top: border, bottom: border, left: border, right: border };
// 表头行
new TableRow({
tableHeader: true,
children: [
new TableCell({
borders,
shading: { fill: "D9D9D9", type: ShadingType.CLEAR },
children: [new Paragraph({ children: [new TextRun({ text: "表头", bold: true })] })]
})
]
});
图片样式dc:creator 和 lastModifiedBy 留空或不写入)creator 属性,或设置为空字符串const fs = require('fs');
const {
Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell,
Footer, BorderStyle, WidthType, ShadingType, VerticalAlign,
PageNumber, ImageRun, AlignmentType, HeadingLevel, LevelFormat,
createTitleParagraph, createBodyParagraph, createLevel1Heading,
createLevel2Heading, createLevel3Heading, createTable,
createImageParagraph, createDocument, CHINESE_FONTS, FONT_SIZES,
CONTENT_WIDTH, PAGE_MARGINS, LINE_SPACING_EXACT_28
} = require('~/.workbuddy/skills/gov-doc-writing/scripts/create_gov_doc.js');
// 内容构建
const sections = [
createTitleParagraph('关于XXX工作的报告'),
createLevel1Heading('一、基本情况', 0),
createBodyParagraph('这里是正文内容,详细描述基本情况。'),
createBodyParagraph('继续描述相关内容和细节。'),
createLevel1Heading('二、主要做法', 1),
createLevel2Heading('(一)加强组织领导', 0),
createBodyParagraph('具体做法描述...'),
createLevel2Heading('(二)完善制度建设', 1),
createBodyParagraph('制度建设内容...'),
createLevel1Heading('三、存在问题', 2),
createBodyParagraph('当前存在以下问题:'),
createLevel3Heading('问题一', 0),
createBodyParagraph('问题一的具体描述。'),
createLevel3Heading('问题二', 1),
createBodyParagraph('问题二的具体描述。'),
createLevel1Heading('四、下一步计划', 3),
createBodyParagraph('针对以上问题,计划采取以下措施...'),
];
// 创建文档(不设置作者)
const doc = createDocument({
title: '关于XXX工作的报告',
sections
});
// 生成并保存
Packer.toBuffer(doc).then(buffer => {
fs.writeFileSync('report.docx', buffer);
console.log('文档已生成: report.docx');
});
indent: { firstLine: charWidth * 2 },字符宽度约等于字号的一半" 会自动替换为配对的中文双引号 ""(\u201c/\u201d),无需手动转换scripts/create_gov_doc.js - 核心创建函数库