adapto-schema-applylisted
Install: claude install-skill adaptocms/adapto-cms-agent-skills
# adapto:schema-apply
The **gated writer** of the schema pair. It reads `.adapto/schema-plan.json` (produced by
`adapto:schema-design`) and creates the **Article categories** and **custom collections** it describes via
the `adapto` CLI. It is **idempotent and re-runnable** ��� existing collections/categories are reused or
updated, never duplicated.
## When to use
- After `adapto:schema-design` produced (and you've eyeballed or hand-edited) `.adapto/schema-plan.json`, and
you're ready to create those collections + categories in Adapto.
- Triggers: "apply the schema", "create the collections", "build my schema in Adapto".
## When not to use
- No plan file yet → run `adapto:schema-design` first.
- Seeding content rows into the collections → `adapto:content-seed`.
## Inputs
- **`.adapto/schema-plan.json`** — the approved plan (collections, categories, language). Missing/invalid →
stop and route to `adapto:schema-design`.
- **The working tenant** — confirm it explicitly; never assume the saved/active one. With
2+ tenants, have the user pick; with one, state it and proceed.
## Outputs
- The plan's **Article categories** and **custom collections** created (or updated) in the CMS, `draft`
unless the plan says otherwise.
- The reserved **`_adapto_seo`** collection ensured (the CMS home for per-piece SEO metadata —
[reserved-slugs.md](../../shared/reserved-slugs.md)), so `adapto:content-upload` can write metadata.
- A realized **`.adapto/schema.json`** — a `{"<slug>": "<