@se-studio/skills 1.10.23 → 1.10.25

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @se-studio/skills
2
2
 
3
+ ## 1.10.25
4
+
5
+ ### Patch Changes
6
+
7
+ - f4aff48: Component and collection scaffolds no longer include a Registration banner comment above the registration export.
8
+
9
+ ## 1.10.24
10
+
11
+ ### Patch Changes
12
+
13
+ - 281b929: Publish `@se-studio/contentful-cms` as editor-pack management only (`editor-pack generate`, `project validate`, `project doctor`, `host pack-publish`). The hosted editor stays in this repo for `apps/cms-edit-host` and is not in the npm tarball. Skills install from `@se-studio/skills` only.
14
+
15
+ Do not promote this to npm while a customer host still imports `@se-studio/contentful-cms/hosted/next`.
16
+
3
17
  ## 1.10.23
4
18
 
5
19
  ### Patch Changes
package/README.md CHANGED
@@ -62,26 +62,9 @@ Claude Code uses a naive frontmatter parser; violations cause descriptions to si
62
62
  3. Sync: `pnpm skills:sync` (copies `skills/` → `.agents/skills/` and `references/` → `.agents/references/`, then strips `AGENTS.md` next to `SKILL.md`)
63
63
  4. Add a changeset if publishing `@se-studio/skills`
64
64
 
65
- ### cms-edit bundled skills (`@se-studio/contentful-cms`)
65
+ cms-edit skills publish only from this package. `@se-studio/contentful-cms` is the editor-pack CLI and does not ship a skills copy.
66
66
 
67
- The CLI ships a **subset** of skills under `packages/contentful-cms/skills/` for `cms-edit skill install`. Those files are **generated** from this package:
68
-
69
- | Canonical source (`packages/skills/skills/`) | Bundled name (`packages/contentful-cms/skills/`) |
70
- |---------------------------------------------|--------------------------------------------------|
71
- | `contentful-cms-core` | `core` |
72
- | `contentful-cms-editor-tasks` | `editor-tasks` |
73
- | `contentful-cms-templates` | `templates` |
74
- | `contentful-cms-setup` | `setup` |
75
-
76
- After editing any `contentful-cms-*` skill here, run:
77
-
78
- ```bash
79
- pnpm --filter @se-studio/contentful-cms sync:skills
80
- ```
81
-
82
- Do not edit `packages/contentful-cms/skills/` directly. See `packages/contentful-cms/docs/SKILLS.md`.
83
-
84
- **Do not use `.claude/skills/` in the repo** as a skill source — it is untracked and local. Use `.agents/skills/` (in this monorepo via `pnpm skills:sync`, in a customer site via `skills-npm`) or `cms-edit skill install`.
67
+ **Do not use `.claude/skills/` in the repo** as a skill source — it is untracked and local. Use `.agents/skills/` (in this monorepo via `pnpm skills:sync`, in a customer site via `skills-npm`).
85
68
 
86
69
  ## Core-only skills
87
70
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@se-studio/skills",
3
- "version": "1.10.23",
3
+ "version": "1.10.25",
4
4
  "description": "SE Studio agent skills for marketing site development with Contentful CMS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -7,11 +7,11 @@ description: "Edit Contentful drafts via hosted cms-edit MCP (open → snapshot
7
7
 
8
8
  Use this skill when you need to read or edit content in Contentful using **hosted cms-edit MCP** (`cms_edit` with an `args` array). Command names match the old CLI (`open` → `snapshot` → `read` → `set`/`rtf` → `diff` → `save`).
9
9
 
10
- **Do not** run the local `cms-edit` binary for content. It refuses `open`, `save`, `set`, and other content commands. Local CLI is only for `host`, `editor-pack`, `patterns`, `project`, `schema`, and `guide`.
10
+ **Do not** run the local `cms-edit` binary for content, schema, guide, or page patterns. The published binary only runs `editor-pack generate`, `project validate`, `project doctor`, `host pack-publish`, and `version`. Content commands, including `schema`, are hosted MCP args (`cms_edit`), not a shell command.
11
11
 
12
- **Scope: content only.** cms-edit edits entries and assets. It does **not** change the content model (content types, fields, validations, enums such as `componentType` or colours). `schema` commands are read-only. If a field, type or enum value is missing, stop and use skill **`contentful-cms-content-model`** (Contentful CLI + numbered migrations); do not work around it.
12
+ **Scope: content only.** cms-edit edits entries and assets. It does **not** change the content model (content types, fields, validations, enums such as `componentType` or colours). `schema` on hosted MCP is read-only. If a field, type or enum value is missing, stop and use skill **`contentful-cms-content-model`** (Contentful CLI + numbered migrations); do not work around it.
13
13
 
14
- **Page patterns (local):** `cms-edit patterns generate --project-config cms-edit/<site>/project.json` writes live family stacks from the Delivery API. Hosted agents read `cms-edit://customer/page-patterns` after editor-pack generate.
14
+ **Page patterns:** refresh `docs/cms-editor/<projectKey>/page-patterns.md` in the site repo, then `cms-edit editor-pack generate --project-config cms-edit/<site>/project.json`. The published CLI does not include `patterns generate`. Hosted agents read `cms-edit://customer/page-patterns` after that generate.
15
15
 
16
16
  **Before editing:** use skill **`contentful-cms-editor-tasks`** to read `tasks-index` and the matching capability playbook for this site (hosted MCP or local `cms-edit/<site>/editor-pack/`).
17
17
 
@@ -44,7 +44,7 @@ Use this skill when you need to read or edit content in Contentful using **hoste
44
44
  - `.contentful-cms.json` must exist in the project root (or ancestor directory)
45
45
  - A Contentful Management Token with editor-only permissions (no publish rights) must be set as an env var and referenced in the config
46
46
 
47
- To get the path to the full README (e.g. for an LLM to read): `cms-edit --docs`
47
+ Content command detail is `packages/contentful-cms/docs/hosted-command-reference.md` in se-core-product. `cms-edit --docs` prints the pack CLI readme, which does not document content commands.
48
48
 
49
49
  ## Core Workflow
50
50
 
@@ -424,6 +424,8 @@ Template **`menu`** is site-wide. **`page.menu`** overrides one page. Header CTA
424
424
 
425
425
  `peek` is one-shot. `open` / `nav open` persist. `preview urls /slug` follows that slug even if session `_mcp` is another page.
426
426
 
427
+ **Before editing a component, or replacing an image, check whether it is shared:** `usages --id <entry-id>` (or `--asset <asset-id>`; no session). It lists the entries that link to it and the pages that show it. If `sharedAcrossPages` or `siteWide` is true, the edit changes more than one page: tell the user which. Only trust `sharedAcrossPages: false` when `complete` is true; otherwise read `notes`.
428
+
427
429
  The items array field may be `entries`, `items`, or `navigationItems` — inspect `read @root` before `set @root … --links`.
428
430
 
429
431
  ## Create New Entries
@@ -65,32 +65,27 @@ Check:
65
65
 
66
66
  ### Page inventory
67
67
 
68
- Build the category table from **Delivery page-patterns**, not sitemap prefixes alone:
68
+ Build the category table from the site's page-patterns handbook, not sitemap prefixes alone.
69
69
 
70
- ```bash
71
- cms-edit patterns generate --project-config cms-edit/<site>/project.json
72
- # writes docs/cms-editor/<projectKey>/page-patterns.json + page-patterns.md
73
- ```
70
+ Refresh `docs/cms-editor/<projectKey>/page-patterns.md` in the site repo before generate. The published CLI does not include `cms-edit patterns generate`.
74
71
 
75
72
  1. Read `page-patterns.md` — each **family** is a candidate playbook (including nested children)
76
73
  2. Use each family's `cloneSlug` as the canonical clone source
77
74
  3. Nested children (e.g. `what-we-treat/anxiety/types`) get their **own** specialized playbook
78
75
  4. Flags: `low-majority-campaign` / `unique-compositions` → document the skeleton and clone the nearest sibling; do **not** invent one canonical stack. `empty-body` article types are template-owned.
79
- 5. Sitemap / `peek` only to confirm public URLs and copy, not to discover families
80
-
81
- Requires `CONTENTFUL_ACCESS_TOKEN` (Delivery). If generate cannot run, say so and fall back to sitemap prefixes.
76
+ 5. Sitemap only to confirm public URLs and copy, not to discover families. `peek` is a hosted MCP command, not the published binary.
82
77
 
83
78
  ### CMS capabilities
84
79
 
85
- With dev server + tokens in `.env.local`:
80
+ From the customer repo, the published CLI is:
86
81
 
87
82
  ```bash
88
83
  cms-edit project validate --project-config cms-edit/<site>/project.json
89
- cms-edit editor-pack generate --project-config cms-edit/<site>/project.json # dry run if pack exists
90
- cms-edit list --type template
91
- cms-edit peek --page-slug /about # adjust per site
84
+ cms-edit editor-pack generate --project-config cms-edit/<site>/project.json
92
85
  ```
93
86
 
87
+ Template inventory and page snapshots (`list`, `peek`) go through hosted MCP, not this binary.
88
+
94
89
  Read generated `capabilities.json` (or editor-pack copy) for `content.pages`, `content.articles`, `content.persons`.
95
90
 
96
91
  ### Skip rules
@@ -27,13 +27,13 @@ Run after any of these change:
27
27
 
28
28
  | Action | Automatic on git push? |
29
29
  |--------|------------------------|
30
- | Copy **committed** `editor-pack/` into cms-edit-host | Yes (`cms-edit host stage` via `stage-site.mjs` on Vercel build) |
30
+ | Copy **committed** `editor-pack/` into cms-edit-host | Yes (`stageEditorPack` from `apps/cms-edit-host/scripts/stage-site.mjs` on Vercel build). Not the `cms-edit` CLI. |
31
31
  | Run `editor-pack generate` | **No** — always manual (this skill) |
32
32
  | Update hosted guide/prompts from `@se-studio/contentful-cms` | Redeploy host after bumping package version |
33
33
 
34
34
  Editors do **not** reconnect Claude Integrations when only the editor pack changes.
35
35
 
36
- **Staging:** `stage-site.mjs` copies committed artifacts into `cms-edit/host/` before build. Requires `CMS_EDIT_ROOT` on Vercel. Single-site repos default to `cms-edit` locally; multi-site repos need `CMS_EDIT_ROOT` in `cms-edit/host/.env.local`. Run manually with `pnpm cms-edit:stage` (or site-specific variant).
36
+ **Staging:** `apps/cms-edit-host/scripts/stage-site.mjs` calls `stageEditorPack` before build. It is not `cms-edit host stage`. Requires `CMS_EDIT_ROOT` on Vercel.
37
37
 
38
38
  ## Step 1 — Locate config
39
39
 
@@ -62,13 +62,7 @@ pnpm cms-edit:editor-pack
62
62
 
63
63
  **Generic / multi-site:**
64
64
 
65
- If Delivery credentials are in `.env.local` and `docs/cms-editor/<projectKey>/page-patterns.md` is missing or stale, refresh families first:
66
-
67
- ```bash
68
- cms-edit patterns generate --project-config cms-edit/<site>/project.json
69
- ```
70
-
71
- Then:
65
+ `cms-edit patterns generate` is not part of the published CLI. Refresh `docs/cms-editor/<projectKey>/page-patterns.md` in the site repo before generating when that file is missing or stale. Then:
72
66
 
73
67
  ```bash
74
68
  cms-edit editor-pack generate --project-config cms-edit/<site>/project.json
@@ -95,7 +95,7 @@ For engineering work in a site repo (Cursor, Grok, terminal):
95
95
 
96
96
  1. Configure `.contentful-cms.json` in the project (or `~/.contentful-cms.json`) with space credentials
97
97
  2. Skills come from the repo's `@se-studio/skills` dependency, linked by `skills-npm` on `pnpm install` (in the core monorepo: `pnpm skills:sync`). A project without the dependency can run `npx skills add @se-studio/skills` once
98
- 3. Bundled cms-edit skills (`core`, `setup`, etc.) are included in the package
98
+ 3. Skills install from `@se-studio/skills` only. `@se-studio/contentful-cms` does not ship a skills copy. Its published binary is editor-pack management (`editor-pack generate`, `project validate`, `project doctor`, `host pack-publish`)
99
99
  4. Read `cms-edit/<site>/editor-pack/tasks-index.md` before editing content
100
100
 
101
101
  Do **not** register a local `mcpServers.cms-edit` entry in Claude Desktop — use the hosted connector URL instead.
@@ -253,7 +253,6 @@ const MyCollectionRenderer: CollectionRenderer<ICollection> = ({
253
253
 
254
254
  export default MyCollectionRenderer;
255
255
 
256
- // 6. Layer 4: Registration
257
256
  export const MyCollectionRegistration = defineCollection({
258
257
  name: 'My Collection', // Must match CMS collectionType
259
258
  renderer: MyCollectionRenderer,
@@ -205,7 +205,6 @@ const MyNew: ComponentRenderer<IComponent> = ({
205
205
 
206
206
  export default MyNew;
207
207
 
208
- // 5. Layer 4: Registration
209
208
  export const MyNewRegistration = defineComponent({
210
209
  name: 'My New Component', // Must match CMS componentType
211
210
  renderer: MyNew,