regen-schema · git:20261102.2ad9b4a · 2026-11-02 · sha256 6219e6ac46c2e020

regen-schema git:20261102.2ad9b4aA

Immutable. This exact content never changes and is served at /api/v1/blob/6219e6ac46c2e020.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_yvnyi7hxcv55gjwq/6219e6ac46c2e02013e32c92d22f2961826c2bad381c50e90b0e16837e5ea3a1.json

Then /plugin install regen-schema@markdownregistry-yvnyi7hxcv55gjwq in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: regen-schema
description: "Use after changing config fields, schema tags, nested types or cmd/schemagen mappings"
---

# regen-schema

The JSON Schema published at `docs/schemas/config.schema.json` is generated from the `config.Config` Go struct.

## When to run

Any of:

- Changed a field on `config.Config` or a type it contains, including nested types in other `internal/config/` files.
- Changed a serialized name or schema constraint (`yaml:`, `json:`, `jsonschema:`, or `jsonschema_description:`).
- Changed reflection or custom type mappings in `cmd/schemagen/main.go`.

Changing only the numeric config `version` does not itself change the reflected schema. Regenerate when its schema representation changes.

## Steps

1. `go run ./cmd/schemagen` from the repo root.
2. `git diff docs/schemas/config.schema.json` to confirm the change is what you intended.
3. Include any schema diff with the source change. CI's `Schema drift` job regenerates it and fails on a diff. A source-only change that leaves the schema identical needs no artificial schema edit.

Never hand-edit the schema file. The next regen overwrites it.