adapto-schema-apply

Solid

Apply an approved .adapto/schema-plan.json to the CMS — create Article categories and custom collections (with a two-pass step for references), idempotently, via the adapto CLI. Plan-then-apply; writes content. Pairs with adapto:schema-design.

API & Backend 1 stars 0 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
10
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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>": "<id...

Details

Author
adaptocms
Repository
adaptocms/adapto-cms-agent-skills
Created
1 months ago
Last Updated
4 days ago
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category