帮助手册生成器
强制要求
- Require a product screenshot directory from the current conversation. If no directory is provided, stop and ask for the directory before drafting or creating files.
- Use screenshots from that directory in the final manual. If no supported images are found, stop and report that the screenshot directory is empty or unsupported.
- Default output to
帮助手册.mdunless the user requests Word output. For Word requests, create.docxeven if the user says.doc. - Do not invent pricing, limits, product architecture, or feature capabilities that are not visible in screenshots or provided by the user. Mark missing business details as
待补充only when the section is needed. - For Markdown/chat/HTML-style output, every output image must be embedded as a base64 data URI, for example
. Do not use local file paths, relative paths, remote URLs, orfile://links for output images. The user must be able toCtrl+Acopy the rendered content and paste it into a document with images preserved. - For
.docx, embed the actual image files in the Word document.
资源
- Use
assets/help-manual-template.mdas the style and structure reference. It shows the expected Chinese cloud-product manual pattern: product overview, advantages, functions, scenarios, quick start, operation guides, numbered steps, tables, separators, and screenshots. - Use
assets/help-manual-template.docxonly as a visual reference when Word output is requested; do not overwrite it. - Run
scripts/collect_screenshots.py <screenshot-dir>to inventory supported screenshot files before writing. - Run
scripts/validate_manual.py <manual-path> --screenshot-dir <screenshot-dir>before final delivery.
工作流
- Confirm the screenshot directory exists and is a directory.
- Run the screenshot inventory script:
python3 /path/to/help-manual-generator/scripts/collect_screenshots.py "/path/to/screenshots"
- Inspect the screenshots. Prefer natural filename order first, then visual UI order. Use file names, visible page titles, breadcrumbs, forms, table headers, buttons, dialogs, and empty states to infer flows.
- Decide the manual structure from the evidence:
- Use
# 产品简介when the screenshots or user input establish the product name and purpose. - Use
# 快速入门for the shortest end-to-end path a new user should follow. - Use
# 操作指南for task-based procedures such as create, edit, bind, enable, disable, view details, monitor, delete, import, export, or configure. - Add
# 常见问题only when screenshots or user notes reveal errors, constraints, or confusing states. - Add
# 产品计费only when pricing or billing details are provided by the user or visible in screenshots.
- Use
- Write concise Chinese documentation in the template's style:
- Start each operation section with a one-sentence purpose.
- Use numbered steps for flows.
- Put the screenshot immediately after the step it illustrates.
- Use bullets for field explanations and tables for structured limits or parameter definitions.
- Use exact visible UI labels when possible, wrapped with Chinese corner quotes or bold text, for example
点击「创建」or点击 **确定**.
- Generate the requested output:
- Markdown: create
帮助手册.mdunless the user provided a target path. Convert each screenshot into a base64 data URI and use image links such as. - Word: create
.docxwith embedded screenshots, captions, headings, numbered steps, and tables. If document tooling is available, use it; otherwise create Markdown first and convert to.docxwith a reliable local converter.
- Markdown: create
- Validate the output with:
python3 /path/to/help-manual-generator/scripts/validate_manual.py "/path/to/帮助手册.md" --screenshot-dir "/path/to/screenshots"
For .docx, pass the .docx path. Fix any validation failure before final response.
质量标准
- The manual must be useful without the screenshots directory open beside it.
- Every major workflow must include at least one screenshot.
- Screenshot captions or alt text must describe the UI state, not generic names like
image1. - Do not leave TODO placeholders except explicit
待补充items for missing user-provided business facts. - Preserve the user's product terminology. Do not translate product names or UI labels unless the user asks.