@se-studio/skills 1.10.22 → 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 +20 -0
- package/README.md +2 -19
- package/package.json +1 -1
- package/skills/architecture-review/SKILL.md +1 -1
- package/skills/contentful-cms-core/SKILL.md +6 -4
- package/skills/contentful-cms-create-editor-playbooks/SKILL.md +7 -12
- package/skills/contentful-cms-regenerate-editor-pack/SKILL.md +3 -9
- package/skills/contentful-cms-setup/SKILL.md +1 -1
- package/skills/se-marketing-sites-create-collection/SKILL.md +0 -1
- package/skills/se-marketing-sites-create-component/SKILL.md +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
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
|
+
|
|
17
|
+
## 1.10.23
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 89a4275: R2.7 asks which code a core change affects and whether consumers need a bump or a call-site change. Name the API or behaviour, not a customer site.
|
|
22
|
+
|
|
3
23
|
## 1.10.22
|
|
4
24
|
|
|
5
25
|
### 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
|
-
|
|
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
|
-
|
|
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
|
@@ -31,7 +31,7 @@ Map the diff to the sections and ask only the questions that apply. Each range i
|
|
|
31
31
|
|
|
32
32
|
| Area | Rules | Core question |
|
|
33
33
|
|---|---|---|
|
|
34
|
-
| Placement | R2.1 to R2.7 | Does a second site need this? Is a customer workaround, patch or fork hiding a core bug (R2.1b, R2.3, R2.5)? Is an extension point generic, not per-customer (R2.6)? Does the PR
|
|
34
|
+
| Placement | R2.1 to R2.7 | Does a second site need this? Is a customer workaround, patch or fork hiding a core bug (R2.1b, R2.3, R2.5)? Is an extension point generic, not per-customer (R2.6)? Does the PR name the affected API or behaviour, and whether consumers need a bump or a call-site change, without naming a customer site (R2.7)? |
|
|
35
35
|
| Site shape | R3.1 to R3.7 | Does it stay inside the T0/T1 tiers, with deviations commented and recorded (R3.6)? |
|
|
36
36
|
| Schema | R4.0 to R4.8 | Is it a numbered, idempotent migration (R4.5, R4.5a), in core first (R4.7), with a distinct type per different UI (R4.2a)? |
|
|
37
37
|
| Rendering | R5.1 to R5.28 | Four layers, server/client boundary, no catalogue fetch in a component (R5.23), fail closed (R5.21), no RTF flattening (R5.19), no invented links or copy (R5.20). |
|
|
@@ -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
|
|
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`
|
|
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
|
|
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
|
-
|
|
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
|
|
68
|
+
Build the category table from the site's page-patterns handbook, not sitemap prefixes alone.
|
|
69
69
|
|
|
70
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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`
|
|
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
|
-
|
|
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.
|
|
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,
|