AGENT SKILL

readme-guide

Write a project README. Apply when you write, change or review a README of any project, in any language.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 2
Forks
0

01 前言 Front Matter

name
readme-guide
license
MIT
metadata
{ "source": "this kit's own words, from sage-stack's README (github.com/erickb336/sage-stack) as the worked example, the READMEs that its Examples table credits by link, and the owner's working preferences" }
description
Write a project README. Apply when you write, change or review a README of any project, in any language.

03 SKILL.md 正文

<!-- Generated by scripts/build.mjs from the sources; edit the source, then run npm run build. -->

Write a project README

A README is the front door of a project. A reader arrives cold and decides in a few seconds to stay or leave. Write it so that the first screen answers their questions, and the rest lets them start and go deeper. sage-stack's own README is the worked example.

The first screen answers five questions

The first screen is the first 10 lines of the raw file. Blank lines and lines that hold only an HTML tag (<a>, <picture>, <source>, <p>, or a closing tag) do not count. This command shows them:

grep -v -E '^[[:space:]]*(</?(a|picture|p)( [^>]*)?>|<source [^>]*>)?[[:space:]]*$' README.md | head -n 10
  1. What is it? One bold sentence: "<name> is a <kind of thing> that <does what> for <whom>."
  2. Why use it? The problem it solves, or the main result, in one or two sentences.
  3. What does it look like? One graphic or screenshot that shows the main idea.
  4. Can I trust it? Only true badges that a machine checks: the CI result and the licence.
  5. Where next? A contents line, or a link to the quick start.

The order of sections

A project is large when it has more than one kind of user, more than one way in, or a README over 150 lines. Otherwise it is small. The sections of the table come in its order. A section counts by what it holds, whatever its heading: for example, sage's "Learn sage in 5 minutes" is its Usage section. A section of the project's own can go between them. For Why, How it works, What's new, Concepts, FAQ and Under the hood, a link to a page that holds the section counts as the section, so that the README stays short. For What's new, that page is the changelog or the release notes.

Section What it holds Small Large
Title, pitch, graphic The answers to the five questions required required
Quick start Install and a first result in 5 commands or fewer required required
Usage Examples of the common jobs, each with what the reader sees required required
Why The problem, and the alternatives optional required
How it works A diagram of the parts and the flow, then short text optional required
What's new The last 3 to 5 changes, newest first; older ones in a changelog, the release notes or the git log optional required
Concepts The project's own words, one meaning each none required
FAQ The real questions that users asked optional required
Under the hood The folders, how to change the project, and how to run its checks one line: run the checks required
Credits The work that the project uses or comes from when it uses others' work required
Licence The licence name and a link to its file required required

Diagrams and graphics

  • Prefer a diagram, then a table, then text. Use a screenshot only for a real screen.
  • Draw each diagram from text or code: Mermaid in the README, D2, Graphviz, or a script in the repository. Do not commit a hand-drawn image that nobody can redraw.
  • Make a light and a dark version. Show them with <picture> and prefers-color-scheme. Mermaid follows the reader's theme by itself.
  • Give each image an alt text that says what it shows and its main point. "Diagram" alone is not an alt text.
  • Check the graphics in CI: the check redraws each one and fails when the file in the repository is different.
  • Keep the text in a graphic readable on a phone, where the README column is about 320 px wide.
  • Give each graphic one main point, and label its parts with the project's words.
  • Use only shapes, logos and characters that the project owns or has a licence for. Never draw another product's logo or a character from a book, film or game.

sage shows each graphic this way. scripts/graphics.mjs draws both files, and npm run check fails when they differ from its output:

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="docs/assets/loop-dark.svg">
  <img alt="How sage works: you, the chief of staff, the team (design, build, review, QA), the pull request, the logbook, and the outer loop that seals each lesson." src="docs/assets/loop-light.svg" width="100%">
</picture>

Commands

  • Put each command in a fenced block with its language, for example sh.
  • Put one command in each block, so that one click copies it.
  • Do not put a prompt sign ($ or >) in the block.
  • Make each block work as it is. When the reader must change a value, say so before the block, and use a clear placeholder such as <your-project>.
  • Say where to run the command, and what the reader sees after it.
  • Name the systems and the versions that the project needs, in a table when there are more than two.
  • Run the quick start in a clean place (a fresh clone or a container) before each release. Better: run it in CI.

Claims

  • Back each claim such as "fast" or "small" with a measured comparison. Say what you measured and how.

Words

  • Follow the writing standard: about 80% of Simplified Technical English.
  • Put the main point first in each section.
  • Use the project's dictionary words. Explain a new word once, in Concepts or where it first appears.
  • Use relative links to files in the repository, and check that each link resolves.

Examples

Each of these READMEs does one thing especially well. Read the raw file, and take the lesson, not the text.

README Kind The lesson
sage-stack multi-agent development stack Graphics drawn by a script in light and dark, checked in CI; a word table for the project's own words
ripgrep CLI tool A timing table against other tools, with the exact commands
uv package manager A one-line pitch, then a benchmark chart in light and dark with an alt text and a caption that says what it measured
fzf CLI tool A table of install commands, one row for each package manager
FastAPI web framework One example in steps (create it, run it, check it, then upgrade it), each with what the reader sees
Transformers ML library A "why use it" list of concrete reasons, each one short
Tauri desktop apps One command to start, and a table of the supported platforms and versions
Excalidraw web app A cover in light and dark, a two-line pitch, then a picture of the product before the list of features

More examples: awesome-readme.

The checklist

A person can check each item in about a minute, except the items marked "tool" or "release".

  • [ ] The first sentence says what the project is, what it does and for whom.
  • [ ] The first screen answers the five questions. Run the command above.
  • [ ] The sections of the table come in its order, with all the required ones for the project's size.
  • [ ] The quick start gives a first result in 5 commands or fewer.
  • [ ] Release: the quick start works in a fresh clone or a container. Better: CI runs it.
  • [ ] Every command a reader should run is in a fenced block, with one command, no prompt sign and a language.
  • [ ] Each diagram comes from text or code, in light and dark, and CI checks it.
  • [ ] Each image has an alt text with its main point.
  • [ ] No graphic uses a logo or a character that the project does not own.
  • [ ] Each badge is true and checked by a machine: it links to a CI result or reads the repository.
  • [ ] Each claim such as "fast" has a measured comparison and its method.
  • [ ] If the project has a What's new section or a changelog, it lists the latest changes, newest first.
  • [ ] Tool: the project's word check passes. Without one, read the text against the writing-standard skill and the project's dictionary.
  • [ ] Tool: each link resolves. Use the project's link check, or a link checker such as lychee README.md.

04 同仓库更多 Skills

erickb336
erickb336/sage-stack

writing-standard

Write at 80% of Simplified Technical English. Apply to any text an agent writes for a person: messages, reports, specs, findings, reviews, plans.

★ 2
erickb336
erickb336/sage-stack

sage

The state tool of sage mode: records tasks, routes, agent runs, findings, verdicts by head SHA and the user's gates in ~/.claude/sage/<project>/. Use in sage mode for every change of a task's state, and before any merge. Claude Code only.

★ 2
erickb336
erickb336/sage-stack

sage-help

Help with sage: how to set it up, switch sage mode and autopilot, read the board, answer the chief's questions, pick a skill or a principle, fix a run that went wrong, and find where sage keeps its files. The user types /sage:sage-help (or /sage-help) with a question. Load it only when the user types it; do not load it on your own. Claude Code only.

★ 2
erickb336
erickb336/sage-stack

report

The report that every sage agent ends with: STATUS, RESULT, EVIDENCE, FINDINGS, QUESTIONS, NOT VERIFIED, BRANCH. Use at the end of any task that the sage chief of staff gave you. Claude Code only.

★ 2
erickb336
erickb336/sage-stack

remote-control

Set up Remote Control, so that the user can follow, steer and start Claude Code sessions from the Claude app on a phone. It turns Remote Control on for every new session, and it can run a server in a folder (such as ~/workspace) that starts at each login. Use when the user asks to reach sessions or start new ones from a phone, or to set up, check or undo Remote Control. Claude Code only.

★ 2
erickb336
erickb336/sage-stack

readme-guide

Write a project README. Apply when you write, change or review a README of any project, in any language.

★ 2