@se-studio/contentful-cms 2.5.0 → 2.6.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.
Files changed (131) hide show
  1. package/CHANGELOG.md +48 -11
  2. package/INSTALL.md +1 -1
  3. package/README.md +10 -17
  4. package/dist/audit/asset-usage.d.ts +15 -0
  5. package/dist/audit/asset-usage.d.ts.map +1 -0
  6. package/dist/audit/asset-usage.js +81 -0
  7. package/dist/audit/asset-usage.js.map +1 -0
  8. package/dist/audit/media-review.d.ts +2 -0
  9. package/dist/audit/media-review.d.ts.map +1 -1
  10. package/dist/audit/media-review.js.map +1 -1
  11. package/dist/cli/program.d.ts.map +1 -1
  12. package/dist/cli/program.js +4 -22
  13. package/dist/cli/program.js.map +1 -1
  14. package/dist/commands/add.js +1 -1
  15. package/dist/commands/add.js.map +1 -1
  16. package/dist/commands/asset.d.ts.map +1 -1
  17. package/dist/commands/asset.js +9 -0
  18. package/dist/commands/asset.js.map +1 -1
  19. package/dist/commands/batch.d.ts.map +1 -1
  20. package/dist/commands/batch.js +5 -2
  21. package/dist/commands/batch.js.map +1 -1
  22. package/dist/commands/create-from-json.d.ts.map +1 -1
  23. package/dist/commands/create-from-json.js +24 -2
  24. package/dist/commands/create-from-json.js.map +1 -1
  25. package/dist/commands/help.d.ts.map +1 -1
  26. package/dist/commands/help.js +3 -2
  27. package/dist/commands/help.js.map +1 -1
  28. package/dist/commands/run.d.ts +1 -1
  29. package/dist/commands/run.d.ts.map +1 -1
  30. package/dist/commands/run.js +3 -3
  31. package/dist/commands/run.js.map +1 -1
  32. package/dist/commands/schema.d.ts.map +1 -1
  33. package/dist/commands/schema.js +228 -85
  34. package/dist/commands/schema.js.map +1 -1
  35. package/dist/generated/hosted-guide.d.ts +1 -1
  36. package/dist/generated/hosted-guide.d.ts.map +1 -1
  37. package/dist/generated/hosted-guide.js +1 -1
  38. package/dist/generated/hosted-guide.js.map +1 -1
  39. package/dist/generated/version.d.ts +1 -1
  40. package/dist/generated/version.js +1 -1
  41. package/dist/mcp/guide.js +1 -1
  42. package/dist/mcp/guide.js.map +1 -1
  43. package/dist/mcp/prompts/onboarding.js +7 -7
  44. package/dist/mcp/prompts/onboarding.js.map +1 -1
  45. package/dist/mcp/tools/cms-edit.d.ts +1 -1
  46. package/dist/mcp/tools/cms-edit.d.ts.map +1 -1
  47. package/dist/mcp/tools/cms-edit.js +1 -1
  48. package/docs/FUNCTIONAL_SPEC.md +2 -2
  49. package/docs/SKILLS.md +3 -3
  50. package/docs/editor-tasks/article-tags.md +47 -0
  51. package/docs/editor-tasks/authors-import.md +53 -0
  52. package/docs/editor-tasks/bulk-find-replace.md +52 -0
  53. package/docs/editor-tasks/clone-page.md +39 -0
  54. package/docs/editor-tasks/create-article.md +46 -0
  55. package/docs/editor-tasks/create-from-document.md +45 -0
  56. package/docs/editor-tasks/create-page.md +41 -0
  57. package/docs/editor-tasks/edit-rich-text.md +44 -0
  58. package/docs/editor-tasks/edit-scalar-fields.md +47 -0
  59. package/docs/editor-tasks/featured-images.md +46 -0
  60. package/docs/editor-tasks/media-reuse-and-upload.md +51 -0
  61. package/docs/editor-tasks/navigation.md +39 -0
  62. package/docs/editor-tasks/preview-verify.md +38 -0
  63. package/docs/editor-tasks/publish-handoff.md +36 -0
  64. package/docs/editor-tasks/seo-descriptions.md +48 -0
  65. package/docs/editor-tasks/taxonomy.md +51 -0
  66. package/docs/help/asset-review.md +4 -0
  67. package/docs/help/{run.md → batch-run.md} +8 -8
  68. package/docs/help/create-from-json.md +3 -2
  69. package/docs/help/fields-article.md +2 -2
  70. package/docs/help/fields-component.md +3 -3
  71. package/docs/help/fields-taxonomy.md +6 -6
  72. package/docs/help/fields.md +2 -2
  73. package/docs/help/index-sync.md +1 -1
  74. package/docs/help/index.md +23 -18
  75. package/docs/help/lookup.md +1 -1
  76. package/docs/help/person-from-json.md +3 -3
  77. package/docs/help/taxonomy-from-json.md +3 -3
  78. package/docs/help/workflow.md +1 -1
  79. package/docs/mcp/hosted-guide.md +6 -6
  80. package/package.json +3 -3
  81. package/skills/README.md +2 -2
  82. package/skills/core/SKILL.md +33 -40
  83. package/skills/setup/SKILL.md +1 -1
  84. package/dist/bin/contentful-cms.d.ts +0 -3
  85. package/dist/bin/contentful-cms.d.ts.map +0 -1
  86. package/dist/bin/contentful-cms.js +0 -5
  87. package/dist/bin/contentful-cms.js.map +0 -1
  88. package/dist/commands/audit.d.ts +0 -4
  89. package/dist/commands/audit.d.ts.map +0 -1
  90. package/dist/commands/audit.js +0 -399
  91. package/dist/commands/audit.js.map +0 -1
  92. package/dist/commands/backup.d.ts +0 -3
  93. package/dist/commands/backup.d.ts.map +0 -1
  94. package/dist/commands/backup.js +0 -143
  95. package/dist/commands/backup.js.map +0 -1
  96. package/dist/commands/colours.d.ts +0 -4
  97. package/dist/commands/colours.d.ts.map +0 -1
  98. package/dist/commands/colours.js +0 -91
  99. package/dist/commands/colours.js.map +0 -1
  100. package/dist/commands/ensure.d.ts +0 -4
  101. package/dist/commands/ensure.d.ts.map +0 -1
  102. package/dist/commands/ensure.js +0 -152
  103. package/dist/commands/ensure.js.map +0 -1
  104. package/dist/commands/restore.d.ts +0 -4
  105. package/dist/commands/restore.d.ts.map +0 -1
  106. package/dist/commands/restore.js +0 -146
  107. package/dist/commands/restore.js.map +0 -1
  108. package/dist/commands/revert.d.ts +0 -4
  109. package/dist/commands/revert.d.ts.map +0 -1
  110. package/dist/commands/revert.js +0 -143
  111. package/dist/commands/revert.js.map +0 -1
  112. package/dist/commands/sitemap.d.ts +0 -4
  113. package/dist/commands/sitemap.d.ts.map +0 -1
  114. package/dist/commands/sitemap.js +0 -151
  115. package/dist/commands/sitemap.js.map +0 -1
  116. package/dist/commands/skill.d.ts +0 -4
  117. package/dist/commands/skill.d.ts.map +0 -1
  118. package/dist/commands/skill.js +0 -40
  119. package/dist/commands/skill.js.map +0 -1
  120. package/dist/commands/types.d.ts +0 -4
  121. package/dist/commands/types.d.ts.map +0 -1
  122. package/dist/commands/types.js +0 -78
  123. package/dist/commands/types.js.map +0 -1
  124. package/dist/session/backup.d.ts +0 -34
  125. package/dist/session/backup.d.ts.map +0 -1
  126. package/dist/session/backup.js +0 -64
  127. package/dist/session/backup.js.map +0 -1
  128. package/dist/skills/install.d.ts +0 -13
  129. package/dist/skills/install.d.ts.map +0 -1
  130. package/dist/skills/install.js +0 -37
  131. package/dist/skills/install.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding.js","sourceRoot":"","sources":["../../../src/mcp/prompts/onboarding.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,cAAc,GAClB,6EAA6E;IAC7E,gFAAgF,CAAC;AAEnF,SAAS,UAAU,CAAC,MAAsB;IACxC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,6DAA6D,CAAC;IACvE,CAAC;IACD,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,UAAU,CAAC;IACzD,OAAO,CACL,yBAAyB,QAAQ,2CAA2C;QAC5E,0DAA0D,CAC3D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,MAAiB,EAAE,MAAsB;IACjF,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IAEhC,MAAM,CAAC,MAAM,CACX,iBAAiB,EACjB,oEAAoE,EACpE,KAAK,IAAI,EAAE,CAAC,CAAC;QACX,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,MAAe;gBACrB,OAAO,EAAE;oBACP,IAAI,EAAE,MAAe;oBACrB,IAAI,EACF,GAAG,IAAI,MAAM;wBACb,+BAA+B;wBAC/B,4BAA4B;wBAC5B,yCAAyC;wBACzC,gHAAgH;wBAChH,qEAAqE;iBACxE;aACF;SACF;KACF,CAAC,CACH,CAAC;IAEF,MAAM,CAAC,MAAM,CACX,kBAAkB,EAClB,wEAAwE,EACxE;QACE,IAAI,E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;wBAC1D,6BAA6B;wBAC7B,2DAA2D;wBAC3D,iCAAiC;wBACjC,gEAAgE;wBAChE,6DAA6D;wBAC7D,oDAAoD;iBACvD;aACF;SACF;KACF,CAAC,CACH,CAAC;AACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import type { RunCmsEditFn } from '../types.js';
3
- export declare const TOOL_DESCRIPTION = "Run any cms-edit command. cms-edit edits Contentful draft content (no publishing).\n\nUse cms_edit_version (no args) to check the installed version.\nUse cms_edit_help to read the getting-started guide by topic.\nUse cms_edit_customer to read site-specific playbooks (articles, routing, blog-tag-matrix, etc.).\nIf Integrations only exposes cms_edit, use [\"customer\", \"index\"] or [\"customer\", \"resource=index\"] instead.\nRead the cms-edit://guide resource for the full guide.\n\nWorkflow: open \u2192 snapshot \u2192 read/set/rtf/add/remove \u2192 diff \u2192 save\nAll saves create drafts only \u2014 a human must publish in Contentful.\n\nCommon command sequences:\n [\"open\", \"--page-slug\", \"/\"] \u2014 homepage (CMS slug index; /index is equivalent)\n [\"open\", \"--page-slug\", \"/pricing\"] \u2014 load a page by slug\n [\"open\", \"--id\", \"<entry-id>\"] \u2014 load by Contentful entry ID\n [\"snapshot\"] \u2014 print content tree with @refs\n [\"read\", \"@c0\"] \u2014 read all fields of a component (requires open session)\n [\"read\", \"@c0\", \"heading\"] \u2014 read a specific field (requires open session)\n [\"read\", \"@root\"] \u2014 read root entry fields (requires open session)\n [\"read\", \"<entry-id>\", \"--id\"] \u2014 read entry by ID (no session)\n [\"read\", \"<entry-id>\", \"--id\", \"heading\"] \u2014 read one field by entry ID (no session)\n [\"peek\", \"--page-slug\", \"/pricing\"] \u2014 preview tree + root fields (no session)\n [\"peek\", \"--id\", \"<entry-id>\"] \u2014 preview by entry ID with rootFields in JSON\n [\"set\", \"@c0\", \"heading\", \"New heading\"] \u2014 set a scalar field\n [\"rtf\", \"@c0\", \"body\", \"--content\", \"# H1\\n\\nBody.\"] \u2014 set rich text (preferred for AI)\n [\"rtf\", \"@c0\", \"body\", \"--base64\", \"<encoded>\"] \u2014 set rich text via base64 (no filesystem)\n [\"diff\"] \u2014 show pending changes\n [\"save\"] \u2014 write drafts to Contentful\n [\"discard\"] \u2014 discard unsaved changes\n [\"links\", \"set\", \"@c0\", \"0\", \"variant\", \"link\"] \u2014 set scalar field on link at index 0\n [\"batch\", \"set\", \"<entry-id>:variant=link\"] \u2014 queue scalar edit by entry ID\n [\"batch\", \"diff\"] \u2014 show pending batch edits\n [\"batch\", \"save\"] \u2014 save all batch edits as drafts\n [\"health\"] \u2014 verify config and connectivity\n [\"diagnose\"] \u2014 session/MCP diagnostics (store, userId, active session)\n [\"version\"] \u2014 print installed cms-edit version\n [\"guide\"] \u2014 print getting-started guide\n [\"guide\", \"workflow\"] \u2014 print a guide section\n [\"customer\", \"index\"] \u2014 list site editor playbooks\n [\"customer\", \"articles\"] \u2014 read articles playbook\n [\"customer\", \"resource=index\"] \u2014 same as index (Integrations fallback)\n [\"list\", \"--type\", \"article\", \"--sort\", \"date\", \"-n\", \"10\"] \u2014 recent articles by publication date\n [\"sitemap\", \"--include\", \"article\", \"--status\", \"draft\"] \u2014 find draft articles\n [\"peek\", \"--article-slug\", \"<slug>\"] \u2014 preview draft or published article (CMA)\n [\"preview\", \"url\", \"/pricing\"] \u2014 page preview URL (open in browser MCP)\n [\"preview\", \"showcase\", \"--component\", \"HeroSimple\"] \u2014 component showcase URL (mock data)\n [\"preview\", \"showcase\", \"--collection\", \"CardGrid\", \"--param\", \"backgroundColour=Navy\"]\n\nDiscovery notes:\n Visual checks: use preview url / preview showcase, then open the returned URL with a browser MCP (cms-edit does not capture screenshots).\n peek/open/read --id load draft content via CMA \u2014 NOT published-only.\n Only list --published / resolve --published use the published-only Delivery API index.\n Articles: use --article-slug (not --page-slug). search --type article sorts by publication date.\n\nSessions persist between MCP calls (Redis on hosted, disk locally). MCP auto-uses session \"_mcp\" unless you pass --session.\nUse --session <name> before the subcommand to isolate concurrent workflows, e.g. [\"--session\", \"my-work\", \"open\", \"/\"].\nUse --space <name> to target a specific Contentful space (local MCP only \u2014 omit for hosted Integrations).\nStateless read (no open required): [\"read\", \"<entry-id>\", \"--id\"] or [\"read\", \"<entry-id>\", \"--id\", \"heading\"].\npeek is one-shot (no session): use [\"peek\", \"--page-slug\", \"<slug>\"] or [\"peek\", \"--id\", \"<entry-id>\"]. Includes rootFields in JSON \u2014 no follow-up read required.\nOutput is always JSON (CMS_EDIT_JSON=1 is forced by the MCP server).\n\nRich text tips:\n --content \"<markdown>\" preferred named flag for inline content (any length)\n --base64 \"<encoded>\" fully environment-agnostic, no filesystem needed\n --file \"<abs-path>\" platform-native absolute path required (C:\\\\Users\\\\... on Windows)\n stdin (\"-\") not supported via MCP";
3
+ export declare const TOOL_DESCRIPTION = "Run any cms-edit command. cms-edit edits Contentful draft content (no publishing).\n\nUse cms_edit_version (no args) to check the installed version.\nUse cms_edit_help to read the getting-started guide by topic.\nUse cms_edit_customer to read site-specific playbooks (articles, routing, blog-tag-matrix, etc.).\nIf Integrations only exposes cms_edit, use [\"customer\", \"index\"] or [\"customer\", \"resource=index\"] instead.\nRead the cms-edit://guide resource for the full guide.\n\nWorkflow: open \u2192 snapshot \u2192 read/set/rtf/add/remove \u2192 diff \u2192 save\nAll saves create drafts only \u2014 a human must publish in Contentful.\n\nCommon command sequences:\n [\"open\", \"--page-slug\", \"/\"] \u2014 homepage (CMS slug index; /index is equivalent)\n [\"open\", \"--page-slug\", \"/pricing\"] \u2014 load a page by slug\n [\"open\", \"--id\", \"<entry-id>\"] \u2014 load by Contentful entry ID\n [\"snapshot\"] \u2014 print content tree with @refs\n [\"read\", \"@c0\"] \u2014 read all fields of a component (requires open session)\n [\"read\", \"@c0\", \"heading\"] \u2014 read a specific field (requires open session)\n [\"read\", \"@root\"] \u2014 read root entry fields (requires open session)\n [\"read\", \"<entry-id>\", \"--id\"] \u2014 read entry by ID (no session)\n [\"read\", \"<entry-id>\", \"--id\", \"heading\"] \u2014 read one field by entry ID (no session)\n [\"peek\", \"--page-slug\", \"/pricing\"] \u2014 preview tree + root fields (no session)\n [\"peek\", \"--id\", \"<entry-id>\"] \u2014 preview by entry ID with rootFields in JSON\n [\"set\", \"@c0\", \"heading\", \"New heading\"] \u2014 set a scalar field\n [\"rtf\", \"@c0\", \"body\", \"--content\", \"# H1\\n\\nBody.\"] \u2014 set rich text (preferred for AI)\n [\"rtf\", \"@c0\", \"body\", \"--base64\", \"<encoded>\"] \u2014 set rich text via base64 (no filesystem)\n [\"diff\"] \u2014 show pending changes\n [\"save\"] \u2014 write drafts to Contentful\n [\"discard\"] \u2014 discard unsaved changes\n [\"links\", \"set\", \"@c0\", \"0\", \"variant\", \"link\"] \u2014 set scalar field on link at index 0\n [\"batch\", \"set\", \"<entry-id>:variant=link\"] \u2014 queue scalar edit by entry ID\n [\"batch\", \"diff\"] \u2014 show pending batch edits\n [\"batch\", \"save\"] \u2014 save all batch edits as drafts\n [\"health\"] \u2014 verify config and connectivity\n [\"diagnose\"] \u2014 session/MCP diagnostics (store, userId, active session)\n [\"version\"] \u2014 print installed cms-edit version\n [\"guide\"] \u2014 print getting-started guide\n [\"guide\", \"workflow\"] \u2014 print a guide section\n [\"customer\", \"index\"] \u2014 list site editor playbooks\n [\"customer\", \"articles\"] \u2014 read articles playbook\n [\"customer\", \"resource=index\"] \u2014 same as index (Integrations fallback)\n [\"list\", \"--type\", \"article\", \"--sort\", \"date\", \"-n\", \"10\"] \u2014 recent articles by publication date\n [\"list\", \"--type\", \"article\", \"--sort\", \"date\"] \u2014 list articles (preview index includes drafts)\n [\"peek\", \"--article-slug\", \"<slug>\"] \u2014 preview draft or published article (CMA)\n [\"preview\", \"url\", \"/pricing\"] \u2014 page preview URL (open in browser MCP)\n [\"preview\", \"showcase\", \"--component\", \"HeroSimple\"] \u2014 component showcase URL (mock data)\n [\"preview\", \"showcase\", \"--collection\", \"CardGrid\", \"--param\", \"backgroundColour=Navy\"]\n\nDiscovery notes:\n Visual checks: use preview url / preview showcase, then open the returned URL with a browser MCP (cms-edit does not capture screenshots).\n peek/open/read --id load draft content via CMA \u2014 NOT published-only.\n Only list --published / resolve --published use the published-only Delivery API index.\n Articles: use --article-slug (not --page-slug). search --type article sorts by publication date.\n\nSessions persist between MCP calls (Redis on hosted, disk locally). MCP auto-uses session \"_mcp\" unless you pass --session.\nUse --session <name> before the subcommand to isolate concurrent workflows, e.g. [\"--session\", \"my-work\", \"open\", \"/\"].\nUse --space <name> to target a specific Contentful space (local MCP only \u2014 omit for hosted Integrations).\nStateless read (no open required): [\"read\", \"<entry-id>\", \"--id\"] or [\"read\", \"<entry-id>\", \"--id\", \"heading\"].\npeek is one-shot (no session): use [\"peek\", \"--page-slug\", \"<slug>\"] or [\"peek\", \"--id\", \"<entry-id>\"]. Includes rootFields in JSON \u2014 no follow-up read required.\nOutput is always JSON (CMS_EDIT_JSON=1 is forced by the MCP server).\n\nRich text tips:\n --content \"<markdown>\" preferred named flag for inline content (any length)\n --base64 \"<encoded>\" fully environment-agnostic, no filesystem needed\n --file \"<abs-path>\" platform-native absolute path required (C:\\\\Users\\\\... on Windows)\n stdin (\"-\") not supported via MCP";
4
4
  export declare function registerCmsEditTools(server: McpServer, runCmsEdit: RunCmsEditFn): void;
5
5
  export declare function getMcpServerInfo(): {
6
6
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"cms-edit.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/cms-edit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAKzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,gBAAgB,m1LAiEoB,CAAC;AAElD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,GAAG,IAAI,CA8BtF;AAED,wBAAgB,gBAAgB,IAAI;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAEpE"}
1
+ {"version":3,"file":"cms-edit.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/cms-edit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAKzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,gBAAgB,+2LAiEoB,CAAC;AAElD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,GAAG,IAAI,CA8BtF;AAED,wBAAgB,gBAAgB,IAAI;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAEpE"}
@@ -44,7 +44,7 @@ Common command sequences:
44
44
  ["customer", "articles"] — read articles playbook
45
45
  ["customer", "resource=index"] — same as index (Integrations fallback)
46
46
  ["list", "--type", "article", "--sort", "date", "-n", "10"] — recent articles by publication date
47
- ["sitemap", "--include", "article", "--status", "draft"] — find draft articles
47
+ ["list", "--type", "article", "--sort", "date"] — list articles (preview index includes drafts)
48
48
  ["peek", "--article-slug", "<slug>"] — preview draft or published article (CMA)
49
49
  ["preview", "url", "/pricing"] — page preview URL (open in browser MCP)
50
50
  ["preview", "showcase", "--component", "HeroSimple"] — component showcase URL (mock data)
@@ -104,7 +104,7 @@ Each resolved entry is assigned a stable `@ref` label (`@c0` = the root, `@c1`,
104
104
  | `index dump` | Pretty-print index contents (assets, media, type breakdown) for terminal inspection |
105
105
  | `list --type media --asset-id <id>` | List Media entries linked to an asset (index) |
106
106
  | `list --type media --asset-filename <name>` | List Media entries by exact asset fileName (index) |
107
- | `sitemap` | List all pages with their slugs and publish status |
107
+ | `list --type page` | List pages from the content catalog (index-backed) |
108
108
  | `resolve --id <id>` | Resolve an entry or asset ID to its details |
109
109
  | `resolve --page-slug <slug>` | Resolve by flat lookup flag (no session). See `docs/help/lookup.md` |
110
110
  | `open --page-slug <slug>` | Open a page session (one lookup flag required) |
@@ -150,7 +150,7 @@ Each resolved entry is assigned a stable `@ref` label (`@c0` = the root, `@c1`,
150
150
  | `create tag-type --slug <slug> --name "X"` | Create a tagType entry (draft) |
151
151
  | `create article-type --slug <slug> --name "X"` | Create an articleType entry (draft) |
152
152
  | `create tag --slug <slug> --name "X" --tag-type <slug>` | Create a tag entry (draft); `--tag-type-slug`, `--tag-type-name`; `--description`, `--featured-image`; cmsLabel auto `"<tagType> — <name>"` |
153
- | `ensure tag-type\|tag\|article-type …` | Idempotent taxonomy create (returns existing entry when slug matches) |
153
+ | `create tag-type\|tag\|article-type … --if-not-exists` | Idempotent taxonomy create (returns existing entry when slug matches) |
154
154
  | `add <entry-type> --content-type <ct>` | Create a new child entry of a given content type, link it into the current open entry's content array, and assign it a @ref |
155
155
 
156
156
  ### 7.5 Entry Removal and Reordering
package/docs/SKILLS.md CHANGED
@@ -5,7 +5,7 @@
5
5
  | Channel | Package | Install | Use case |
6
6
  |---------|---------|---------|----------|
7
7
  | **Full SE Studio skills** | `@se-studio/skills` | `npx skills add @se-studio/skills`, `pnpm skills:sync` in monorepo, or auto-sync via `prepare` in consumer sites (see `packages/project-build/README.md`) | Marketing sites, CMS guidelines, app tasks |
8
- | **Bundled cms-edit skills** | `@se-studio/contentful-cms` | `cms-edit skill install` | Minimal set shipped with the CLI (`core`, `editor-tasks`, `templates`, `setup`) |
8
+ | **Bundled cms-edit skills** | `@se-studio/contentful-cms` | `npx skills add @se-studio/skills` | Minimal set shipped with the CLI (`core`, `editor-tasks`, `templates`, `setup`) |
9
9
 
10
10
  ## Where to edit
11
11
 
@@ -22,8 +22,8 @@ Never edit:
22
22
  ## `.claude/skills` vs `.agents/skills`
23
23
 
24
24
  - **`.agents/skills/`** — Monorepo target for `pnpm skills:sync`; gitignored; symlinked to `.cursor/skills/`.
25
- - **`.claude/skills/`** — Optional per-machine path used by some Claude setups; **intentionally untracked**. Skills should come from this repo (`@se-studio/skills`, `cms-edit skill install`) or third-party skill packs — not from committed copies under `.claude/`.
25
+ - **`.claude/skills/`** — Optional per-machine path used by some Claude setups; **intentionally untracked**. Skills should come from this repo (`@se-studio/skills`) or third-party skill packs — not from committed copies under `.claude/`.
26
26
 
27
27
  ## Installing bundled skills
28
28
 
29
- `cms-edit skill install` copies bundled `core`, `editor-tasks`, and `templates` skills into `.agents/skills/` in the current project. In the monorepo, prefer `pnpm skills:sync` from `@se-studio/skills`.
29
+ `npx skills add @se-studio/skills` installs cms-edit skills into `.agents/skills/` in the current project. In the monorepo, prefer `pnpm skills:sync` from `@se-studio/skills`.
@@ -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 ["list", "--type", "page"]` / `["list", "--type", "article"]` 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 `list --type page|article`; 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)