AI Promotion Case Doc
Overview
Use this skill to turn Codex work evidence into a polished AI推广案例 that can be shared with managers, developers, testers, and delivery teams. The default output is Chinese, business-readable, and delivered as both Markdown source and a Word-openable .doc unless the user asks for only one format.
This is a generic skill. Do not assume any project, company, technology stack, output folder, author, or template unless the user provides it or it is clearly present in the source evidence.
Trigger Rules
- Use this skill for explicit requests such as
生成AI推广案例, AI推广案例生成, 生成 AI 使用案例, 整理 AI 案例, 沉淀案例, 复盘 AI 案例, 优化 AI 推广案例, 生成 Word 案例, Cursor/Codex 使用案例, or equivalent.
- If the user explicitly asks for Word output, perform the two-step delivery: create/update the Markdown source first, then generate the corresponding Word-openable
.doc or requested .docx.
- If the user only asks for a draft, outline, rewrite, or optimization, deliver only the requested format.
- Do not automatically generate a promotion case from every completed task. If the user did not explicitly request a case, only suggest one when the completed work has clear reusable value.
- Do not bind the output to any single project-specific skill, folder, stack, or naming convention unless the user asks for that target.
Required Inputs
Gather the available evidence before drafting:
- User-provided source files: DOC/DOCX examples, Markdown, screenshots, notes, chat exports, or pasted conversation snippets.
- Local task history:
.specstory/history/, Codex summaries, implementation notes, release notes, or changed files mentioned by the user.
- Current project constraints, AGENTS.md instructions, or style guides when the case is project-specific.
agent_improvement/from_conversation.md if present in the workspace.
If the evidence is incomplete, write the case from confirmed facts and mark inferred or missing items plainly. Do not invent verification, timings, users, business outcomes, or tool results.
Workflow
- Identify the case subject: feature delivery, workflow improvement, troubleshooting closure, document generation, skill creation, project onboarding, review process, or multi-agent collaboration.
- Extract the evidence chain:
- original user goal or representative user request
- constraints and project boundaries
- AI actions in chronological or logical phases
- artifacts created or modified
- verification evidence and skipped checks
- final outcome and reusable value
- Read
references/case-template.md for the target structure.
- Read
references/history-extraction.md when the source is Codex history or SpecStory records.
- Draft the Markdown case first. Keep it as the source of truth.
- Generate the Word-openable
.doc with scripts/md_to_word_doc.py.
- Validate the generated artifacts:
- Markdown and
.doc files exist.
- Chinese text is readable when the
.doc is opened or extracted as text.
- The case contains scenario, goals, steps, targeted design, reuse value, summary, and optional reusable prompt.
- Sensitive data, credentials, hostnames, tokens, private user data, and production-only config are absent.
Generalization Rules
- Preserve real project facts from the evidence, but do not hard-code the skill itself to that project.
- Replace project-specific headings with generic placeholders when making reusable templates, such as
<项目或组织> 针对性设计.
- When the source case is project-specific, keep the project details inside the generated case only.
- If multiple projects or tools appear in the history, explain their roles without implying they are required for future cases.
- If a reference document contains a strong format, reuse its structure and tone; avoid copying its private content or assuming its author, project, paths, or metrics.
Output Rules
- Default Word output directory: place the final Word document under
D:\Users\lenovo\Desktop\JZ\deepseek案例\<year>年<month>月\, where <year> and <month> are the next calendar month relative to the current date. For example, if the current date is May 27, 2026, use D:\Users\lenovo\Desktop\JZ\deepseek案例\2026年6月\.
- If the current month is December, roll over to January of the next year, for example December 2026 ->
D:\Users\lenovo\Desktop\JZ\deepseek案例\2027年1月\.
- Create the target month folder if it does not already exist.
- Keep the Markdown source beside the final Word document unless the user asks for a different source location.
- Filename pattern:
<序号或日期>-<主题>_AI推广案例_<作者或团队>.md and the same basename with .doc.
- Use the user's reference document for structure and tone, but generalize headings and wording instead of copying one case's project-specific content.
- Prefer
.doc as Word-compatible HTML when LibreOffice or a true DOC converter is unavailable. State this clearly if it matters.
- When a true
.docx is requested, use an available document library or converter, then verify the resulting file can be opened.
Writing Rules
- Write in Chinese unless the user asks otherwise.
- Keep the main evidence chain in this shape:
用户说 -> AI做了什么 -> 结果.
- Convert raw command chatter into business and engineering outcomes.
- Keep technical details only when they prove AI's value or explain the implementation path.
- Use realistic efficiency comparisons. If no measured time exists, label the numbers as estimates.
- Prefer reusable learning over self-congratulation.
- Do not expose hidden reasoning, internal prompts, secrets, credentials, tokens, private records, or sensitive production data.
- Do not claim tests, rendering, deployment, or user acceptance happened unless the evidence shows it.
- Avoid naming unrelated technologies, stacks, teams, or products unless they appear in the evidence or the user asks for comparison.
Word Generation
Use the bundled script:
$py = "C:\Users\lenovo\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe"
$now = Get-Date
$target = $now.AddMonths(1)
$outDir = "D:\Users\lenovo\Desktop\JZ\deepseek案例\$($target.Year)年$($target.Month)月"
New-Item -ItemType Directory -Force -Path $outDir | Out-Null
& $py "C:\Users\lenovo\.codex\skills\ai-promotion-case-doc\scripts\md_to_word_doc.py" `
--input (Join-Path $outDir "case.md") `
--output (Join-Path $outDir "case.doc")
The script converts common Markdown headings, lists, blockquotes, inline code, and tables into Word-compatible HTML with Chinese document styling.
Quality Checklist
Before delivery, confirm:
- The case has a clear before/after story.
- Each major step includes user request, AI action, and result.
- The target project or organization-specific design section is present.
- Reusable prompts or workflow notes are included when useful.
- Efficiency comparison is not overclaimed.
- Generated
.doc and source Markdown exist at the paths reported to the user.
- Any skipped verification or unsupported converter limitation is disclosed.
1---2name: ai-promotion-case-doc3description: Generate reusable Chinese AI推广案例 / AI使用案例 Word documents from Codex historical conversations, SpecStory history, implementation notes, Markdown, DOC/DOCX reference cases, chat logs, or code-change summaries. Use when the user explicitly asks to create, optimize, rewrite,复盘,沉淀, or export an AI promotion case, AI usage case, Cursor/Codex usage case, or AI-assisted delivery case as Markdown, DOC, DOCX, or Word-compatible output across any project or organization.4---56# AI Promotion Case Doc78## Overview910Use this skill to turn Codex work evidence into a polished AI推广案例 that can be shared with managers, developers, testers, and delivery teams. The default output is Chinese, business-readable, and delivered as both Markdown source and a Word-openable `.doc` unless the user asks for only one format.1112This is a generic skill. Do not assume any project, company, technology stack, output folder, author, or template unless the user provides it or it is clearly present in the source evidence.1314## Trigger Rules1516- Use this skill for explicit requests such as `生成AI推广案例`, `AI推广案例生成`, `生成 AI 使用案例`, `整理 AI 案例`, `沉淀案例`, `复盘 AI 案例`, `优化 AI 推广案例`, `生成 Word 案例`, `Cursor/Codex 使用案例`, or equivalent.17- If the user explicitly asks for Word output, perform the two-step delivery: create/update the Markdown source first, then generate the corresponding Word-openable `.doc` or requested `.docx`.18- If the user only asks for a draft, outline, rewrite, or optimization, deliver only the requested format.19- Do not automatically generate a promotion case from every completed task. If the user did not explicitly request a case, only suggest one when the completed work has clear reusable value.20- Do not bind the output to any single project-specific skill, folder, stack, or naming convention unless the user asks for that target.2122## Required Inputs2324Gather the available evidence before drafting:2526- User-provided source files: DOC/DOCX examples, Markdown, screenshots, notes, chat exports, or pasted conversation snippets.27- Local task history: `.specstory/history/`, Codex summaries, implementation notes, release notes, or changed files mentioned by the user.28- Current project constraints, AGENTS.md instructions, or style guides when the case is project-specific.29- `agent_improvement/from_conversation.md` if present in the workspace.3031If the evidence is incomplete, write the case from confirmed facts and mark inferred or missing items plainly. Do not invent verification, timings, users, business outcomes, or tool results.3233## Workflow34351. Identify the case subject: feature delivery, workflow improvement, troubleshooting closure, document generation, skill creation, project onboarding, review process, or multi-agent collaboration.362. Extract the evidence chain:37 - original user goal or representative user request38 - constraints and project boundaries39 - AI actions in chronological or logical phases40 - artifacts created or modified41 - verification evidence and skipped checks42 - final outcome and reusable value433. Read `references/case-template.md` for the target structure.444. Read `references/history-extraction.md` when the source is Codex history or SpecStory records.455. Draft the Markdown case first. Keep it as the source of truth.466. Generate the Word-openable `.doc` with `scripts/md_to_word_doc.py`.477. Validate the generated artifacts:48 - Markdown and `.doc` files exist.49 - Chinese text is readable when the `.doc` is opened or extracted as text.50 - The case contains scenario, goals, steps, targeted design, reuse value, summary, and optional reusable prompt.51 - Sensitive data, credentials, hostnames, tokens, private user data, and production-only config are absent.5253## Generalization Rules5455- Preserve real project facts from the evidence, but do not hard-code the skill itself to that project.56- Replace project-specific headings with generic placeholders when making reusable templates, such as `<项目或组织> 针对性设计`.57- When the source case is project-specific, keep the project details inside the generated case only.58- If multiple projects or tools appear in the history, explain their roles without implying they are required for future cases.59- If a reference document contains a strong format, reuse its structure and tone; avoid copying its private content or assuming its author, project, paths, or metrics.6061## Output Rules6263- Default Word output directory: place the final Word document under `D:\Users\lenovo\Desktop\JZ\deepseek案例\<year>年<month>月\`, where `<year>` and `<month>` are the next calendar month relative to the current date. For example, if the current date is May 27, 2026, use `D:\Users\lenovo\Desktop\JZ\deepseek案例\2026年6月\`.64- If the current month is December, roll over to January of the next year, for example December 2026 -> `D:\Users\lenovo\Desktop\JZ\deepseek案例\2027年1月\`.65- Create the target month folder if it does not already exist.66- Keep the Markdown source beside the final Word document unless the user asks for a different source location.67- Filename pattern: `<序号或日期>-<主题>_AI推广案例_<作者或团队>.md` and the same basename with `.doc`.68- Use the user's reference document for structure and tone, but generalize headings and wording instead of copying one case's project-specific content.69- Prefer `.doc` as Word-compatible HTML when LibreOffice or a true DOC converter is unavailable. State this clearly if it matters.70- When a true `.docx` is requested, use an available document library or converter, then verify the resulting file can be opened.7172## Writing Rules7374- Write in Chinese unless the user asks otherwise.75- Keep the main evidence chain in this shape: `用户说` -> `AI做了什么` -> `结果`.76- Convert raw command chatter into business and engineering outcomes.77- Keep technical details only when they prove AI's value or explain the implementation path.78- Use realistic efficiency comparisons. If no measured time exists, label the numbers as estimates.79- Prefer reusable learning over self-congratulation.80- Do not expose hidden reasoning, internal prompts, secrets, credentials, tokens, private records, or sensitive production data.81- Do not claim tests, rendering, deployment, or user acceptance happened unless the evidence shows it.82- Avoid naming unrelated technologies, stacks, teams, or products unless they appear in the evidence or the user asks for comparison.8384## Word Generation8586Use the bundled script:8788```powershell89$py = "C:\Users\lenovo\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe"90$now = Get-Date91$target = $now.AddMonths(1)92$outDir = "D:\Users\lenovo\Desktop\JZ\deepseek案例\$($target.Year)年$($target.Month)月"93New-Item -ItemType Directory -Force -Path $outDir | Out-Null94& $py "C:\Users\lenovo\.codex\skills\ai-promotion-case-doc\scripts\md_to_word_doc.py" `95 --input (Join-Path $outDir "case.md") `96 --output (Join-Path $outDir "case.doc")97```9899The script converts common Markdown headings, lists, blockquotes, inline code, and tables into Word-compatible HTML with Chinese document styling.100101## Quality Checklist102103Before delivery, confirm:104105- The case has a clear before/after story.106- Each major step includes user request, AI action, and result.107- The target project or organization-specific design section is present.108- Reusable prompts or workflow notes are included when useful.109- Efficiency comparison is not overclaimed.110- Generated `.doc` and source Markdown exist at the paths reported to the user.111- Any skipped verification or unsupported converter limitation is disclosed.