Communitygithub.com

samykabu/user-manual

创建、更新、审计和发布独立应用程序的用户手册,包含最终用户、管理员和技术参考三种版本,支持英文和可选阿拉伯文。

user-manual 是什么?

此技能(SKILL)为开发者提供了一套完整的用户手册自动化生成与维护工作流。它强调以 Markdown 作为单一证据源(single source of truth),通过脚本实现手册的初始化、增量更新、覆盖审计、构建发布以及新鲜度检查。用户无需依赖 .specify 或 Spec Kit 即可开始,所有操作基于用户请求、仓库证据和版本控制变更。技能支持生成最终用户、管理员/操作员和技术参考三种版本的手册,并可选支持阿拉伯语(RTL)。它集成了 API 文档(OpenAPI、AsyncAPI、GraphQL、webhooks)、发布说明、迁移指南、UI 截图、私有预览和版本化发布等功能,通过与 `illustrate` 等可选技能的协作生成图表。该技能适用于 Claude Code、Cursor 等 AI 编程助手,帮助团队高效维护高质量、面向不同受众的技术文档。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/samykabu/sanduq-skills/tree/HEAD/skills/dev-tools/skills/user-manual

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

用户手册

在 User-Manual/ 目录下维护一份基于证据的 Markdown 源。发布三个版本:最终用户、管理员/操作员和技术参考。Markdown 是产品;渲染是一个独立的、可替换的步骤。

选择最小化的工作流程

  • 新建手册:与用户访谈,检查仓库,提出模块映射方案,获得批准,然后使用批准的 JSON 模块文件运行 scripts/init_manual.py。
  • 已有手册:阅读 User-Manual/manual.yml,检查请求的范围和相关 Git diff,然后仅更新受影响的页面和资源。
  • 覆盖审计:运行 scripts/audit_manual.py,解释每个错误和警告。
  • 构建:仅在审计通过后运行 scripts/build_manual.py。它会组装每个版本,然后使用 manual.yml 中的 renderer.kind 进行渲染:markdown(默认)、command 或 mkdocs。
  • 新鲜度检查:在更新后运行 scripts/manual_state.py record --feature <dir>;如果在记录之后输入或手册输出发生变化,status 会以退出码 1 退出。

init_manual.py 将构建、审计和状态脚本(以及内置样式表,位于 tools/theme/)复制到 User-Manual/tools/ 以供 CI 使用。升级此技能后,从其 scripts/ 目录刷新这些副本。当 CI 从其他位置运行脚本时,--no-tools 会跳过复制。CI 工作流程遵循 --ci-policy <file> 中的 ci: 映射,如果存在,则遵循 .specify/workflow.yml。

此技能不需要 .specify/、功能规约或任何 Spec Kit 命令。根据用户的请求、仓库证据和版本控制变更来界定工作范围。

仅路由所需内容

任务阅读
发现与访谈discovery.md
页面结构与 Markdown 语法content-model.md
受众与语言audience-language.md
增量更改incremental-update.md
实体、列、枚举、ER 图data-reference.md
渲染器、模板、品牌、HTML、PDF、RTLpublishing.md
API 文档api-docs.md
发布说明与迁移指南release-docs.md
UI 截图ui-screenshots.md
预览与发布preview-publishing.md

不可协商的规则

  1. 要求使用英文。阿拉伯语为可选项,但页面、渲染器、图表和 PDF 必须从初始化时就支持 RTL。
  2. 使用通俗、自然的英文或阿拉伯文。为声明的受众编写;切勿将技术说明原封不动地用于最终用户。
  3. 将主张基于实现、合约、测试、观察到的行为、架构或已批准的基础设施来源。标注未知信息,切勿编造行为。
  4. 绝不包含机密、凭据、令牌、私钥、连接字符串、生产记录或未经编辑的个人数据。使用确定性的合成示例。
  5. 将已批准的、可扩展的模块映射存储在 User-Manual/manual.yml 中。在批准之前,将后续发现添加为 proposed。
  6. 保持 Markdown 规范,编写 GitHub 自身语法,使每个页面在 GitHub 上正确显示;构建过程会将其转换为其他渲染器。仅通过构建过程生成其他格式。
  7. 仅生成有用的图表,并在安装了 illustrate 技能时使用它。保持系统概览与可读的模块级细节分开:一个系统 ER 概览加较小的模块 ER 图。记录每个有证据的实体、列、数据类型、关系、约束和枚举。
  8. 保留拥有标记之外的手写内容,并使重新运行收敛。
  9. 仅链接到其受众会接收的页面。构建过程会拒绝跨受众的页面链接和缺失的资源,并且只会暂存一个版本页面所引用的资源,因此一个受众绝不会发布另一个受众的截图或样本。

实际示例

对于“为我们的预订平台创建手册”,从路由、导航、API、测试和架构文件中识别预订、客户、支付和运营模块。请用户批准该模块映射。然后,在 User-Manual/ 下创建面向受众的教程、安全的截图、API 和数据参考、英文内容以及可选阿拉伯文内容,并以项目选择的方式渲染它:GitHub 上的 Markdown、通过 Pandoc 生成的团队 Word 模板,或包含 PDF 的 MkDocs 站点。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

samykabu/delegate-task

Delegate a task to an external agent CLI harness — Claude Code, OpenAI Codex, OpenCode, GitHub Copilot, or Pi — and get back a normalised result with status (successful / failed / abandoned), a summary, what actually changed on disk measured against git, and total input and output token usage.

samykabu/github-wiki-publish

Publish or update pages, reports, diagrams and assets in a GitHub repository Wiki, preserving existing content and verifying the published result. Use for GitHub Wiki publishing or sync requests, rather than GitHub Pages deployment or general documentation generation.

samykabu/illustrate

Draws diagrams, charts, and technical illustrations (44 types) as self-contained HTML with inline SVG, plus optional SVG/PNG/PDF export, in the project's tracked color and font theme. Use this skill whenever the user asks to draw, diagram, visualize, chart, map, sketch, or illustrate something, even without saying 'illustrate': architecture or system design, infrastructure, cloud or deployment topology, data flow, flowcharts, sequence, state machines, ER or database schema, UML class, dependency graphs, org charts, timelines, Gantt, swimlanes, process or workflow maps, user journeys, kanban, story maps, quadrants, Venn, pyramids, fishbone root-cause, Sankey, Wardley maps, bar, line, scatter, heatmap, waterfall, treemap, radar, or polar charts, and exploded or axonometric views. Also use to redraw .drawio, Mermaid (.mmd), or .excalidraw files, add a diagram to docs, a PR, or a spec, set up the illustration theme, or export a diagram. Not for photos or AI-generated raster images.

samykabu/progress-report

Keep a live, deterministic progress report for a Markdown plan checklist or a Spec Kit feature. Collects task state from the plan file, hook events from Claude Code or Codex, and lane, blocker and decision facts you record, then renders a browser view and a Markdown export with no agent spent on upkeep.

相关技能