Skip to content

Commit 9f5cd1c

Browse files
feat(docs): README standard (ADR-0072), frostyard-readme skill and checker, baseline row B17 (#206)
feat(docs): README standard (ADR-0072), README spec, frostyard-readme skill and checker, baseline row B17 Co-authored-by: frostyard-machines <[email protected]>
1 parent 30ab348 commit 9f5cd1c

25 files changed

Lines changed: 2178 additions & 86 deletions
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
---
2+
name: frostyard-readme
3+
description: Write a new root README.md, or bring an existing one to the frostyard README standard, from the template for the repository's kind (tool, library, app, extension, website, image, packaging, service, infrastructure, org), moving manuals, internals and history out to the docs site or docs/. Use whenever asked to write, fix, shorten or review a README, when a sweep issue names baseline row B17, or when a new repository needs its first README.
4+
---
5+
6+
# Write a README to the frostyard standard
7+
8+
A README is the front page of a repository. It answers 4 questions, in
9+
order: what is it, can I use it, how do I start, and where is the rest.
10+
The contract is core's README spec,
11+
[docs/specs/readme.md](https://github.com/frostyard/core/blob/main/docs/specs/readme.md),
12+
and the reason is
13+
[ADR-0072](https://github.com/frostyard/core/blob/main/docs/adr/0072-write-every-readme-to-one-standard.md).
14+
Read the spec before you start: it has the kinds, the sections of each kind
15+
and the rules R1 to R12.
16+
17+
Done means: [scripts/check-readme.mjs](scripts/check-readme.mjs) prints
18+
`ok`, every command, flag and path in the README is true at the commit you
19+
read, and every paragraph you removed is either in its new place or named
20+
as untrue in the pull request.
21+
22+
## Steps
23+
24+
1. **Pick the kind.** Go down the spec's kinds table (`org`, `image`,
25+
`packaging`, `app`, `extension`, `tool`, `website`, `service`, `library`,
26+
`infrastructure`) and take the first row that describes the main thing
27+
the repository delivers. A README that already has a
28+
`<!-- readme-kind: ... -->` marker keeps its kind unless the owner
29+
changes it.
30+
2. **Run the checker** on the current README, from the repository root:
31+
32+
```sh
33+
node .agents/skills/frostyard-readme/scripts/check-readme.mjs .
34+
```
35+
36+
In core, or for another repository, give its path:
37+
`node .agents/skills/frostyard-readme/scripts/check-readme.mjs --ref origin/main <clone>`.
38+
Keep the output for the pull request.
39+
3. **Sort the current content.** For each section or paragraph of the old
40+
README, decide 1 of:
41+
- **keep**: it answers 1 of the 4 questions; name the section it goes to;
42+
- **move**: it is a guide, a reference, internals, a check list, a
43+
runbook or history; name the place from the spec's "What stays out of
44+
a README" table (the docs site for a tool or app, `docs/` otherwise);
45+
- **drop**: it is untrue at the commit you read, or a copy of a page
46+
that exists. Say which.
47+
4. **Move before you cut.** Put each moved part in its new place first: a
48+
site page in `site/content/` (frostyard-docs-site skill) or a page in
49+
`docs/`. A new `docs/` page starts from its category's `TEMPLATE.md`
50+
when it is an ADR, design, spec or plan; a runbook or development guide
51+
can be a plain page. Add every new page to `docs/README.md`
52+
(frostyard-repo-docs skill).
53+
5. **Write the README from the template** for the kind:
54+
`templates/<kind>.md.tmpl`. Replace every `{placeholder}`.
55+
- The lead's first sentence says what the thing is and who it is for.
56+
- The status line takes 1 value: `pre-release`, `stable`,
57+
`in production`, `maintenance` or `deprecated`, and at most 1 more
58+
sentence. No history and no milestones.
59+
- The documentation line links the docs site for a user-facing tool or
60+
app (`https://frostyard.github.io/<repo>/`), pkg.go.dev for a library,
61+
the live site for a website, and `docs/README.md` otherwise.
62+
- Add an optional section only when it has content (`Requirements`,
63+
`How it works`, `Problem records`, `Privacy`, `Limits`, `Credits`, and
64+
the kind's own, from the spec). Keep `Develop` and `Where to go next`
65+
last.
66+
- `Where to go next` links each of `AGENTS.md`, `docs/README.md`,
67+
`SECURITY.md` and `LICENSE` that the repository has. Name the license
68+
(`MIT` or `GPL-3.0`).
69+
6. **Check every fact.** Run each command in `Install`, `Use` and `Develop`
70+
where you safely can, or find it in the code, the Makefile, the workflow
71+
or the release assets. The sweep compares README promises with the code.
72+
7. **Run the checks:**
73+
74+
```sh
75+
node .agents/skills/frostyard-readme/scripts/check-readme.mjs .
76+
make ci
77+
```
78+
79+
The checker must print `ok`. `make ci` must pass: in many repositories
80+
it checks the links in `README.md` and `docs/`.
81+
8. **Open the pull request.** Its body has the checker output before and
82+
after, and a table of the old sections: kept (where), moved (to which
83+
page) or dropped (why). Risk tier: low, unless a moved page is on the
84+
repository's risk-path list.
85+
86+
## Best examples
87+
88+
These READMEs were the best of their kind in the survey of 2026-11-06. Read
89+
one before you write; none has the marker, the status line and the
90+
documentation line yet.
91+
92+
| Kind | Example | What to copy |
93+
| --- | --- | --- |
94+
| `tool` | frostyard/nsl | A tagline, a short lead, features with a link each, a short start, all detail on the site |
95+
| `library` | frostyard/snowkit | `go get`, a package table, links to pkg.go.dev and the design |
96+
| `app` | frostyard/igloo | The Flatpak install and remove commands |
97+
| `website` | frostyard/frostyard-org (2026-11 rewrite) | What the site covers, with links to live pages |
98+
| `image` | frostyard/snosi | The images table and the download links |
99+
| `packaging` | frostyard/bootc-debian, frostyard/flatpak-index | What it publishes, and the consumer's install commands |
100+
| `service` | frostyard/problem-intake | The endpoints table and links to the runbooks |
101+
| `org` | frostyard/core | What is here, by path |
102+
103+
## Pitfalls
104+
105+
- **The status line and the documentation line on 2 adjacent lines**
106+
render as 1 line. Put a blank line between them.
107+
- **A `###` heading** fails R8. Use a bold lead-in, a list or a table, or
108+
move the detail out.
109+
- **A heading that the kind does not list** fails R7. "Features" becomes
110+
`What it does`; "Installation" matches `Install`, but "Usage" does not
111+
match `Use` (a heading must start with the name): rename it `Use`;
112+
"Contributing", "Building" and "Testing" become `Develop`; "License"
113+
goes into `Where to go next`; "Layout" becomes `What is here` (top level
114+
only) for `org` and `infrastructure`, and goes to `AGENTS.md` otherwise.
115+
- **History in the lead or the status line** ("moved on ...", "since M3
116+
...") fails R12 when it has more than 2 dates, and reads as noise. Put it
117+
in `docs/plans/` or the release notes.
118+
- **A real address or host name** in a public README fails R12 or leaks a
119+
private detail. Use `192.0.2.1` and `example.org` in examples.
120+
- **A long `Develop` section.** Keep 1 code block of the setup and the
121+
gate; link the build guide for the rest.
122+
- **A README in a fork.** Forks follow their upstream (ADR-0071). Do not
123+
rewrite their README; add 1 line at the top that links the file that
124+
says how the fork differs.

0 commit comments

Comments
 (0)