@se-studio/skills 1.10.2 → 1.10.5

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # @se-studio/skills
2
2
 
3
+ ## 1.10.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 2df7403: Deps-update skill: core validate uses `pnpm validate` instead of a writing `pnpm format`, core bumps go through a worktree PR, and a Biome bump section.
8
+
9
+ ## 1.10.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 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.
14
+
15
+ ## 1.10.3
16
+
17
+ ### Patch Changes
18
+
19
+ - 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.
20
+
3
21
  ## 1.10.2
4
22
 
5
23
  ### 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 external projects:**
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@se-studio/skills",
3
- "version": "1.10.2",
3
+ "version": "1.10.5",
4
4
  "description": "SE Studio agent skills for marketing site development with Contentful CMS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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`). Ignore `vercel-react-native-skills` if the vercel-labs pack installed it.
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
- After `pnpm skills:sync`, strip `AGENTS.md` / `CLAUDE.md` that sit next to a skill `SKILL.md`. Cursor always-applies those filenames; Vercel packs must stay on-demand.
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 what CI runs (`pnpm validate`), not a hand-picked subset.
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
- # Source from scripts/sync-skills.sh after installing skills.
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
 
@@ -18,7 +18,7 @@
18
18
  "displayName": "SE Core Product",
19
19
  "path": "~/source/se/se-core-product",
20
20
  "branch": "dev",
21
- "validate": "bash scripts/check-circular-imports.sh && pnpm skills:validate && pnpm format; pnpm type-check",
21
+ "validate": "pnpm skills:sync && pnpm validate",
22
22
  "workspace": true,
23
23
  "hasPinOverrides": true
24
24
  },
@@ -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`**. **External projects** install skills via the `skills` CLI: `npx skills add @se-studio/skills`. Do not edit skills under **`.agents/skills`** by hand. Frontmatter rules: [`packages/skills/README.md`](packages/skills/README.md).
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. Run `npx skills add @se-studio/skills` or `pnpm skills:sync` in the monorepo
98
- 3. Bundled cms-edit skills (`core`, `setup`, etc.) are included when you run `npx skills add @se-studio/skills`
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
- For standalone projects not in the monorepo, install SE Studio skills via the `skills` CLI:
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": "^1.0.0",
337
- "skills-npm": "^1.1.1"
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)\" || (husky && skills-npm --yes && pnpm skills:update)",
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
- Commit `skills-lock.json` after the first `pnpm skills:sync`.
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
- After you edit anything in this area, run:
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
- - After `npx skills add vercel-labs/agent-skills`, **delete `vercel-react-native-skills`** — these are web sites. Do not treat React Native skills as Next guidance.
145
- - After any `skills add` / `skills:sync`, **delete `AGENTS.md` and `CLAUDE.md` that sit next to a `SKILL.md`**. Cursor always-applies those filenames. Keep `SKILL.md` and `rules/`. Core: `node scripts/strip-skill-always-on-docs.mjs`. Customer `scripts/sync-skills.sh` must call the same strip (see `packages/skills/references/agent-session/strip-skill-always-on.sh`).
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
 
@@ -220,6 +220,10 @@ pnpm install # restore isolated linker for day-to-day work
220
220
 
221
221
  Do **not** add `win32` to `supportedArchitectures` to make Mac hoisted pass.
222
222
 
223
+ **Biome bumps:** run `pnpm exec biome check .` (not `pnpm format`, which writes files) and read the result before committing. Minor Biome releases add lint rules and new language formatters. Keep `markdown` and `yaml` formatting disabled in `biome.json` so a bump does not rewrite docs and workflows, and fix new rule findings in code rather than turning rules off. Never commit a mass reformat that came from `biome format --write`.
224
+
225
+ **Generated state:** after a pull or a skills change, run `pnpm skills:sync` (core) so `.agents/skills` matches `packages/skills/skills`; a stale copy makes `skills:layout` fail locally and is not a bug in the change.
226
+
223
227
  Always run the patches check **once**, then the project validate from the registry:
224
228
 
225
229
  ```bash
@@ -240,7 +244,7 @@ git commit -m "chore(deps): update dependencies (<displayName>)"
240
244
  git push origin <branch>
241
245
  ```
242
246
 
243
- - se-core-product → `dev`
247
+ - se-core-product → a `feature/core/<slug>` worktree and PR into `dev` (the agent guard refuses direct commits on `dev`); merge after CI is green
244
248
  - All consumer repos → `develop`
245
249
  - **Never** push to `main`/`master`/`production` from this skill (deps stay on `dev`/`develop`)
246
250
 
@@ -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:** `npx skills add @se-studio/skills` — use `contentful-cms-editor-tasks` then `contentful-cms-core`
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
  ```