@bettercms-ai/mcp 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/SKILL.md CHANGED
@@ -16,13 +16,23 @@ behind them.
16
16
  - **Additive where possible.** `add_field`/`add_page_field` append; passing `fields`
17
17
  to `update_form` or `blockJson` to `update_component` REPLACES — include everything
18
18
  you want to keep.
19
+ - **Drafts are invisible.** A component you create is a DRAFT, and a draft component
20
+ renders as an empty string on the live site — no error, no placeholder. Call
21
+ `publish_component` on every component you place, then publish the page.
19
22
 
20
23
  ## Pages & schema
21
- Design the project's schema from its code the connected repo, or, for an uploaded
22
- project, its source in your working directory. Destructure each page into a tree:
23
- plain fields, **group** (one nested object), **repeater** (a repeatable array). Then
24
- `create_page` per page. (See the `propose_schema` prompt.) Pages created here show up
25
- in the dashboard Content tab.
24
+ Decide the architecture before the first call. A marketing site is **components-first**:
25
+ a library of `create_component` sections, each with a `sectionType` and a library
26
+ category, placed on pages via `create_page`'s `blockJson` as `component` blocks. A blog or
27
+ catalogue is **schema-first**: a `create_content_model` collection whose body field is
28
+ `document` (the article canvas — collections only, one per model, top level).
29
+
30
+ Within a page's own schema, destructure into a tree: plain fields, **group** (one nested
31
+ object), **repeater** (a repeatable array). Never a 1-item repeater, never a repeater of a
32
+ single text (that is `array`).
33
+
34
+ The full decision tree, section anatomy, variant rules and build order live in the
35
+ `propose_schema` prompt and in the `bettercms://playbook/schema` resource.
26
36
 
27
37
  ## Forms
28
38
  Tools: `list_forms`, `get_form`, `create_form`, `update_form`.