跳到正文
cccskills
免费在 GitHub 公开

write-manual

Write or update docs-agents/SUM.md — the Software User Manual — from the codebase. Mode 1 (generate) builds a full, detailed SUM from scratch by inventorying every user-facing surface so nothing is missed. Mode 2 (update) revises the SUM against a PR/diff, removing what's obsolete, editing what changed, and adding what's new — precisely and concisely. Triggered by "write the manual", "generate the user manual", "document how to use this", or "update the manual for this PR".

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md7.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

write-manual

Maintains docs-agents/SUM.md — the end-user manual: how to install and use the software correctly. Follows the template in templates/docs-agents/SUM.md: a Contents map up top, then 9 sections (§6–8 optional). This is a user manual, not a design doc — no internals, architecture, or rationale.

The Contents block

A SUM is long, so docs-agents/SUM.md opens with a ## Contents map — the first thing an agent or human reads to jump to the right passage. Build it from the actual headings (never guess), and rebuild it after every change so it always matches the document (see Mode 1 Step C and Mode 2 step 4).

  • One entry per ## section, and one nested sub-entry per ### Feature: <name> subsection under §5, in document order.
  • Each entry is a heading anchor link + — + a one-line "what's here". For a feature, the one-liner is what the feature does.
  • Anchor = heading text lowercased, punctuation dropped, spaces → hyphens. E.g. ## 6. Configuration & Security → #6-configuration--security; ### Feature: Export data → #feature-export-data.
  • List only sections/features that actually exist — omit entries for dropped optional sections (§6–8). Never list the Contents block itself.

Before writing (both modes)

  1. Read the template templates/docs-agents/SUM.md for the target structure.
  2. Read docs-agents/GLOSSARY.md — use its canonical terms verbatim; never invent a synonym for something the glossary already names.
  3. Skim sibling docs for context, not for copying: docs-agents/PRD.md (what & who it's for), docs-agents/features/* (feature intent), README.md, docs-agents/CHANGELOG.md. The SUM describes how to use, the PRD/FRD describe what & why — don't leak the latter in.

Mode 1 — Generate a full SUM from the codebase

Goal: a complete manual with no blind spots. Blind spots come from documenting only the obvious entry point and missing the rest. Prevent that by inventorying every user-facing surface first, then writing.

Step A — Inventory (do this before writing a word). Sweep the codebase and list every surface a user touches:

SurfaceWhere to look
Install / buildpackage.json scripts, pyproject.toml, Dockerfile, Makefile, install docs
Entry pointsbin/, main, cmd/, __main__, CLI framework registrations
Commands / subcommandsarg-parser definitions (argparse/click/commander/cobra…)
API / endpointsroute definitions, OpenAPI/proto specs, exported public functions
Config & env varsconfig schema, .env.example, settings files, defaults
Required files / services / credentialsDB, external APIs, secrets, tokens the software needs to run
Featuresdocs-agents/features/* and the code that implements them
Error/diagnostic messagesraised errors, exit codes, log strings a user would see
Prerequisites & platformssupported OS/runtime, version constraints, dependencies

Reconcile the inventory against the glossary and features docs. Report the inventory to the user before drafting if the surface is large — cheap way to catch a missing area early.

Step B — Write. Fill the template top to bottom. Map each inventory item to its section:

  • Prereqs/platforms/required services → §3 Requirements
  • Install + config + a verify-it-worked check → §4 Installation
  • Every command/endpoint/feature → §5 Usage (one ### Feature: <name> subsection each: what it does, how to use, example, options)
  • Config keys, secrets/access, secure setup → §6 Configuration & Security
  • Common errors → cause → fix, logs, recovery → §7 Troubleshooting
  • Full command/config/env/error tables → §8 Reference

Every user-facing surface from Step A lands in exactly one section, or is deliberately dropped with a reason. Drop §6–8 only if genuinely empty.

Step C — Build the Contents block. Once the body is final, generate the ## Contents map from the headings you actually wrote (per "The Contents block" above). This is the last step so the map matches the finished document.

Mode 2 — Update the SUM for a PR

Goal: bring the SUM back in sync with reality precisely and concisely — touch only what the change touched. This is a surgical edit, not a rewrite.

  1. Get the diff. git diff <base>...HEAD (or the PR range). Identify which user-facing surfaces changed — reuse the Step A inventory lenses, but scoped to the diff.
  2. Classify each SUM impact and act:
    • Remove — a feature/command/flag/option the diff deleted → cut its lines (and its ### Feature: subsection, reference row, error entry).
    • Modify — behavior, syntax, defaults, or steps changed → edit that passage in place; keep glossary terms.
    • Add — a new user-facing surface with no coverage → add the minimal section/### Feature: subsection/row needed.
  3. Leave untouched anything the diff didn't affect. No reflowing, reordering, or "while I'm here" cleanups.
  4. Refresh the Contents block — mandatory, not a "while I'm here" cleanup. If you added, removed, or renamed a section or ### Feature: subsection, add/cut/rename its Contents entry; if a feature's purpose changed, update its one-liner. If no heading changed, leave Contents as-is.
  5. Report a short changelist to the user: what you removed / modified / added and why (note any Contents change).

Rules

  • User-facing only. How to install, configure, and use it. No architecture, no design rationale, no code internals.
  • No blind spots (Mode 1): inventory before drafting; every surface is covered or consciously dropped.
  • Surgical (Mode 2): change only what the diff changed; don't rewrite stable sections.
  • Contents never goes stale. After any edit, the ## Contents map must match the document's headings exactly (right entries, right order, working anchors, one feature per ### Feature: subsection). Regenerate it — this is required even in surgical Mode 2.
  • Glossary is law. Use canonical terms; if the code reveals a user-facing concept the glossary is missing, flag it (suggest running glossary), don't coin a term silently.
  • Concise. Fit the template; every example should be copy-pasteable. Cut prose that doesn't help a user act.
  • Verify examples exist. Don't invent commands, flags, or endpoints — cite ones that are actually in the code.
  • Omit empty optional sections. §6–8 carry *(optional)*; delete rather than pad.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

commit

免费

Turn uncommitted work into a logically ordered sequence of atomic conventional commits. Surveys the whole working tree, groups changes, orders them foundation-first, shows a plan, then commits by path. Use when the user says "commit this", "commit my work", "split this into commits", or "clean up my changes into commits"

中文简介正在准备中。当前显示原文说明。

patrickfleith/awesome-spacecraft-engineering-datasets1102026年10月23日 更新

decide

免费

Record decisions in docs-agents/DECISIONS.md — add a TBD (open question), log a decided decision, or revise/revoke an existing one. Use when the user says "decide", "we decided", "log a decision", "that's TBD", or wants to change/revoke a past decision

中文简介正在准备中。当前显示原文说明。

patrickfleith/awesome-spacecraft-engineering-datasets1102026年10月23日 更新

glossary

免费

Manage docs-agents/GLOSSARY.md — add or refine a canonical term, extract terms from the current conversation, or audit for conflicts and duplicates. Use when the user says "define this term", "add to the glossary", "build a glossary", "what do we call this", or wants to harden terminology

中文简介正在准备中。当前显示原文说明。

patrickfleith/awesome-spacecraft-engineering-datasets1102026年10月23日 更新

log

免费

Quickly add one entry to the right doc — a task, idea, stack choice, concern, or open question — in the correct format. Triggered by "log"/"note"/"capture"/"add"/"jot down" + the kind, e.g. "log this task", "note this idea down", "capture a concern", "add TODO", "we're using X for Y — put it in the stack", "open question:". Addition only.

中文简介正在准备中。当前显示原文说明。

patrickfleith/awesome-spacecraft-engineering-datasets1102026年10月23日 更新

unslop

免费

Rules for AI-written text. Must always apply.

中文简介正在准备中。当前显示原文说明。

patrickfleith/awesome-spacecraft-engineering-datasets1102026年10月23日 更新

查看 patrickfleith 的全部技能

报告此技能的问题