用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/TXYzznc/GP --skill docx-format-replicator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
创建具有高设计水准、独特且可用于生产环境的前端界面。当用户要求构建Web组件、页面、制品、海报或应用(例如网站、着陆页、仪表板、React组件、HTML/CSS布局,或对任何Web UI进行样式设计/美化)时,可使用此技能。生成富有创意、经过打磨的代码和UI设计,避免通用的AI美学风格。
具备世界级游戏UI设计专业能力,融合任天堂UI理念的清晰性、《死亡空间》与《银河战士Prime》的沉浸式叙事化界面,以及电竞游戏的竞技可读性原则。游戏UI是连接玩家意图与游戏响应的无形桥梁。优秀的游戏UI在不破坏沉浸感的前提下为玩家服务,能在激烈的游戏过程中瞬间传达关键信息,引导新玩家的同时又不会让老玩家感到被轻视,还能流畅适配从4K显示器到掌机屏幕、从键盘到触摸再到控制器的各类场景。顶尖的游戏UI设计师深知,屏幕上的每一个像素都弥足珍贵——它们是从游戏世界中“借”来的。当提及“game ui, game interface, hud design, heads up display, game menu, inventory ui, health bar, stamina bar, game hud, minimap, crosshair, reticle, button prompt, controller ui, gamepad navigation, diegetic interface, in-world ui, quest tracker, damage numbers, cooldown indicator, radial menu, game tooltip, game-ui, hud, game-interface, game-menu, controller-ui, diegetic, game-design, accessibility, console, mobile-games”这些关键词时适用。
Clash of Gods 项目角色美术资源 AI 绘图提示词生成器。 支持两种模式: - 影视级CG角色设定图(三视图+细节展示板,UE5/PBR质感,适合主要角色、Boss) - 游戏立绘/头像(游戏内使用的角色卡面、头像、立绘) 当用户提到"角色设定图"、"三视图"、"设定板"、"CG质感"、"影视级"、"角色海报"、 "立绘"、"头像"、"角色卡面"、"人物设计"时,立即使用此技能。 即使用户只给出角色名称和简单描述,也应主动使用此技能生成完整提示词。
基于 SOC 职业分类
正在显示 SKILL.md
| name | docx-format-replicator |
| description | 从现有Word文档中提取格式,并生成格式相同但内容不同的新文档。当用户需要创建格式一致的多份文档、复制文档模板,或在不同内容中保持企业文档标准时,可使用此功能。 |
| tags | docx-format-extraction, document-generation, template-replication, batch-document-processing, python-docx |
| tags_cn | DOCX格式提取, 文档生成, 模板复制, 批量文档处理, python-docx工具 |
从现有Word文档(.docx)中提取格式信息,并使用该信息生成格式完全相同但内容不同的新文档。此功能可用于创建文档模板、在多份文档中保持一致格式,以及复制复杂的Word文档结构。
当用户有以下需求时,可使用此功能:
从现有Word文档中提取格式信息,创建可复用的格式配置文件。
python scripts/extract_format.py <template.docx> <output.json>
示例:
python scripts/extract_format.py "HY研制任务书.docx" format_template.json
提取内容:
输出:包含所有格式信息的JSON文件(详情请参阅references/format_config_schema.md)
创建包含新文档实际内容的JSON文件,内容结构需符合references/content_data_schema.md中的定义。
内容结构:
{
"metadata": {
"title": "Document Title",
"author": "Author Name",
"version": "1.0",
"date": "2025-01-15"
},
"sections": [
{
"type": "heading",
"content": "Section Title",
"level": 1,
"number": "1"
},
{
"type": "paragraph",
"content": "Paragraph text content."
},
{
"type": "table",
"rows"
支持的章节类型:
heading - 可带编号的标题paragraph - 文本段落table - 可配置行列的表格page_break - 分页符完整示例请参阅assets/example_content.json。
使用提取的格式和准备好的内容生成新的Word文档。
python scripts/generate_document.py <format.json> <content.json> <output.docx>
示例:
python scripts/generate_document.py format_template.json new_content.json output_document.docx
结果:一个新的.docx文件,将模板中的格式应用到新内容上。
用户提问:“我有一份研究任务文档,需要再创建5份格式相同但内容不同的文档。”
python scripts/extract_format.py research_task_template.docx template_format.json
为每份新文档创建内容文件(content1.json、content2.json等)
生成文档:
python scripts/generate_document.py template_format.json content1.json document1.docx
python scripts/generate_document.py template_format.json content2.json document2.docx
# ... 重复此步骤生成所有文档
从公司模板中提取格式,生成格式一致、带有品牌标识的报告、提案或规范文档。
# 一次性操作:提取公司模板格式
python scripts/extract_format.py "Company Template.docx" company_format.json
# 生成每份新文档时:
python scripts/generate_document.py company_format.json new_report.json "Monthly Report.docx"
创建多份格式完全相同的技术文档(规范、测试计划、手册等)。
# 从规范模板提取格式
python scripts/extract_format.py spec_template.docx spec_format.json
# 生成多份规范文档
python scripts/generate_document.py spec_format.json product_a_spec.json "Product A Spec.docx"
python scripts/generate_document.py spec_format.json product_b_spec.json "Product B Spec.docx"
附带的示例模板(assets/hy_template_format.json)展示了一份完整技术研究任务文档的格式,包括:
可将其作为同类技术文档的起点。
修改scripts/extract_format.py以提取默认未覆盖的额外属性:
在scripts/generate_document.py中添加新的章节类型:
扩展指南请参阅references/content_data_schema.md。
创建包装脚本以批量生成多份文档:
import json
import subprocess
format_file = "template_format.json"
content_files = ["content1.json", "content2.json", "content3.json"]
for i, content_file in enumerate(content_files, 1):
output = f"document_{i}.docx"
subprocess.run([
"python", "scripts/generate_document.py",
format_file, content_file, output
])
这些脚本需要:
python-docx库:pip install python-docx核心功能无需其他额外依赖。
两个脚本均内置帮助信息:
python scripts/extract_format.py --help
python scripts/generate_document.py --help
如需了解文件结构和可用选项的详细信息,请阅读这些文档。
创建自己的格式和内容文件时,可将这些作为参考。
输出中缺少样式:确保内容数据中的样式ID与格式配置中的一致。请查看format.json获取可用的样式ID。
表格格式问题:验证内容数据和格式配置中的表格尺寸(行/列)是否匹配。有关表格结构的详情,请参阅format_config_schema.md。
字体显示不正确:部分字体可能并非在所有系统上都可用,请检查引用的字体是否已安装。
缺少依赖项:安装所需的Python包:
pip install python-docx
hy_template_format.json和example_content.json了解工作流程。