@se-studio/contentful-cms 2.5.0 → 2.5.1
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 +6 -0
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/docs/editor-tasks/article-tags.md +47 -0
- package/docs/editor-tasks/authors-import.md +53 -0
- package/docs/editor-tasks/bulk-find-replace.md +52 -0
- package/docs/editor-tasks/clone-page.md +39 -0
- package/docs/editor-tasks/create-article.md +46 -0
- package/docs/editor-tasks/create-from-document.md +45 -0
- package/docs/editor-tasks/create-page.md +41 -0
- package/docs/editor-tasks/edit-rich-text.md +44 -0
- package/docs/editor-tasks/edit-scalar-fields.md +47 -0
- package/docs/editor-tasks/featured-images.md +46 -0
- package/docs/editor-tasks/media-reuse-and-upload.md +51 -0
- package/docs/editor-tasks/navigation.md +39 -0
- package/docs/editor-tasks/preview-verify.md +38 -0
- package/docs/editor-tasks/publish-handoff.md +36 -0
- package/docs/editor-tasks/seo-descriptions.md +48 -0
- package/docs/editor-tasks/taxonomy.md +51 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Capability: Article tags
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- update article tags
|
|
6
|
+
- retag articles
|
|
7
|
+
- add tags to blog posts
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
`articles` and `tags`
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- `cms_edit ["index", "sync"]`
|
|
16
|
+
- Resolve tag IDs: `resolve --tag-slug <slug> --tag-type-slug <type>` or `list --type tag`
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
|
|
20
|
+
**Batch (many articles):**
|
|
21
|
+
|
|
22
|
+
1. Build `tags.json` with an `articles` array (see `cms-edit help article-tags-from-json`)
|
|
23
|
+
2. `cms_edit ["article-tags-from-json", "--file", "tags.json", "--dry-run"]`
|
|
24
|
+
3. User confirms tag slugs per article
|
|
25
|
+
4. `cms_edit ["article-tags-from-json", "--file", "tags.json"]`
|
|
26
|
+
|
|
27
|
+
**Single article (session):**
|
|
28
|
+
|
|
29
|
+
1. `cms_edit ["open", "--article-slug", "<slug>"]`
|
|
30
|
+
2. `cms_edit ["set", "@p0", "tags", "<id1>,<id2>", "--links"]` (or `--append`)
|
|
31
|
+
3. `cms_edit ["diff"]` → `cms_edit ["save"]`
|
|
32
|
+
|
|
33
|
+
## Confirmation gates
|
|
34
|
+
|
|
35
|
+
1. List target articles and tag slugs — user confirms
|
|
36
|
+
2. `diff` before each `save` when using sessions
|
|
37
|
+
|
|
38
|
+
## Out of scope
|
|
39
|
+
|
|
40
|
+
- Publish
|
|
41
|
+
- Creating new tags (see **Taxonomy** capability first)
|
|
42
|
+
|
|
43
|
+
## Related resources
|
|
44
|
+
|
|
45
|
+
- `cms-edit://customer/articles`
|
|
46
|
+
- `task-taxonomy`
|
|
47
|
+
- `cms-edit help article-tags-from-json`
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Capability: Authors (person entries)
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- create authors
|
|
6
|
+
- import people from spreadsheet
|
|
7
|
+
- add team members to CMS
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
`persons`
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- `cms_edit ["index", "sync"]` if linking to articles
|
|
16
|
+
- Convert spreadsheet to a structured list (name, slug, jobTitle, bio, email)
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
|
|
20
|
+
**Batch import (recommended):**
|
|
21
|
+
|
|
22
|
+
1. Build `authors.json` with a `persons` array (see `cms-edit help person-from-json`)
|
|
23
|
+
2. `cms_edit ["create", "person-from-json", "--file", "authors.json", "--dry-run"]`
|
|
24
|
+
3. User confirms the list
|
|
25
|
+
4. `cms_edit ["create", "person-from-json", "--file", "authors.json", "--if-not-exists"]`
|
|
26
|
+
|
|
27
|
+
**Single person:**
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
cms_edit ["create", "person", "--slug", "<slug>", "--name", "<name>", "--job-title", "…", "--bio-markdown", "…"]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Link to articles:**
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
cms_edit ["open", "--article-slug", "<slug>"]
|
|
37
|
+
cms_edit ["set", "@p0", "authors", "<personId1>,<personId2>", "--links"]
|
|
38
|
+
cms_edit ["diff"] → cms_edit ["save"]
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Confirmation gates
|
|
42
|
+
|
|
43
|
+
1. Show person list from spreadsheet — user confirms
|
|
44
|
+
2. `diff` before `save` when using sessions
|
|
45
|
+
|
|
46
|
+
## Out of scope
|
|
47
|
+
|
|
48
|
+
- Publish
|
|
49
|
+
|
|
50
|
+
## Related resources
|
|
51
|
+
|
|
52
|
+
- `cms-edit://customer/routing` (people URL base if configured)
|
|
53
|
+
- `cms-edit help person-from-json`
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Capability: Bulk find-replace in rich text
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- find and replace across pages
|
|
6
|
+
- change text sitewide in body copy
|
|
7
|
+
- update legal boilerplate everywhere
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
`bulkRtfFindReplace`
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- `cms_edit ["index", "sync"]` if catalog may be stale
|
|
16
|
+
- `cms_edit ["sitemap"]` or `cms_edit ["search", "<find text>"]` to list affected entries
|
|
17
|
+
- Read `cms-edit://customer/routing` for slug rules
|
|
18
|
+
|
|
19
|
+
## Steps
|
|
20
|
+
|
|
21
|
+
1. **Discover scope** — `search` or `sitemap`; propose affected page/article count to the user
|
|
22
|
+
2. **Dry-run bulk replace:**
|
|
23
|
+
```
|
|
24
|
+
cms_edit ["bulk-rtf-replace", "--find", "…", "--replace-plain", "…", "--dry-run"]
|
|
25
|
+
```
|
|
26
|
+
Optional: `--include article`, `--prefix resources/blog`
|
|
27
|
+
3. **User approves** find/replace text and match count
|
|
28
|
+
4. **Apply:**
|
|
29
|
+
```
|
|
30
|
+
cms_edit ["bulk-rtf-replace", "--find", "…", "--replace-plain", "…"]
|
|
31
|
+
```
|
|
32
|
+
5. Summarize how many entries were updated
|
|
33
|
+
|
|
34
|
+
For a **small** number of entries, or when per-entry `diff` is required, use session workflow: `open` → `rtf replace` → `diff` → `save`.
|
|
35
|
+
|
|
36
|
+
For scalar fields on many entries (when the field exists on this schema), prefer `batch set` with entry IDs.
|
|
37
|
+
|
|
38
|
+
## Confirmation gates
|
|
39
|
+
|
|
40
|
+
1. Propose find/replace text and affected entry count — **wait for user approval**
|
|
41
|
+
2. Dry-run before apply
|
|
42
|
+
3. Report summary when complete
|
|
43
|
+
|
|
44
|
+
## Out of scope
|
|
45
|
+
|
|
46
|
+
- Publish
|
|
47
|
+
|
|
48
|
+
## Related resources
|
|
49
|
+
|
|
50
|
+
- `cms-edit://customer/capabilities`
|
|
51
|
+
- `cms-edit://customer/site-facts` (if present — canonical values to apply)
|
|
52
|
+
- `cms-edit help bulk-rtf-replace`
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Capability: Clone page structure
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- copy page layout
|
|
6
|
+
- duplicate page structure
|
|
7
|
+
- use existing page as template
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
`pages`
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- Identify source page slug and target slug/title
|
|
16
|
+
- Read `cms-edit://customer/components-index`
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
|
|
20
|
+
1. `cms_edit ["open", "--page-slug", "<source-slug>"]`
|
|
21
|
+
2. `cms_edit ["snapshot"]` — note template and component tree
|
|
22
|
+
3. `cms_edit ["list", "--type", "template"]` — confirm template ID
|
|
23
|
+
4. Build `create from-json` payload mirroring structure with new slug/title
|
|
24
|
+
5. `create from-json --dry-run --strict` → create → `save`
|
|
25
|
+
6. Adjust copy/fields on the new page
|
|
26
|
+
|
|
27
|
+
## Confirmation gates
|
|
28
|
+
|
|
29
|
+
1. Confirm source page, new slug, and title
|
|
30
|
+
2. `--dry-run --strict` before create
|
|
31
|
+
|
|
32
|
+
## Out of scope
|
|
33
|
+
|
|
34
|
+
- Publish
|
|
35
|
+
|
|
36
|
+
## Related resources
|
|
37
|
+
|
|
38
|
+
- `cms-edit://customer/components-index`
|
|
39
|
+
- `task-create-page`
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Capability: Create an article
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- create a blog post
|
|
6
|
+
- new article
|
|
7
|
+
- add publication
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
`articles`
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- Read `cms-edit://customer/articles`, `defaults`, `routing`, `components-index`
|
|
16
|
+
- `cms_edit ["index", "sync"]`
|
|
17
|
+
- `cms_edit ["list", "--type", "articleType"]` — every article needs an article type
|
|
18
|
+
|
|
19
|
+
## Steps
|
|
20
|
+
|
|
21
|
+
1. Resolve article type slug/name
|
|
22
|
+
2. Ask about custom featured image; otherwise apply `defaults` inheritance rules
|
|
23
|
+
3. Build `create from-json` payload (article + components from articles playbook)
|
|
24
|
+
4. `cms_edit ["create", "from-json", "--file", "<path>", "--dry-run", "--strict"]`
|
|
25
|
+
5. On approval, create and `save`
|
|
26
|
+
|
|
27
|
+
Or minimal shell:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
cms_edit ["create", "article", "--slug", "<slug>", "--title", "<title>", "--article-type-slug", "<type>"]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Confirmation gates
|
|
34
|
+
|
|
35
|
+
1. Confirm slug, title, article type, featured image choice
|
|
36
|
+
2. `--dry-run --strict` before create
|
|
37
|
+
3. `diff` before `save`
|
|
38
|
+
|
|
39
|
+
## Out of scope
|
|
40
|
+
|
|
41
|
+
- Publish
|
|
42
|
+
|
|
43
|
+
## Related resources
|
|
44
|
+
|
|
45
|
+
- `cms-edit://customer/articles`
|
|
46
|
+
- `cms-edit://customer/defaults`
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Capability: Create from a document
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- create from Google Doc
|
|
6
|
+
- import from document
|
|
7
|
+
- build page from a brief
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
`pages` or `articles`
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- Fetch document content (Google Drive MCP, paste, or `site-workflows-copy-doc-snapshot` in dev repos)
|
|
16
|
+
- Read `cms-edit://customer/components-index`, `routing`, `articles` (if article)
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
|
|
20
|
+
1. Read `cms-edit://customer/tasks-index` and relevant playbooks
|
|
21
|
+
2. **Infer structure** — map sections to component types from `components-index`
|
|
22
|
+
3. **Propose plan** in plain English: slug, title, template/article type, component list — **ask user to confirm**
|
|
23
|
+
4. For pages: `list --type template` — pick template
|
|
24
|
+
5. Build `create from-json` payload
|
|
25
|
+
6. `cms_edit ["create", "from-json", "--file", "<path>", "--dry-run", "--strict"]`
|
|
26
|
+
7. On approval, create and `save`
|
|
27
|
+
8. Remind user to publish in Contentful UI
|
|
28
|
+
|
|
29
|
+
Use MCP prompts `cms_edit_create_from_doc` or `cms_edit_create_article_from_doc` when available.
|
|
30
|
+
|
|
31
|
+
## Confirmation gates
|
|
32
|
+
|
|
33
|
+
1. Plain-English plan — mandatory user confirmation before create
|
|
34
|
+
2. `--dry-run --strict`
|
|
35
|
+
3. `diff` before `save`
|
|
36
|
+
|
|
37
|
+
## Out of scope
|
|
38
|
+
|
|
39
|
+
- Publish
|
|
40
|
+
- Asset upload without reuse check (see **Media** capability)
|
|
41
|
+
|
|
42
|
+
## Related resources
|
|
43
|
+
|
|
44
|
+
- `cms-edit://customer/components-index`
|
|
45
|
+
- `task-media-reuse-and-upload`
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Capability: Create a page
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- create a new page
|
|
6
|
+
- add a landing page
|
|
7
|
+
- new marketing page
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
`pages`
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- Read `cms-edit://customer/components-index` and `cms-edit://customer/routing`
|
|
16
|
+
- `cms_edit ["index", "sync"]` for template lookup
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
|
|
20
|
+
1. `cms_edit ["list", "--type", "template"]` — pick template ID
|
|
21
|
+
2. `cms_edit ["create", "page", "--slug", "<slug>", "--title", "<title>", "--template-id", "<id>"]`
|
|
22
|
+
3. `cms_edit ["snapshot"]` — review structure
|
|
23
|
+
4. Add components: `add <ComponentType>`; set fields with `set` / `rtf`
|
|
24
|
+
5. `cms_edit ["diff"]` → `cms_edit ["save"]`
|
|
25
|
+
|
|
26
|
+
For multi-component pages, prefer `create from-json` with `--dry-run --strict` first.
|
|
27
|
+
|
|
28
|
+
## Confirmation gates
|
|
29
|
+
|
|
30
|
+
1. Confirm slug, title, and template with user
|
|
31
|
+
2. `create from-json --dry-run --strict` before create when using JSON
|
|
32
|
+
3. `diff` before `save`
|
|
33
|
+
|
|
34
|
+
## Out of scope
|
|
35
|
+
|
|
36
|
+
- Publish
|
|
37
|
+
|
|
38
|
+
## Related resources
|
|
39
|
+
|
|
40
|
+
- `cms-edit://customer/components-index`
|
|
41
|
+
- `task-create-from-document` for doc-driven pages
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Capability: Edit rich text
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- edit body copy
|
|
6
|
+
- update a paragraph
|
|
7
|
+
- change rich text content
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
Always available.
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- Open session on the target page or article
|
|
16
|
+
- `snapshot` to locate RTF fields on `@ref` nodes
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
|
|
20
|
+
1. `cms_edit ["open", "--page-slug", "<slug>"]`
|
|
21
|
+
2. `cms_edit ["snapshot"]`
|
|
22
|
+
3. `cms_edit ["read", "@cN", "body"]` — inspect RTF field name
|
|
23
|
+
4. `cms_edit ["rtf", "@cN", "body", "--content", "<markdown or plain>"]`
|
|
24
|
+
5. `cms_edit ["diff"]`
|
|
25
|
+
6. `cms_edit ["save"]`
|
|
26
|
+
|
|
27
|
+
For partial updates within one RTF field:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
cms_edit ["rtf", "replace", "@cN", "body", "--find", "old text", "--replace-plain", "new text"]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Confirmation gates
|
|
34
|
+
|
|
35
|
+
1. Identify the `@ref` and field before editing
|
|
36
|
+
2. Show `diff` before `save`
|
|
37
|
+
|
|
38
|
+
## Out of scope
|
|
39
|
+
|
|
40
|
+
- Publish
|
|
41
|
+
|
|
42
|
+
## Related resources
|
|
43
|
+
|
|
44
|
+
- `cms-edit://customer/components-index`
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Capability: Edit scalar fields
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- change a field on a page or article
|
|
6
|
+
- update title or description
|
|
7
|
+
- set a tracking field
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
Always available.
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- Open the target entry: `open --page-slug` or `open --article-slug`
|
|
16
|
+
- `snapshot` to find `@ref` IDs
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
|
|
20
|
+
1. `cms_edit ["open", "--page-slug", "<slug>"]` (or `--article-slug`)
|
|
21
|
+
2. `cms_edit ["snapshot"]`
|
|
22
|
+
3. `cms_edit ["read", "@p0", "fieldName"]` — inspect current value
|
|
23
|
+
4. `cms_edit ["set", "@p0", "fieldName", "new value"]`
|
|
24
|
+
5. `cms_edit ["diff"]` — review all changes
|
|
25
|
+
6. `cms_edit ["save"]`
|
|
26
|
+
|
|
27
|
+
For unrelated entries in one session, use `batch set`:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
cms_edit ["batch", "set", "<entryId>:description=New meta", "<entryId2>:title=New title"]
|
|
31
|
+
cms_edit ["batch", "save"]
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Confirmation gates
|
|
35
|
+
|
|
36
|
+
1. State which entry and field you will change
|
|
37
|
+
2. Show `diff` before `save`
|
|
38
|
+
|
|
39
|
+
## Out of scope
|
|
40
|
+
|
|
41
|
+
- Publish (human in Contentful UI)
|
|
42
|
+
- Rich text fields (use **Edit rich text** capability)
|
|
43
|
+
|
|
44
|
+
## Related resources
|
|
45
|
+
|
|
46
|
+
- `cms-edit://customer/routing`
|
|
47
|
+
- `cms-edit://customer/components-index`
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Capability: Featured images
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- set featured image
|
|
6
|
+
- social sharing image
|
|
7
|
+
- OG image for article
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
`pages` or `articles`
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- Read `cms-edit://customer/defaults` for article inheritance rules
|
|
16
|
+
- **Reuse-first:** `task-media-reuse-and-upload`
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
|
|
20
|
+
**Articles — decision tree:**
|
|
21
|
+
|
|
22
|
+
1. Custom image on article when editor provides one
|
|
23
|
+
2. Else inherit from linked **articleType** featured image
|
|
24
|
+
3. Else site default from `editor.defaults`
|
|
25
|
+
|
|
26
|
+
**Pages:** optional `featuredImage`; no automatic fallback.
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
cms_edit ["set", "@p0", "featuredImage", "<assetId>", "--links"]
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Or in from-json: `featuredImageAssetFilename` after `index sync`.
|
|
33
|
+
|
|
34
|
+
## Confirmation gates
|
|
35
|
+
|
|
36
|
+
1. Confirm image choice (custom vs inherited)
|
|
37
|
+
2. `diff` before `save`
|
|
38
|
+
|
|
39
|
+
## Out of scope
|
|
40
|
+
|
|
41
|
+
- Publish
|
|
42
|
+
|
|
43
|
+
## Related resources
|
|
44
|
+
|
|
45
|
+
- `cms-edit://customer/defaults`
|
|
46
|
+
- `task-media-reuse-and-upload`
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Capability: Media — reuse and upload
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- upload image
|
|
6
|
+
- find existing asset
|
|
7
|
+
- add photo to page or article
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
`assetSearch` and `assetUpload`
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- **Always run `index sync` first** if the catalog may be stale
|
|
16
|
+
|
|
17
|
+
## Reuse-first workflow (default)
|
|
18
|
+
|
|
19
|
+
1. `cms_edit ["index", "sync"]`
|
|
20
|
+
2. **Search existing assets:**
|
|
21
|
+
- `cms_edit ["asset", "search", "--filename-match", "<partial-name>"]`
|
|
22
|
+
- `cms_edit ["list", "--type", "media", "--asset-filename-match", "<partial>"]`
|
|
23
|
+
3. If match found — link by asset ID or filename in `set` / `create from-json` (`featuredImageAssetFilename`, `visualAssetFilename`, etc.)
|
|
24
|
+
4. Or `cms_edit ["create", "media", "--asset-id", "<id>", "--name", "…"]` for RTF embeds
|
|
25
|
+
|
|
26
|
+
## Upload only when no match
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
cms_edit ["asset", "upload", "./file.jpg", "--title", "…", "--if-exists-by-filename"]
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Sources: local `--file`, `--url <https>`, or `--base64` with `--mime`.
|
|
33
|
+
|
|
34
|
+
Optional Media wrapper:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
cms_edit ["asset", "upload", "./figure.png", "--with-media", "--media-name", "Figure 1"]
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Confirmation gates
|
|
41
|
+
|
|
42
|
+
1. Report search results before uploading
|
|
43
|
+
2. Confirm upload filename/title with user if ambiguous
|
|
44
|
+
|
|
45
|
+
## Out of scope
|
|
46
|
+
|
|
47
|
+
- Publish assets (draft upload; human publishes in Contentful UI if needed)
|
|
48
|
+
|
|
49
|
+
## Related resources
|
|
50
|
+
|
|
51
|
+
- `cms-edit://customer/defaults` (featured image rules)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Capability: Navigation
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- update menu
|
|
6
|
+
- change navigation links
|
|
7
|
+
- edit footer
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
`navigation`
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- Read `cms-edit://customer/routing` for URL shapes
|
|
16
|
+
- `cms_edit ["index", "sync"]` for navigation entry lookup
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
|
|
20
|
+
1. `cms_edit ["list", "--type", "navigation"]` — find nav entry
|
|
21
|
+
2. `cms_edit ["nav", "open", "--id", "<navigationId>"]` or by slug
|
|
22
|
+
3. `snapshot` — inspect nav items
|
|
23
|
+
4. Add/clone/link items per navigation commands
|
|
24
|
+
5. `diff` → `save`
|
|
25
|
+
|
|
26
|
+
See `contentful-cms-navigation` skill for full command reference in dev environments.
|
|
27
|
+
|
|
28
|
+
## Confirmation gates
|
|
29
|
+
|
|
30
|
+
1. Confirm which menu (header/footer) and link changes
|
|
31
|
+
2. `diff` before `save`
|
|
32
|
+
|
|
33
|
+
## Out of scope
|
|
34
|
+
|
|
35
|
+
- Publish
|
|
36
|
+
|
|
37
|
+
## Related resources
|
|
38
|
+
|
|
39
|
+
- `cms-edit://customer/routing`
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Capability: Preview verification
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- preview changes
|
|
6
|
+
- check staging
|
|
7
|
+
- verify page looks right
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
Always available.
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- Draft saved (`save` creates drafts)
|
|
16
|
+
- Staging URL from `cms-edit://customer/overview`
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
|
|
20
|
+
1. After `save`, get preview URL:
|
|
21
|
+
```
|
|
22
|
+
cms_edit ["preview", "url", "--page-slug", "<slug>"]
|
|
23
|
+
```
|
|
24
|
+
2. Open in browser (browser MCP in dev environments)
|
|
25
|
+
3. Report visual/layout issues to user before they publish in Contentful
|
|
26
|
+
|
|
27
|
+
## Confirmation gates
|
|
28
|
+
|
|
29
|
+
1. Confirm draft saved before preview
|
|
30
|
+
2. Summarize what to check (headings, CTAs, images)
|
|
31
|
+
|
|
32
|
+
## Out of scope
|
|
33
|
+
|
|
34
|
+
- Publish
|
|
35
|
+
|
|
36
|
+
## Related resources
|
|
37
|
+
|
|
38
|
+
- `cms-edit://customer/overview`
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Capability: Publish handoff
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- publish changes
|
|
6
|
+
- go live
|
|
7
|
+
- make changes live
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
Always available.
|
|
12
|
+
|
|
13
|
+
## What cms-edit does
|
|
14
|
+
|
|
15
|
+
- Creates and updates **drafts only**
|
|
16
|
+
- **Cannot** publish, unpublish, archive, or delete published entries
|
|
17
|
+
|
|
18
|
+
## Handoff steps
|
|
19
|
+
|
|
20
|
+
1. Ensure all edits are saved (`diff` was reviewed)
|
|
21
|
+
2. Tell the user which entries were changed (slugs/titles)
|
|
22
|
+
3. Direct them to **Contentful UI** → filter by draft → review → **Publish**
|
|
23
|
+
4. Optional: `task-preview-verify` on staging before publish
|
|
24
|
+
|
|
25
|
+
## Confirmation gates
|
|
26
|
+
|
|
27
|
+
1. Never claim changes are live until a human publishes
|
|
28
|
+
2. List draft entries awaiting publish
|
|
29
|
+
|
|
30
|
+
## Out of scope
|
|
31
|
+
|
|
32
|
+
- Automated publish (intentionally unsupported)
|
|
33
|
+
|
|
34
|
+
## Related resources
|
|
35
|
+
|
|
36
|
+
- `cms-edit://customer/overview`
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Capability: SEO meta descriptions
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- update meta descriptions
|
|
6
|
+
- improve SEO for Google
|
|
7
|
+
- change page descriptions for search
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
`pages` or `articles`
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- Field name is **`description`** (meta description) on pages and articles
|
|
16
|
+
- `cms_edit ["sitemap"]` for inventory
|
|
17
|
+
|
|
18
|
+
## Steps
|
|
19
|
+
|
|
20
|
+
**Per entry (hosted editors):**
|
|
21
|
+
|
|
22
|
+
1. `cms_edit ["open", "--page-slug", "<slug>"]`
|
|
23
|
+
2. `cms_edit ["set", "@p0", "description", "<new meta description>"]`
|
|
24
|
+
3. `cms_edit ["diff"]` → `cms_edit ["save"]`
|
|
25
|
+
|
|
26
|
+
**Many entries with known IDs:**
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
cms_edit ["batch", "set", "<pageId>:description=…", …]
|
|
30
|
+
cms_edit ["batch", "save"]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Dev agents only** — if `capabilities.devTools.cmsSeoAudit` is true, developers may run the site's `cms:seo-audit` CSV workflow locally. Hosted editors should use per-entry updates above.
|
|
34
|
+
|
|
35
|
+
## Confirmation gates
|
|
36
|
+
|
|
37
|
+
1. Propose new descriptions (or selection of pages) — user approves
|
|
38
|
+
2. `diff` before `save`
|
|
39
|
+
|
|
40
|
+
## Out of scope
|
|
41
|
+
|
|
42
|
+
- Publish
|
|
43
|
+
- Keyword research (descriptions are editorial)
|
|
44
|
+
|
|
45
|
+
## Related resources
|
|
46
|
+
|
|
47
|
+
- `cms-edit://customer/routing`
|
|
48
|
+
- `cms-edit://customer/brand` (if present)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Capability: Taxonomy setup
|
|
2
|
+
|
|
3
|
+
## Intent phrases
|
|
4
|
+
|
|
5
|
+
- create tags
|
|
6
|
+
- set up taxonomy
|
|
7
|
+
- add tag types and tags
|
|
8
|
+
|
|
9
|
+
## Requires capabilities
|
|
10
|
+
|
|
11
|
+
`tags`
|
|
12
|
+
|
|
13
|
+
## Prerequisites
|
|
14
|
+
|
|
15
|
+
- `cms_edit ["index", "sync"]`
|
|
16
|
+
|
|
17
|
+
## Steps
|
|
18
|
+
|
|
19
|
+
**From JSON (batch):**
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
cms_edit ["create", "taxonomy-from-json", "--file", "<path>", "--if-not-exists"]
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Individual entries:**
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
cms_edit ["ensure", "tag-type", "--slug", "topic", "--name", "Topic"]
|
|
29
|
+
cms_edit ["ensure", "tag", "--slug", "mental-health", "--name", "Mental Health", "--tag-type-slug", "topic"]
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Verify:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
cms_edit ["list", "--type", "tagType"]
|
|
36
|
+
cms_edit ["list", "--type", "tag"]
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Confirmation gates
|
|
40
|
+
|
|
41
|
+
1. Show taxonomy plan before import
|
|
42
|
+
2. Summarize created vs existing IDs
|
|
43
|
+
|
|
44
|
+
## Out of scope
|
|
45
|
+
|
|
46
|
+
- Publish
|
|
47
|
+
- Assigning tags to articles (see **Article tags** capability)
|
|
48
|
+
|
|
49
|
+
## Related resources
|
|
50
|
+
|
|
51
|
+
- `cms-edit://customer/routing`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@se-studio/contentful-cms",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "CLI tool for AI agents to read and edit Contentful draft content without publish permissions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"files": [
|
|
56
56
|
"dist",
|
|
57
|
+
"docs/editor-tasks",
|
|
57
58
|
"docs/help",
|
|
58
59
|
"docs/mcp",
|
|
59
60
|
"skills",
|