Skip to content

rewrite the readme in the shared shape - #125

Merged
adssib merged 5 commits into
mainfrom
readme-shape
Nov 19, 2026
Merged

adssib merged 5 commits into
mainfrom
readme-shape

Conversation

@adssib

@adssib adssib commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #124 (which is stacked on #121): the quickstart uses new-plugin and make check. Merge #121, then #124, then this.

Closes #117
Closes #114

What this changes

README rewritten in the shared shape (R1.1), with the "Add a provider in 15 minutes" section (R1.4):

  1. What (one line): "How patch-it notices, on its own, that something your code depends on changed." The plugins are framed as the trigger.
  2. Why: the positioning one-liner, the layers, "on your key", "You get the fix, not the alert."
  3. Badges: CI (CI_go), Go Reference, Go version, license, plugins (20), docs, Discussions.
  4. Visual: a mermaid flow, provider source → plugin → change event → patch-it in your CI → pull request in your repo (the GIF comes later).
  5. What patch-it does, in the order from the positioning: it acts on its own (incl. no-version-bump changes) → it writes the fix (AI model on your key, your tests check it, you merge) → proof (8 merged by outside maintainers) → layers (APIs live, AI models live, packages and SDKs in testing, runtimes building, CI planned) → how to start.
  6. Add a provider in 15 minutes: scaffold (new-plugin), save the source + golden (go test … -update), make plugins-json && make check, open the PR, with the expected output; links to writing-a-plugin.md, Discussions and good first issues.
  7. How a plugin works, the plugin list (md, docs site, JSON), layout, checks, releases (automatic Monday and Thursday 14:00 UTC when something was merged, plus the button, per release: also run on its own twice a week when something new was merged #123: "a merged plugin is running within a few days"), contributing, license.

Patchy is linked by URL from the public org profile assets (patch-it-dev/.github/profile/assets/bot-found-one.svg); nothing copied in.

docs/README-template.md (R1.1): the seven sections with a note each, the badge set and its order, the words to use and avoid, images (public assets by URL only), a skeleton to copy, and a checklist for the day a repo goes public (description, website, topics, Discussions, social preview).

The plugins badge stays honest: make plugins-json (cmd/list-plugins) now also sets the count on the README's badge, and go test (TestReadmeBadgeCountsThePlugins) fails when it's off. AGENTS.md points public text at the template.

Acceptance criteria

#114 (R1.1):

  • The template exists with all seven sections and the badge set, with a one-line note on what goes in each.
  • This repo's README follows the template and reads top to bottom in under a minute (the story and quickstart are above the fold; the rest is reference).
  • The README lists all layers and marks their status honestly (the statuses from the positioning page); never API-only.
  • No version-bot names anywhere in the README, no "better than" / "killer" / "magic".
  • [~] Every badge and link resolves: all checked except the Discussions badge, which resolves now that Discussions is on (R1.2 · Repo basics: descriptions, topics, website links, Discussions, social preview cards #115), and the release badge, left out because there's no release yet (the template says to add it once there is).

#117 (R1.4):

  • Someone new follows it from a clean clone to a passing make check in about 15 minutes: needs a person who didn't write it, timed once.
  • Every command runs as written: I ran the section's commands in a fresh copy (new-plugin → go test -run TestAcme -update → make plugins-json && make check); they run; make check then stops at its todos step until the TODO(new-plugin)s are filled in, which is what step 2 asks (the curl needs a real source URL in $URL, which the first line sets).
  • The section fits on one screen; details live in writing-a-plugin.md.

Checklist

  • docs/plugins.md: not changed. Not applicable.
  • Every commit is signed off (DCO)
  • make check passes locally (except the known local-gofmt mismatch, see add make check and docs/plugins.json #121)
  • Nothing private: the README names only public repos and docs; the layer statuses match the public positioning.

Calls I made (please check)

  • Badge set: CI, Go Reference, Go version, license, plugins, docs, Discussions. No release badge until the first release exists.
  • The README's "Start" points at docs.patch-it.dev for setting up the Action; "Packages and SDKs: in testing", "Runtimes: building", "CI: planned", from the positioning page.
  • The quickstart uses a placeholder URL=https://acme.example/changelog.xml the reader replaces.
  • The plugins repo's description, homepage, topics and Discussions are set (see R1.2 · Repo basics: descriptions, topics, website links, Discussions, social preview cards #115's comment); the social preview images are rendered but have to be uploaded by hand.

Related PRs

🤖 Generated with Claude Code

adssib and others added 2 commits November 19, 2026 15:17
The README leads with the trigger and the AI-written fix, then proof,
layers and a 15-minute quickstart. docs/README-template.md is the shape
patch-it's other public repos copy. make plugins-json keeps the plugins
badge count right; go test checks it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
@claude

claude Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Claude finished @adssib's task in 1m 38s —— View job


✅ Ready to merge (after #121 and #124): the README and template are docs-only, and the badge-count code is small, tested, and passes every check I ran.

Rules

Rule Status Evidence
Plugin list (Rule 1) ✅ n/a No plugin added, removed or changed. docs/plugins.md is untouched. The badge says 20 and TestReadmeBadgeCountsThePlugins passes against the registry.
Provider page ✅ n/a No new provider
Golden test + quote ✅ n/a No golden or testdata changes
Drop test ✅ n/a No plugin code
Fetch only via env ✅ No new net/http. The new filesystem access is os.ReadFile/WriteFile of README.md, and only in cmd/list-plugins (tooling, not plugin code).
Nothing private (Rule 2) ✅ Only public repos, public org-profile asset URLs and docs.patch-it.dev are linked. The service is called "patch-it's hosted ingestion service". No credentials, internal names or session links. leak_guard.py --all is clean.
README words ✅ No version-bot names and no "better than", "killer" or "magic" in README.md. All five layers are listed with their statuses, so it doesn't read as API-only.

Bugs

None found.

I checked these specifically:

  • pluginlist.Badge: the regex img\.shields\.io/badge/plugins-(\d+)- only matches the static plugins badge. It replaces every match, so a second copy of the badge would also stay in sync. TestBadge covers both the "found" and "missing" cases.
  • cmd/list-plugins: -o - still skips the README, which is right. -check now also fails when the badge count is stale. When the README has no badge, the command quietly ignores it, but TestReadmeBadgeCountsThePlugins fails in that case, so a missing badge still can't get through.
  • Quickstart commands: --source is a real new-plugin flag. The .rss.xml file name and the plugins/feed/testdata/ path match what the scaffold writes. The writing-a-plugin.md#3-pick-the-format-plugin anchor exists.

Verified

  • go build ./...: ok
  • go vet ./...: no output
  • gofmt -l .: printed nothing
  • go test -race ./...: all packages pass, including internal/pluginlist (with the two new tests) and cmd/new-plugin
  • python3 scripts/leak_guard.py --all: no banned terms (8 hashed terms checked)
  • Not run: go run ./cmd/list-plugins -check was blocked by this runner's permissions. The same check runs inside go test: the plugins.json freshness test and the new badge test both passed.
  • Not verified: whether the external badge URLs and links resolve. I didn't have network access to check them.

Non-blocking (optional)

  • README quickstart, step 2: "the saved file's row in testdata/README.md" means the row in plugins/feed/testdata/README.md. Spelling out the full path would save a newcomer a search. The step could also mention the drop fixture (acme-drop.rss.xml), since the scaffold's "next steps" ask for one and the 15-minute timing should include it.
  • cmd/list-plugins/main.go:52: the ok from Badge is thrown away. A one-line warning on stderr when the README has no badge would make the failure obvious without running go test. This is optional because the test already catches it.

adssib and others added 3 commits November 19, 2026 15:21
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
Base automatically changed from new-plugin to main November 19, 2026 20:29
@adssib
adssib merged commit a61490e into main Nov 19, 2026
4 checks passed
@adssib
adssib deleted the readme-shape branch November 19, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

R1.4 · README: "Add a provider in 15 minutes" R1.1 · Shared README shape and badge set

1 participant