AGENT SKILL

dev-docs

Write, edit, or review developer documentation using source-verified facts and concise technical prose. Use for READMEs, API references, guides, release notes, and substantive documentation style questions.

License 许可
MIT
所属仓库
yasik/skills
最近更新
2026-11-08
Stars
★ 3
Forks
1

01 前言 Front Matter

name
dev-docs
description
Write, edit, or review developer documentation using source-verified facts and concise technical prose. Use for READMEs, API references, guides, release notes, and substantive documentation style questions.

02 资源文件 12

03 SKILL.md 正文

Developer documentation style

Make documentation accurate, useful, and easy to scan. Apply this guidance to the requested document or changed prose and enough surrounding context to keep it coherent. A small edit does not require rewriting a page or reading every manual.

Repository terminology, writing conventions, and explicit user requirements take precedence. The bundled references are editorial guidance, not process policy: they do not create approval steps, release authority, or mandatory page sections.

Write or review

  1. Establish the reader and purpose from the task and surrounding page. Use the existing document shape unless it obscures the reader's task. A new how-to needs actionable steps; a reference needs precise contracts and examples.
  2. Verify behavior, names, commands, defaults, and examples against the actual code or supported interface. Reuse evidence already gathered by docs-sync. Do not widen a scoped wording edit into a repository documentation audit.
  3. Edit only the requested scope. Use plain technical English, active voice, direct instructions, and short sections. Explain behavior and boundaries; omit filler, rhetorical contrasts, jokes, and unsupported claims.
  4. Consult a reference only for a relevant style question. Preserve public API spelling, literal outputs, and code semantics even when they differ from prose conventions. Follow the repository's renderer and formatting rules.
  5. Review the changed prose once for factual accuracy, reader usefulness, consistent terminology, clear examples, descriptive links, and maintainability. Report actionable issues or apply fixes within existing authorization. Do not turn the checklist into a separate approval report.

In a development cycle, return writing findings and fixes to the calling task. docs-sync owns coverage and navigation; docs-portal owns build and link checks. Do not recursively invoke them or repeat their work from a writing review. For a standalone task, report the result and material limitations concisely.

Defaults that matter

  • Use second person and imperative steps for instructions; describe API contracts precisely in reference prose. Keep language literal and globally understandable.
  • Put conditions before actions and consequential prerequisites before procedures. Distinguish requirements from options. Avoid vague claims about ease or quality.
  • Use sentence-case headings, parallel lists, code formatting for identifiers, and fenced examples with a language. Keep copyable commands free of shell prompts unless the document must distinguish commands from output; explain placeholders.
  • Preserve the existing page structure. Add prerequisites, cleanup, cost, or next steps only when they help this reader; do not manufacture empty sections.
  • Document verified supported behavior. Release notes may use dates and versions; internal planning belongs in the repository's planning surface. Do not name internal phases, experiments, or system codenames in public docs.
  • Explain concepts in narrative prose that says why the design matters; do not repeat field-by-field reference that code docstrings already carry. Use an ASCII diagram for an architecture or lifecycle when prose alone is hard to follow.
  • Define or replace jargon at first use. Prefer separate sentences, commas, or colons over em-dash asides.
  • Use concise public docstrings for caller contracts. Follow coding-style for language-specific comment syntax; do not reformat comments as a full guide page.

References

Use the relevant page or search the word lists; loading the full guide is unnecessary.

Question Reference
Tone, accessibility, claims, terminology Principles
Voice, tense, grammar, capitalization Grammar
Punctuation and hyphenation Punctuation
Headings, lists, procedures, notices Formatting
Numbers, dates, times, units Numbers and units
Links, HTML, Markdown Linking
Samples, placeholders, commands, UI text Code and UI
Product names and example values Naming
A term's spelling or usage A–L, M–Z
Source navigation and attribution Index

References are adapted from a published developer documentation style guide under Creative Commons Attribution 4.0. The index retains source links and attribution. The bundle adapts process guidance to its own scope and authorization rules.

04 同仓库更多 Skills

yasik
yasik/skills

terminal-report

Produce beautiful, structured terminal output for a CLI or analysis tool — ANSI colors, aligned data tables, inline bar charts, diverging/centered bars, tagged progress logs, sparklines, and section headers. Use this skill whenever you are building a command-line tool, analysis script, report generator, data dashboard, or status/progress display that prints to a terminal, OR whenever the user wants output to look "polished", "colored", "styled", "like a dashboard", or shows a screenshot of a pretty terminal and asks how to make one. Applies even when the user just says "print the results nicely" or "make a little CLI for this" without naming colors or charts explicitly.

★ 3
yasik
yasik/skills

technical-prose

Write and revise technical explanations, design docs, reviews, reports, and progress updates in clear, connected prose. Use when the reader needs to understand a mechanism or decision, or when a draft feels dense, choppy, jargon-heavy, or like compressed implementation notes. Preserve technical meaning while making the reasoning easy to follow.

★ 3
yasik
yasik/skills

teach

Teach a complex topic as one complete, self-paced written lesson — chaptered sections the learner reads top to bottom, a deep-dive that slows down on the single hardest concept and breaks it into steps with worked examples, diagrams only where they actually clarify, and real citations for going deeper. Works from an explicit topic ("teach me how Raft consensus works") or from one or more links/papers/docs the user wants to be brought up to speed on — it fetches them, falling back to a browser when a page is paywalled, JavaScript-rendered, or only partially retrievable. Use this whenever the user wants to *understand* something rather than just get an answer: "teach me X", "explain this <link>", "help me understand <topic>", "I want to learn <thing>", "break this down for me", "ELI5 but properly / but deep", or when they drop a URL and ask to be walked through it like a class. Distinct from a quick factual lookup or a terse summary — reach for this when the goal is durable understanding, not a TL;DR.

★ 3
yasik
yasik/skills

mermaid-render

Render a Mermaid diagram as a beautiful, optionally animated SVG (and PNG) in a calm editorial style, instead of stock Mermaid output. Supports flowchart, stateDiagram, and sequenceDiagram. Use whenever the user wants to render, draw, beautify, restyle, or "make nice" a Mermaid / flowchart / sequence / state diagram, add animated data-flow to a diagram, or turn a described process or architecture into a polished diagram for a doc, README, or slide. All styling — colors, fonts, shapes, borders, animation — is configurable in one theme file.

★ 3
yasik
yasik/skills

dev-docs

Write, rewrite, or review developer documentation to a complete, packaged technical-writing style guide: tone, grammar, punctuation, formatting, procedures, code samples, placeholders, UI text, linking, naming, and a word list of about 700 terms, plus an index of every rule. Use whenever the user asks for developer docs, technical docs, a README, API reference, quickstart, how-to, tutorial, concept page, release notes, docstrings or reference comments, or a docs style review, or wants docs that read like a major platform's documentation. Also use to check a draft against the style guide or to look up a term in the word list.

★ 3
yasik
yasik/skills

unit-test-coverage

Select, write, and review meaningful tests of public functions and interfaces. Use when adding behavior, fixing a regression, reviewing test quality, or diagnosing failing tests. Every test must protect a critical behavior or flow; never add tests only to increase coverage.

★ 3