@se-studio/skills 1.10.20 → 1.10.23
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 +18 -0
- package/package.json +1 -1
- package/references/agent-session/customer-guardrails/README.md +1 -1
- package/references/deployment-smoke-feature-branch-skip/README.md +13 -4
- package/references/deployment-smoke-feature-branch-skip/workflow-snippet.yml +2 -1
- package/skills/architecture-review/SKILL.md +1 -1
- package/skills/contentful-cms-regenerate-editor-pack/SKILL.md +1 -1
- package/skills/se-marketing-sites-smoke-test-setup/SKILL.md +5 -23
- package/skills/site-workflows-new-project/SKILL.md +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @se-studio/skills
|
|
2
2
|
|
|
3
|
+
## 1.10.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 89a4275: R2.7 asks which code a core change affects and whether consumers need a bump or a call-site change. Name the API or behaviour, not a customer site.
|
|
8
|
+
|
|
9
|
+
## 1.10.22
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f9fc330: New projects register the Vercel deployment-smoke check with targets `["production"]` and omit the feature-branch skip job. Existing projects PATCH `/v2/projects/{projectId}/checks/{checkId}` with `{"targets":["production"]}`. Integration-branch smoke still runs and does not block aliasing.
|
|
14
|
+
|
|
15
|
+
## 1.10.21
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 4852aa2: Let a cms-edit tenant with packTag `latest` follow the highest published `cms-edit-pack-<key>-v*` Release. Exact tags still pin. A bad Release or a GitHub error keeps the previous pack. HSD is the pilot in the host fixtures.
|
|
20
|
+
|
|
3
21
|
## 1.10.20
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ Requirements:
|
|
|
16
16
|
- `package.json` sets `packageManager` (`pnpm/action-setup@v6` in the audit reads it; there is no `version:` input).
|
|
17
17
|
- The hooks directory is installed by `prepare` (`git config core.hooksPath .githooks` or husky). A failing `prepare` must not be silenced with `|| true`.
|
|
18
18
|
- `.claude/settings.json` must contain no tokens, and no allowlisted URL with an `access_token`.
|
|
19
|
-
- GitHub Actions runs the shared site CI workflow (`site-ci.yml`: lint, typecheck, and tests), the deployment smoke (a Vercel Deployment Check), the audit above, and any publish job. Prettier, lychee link checking, and Lighthouse CI are inputs on that workflow; turn on the ones this repo uses. Lighthouse URLs are public origins with no bypass token. The shared workflow strips the query and fragment before upload and does not publish reports to temporary public storage. The caller job grants `actions: write` so that upload can succeed; only the Lighthouse job uses it. Vercel is still the production build. The repo's `validate` script also runs locally. 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
|
+
- GitHub Actions runs the shared site CI workflow (`site-ci.yml`: lint, typecheck, and tests), the deployment smoke (a Vercel Deployment Check with `targets` `["production"]` — feature previews are not gated, and new projects omit the skip job that posts a passing status on other branches), the audit above, and any publish job. Prettier, lychee link checking, and Lighthouse CI are inputs on that workflow; turn on the ones this repo uses. Lighthouse URLs are public origins with no bypass token. The shared workflow strips the query and fragment before upload and does not publish reports to temporary public storage. The caller job grants `actions: write` so that upload can succeed; only the Lighthouse job uses it. Vercel is still the production build. The repo's `validate` script also runs locally. 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.
|
|
20
20
|
- 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`.
|
|
21
21
|
- 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.
|
|
22
22
|
- The `pre-push` template runs `pnpm run type-check`: the repo needs that script (or edit the line).
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
# Deployment smoke — skip
|
|
1
|
+
# Deployment smoke — feature-branch skip (existing preview-targeted checks only)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
New projects do not add this job. Create the Vercel check with `targets` `["production"]` (`POST /v2/projects/{projectIdOrName}/checks`). Feature previews are then not gated, so they no longer wait up to the check timeout and a skip job is not required. The smoke workflow still runs on production and on the integration-branch preview. Full rule: `se-marketing-sites-smoke-test-setup`.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
An existing project switches with:
|
|
6
|
+
|
|
7
|
+
```http
|
|
8
|
+
PATCH /v2/projects/{projectId}/checks/{checkId}
|
|
9
|
+
{"targets":["production"]}
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
After that PATCH, delete `skip-smoke-outside-integration-branches`. Keep the integration-preview and production smoke jobs; the preview run is a normal Actions job and does not block aliasing.
|
|
13
|
+
|
|
14
|
+
**Interim, only while the check still lists `preview`:** Vercel waits for a GitHub status. On feature-branch previews the `smoke` job `if` excludes the branch, so no status is posted and the alias stays on "Waiting for checks". The skip job below posts **success** for those refs. Real smoke still runs on the integration preview and on production.
|
|
6
15
|
|
|
7
16
|
## Requirements
|
|
8
17
|
|
|
@@ -63,4 +72,4 @@ gh api "repos/<owner>/<repo>/statuses/<commit-sha>" \
|
|
|
63
72
|
|
|
64
73
|
1. Merge skip job to default branch.
|
|
65
74
|
2. Open a feature PR — Vercel preview should complete without pending deployment smoke.
|
|
66
|
-
3. Push to `develop` — deployment smoke should run
|
|
75
|
+
3. Push to `develop` — deployment smoke should still run. While the check lists `preview`, that run gates the develop alias. After `targets` is `["production"]`, it does not.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Interim only, while an existing Vercel check still lists "preview".
|
|
2
|
+
# New projects set targets to ["production"] and do not add this job.
|
|
2
3
|
# Replace <vercel-project-name> and integration/production refs as needed.
|
|
3
4
|
|
|
4
5
|
jobs:
|
|
@@ -31,7 +31,7 @@ Map the diff to the sections and ask only the questions that apply. Each range i
|
|
|
31
31
|
|
|
32
32
|
| Area | Rules | Core question |
|
|
33
33
|
|---|---|---|
|
|
34
|
-
| Placement | R2.1 to R2.7 | Does a second site need this? Is a customer workaround, patch or fork hiding a core bug (R2.1b, R2.3, R2.5)? Is an extension point generic, not per-customer (R2.6)? Does the PR
|
|
34
|
+
| Placement | R2.1 to R2.7 | Does a second site need this? Is a customer workaround, patch or fork hiding a core bug (R2.1b, R2.3, R2.5)? Is an extension point generic, not per-customer (R2.6)? Does the PR name the affected API or behaviour, and whether consumers need a bump or a call-site change, without naming a customer site (R2.7)? |
|
|
35
35
|
| Site shape | R3.1 to R3.7 | Does it stay inside the T0/T1 tiers, with deviations commented and recorded (R3.6)? |
|
|
36
36
|
| Schema | R4.0 to R4.8 | Is it a numbered, idempotent migration (R4.5, R4.5a), in core first (R4.7), with a distinct type per different UI (R4.2a)? |
|
|
37
37
|
| Rendering | R5.1 to R5.28 | Four layers, server/client boundary, no catalogue fetch in a component (R5.23), fail closed (R5.21), no RTF flattening (R5.19), no invented links or copy (R5.20). |
|
|
@@ -95,7 +95,7 @@ git commit -m "chore(cms-edit): regenerate editor pack"
|
|
|
95
95
|
|
|
96
96
|
**Absolute rule for agents:** hosted MCP is **never** published via `vercel deploy`, `pnpm cms-edit:deploy*`, or `deploy-cms-edit-host.sh`. Commit and push is the only deploy path for customer repos with `cms-edit/host/`.
|
|
97
97
|
|
|
98
|
-
**Option C (shared multi-tenant host):** Customer CI publishes the committed pack as a GitHub Release (`editor-pack.tar.gz`) via the reusable workflow `Something-Else-Studio/se-core-product/.github/workflows/cms-edit-pack-publish.yml`. Agents do **not** run `gh release create` (or treat the printed command from `cms-edit host pack-publish` as something to execute) unless Nick explicitly asks. Do **not** regenerate the pack in CI — publish the committed `editor-pack/` only. Tags are immutable (`cms-edit-pack-<projectKey>-v<version>`)
|
|
98
|
+
**Option C (shared multi-tenant host):** Customer CI publishes the committed pack as a GitHub Release (`editor-pack.tar.gz`) via the reusable workflow `Something-Else-Studio/se-core-product/.github/workflows/cms-edit-pack-publish.yml`. Agents do **not** run `gh release create` (or treat the printed command from `cms-edit host pack-publish` as something to execute) unless Nick explicitly asks. Do **not** regenerate the pack in CI — publish the committed `editor-pack/` only. Tags are immutable (`cms-edit-pack-<projectKey>-v<version>`). A tenant on `packTag: latest` serves the new Release within the host TTL, with no registry edit. An exact `packTag` still pins until someone changes the fixture and the Vercel env `CMS_EDIT_TENANT_REGISTRY_JSON`, then redeploys. Do not set `latest` in that env before the host that understands it is deployed.
|
|
99
99
|
|
|
100
100
|
See `packages/contentful-cms/HOSTED.md` (Option C section) for the caller workflow sketch.
|
|
101
101
|
|
|
@@ -56,8 +56,7 @@ Example `package.json` entries:
|
|
|
56
56
|
|
|
57
57
|
**Vercel Deployment Check (live URL)** — GitHub Action on `vercel.deployment.ready` tests `client_payload.url` before production domains alias. Workflow must live on the repo **default branch**. Register the status `name` in Vercel → Settings → Build and Deployment → Deployment Checks.
|
|
58
58
|
|
|
59
|
-
**
|
|
60
|
-
Filter on `client_payload.environment == 'production'` when Deployment Checks target production only. Vercel also dispatches for preview and custom environments (`preview`, `develop`, etc.); skip those to avoid duplicate CI runs. Use `workflow_dispatch` without an environment filter for manual smoke against any URL.
|
|
59
|
+
**Production-only smoke check.** New projects create the check `Vercel - <project>: deployment smoke` (git-provider, `requires` `deployment-url`, `blocks` `deployment-alias`) with `targets` `["production"]` — `POST /v2/projects/{projectIdOrName}/checks`. Targets accept `production`, `preview`, `all`, or a custom environment id, and they do not accept branch names. With `preview` included, every feature-branch alias waits on that status for up to the check timeout (600s on current sites) unless a skip job posts green. Production-only targets remove that wait and the Actions minutes the skip job used, so new projects omit `skip-smoke-outside-integration-branches`. The workflow still runs smoke on production deploys (`main`, or `production` when that is the production branch, such as HopSkipDrive) and on the integration-branch preview (`develop` or `dev`); that preview run is a normal Actions job and does not block aliasing. An existing project applies `PATCH /v2/projects/{projectId}/checks/{checkId}` with body `{"targets":["production"]}`. The old skip-job snippet stays only for a project whose check still lists `preview`: [`references/deployment-smoke-feature-branch-skip/`](../../references/deployment-smoke-feature-branch-skip/README.md). `workflow_dispatch` stays unfiltered so a manual run can smoke any URL.
|
|
61
60
|
|
|
62
61
|
```yaml
|
|
63
62
|
# .github/workflows/deployment-smoke.yml
|
|
@@ -74,26 +73,9 @@ permissions:
|
|
|
74
73
|
statuses: write
|
|
75
74
|
|
|
76
75
|
jobs:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
github.event.client_payload.project.name == '<vercel-project-name>' &&
|
|
81
|
-
github.event.client_payload.git.ref != 'develop' &&
|
|
82
|
-
github.event.client_payload.git.ref != 'main'
|
|
83
|
-
runs-on: ubuntu-latest
|
|
84
|
-
steps:
|
|
85
|
-
- name: Skip deployment smoke on feature branches
|
|
86
|
-
env:
|
|
87
|
-
CHECK_NAME: 'Vercel - <vercel-project-name>: deployment smoke'
|
|
88
|
-
DEPLOYMENT_SHA: ${{ github.event.client_payload.git.sha }}
|
|
89
|
-
GH_TOKEN: ${{ github.token }}
|
|
90
|
-
run: |
|
|
91
|
-
gh api "repos/${GITHUB_REPOSITORY}/statuses/${DEPLOYMENT_SHA}" \
|
|
92
|
-
-f state=success \
|
|
93
|
-
-f context="${CHECK_NAME}" \
|
|
94
|
-
-f description="Skipped — deployment smoke runs only on develop and main" \
|
|
95
|
-
-f target_url="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
|
|
96
|
-
|
|
76
|
+
# Alias gate is the Vercel check (targets: ["production"] only).
|
|
77
|
+
# This job still runs on the integration preview and on production.
|
|
78
|
+
# Do not add a job that posts a passing status for other branches.
|
|
97
79
|
smoke:
|
|
98
80
|
if: |
|
|
99
81
|
(github.event_name == 'workflow_dispatch') ||
|
|
@@ -144,7 +126,7 @@ jobs:
|
|
|
144
126
|
-f target_url="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
|
|
145
127
|
```
|
|
146
128
|
|
|
147
|
-
Use the deployment commit SHA from `client_payload.git.sha`, not `github.sha`. Repeat the retry block in each job when a workflow has multiple Vercel projects (monorepos).
|
|
129
|
+
Use the deployment commit SHA from `client_payload.git.sha`, not `github.sha`. Repeat the retry block in each job when a workflow has multiple Vercel projects (monorepos). Swap `develop` / `main` in the `smoke` `if` when the integration branch is `dev` or the production branch is `production`.
|
|
148
130
|
|
|
149
131
|
GitHub secret: `VERCEL_PROTECTION_BYPASS_TOKEN` (Vercel → Deployment Protection → Protection Bypass for Automation). Set `SMOKE_TEST_IGNORE=true` to bypass smoke in an emergency.
|
|
150
132
|
|
|
@@ -338,6 +338,7 @@ After bootstrap, the project is ready for:
|
|
|
338
338
|
2. **Design system** — update `tailwind.config.json` with brand colors and typography when the design is ready
|
|
339
339
|
3. **Components** — use `se-marketing-sites-create-component` and `se-marketing-sites-create-collection` skills to build project-specific components
|
|
340
340
|
4. **Navigation/Footer** — replace the stubs with real components once the design is known
|
|
341
|
+
5. **Deployment smoke check** — create it with `targets` `["production"]` and omit the feature-branch skip job (`se-marketing-sites-smoke-test-setup`)
|
|
341
342
|
|
|
342
343
|
Commit the bootstrapped state before starting component work:
|
|
343
344
|
```bash
|