@se-studio/contentful-cms 1.0.34 → 1.0.35
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/commands/skill.js +3 -3
- package/dist/commands/skill.js.map +1 -1
- package/package.json +1 -1
- package/skills/cms-guidelines/README.md +3 -3
- package/skills/core/SKILL.md +5 -0
- package/skills/navigation/SKILL.md +5 -0
- package/skills/rich-text/SKILL.md +5 -0
- package/skills/screenshots/SKILL.md +5 -0
- package/skills/templates/SKILL.md +5 -0
package/CHANGELOG.md
CHANGED
package/dist/commands/skill.js
CHANGED
|
@@ -11,7 +11,7 @@ function getManifest() {
|
|
|
11
11
|
return JSON.parse(raw);
|
|
12
12
|
}
|
|
13
13
|
function getInstallDir() {
|
|
14
|
-
return path.join(process.cwd(), '.agents', 'skills'
|
|
14
|
+
return path.join(process.cwd(), '.agents', 'skills');
|
|
15
15
|
}
|
|
16
16
|
export function registerSkillCommand(program) {
|
|
17
17
|
const skill = program
|
|
@@ -35,7 +35,7 @@ export function registerSkillCommand(program) {
|
|
|
35
35
|
});
|
|
36
36
|
skill
|
|
37
37
|
.command('install [skill-names...]')
|
|
38
|
-
.description('Install skill(s) into project (.agents/skills/contentful-cms)')
|
|
38
|
+
.description('Install skill(s) into project (.agents/skills/contentful-cms-<name>)')
|
|
39
39
|
.action((skillNames) => {
|
|
40
40
|
const manifest = getManifest();
|
|
41
41
|
const toInstall = skillNames.length > 0 ? skillNames : Object.keys(manifest);
|
|
@@ -52,7 +52,7 @@ export function registerSkillCommand(program) {
|
|
|
52
52
|
console.error(`Skill file not found: ${src}`);
|
|
53
53
|
process.exit(1);
|
|
54
54
|
}
|
|
55
|
-
const destDir = path.join(installDir, name);
|
|
55
|
+
const destDir = path.join(installDir, `contentful-cms-${name}`);
|
|
56
56
|
const dest = path.join(destDir, 'SKILL.md');
|
|
57
57
|
fs.mkdirSync(destDir, { recursive: true });
|
|
58
58
|
const content = fs.readFileSync(src, 'utf8');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.js","sourceRoot":"","sources":["../../src/commands/skill.ts"],"names":[],"mappings":"AAAA,uFAAuF;AAEvF,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACxD,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAEnD,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;AAE5D,SAAS,WAAW;IAClB,MAAM,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACnD,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAA2B,CAAC;AACnD,CAAC;AAED,SAAS,aAAa;IACpB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"skill.js","sourceRoot":"","sources":["../../src/commands/skill.ts"],"names":[],"mappings":"AAAA,uFAAuF;AAEvF,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;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AAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YAC3C,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YAC7C,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;YACxC,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,OAAO,IAAI,EAAE,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ Guidelines are short markdown fragments — one per CMS type — that describe h
|
|
|
18
18
|
pnpm --filter <appName> generate-showcase
|
|
19
19
|
```
|
|
20
20
|
This writes `src/generated/showcase-examples.json`.
|
|
21
|
-
3. **Curate showcase mocks** — run the [curate-showcase-mocks skill](.agents/skills/se-marketing-sites
|
|
21
|
+
3. **Curate showcase mocks** — run the [curate-showcase-mocks skill](.agents/skills/se-marketing-sites-curate-showcase-mocks/SKILL.md) to select the best examples into `showcase-mocks.json`. This makes the showcase (and screenshots) show realistic content.
|
|
22
22
|
4. **Generate field list** — parse TypeScript types to produce structured field metadata:
|
|
23
23
|
```bash
|
|
24
24
|
# From the app directory:
|
|
@@ -27,7 +27,7 @@ Guidelines are short markdown fragments — one per CMS type — that describe h
|
|
|
27
27
|
# Or from repo root:
|
|
28
28
|
pnpm --filter <appName> exec cms-generate-field-list --app-dir .
|
|
29
29
|
```
|
|
30
|
-
5. **Generate guidelines** — run the [Generate CMS guidelines skill](.agents/skills/contentful-cms
|
|
30
|
+
5. **Generate guidelines** — run the [Generate CMS guidelines skill](.agents/skills/contentful-cms-generate-cms-guidelines/SKILL.md).
|
|
31
31
|
|
|
32
32
|
Steps 1–3 only need to be repeated when content or component code changes significantly. Step 4 only needs to be repeated when TypeScript types change. Step 5 can be re-run at any time.
|
|
33
33
|
|
|
@@ -35,7 +35,7 @@ Steps 1–3 only need to be repeated when content or component code changes sign
|
|
|
35
35
|
|
|
36
36
|
## How to run guideline generation
|
|
37
37
|
|
|
38
|
-
Use the Cursor skill at [`.agents/skills/contentful-cms
|
|
38
|
+
Use the Cursor skill at [`.agents/skills/contentful-cms-generate-cms-guidelines/SKILL.md`](.agents/skills/contentful-cms-generate-cms-guidelines/SKILL.md). It supports three modes:
|
|
39
39
|
|
|
40
40
|
| Mode | When to use |
|
|
41
41
|
|---|---|
|
package/skills/core/SKILL.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "contentful-cms:core"
|
|
3
|
+
description: "Use cms-edit CLI to read/edit Contentful content (open → snapshot → read → set/rtf → diff → save)."
|
|
4
|
+
---
|
|
5
|
+
|
|
1
6
|
# Skill: contentful-cms CLI
|
|
2
7
|
|
|
3
8
|
Use this skill when you need to read or edit content in Contentful CMS using the `cms-edit` CLI tool.
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "contentful-cms:navigation"
|
|
3
|
+
description: "Create or edit navigation entries and nav items in Contentful via cms-edit."
|
|
4
|
+
---
|
|
5
|
+
|
|
1
6
|
# Skill: contentful-cms — Navigation
|
|
2
7
|
|
|
3
8
|
Use this skill when creating or editing **navigation** entries and their items in Contentful via `cms-edit`.
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "contentful-cms:rich-text"
|
|
3
|
+
description: "Edit rich-text fields and insert embedded entries/assets via cms-edit."
|
|
4
|
+
---
|
|
5
|
+
|
|
1
6
|
# Skill: contentful-cms — Rich text and embeds
|
|
2
7
|
|
|
3
8
|
Use this skill when editing **rich text** fields (body, additionalCopy) and inserting **embedded entries/assets** via `cms-edit`.
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "contentful-cms:screenshots"
|
|
3
|
+
description: "Capture screenshots of components, collections, pages or persons via cms-edit."
|
|
4
|
+
---
|
|
5
|
+
|
|
1
6
|
# Skill: contentful-cms — Screenshots
|
|
2
7
|
|
|
3
8
|
Use this skill when capturing **screenshots** of components, collections, pages, or persons with `cms-edit`. **Requires agent-browser** to be installed.
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "contentful-cms:templates"
|
|
3
|
+
description: "Create or edit templates (preContent, postContent, menu, footer, colours) in Contentful via cms-edit."
|
|
4
|
+
---
|
|
5
|
+
|
|
1
6
|
# Skill: contentful-cms — Templates
|
|
2
7
|
|
|
3
8
|
Use this skill when creating or editing **templates** (layout shells with preContent, postContent, menu, footer) in Contentful via `cms-edit`.
|