@se-studio/skills 1.9.20 → 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 +44 -0
- package/README.md +2 -8
- package/agent-guard/README.md +47 -0
- package/agent-guard/bin.mjs +34 -0
- package/agent-guard/claude-pretool.mjs +97 -0
- package/agent-guard/cli.mjs +37 -0
- package/agent-guard/merge-gate.mjs +181 -0
- package/agent-guard/rules.mjs +399 -0
- package/agent-guard/shell.mjs +168 -0
- package/agent-guard/worktrees-clean.mjs +273 -0
- package/package.json +5 -1
- package/references/agent-session/customer-agents-block.md +23 -4
- package/references/agent-session/customer-code-review.md +2 -2
- package/references/agent-session/customer-guardrails/README.md +24 -0
- package/references/agent-session/customer-guardrails/claude-settings.json +15 -0
- package/references/agent-session/customer-guardrails/merge-gate-audit.yml +50 -0
- package/references/agent-session/customer-guardrails/pre-commit +7 -0
- package/references/agent-session/customer-guardrails/pre-push +11 -0
- package/references/agent-session/projects.registry.json +1 -1
- package/references/agent-session/strip-skill-always-on.sh +2 -1
- package/skills/architecture-review/SKILL.md +69 -0
- 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 +2 -1
|
@@ -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
|
|
|
@@ -110,6 +110,7 @@ Also copy:
|
|
|
110
110
|
| [`customer-architecture.mdc`](../../references/agent-session/customer-architecture.mdc) | `.cursor/rules/architecture.mdc` |
|
|
111
111
|
| [`customer-code-review.md`](../../references/agent-session/customer-code-review.md) | `CODE_REVIEW.md` (repo root) |
|
|
112
112
|
| Starter notes | `docs/AGENT_PROCESS_NOTES.md` (see [`process-feedback.md`](../../references/agent-session/process-feedback.md)) |
|
|
113
|
+
| [`customer-guardrails/`](../../references/agent-session/customer-guardrails/README.md) | `pre-commit`, `pre-push` hooks, `.claude/settings.json`, `.github/workflows/merge-gate-audit.yml` (add `@se-studio/skills` as an exact-version devDependency first) |
|
|
113
114
|
|
|
114
115
|
Do **not** create `.cursor/BUGBOT.md`. Do **not** create `.cursorrules`. Do **not** require a `nick-go` label.
|
|
115
116
|
|
|
@@ -150,7 +151,7 @@ Before any Contentful content edit:
|
|
|
150
151
|
|
|
151
152
|
1. Read `cms-edit/<site>/editor-pack/capabilities.json` and `tasks-index.md` (skill: `contentful-cms-editor-tasks`)
|
|
152
153
|
2. **Hosted (Claude Integrations):** connect to the site's MCP URL; read `tasks-index` via `cms_edit ["customer", "tasks-index"]` — never pass `--space`
|
|
153
|
-
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`
|
|
154
155
|
4. Regenerate editor pack after registration or guideline changes (`contentful-cms-regenerate-editor-pack`)
|
|
155
156
|
5. Run `cms-edit project doctor --project-config cms-edit/<site>/project.json` after pack changes
|
|
156
157
|
```
|