Skip to content
Back to skills

Regen Schema

ASecurity

Use after changing config fields, schema tags, nested types or cmd/schemagen mappings

  • 31 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 23, 2026
ai-agentsgogit

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add Chemaclass/agnostic-ai --skill regen-schema --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Regen Schema?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Regen Schema
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/chemaclass-regen-schema/badge)](https://www.skillsdirectory.com/skills/chemaclass-regen-schema)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.