readmegen

command
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command readmegen generates the README blocks between <!-- name:start --> and <!-- name:end --> markers from the registry and the data files, and checks the README (Story 4.16):

  • badges: the badge row, a fixed list plus docs/data/badges.yaml (a badge whose status is pending is not shown);
  • demo: docs/media/demo.gif with the headline of its tape output log (docs/media/demo.txt) as alt text once recorded, synthetic text output before;
  • surfaces: the agent surfaces of the surface registry;
  • providers: verified providers (a registry verify block) and detected ones;
  • install-matrix: docs/data/install-matrix.yaml.

The benchmark block belongs to tools/benchsync and is left alone.

With -check it writes nothing and fails on: a generated block that differs from what the inputs generate (drift), the README order (readme-order), the quickstart commands, a prevention claim that docs/hooks/policy.md does not list, a key-shaped string in the README or the tape output log (AD-3), and a recorded GIF of 5 MB or more or longer than 15 seconds.

Usage:

go run ./tools/readmegen           regenerate the blocks (make readme-gen)
go run ./tools/readmegen -check    drift and README checks (make readme-check)
go run ./tools/readmegen -install-table -version X.Y.Z
                                   print the install-matrix block (the release notes)

-install-table prints the content of the install-matrix block, rendered from docs/data/install-matrix.yaml, for the GitHub Release notes of release X.Y.Z (Story 4.19): every command pinned to a release (`@vA.B.C`, such as the GitHub Action row) is pinned to vX.Y.Z instead, so a fix release never tells users to pin the version it replaces. It writes nothing and fails with exit 2, printing nothing, when the matrix is missing or invalid or -version is not X.Y.Z.

Exit codes: 0 done or clean, 1 a check failed, 2 bad input (unreadable or invalid data file, missing markers, bad flags); on exit 2 nothing is written. Messages never carry error text or key material (AD-3).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL