AGENT SKILL

write-doc

Use when the user asks to write or draft a README, ADR, runbook, tutorial, how-to, explanation, or reference doc, or a caller passes "type ADR" or "type README". Picks the type, fills a template, adds diagrams. RFCs and design docs belong to writing-design-docs.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 1
Forks
0

01 前言 Front Matter

name
write-doc
description
Use when the user asks to write or draft a README, ADR, runbook, tutorial, how-to, explanation, or reference doc, or a caller passes "type ADR" or "type README". Picks the type, fills a template, adds diagrams. RFCs and design docs belong to writing-design-docs.

02 资源文件 7

03 SKILL.md 正文

Writing Docs

Generate stage of generate, review, fix. Draft one doc from a template, then hand it to review-doc.

Supported types: README, ADR, runbook, tutorial, how-to, explanation, reference. RFCs and design docs are out of scope: use writing-design-docs.

References, relative to this skill:

  • ../../references/common-doc-guidelines.md: structure, naming, style, and Markdown formatting.
  • ../../references/diagrams.md: when and how to produce a diagram, tool choice, placement.

Types

Templates live in templates/. The Diataxis types differ by what the reader needs, so do not mix them in one doc.

Type Template Reader need
README templates/readme.md Orientation: what this is, how to start, where to go next
ADR templates/adr.md A recorded decision and why it was made
Runbook templates/runbook.md Operational steps under pressure, with checks and rollback
Tutorial templates/tutorial.md Learning-oriented: a newcomer gains skill by doing
How-to templates/how-to.md Task-oriented: a competent user reaching a goal
Explanation templates/explanation.md Understanding-oriented: why and context
Reference templates/reference.md Information-oriented: accurate lookup

Steps

  1. Pick the type. If the caller supplied one (for example "type ADR"), use it and skip this question. Otherwise infer it from the request and ask only if two types fit. If the request is an RFC or design doc, switch to writing-design-docs.
  2. Follow the repo's existing doc layout and naming. Look for a docs/ directory, sibling docs of the same type, and filename conventions before choosing a path. ADRs default to docs/adr/NNNN-slug.md, numbered by scanning the directory for the highest number and adding one. Create the directory only when the first doc needs it. If the target file already exists, stop and offer review-doc or fix-doc, or ask before replacing it.
  3. Fill the template per ../../references/common-doc-guidelines.md. Gather facts from the code, config, and conversation. Replace every <…> placeholder and delete the template's HTML comments. Delete sections that add nothing; never invent a fact to fill one. Ask for what is missing.
  4. Add diagrams per ../../references/diagrams.md when the doc describes structure, flow, or state.
  5. Produce Markdown. Write to Notion only on explicit request, after confirming.
  6. End with "Run review-doc on it?" Skip the offer when another skill invoked you.

04 同仓库更多 Skills

ozzycodes2
ozzycodes2/claudellum

writing-design-docs

Use when the user wants to write a problem-statement design doc, says "let's plan a feature properly" / "write a design doc" / "I'm thinking about how to do X" for a non-trivial X, or before committing to a non-obvious technical direction

★ 1
ozzycodes2
ozzycodes2/claudellum

review-doc

Use when the user asks to review, critique, score, grade, or "how good is this doc" for a Markdown doc or pasted text. Read-only. Scores it on the 20 Practical Prose dimensions and emits a findings table. Does not edit; fix-doc applies the findings next.

★ 1
ozzycodes2
ozzycodes2/claudellum

fix-doc

Use when the user asks to fix, edit for prose quality, polish, tighten, humanize, or de-slop a Markdown doc or pasted text, or says "make this read less AI". Applies review-doc findings, generates flagged diagrams, lists substantive issues for the author, then runs the AI-tell pass last. Modifies the target.

★ 1
ozzycodes2
ozzycodes2/claudellum

create-slides

Use when the user asks for a slide deck, presentation, talk, or slides from a document, report, PR, notes, or topic. Builds one self-contained Machinify-branded HTML deck in a minimalist style, with headline-plus-visual slides, speaker notes, and every diagram drawn by architecture-design:create-diagram.

★ 1
ozzycodes2
ozzycodes2/claudellum

start-session

Open a Claude Code working session in a fresh, isolated git worktree, so the user can start a task with a single /start-session <name>. Use at the START of a session when the user says "start session", "start a worktree", "spin up a worktree for ABC-123", "begin work on <ticket>", or passes a name/ticket to work under. Creates and ENTERS a worktree via the EnterWorktree tool (never `git worktree add`) under .claude/worktrees/, named exactly after the argument, on a local branch `worktree-<argument>`. Reports what the worktree inherited (`.worktreeinclude` copies, symlinked node_modules) and whether its `.env` still points at the main checkout's stack. If the argument is a JIRA key (e.g. ABC-123, PROJ-1505), also loads that story with the Atlassian CLI (`acli`) when available and summarizes the implementation ask. Also renames the session to the argument (the same effect as `/rename <NAME>`) so it's easy to find in `/resume`. Then stops and waits — it sets up the workspace and context, it does not implement.

★ 1
ozzycodes2
ozzycodes2/claudellum

exit-session

Tear down the ephemeral resources a Claude Code working session created, then quit the CLI — so the user can wrap up with a single /exit-session. Use when the user says "exit session", "clean up this session", "tear down everything", "wrap up and clean up resources", "remove the worktree and scratch", "stop the background processes", "shut down the stack", "clean up the agent worktrees", or asks to clean up after finishing a task — even if they only name one resource (assume they want the full sweep unless they scope it). Runs teardown permission-free: stops background processes and dev servers, Docker/compose stacks plus their volumes, networks and images, local Tilt/Kubernetes, git worktrees, merged local branches, and temp/scratch files without prompting, then exits the CLI. Covers the worktrees and Docker resources left behind by subagents spawned during the session, not just the primary agent's own worktree — both determined from git locks and Docker labels rather than from recall. Never touches resources a still-live session holds.

★ 1