logo
Published on

CH3. readme-style: one format for public repo READMEs

Authors
  • avatar
    Name
    seren-wib
    Twitter
Contents

0. Introduction

Part 3 of the skills series. What a skill is, and why these rules live in skills instead of the instruction file, is in CH0. Skills overview.

On 2026-10-11, after writing the README for the agent-commonplace repo, I liked it enough to decide that every public repo README would follow that format from then on.

In restaurant terms, this is every branch of a chain using the same menu layout. The order of the menu's boxes is the README's section order, the blank menu a new branch fills in is the template, the tasting before opening, where you cook the recipe from scratch once, is running the Quickstart in a throwaway environment, and the menu photos are terminal images drawn from a real command's stdout.

The same day I stripped that README down to a skeleton and made the readme-style skill. The skill is three files, 241 lines (9,878 bytes), and it has not been changed since. Five of my public repos follow the format today, and the script that draws terminal images has produced 31 images across 9 blog posts.

1. What the skill does

16 README sections in four groups: Landing, Why and Quickstart, How it works, Reference

16 README sections in four groups: Landing, Why and Quickstart, How it works, Reference

The skill fixes a README's section order and ships a template. The skill folder has three files.

  • SKILL.md: the order of the 16 sections, image rules, and what to check before finishing (40 lines).
  • template.md: a README skeleton where only the placeholders (<repo-name>, <owner>/<repo>) need filling (144 lines).
  • terminal-svg.js: a script that turns a command's real output into a terminal-window SVG (57 lines).

The section order reads as four groups, as in the diagram. The top is where a first-time visitor looks (nav row, intro paragraph, badges), the middle is what someone installing follows (Quickstart), and the bottom is where someone who got stuck comes looking (FAQ). The README is written in English, and there is no logo unless asked. The rule about writing public documents in English lives in CH2. docs-style.

When the skill opens is written in its description: writing a README, rewriting one, or preparing a repo for publishing. The instruction file only lists the word "readme-style(README)"; the body is read only at that point.

2. The day the format appeared

On 2026-10-11 I wrote the agent-commonplace README. It borrowed the structure of the airllm project's README. I liked how it came out, so I decided READMEs would use this format from then on. That night I took the content out of that README, kept only the structure as template.md, and moved the rules I had followed while writing it into SKILL.md.

The same commit also added a global memory file. It was a one-line rule: "open this skill when writing a README". On 2026-11-13, when every working rule in global memory moved into the instruction file and skills, that memory file was deleted, and now it survives only as one line in the instruction file's skill list.

DateEvent
2026-10-11agent-commonplace README written, first skill commit the same day
2026-10-15first stairno.com README commit
2026-10-17first account.stairno.com and stairno-ui README commits
2026-11-13README rule removed from global memory, moved to the skill list
2026-11-17first random-idea-generator README commit

Only one commit has ever touched the skill folder: the one that created it. Two other skills point to it. docs-style hands off with "README layout: readme-style", and the skill behind the project-docs series says, in its repo-docs row, that the README is written with this skill.

3. Rules for the first screen

The first screen of the README is three things.

  • nav row: one line right under the title, bold anchor links joined by |. It jumps straight to sections like Quickstart, How it works, Configuration and FAQ.
  • intro paragraph: one paragraph. Bold what it does, who it is for, and the one-line difference from alternatives. No marketing filler.
  • badges: two rows of shields.io badges. The first row is project facts (stars, CI status, version, license, runtime version, platforms), the second is what it supports and PRs welcome.
# <repo-name>

[**Quickstart**](#quickstart) | [**How it works**](#how-it-works) | [**FAQ**](#faq)

The most important badge rule is "only badges that are true and won't render as broken or 0". A sponsors badge with no sponsors, or a chat badge with no chat room, leaves an empty spot on the first screen, so empty badges are left out entirely. The star badge and the Star History chart need the GitHub repo to exist, though, so they look empty before the first push, and the skill makes me say so in the report.

Below come ## Updates (newest first, [YYYY/MM/DD] **vX.Y.Z, summary.**), the Star History chart, and the table of contents. Before finishing, I check that the anchors in the nav row and the table of contents match the real headings.

4. Follow the Quickstart yourself

The README's Quickstart is verified by running it literally in a throwaway environment. The skill's "Before finishing" section requires it.

  • Override HOME with a temporary folder so my real settings are untouched.
  • If a remote is needed, create a local bare repo and use it instead.
  • If a step fails, fix the README or the code, and repeat until every step passes.
  • At the end, report what was verified and what wasn't.

The shape of the Quickstart is fixed too. ### Requirements comes first, then numbered steps like ### 1. …, each with a command code block. The one thing people must not get wrong goes in a single > [!IMPORTANT] alert. The last step is "check it works", and that is where the terminal image goes.

The FAQ comes from the same idea. With headings like ### 1. <exact error message>, someone who is stuck can copy the error and find it with in-page search. The cause and the fixing command sit under it.

Why these rules appeared, for example whether a README once went out with a Quickstart that didn't work, is not recorded (no record). They were in the skill's first commit.

5. Terminal images from real output only

Making a terminal image: run the command, output.txt, terminal-svg.js, out.svg, headless render check

Making a terminal image: run the command, output.txt, terminal-svg.js, out.svg, headless render check

This pipeline captures a real command's stdout to a file and renders it as an SVG. The order is: run the command, output.txt, terminal-svg.js, headless browser render check.

  1. Run the command for real. If needed, do it in the throwaway environment from section 4.
  2. Save the output to a text file and replace home paths with ~.
  3. Draw it with node ~/.claude/skills/readme-style/terminal-svg.js <output.txt> <out.svg> [title] [command].
  4. On Windows, take a PNG with msedge --headless=new --screenshot=<png> and open it. Fix text that overflows its box or lines that overlap.

The script is 57 lines and uses only Node's built-in fs. What it does is simple. The window is a fixed 900 px wide with the height set by the line count, and the top bar gets three red, yellow and green dots like a macOS window. Then each line gets colour from a few regular expressions.

  • In lines shaped like Label value, the label is blue.
  • Words like ok, passed, synced and done are green.
  • error, failed and fatal are red.
  • An ISO timestamp at the start of a line is grey.
  • Backslashes in Windows paths become /.

The image below is real output drawn with this script. It is the result of running wc -l in the skill folder, unchanged.

wc -l output drawn with terminal-svg.js: SKILL.md 40 lines, template.md 144 lines, terminal-svg.js 57 lines, 241 total

wc -l output drawn with terminal-svg.js: SKILL.md 40 lines, template.md 144 lines, terminal-svg.js 57 lines, 241 total

The rule against inventing output is written into the skill as "Never invent output". An image in a README is a promise that this is the screen a user will see when they type the same thing.

The diagram half of the same rule is there too. README SVGs go in docs/images/, and each one sits on a light grey background card (#f6f8fa fill, #d0d7de stroke, corner radius 16), so the text doesn't disappear into the background in GitHub's dark mode. For accessibility they get role="img" and an aria-label, and they are embedded centred.

6. Where the format is used

As of 2026-11-28 I have 22 public repos, 5 of them forks. Of the remaining 17, five READMEs have both ## Star History and a numbered FAQ, which is to say they follow this format. The values come from fetching each README through the GitHub API and counting headings. Sources: wc on the skill folder, the dotfiles git log, each repo's README, and a grep over the blog repo's public/static/images/.

RepoFirst README commitREADME commits## sectionsFAQ items<details>SVGs
agent-commonplace2026-10-111151163
stairno.com2026-10-151012642
account.stairno.com2026-10-176131122
stairno-ui2026-10-176121062
random-idea-generator2026-11-17112630

The other 12 READMEs have neither section. Three of them, stairnoworks.com, stairnolabs.com and stairnogames.com, are placeholder READMEs of 101 bytes or less. My GitHub profile README deliberately uses a different format, which CH4. profile-edit covers.

terminal-svg.js has been used outside READMEs too. On 2026-11-08, while writing the hackathon series, the work was on remote servers so there were hardly any photos, and I decided to save the real output of key commands as I went and draw it with this script. School and Tailscale IPs, MAC addresses, account names and original hostnames were masked before drawing. The result is 31 terminal images across 9 posts, from Woowangthon 7 through part 15. The rules for blog posts themselves are in CH1. blog-post.

7. Reflection

Five of my public repos follow this format today, and the skill has not been changed since I made it.