@se-studio/skills 1.10.2 → 1.10.4
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 +12 -0
- package/README.md +2 -8
- package/package.json +1 -1
- package/references/agent-session/customer-agents-block.md +2 -2
- package/references/agent-session/customer-guardrails/README.md +2 -1
- package/references/agent-session/strip-skill-always-on.sh +2 -1
- package/skills/coding-discipline/SKILL.md +1 -1
- package/skills/contentful-cms-setup/SKILL.md +2 -2
- package/skills/se-marketing-sites-curate-showcase-mocks/SKILL.md +5 -19
- package/skills/se-marketing-sites-redirects/SKILL.md +2 -2
- package/skills/site-workflows-deps-update/SKILL.md +2 -2
- package/skills/site-workflows-new-project/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @se-studio/skills
|
|
2
2
|
|
|
3
|
+
## 1.10.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1a4de9f: Customer docs and templates describe one way to get skills into a site: an exact `@se-studio/skills` devDependency linked by `skills-npm --yes` in `prepare`. They no longer tell sites to run `skills update`, `skills@latest`, a per-repo `sync-skills.sh` or third-party packs, or to strip `AGENTS.md` after a sync. The bundled cms-edit setup skill matches.
|
|
8
|
+
|
|
9
|
+
## 1.10.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 4ddd150: Customer guardrails README: GitHub runs only the smoke, the audit and publish jobs (Vercel Deployment Checks are the gate), and how to link and ignore the package's skills.
|
|
14
|
+
|
|
3
15
|
## 1.10.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -13,13 +13,7 @@ pnpm skills:sync
|
|
|
13
13
|
|
|
14
14
|
From this package directory: `pnpm validate` (runs the same frontmatter check).
|
|
15
15
|
|
|
16
|
-
**In
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
npx skills add @se-studio/skills
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
Auto-sync on `pnpm install` (see [`packages/project-build/README.md`](../project-build/README.md) for the full `package.json` snippet). Use `pnpm skills:sync` manually to add or refresh third-party skill packs.
|
|
16
|
+
**In a customer site**, depend on this package at an exact version and link its skills with `skills-npm --yes` in `prepare` (see [`packages/project-build/README.md`](../project-build/README.md) for the `package.json` snippet). `npx skills add @se-studio/skills` is only for a one-off project that does not depend on the package.
|
|
23
17
|
|
|
24
18
|
## Package layout
|
|
25
19
|
|
|
@@ -87,7 +81,7 @@ pnpm --filter @se-studio/contentful-cms sync:skills
|
|
|
87
81
|
|
|
88
82
|
Do not edit `packages/contentful-cms/skills/` directly. See `packages/contentful-cms/docs/SKILLS.md`.
|
|
89
83
|
|
|
90
|
-
**Do not use `.claude/skills/` in the repo** as a skill source — it is untracked and local. Use `.agents/skills/` (via `pnpm skills:sync`) or `cms-edit skill install`.
|
|
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`.
|
|
91
85
|
|
|
92
86
|
## Vendored pstack (trial)
|
|
93
87
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<!-- BEGIN:se-core-agents-block v2 -->
|
|
2
2
|
## Next.js docs (version-matched)
|
|
3
3
|
|
|
4
|
-
This site runs **Next.js 16** (the minor is in `package.json`). Before writing Next.js code, read the relevant guide in `node_modules/next/dist/docs/` (in monorepos, resolve from the app that depends on `next`). Keep the managed `<!-- BEGIN:nextjs-agent-rules -->` block in `AGENTS.md`. Do **not** use `npx @next/codemod agents-md`, `.next-docs`, or `NEXT-AGENTS-MD-START` (Next 15 index: Pages Router, `middleware.ts`).
|
|
4
|
+
This site runs **Next.js 16** (the minor is in `package.json`). Before writing Next.js code, read the relevant guide in `node_modules/next/dist/docs/` (in monorepos, resolve from the app that depends on `next`). Keep the managed `<!-- BEGIN:nextjs-agent-rules -->` block in `AGENTS.md`. Do **not** use `npx @next/codemod agents-md`, `.next-docs`, or `NEXT-AGENTS-MD-START` (Next 15 index: Pages Router, `middleware.ts`).
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
Skills come from the pinned `@se-studio/skills`, linked into `.agents/skills` by `skills-npm --yes` (the `prepare` script). Do not run `skills update` or `skills@latest`, and do not add third-party skill packs; a skill the site needs goes into `@se-studio/skills` through core. Keep any `AGENTS.md` / `CLAUDE.md` out of skill directories: Cursor always-applies those filenames.
|
|
7
7
|
|
|
8
8
|
## Dev server (Flight OOM patch)
|
|
9
9
|
|
|
@@ -15,7 +15,8 @@ Requirements:
|
|
|
15
15
|
- `package.json` sets `packageManager` (`pnpm/action-setup@v6` in the audit reads it; there is no `version:` input).
|
|
16
16
|
- The hooks directory is installed by `prepare` (`git config core.hooksPath .githooks` or husky). A failing `prepare` must not be silenced with `|| true`.
|
|
17
17
|
- `.claude/settings.json` must contain no tokens, and no allowlisted URL with an `access_token`.
|
|
18
|
-
- The repo's `validate` script is
|
|
18
|
+
- GitHub Actions runs only the deployment smoke (a Vercel Deployment Check), the audit above and any publish job. Vercel is the build, and its Deployment Checks (for example Lint and TypeCheck) are the gate; do not add a lint or test workflow on GitHub. The repo's `validate` script runs locally and is not a CI step. If it needs the Contentful tokens (`validate:routes` does), it reads them from the repo's `.env.local`, and `DRAFT_ONLY` picks the preview or delivery token.
|
|
19
|
+
- Link the package's skills into `.agents/skills` with `skills-npm --yes` in `prepare` (skipped on Vercel and CI). Do not run `skills update` or `skills@latest`. Keep the linked skill directories out of git: ignore everything under `.agents/skills`, `.claude/skills`, `.cursor/skills` and `.grok/skills` except the repo's own authored skills (use the `dir/*` form with `!dir/<name>` exceptions, as eagle-website does), and track `skills-npm-lock.json`.
|
|
19
20
|
- Run `pnpm install` in every worktree. The git hooks fail closed without it (the commit is refused). The Claude hook cannot: Claude Code only blocks a tool call on exit code 2, so with no `node_modules` it fails open. The git hooks are the enforcement; the Claude hook is advice earlier.
|
|
20
21
|
- The `pre-push` template runs `pnpm run type-check`: the repo needs that script (or edit the line).
|
|
21
22
|
- Repo setting: merge commits only, squash and rebase off, delete branch on merge on.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Only for a repo that vendors skill packs by hand (a customer site linked by skills-npm does not need it).
|
|
2
|
+
# Core runs the same strip from scripts/sync-skills.mjs.
|
|
2
3
|
# Cursor always-applies every AGENTS.md in the workspace. Skill packs must keep
|
|
3
4
|
# SKILL.md (and rules/) only — never an AGENTS.md / CLAUDE.md next to SKILL.md.
|
|
4
5
|
|
|
@@ -122,7 +122,7 @@ Step-by-step guides are available as **Cursor skills**. Use them when creating o
|
|
|
122
122
|
| **CMS guidelines — orchestration** (full **fresh** clean regen vs **sync** incremental + stale removal vs **merge-only**) | `.agents/skills/contentful-cms-update-cms-guidelines/SKILL.md` — if the user is vague (“regenerate guidelines”), confirm **fresh** vs **sync** before acting |
|
|
123
123
|
| **CMS guidelines — fragments** (full / single / merge-only; prefer **update-cms-guidelines** for true total regeneration) | `.agents/skills/contentful-cms-generate-cms-guidelines/SKILL.md` |
|
|
124
124
|
|
|
125
|
-
**Skills — canonical source and sync:** All SE Studio skills live in **`packages/skills/skills/`** (the `@se-studio/skills` npm package). **In the monorepo**, edit sources there, run **`pnpm skills:validate`**, then **`pnpm skills:sync`** to copy into **`.agents/skills`**. The repo root keeps **`.cursor/skills`** as a **symlink** to **`.agents/skills`**. **
|
|
125
|
+
**Skills — canonical source and sync:** All SE Studio skills live in **`packages/skills/skills/`** (the `@se-studio/skills` npm package). **In the monorepo**, edit sources there, run **`pnpm skills:validate`**, then **`pnpm skills:sync`** to copy into **`.agents/skills`**. The repo root keeps **`.cursor/skills`** as a **symlink** to **`.agents/skills`**. **Customer sites** depend on `@se-studio/skills` at an exact version and link its skills with `skills-npm --yes` in `prepare`; `npx skills add @se-studio/skills` is only for a one-off project without the dependency. Do not edit skills under **`.agents/skills`** by hand. Frontmatter rules: [`packages/skills/README.md`](packages/skills/README.md).
|
|
126
126
|
|
|
127
127
|
See also **docs/AI_QUICK_REFERENCE.md** for a short task → doc/skill index.
|
|
128
128
|
|
|
@@ -94,8 +94,8 @@ Add the MCP URL as a remote HTTP server and complete OAuth. Cursor: `~/.cursor/m
|
|
|
94
94
|
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
|
-
2.
|
|
98
|
-
3. Bundled cms-edit skills (`core`, `setup`, etc.) are included
|
|
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
|
|
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.
|
|
@@ -317,33 +317,19 @@ The showcase uses a **two-layer model**:
|
|
|
317
317
|
|
|
318
318
|
### Installing skills
|
|
319
319
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
```bash
|
|
323
|
-
npx skills add @se-studio/skills
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
This installs all SE Studio agent skills (including this one) into the project's agent skill
|
|
327
|
-
directories (e.g. `.claude/skills/` for Claude Code).
|
|
328
|
-
|
|
329
|
-
### Auto-sync on package update
|
|
330
|
-
|
|
331
|
-
Add `@se-studio/skills` and `skills-npm` as devDependencies, plus a `prepare` script so skills
|
|
332
|
-
reinstall whenever `pnpm install` is run locally (skipped on CI/Vercel):
|
|
320
|
+
A customer site depends on `@se-studio/skills` at an exact version and links its skills with `skills-npm` in `prepare` (skipped on CI/Vercel):
|
|
333
321
|
|
|
334
322
|
```json
|
|
335
323
|
"devDependencies": {
|
|
336
|
-
"@se-studio/skills": "
|
|
337
|
-
"skills-npm": "^
|
|
324
|
+
"@se-studio/skills": "<exact version>",
|
|
325
|
+
"skills-npm": "^4.1.0"
|
|
338
326
|
},
|
|
339
327
|
"scripts": {
|
|
340
|
-
"prepare": "node -e \"if(process.env.VERCEL||process.env.CI)process.exit(0);process.exit(1)\" || (
|
|
341
|
-
"skills:sync": "bash scripts/sync-skills.sh",
|
|
342
|
-
"skills:update": "npx -y skills@latest update -y"
|
|
328
|
+
"prepare": "node -e \"if(process.env.VERCEL||process.env.CI)process.exit(0);process.exit(1)\" || (git config core.hooksPath .githooks && skills-npm --yes)"
|
|
343
329
|
}
|
|
344
330
|
```
|
|
345
331
|
|
|
346
|
-
|
|
332
|
+
`skills-npm --yes` links the package's skills from `node_modules` into `.agents/skills` (and the agent directories). The version is pinned by the lockfile, so the skills match the installed package. Do not run `skills update` or `skills@latest`, do not keep a per-repo `scripts/sync-skills.sh`, and do not add third-party skill packs (a skill a site needs goes into `@se-studio/skills` through core). Track `skills-npm-lock.json`; ignore the linked skill directories (`.agents/skills`, `.claude/skills`, `.cursor/skills`, `.grok/skills`) except the repo's own authored skills. Use the `dir/*` form with `!dir/<name>` exceptions (as eagle-website does), not `dir/`, which cannot take exceptions. Hooks come from `customer-guardrails/` (see `packages/skills/references/agent-session/customer-guardrails/README.md`); replace `git config core.hooksPath .githooks` with `husky` if the repo uses husky.
|
|
347
333
|
|
|
348
334
|
### Script paths
|
|
349
335
|
|
|
@@ -256,14 +256,14 @@ Because each deployment builds from whatever is **published** in Contentful at b
|
|
|
256
256
|
|
|
257
257
|
## 7. Updating the skill / docs after changes
|
|
258
258
|
|
|
259
|
-
|
|
259
|
+
In the core monorepo only: after you edit this skill, run:
|
|
260
260
|
|
|
261
261
|
```bash
|
|
262
262
|
pnpm skills:validate
|
|
263
263
|
pnpm skills:sync
|
|
264
264
|
```
|
|
265
265
|
|
|
266
|
-
Then commit the updated `.agents/skills/...` (the monorepo keeps them in sync with the canonical source in `packages/skills/skills/`).
|
|
266
|
+
Then commit the updated `.agents/skills/...` (the monorepo keeps them in sync with the canonical source in `packages/skills/skills/`). A customer site does not edit skills; it gets them from `@se-studio/skills`.
|
|
267
267
|
|
|
268
268
|
## 8. Future work (explicitly out of scope for v1)
|
|
269
269
|
|
|
@@ -141,8 +141,8 @@ Marketing sites run **Next.js 16.4**. Version-matched docs live in each app’s
|
|
|
141
141
|
- **Keep** the managed `<!-- BEGIN:nextjs-agent-rules -->` block that `next dev` writes in `AGENTS.md`.
|
|
142
142
|
- **Do not** run `npx @next/codemod agents-md` or restore `NEXT-AGENTS-MD-START` / `.next-docs` — that index is Next 15 (Pages Router, `middleware.ts`, upgrade guides only through v15).
|
|
143
143
|
- Cursor’s Vercel plugin **`nextjs`** skill is fine for App Router patterns; it is not a substitute for `node_modules/next/dist/docs/`.
|
|
144
|
-
-
|
|
145
|
-
-
|
|
144
|
+
- Do not add third-party skill packs (for example `vercel-labs/agent-skills`) to a customer site; they are context noise and are not reviewed. A needed skill goes into `@se-studio/skills` through core.
|
|
145
|
+
- Keep `AGENTS.md` and `CLAUDE.md` out of skill directories: Cursor always-applies those filenames. Keep `SKILL.md` and `rules/`. Core strips them in `pnpm skills:sync` (`node scripts/strip-skill-always-on-docs.mjs`). A customer site links skills with `skills-npm` and does not run `skills update` or `skills@latest`.
|
|
146
146
|
|
|
147
147
|
---
|
|
148
148
|
|
|
@@ -151,7 +151,7 @@ Before any Contentful content edit:
|
|
|
151
151
|
|
|
152
152
|
1. Read `cms-edit/<site>/editor-pack/capabilities.json` and `tasks-index.md` (skill: `contentful-cms-editor-tasks`)
|
|
153
153
|
2. **Hosted (Claude Integrations):** connect to the site's MCP URL; read `tasks-index` via `cms_edit ["customer", "tasks-index"]` — never pass `--space`
|
|
154
|
-
3. **Local / Cursor / Grok:**
|
|
154
|
+
3. **Local / Cursor / Grok:** the skills are linked from the `@se-studio/skills` dependency by `skills-npm` (`pnpm install`) — use `contentful-cms-editor-tasks` then `contentful-cms-core`
|
|
155
155
|
4. Regenerate editor pack after registration or guideline changes (`contentful-cms-regenerate-editor-pack`)
|
|
156
156
|
5. Run `cms-edit project doctor --project-config cms-edit/<site>/project.json` after pack changes
|
|
157
157
|
```
|