IAPL rename: instructions say 'pnpm exec iapl-skills', which works whatever the project's script is called

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 17:47:39 +01:00
co-authored by Claude Fable 5.2
parent 3d5106bc4a
commit 630b736344
3 changed files with 50 additions and 50 deletions
+17 -17
View File
@@ -68,7 +68,7 @@ the banner → `<CookieBanner settings="detailed">` and remove the copy. With `d
3. **Postgres/SQLite:** `pnpm payload migrate:create` → `migrate` (Site settings → Search engines:
`search_verification_*`, `ai_crawlers_policy`, the `ai_crawlers_rules` table, localized `llms_intro`). With
`enabled: false` the migration now keeps (or restores) the plugin's tables — check it has no DROP TABLE. MongoDB: nothing.
4. `pnpm payload generate:importmap`, `pnpm iapl:skills`, `rm -rf .next`.
4. `pnpm payload generate:importmap`, `pnpm exec iapl-skills`, `rm -rf .next`.
5. **Behaviour to check** (grep the project, fix what applies): `getSettings` / `getSiteShell` read at `depth: 1` (code
that reads a relation of a relation → `createContentHelpers({ settingsDepth: 2 })`); `sitemap()` throws at runtime
instead of returning `[]` (`sitemapRoute` answers 503); a `twoFactor.collectionSlug` other than `admin.user` stops
@@ -117,7 +117,7 @@ panel opens and a document saves.
**→ 1.14.0 (PROGRAMISTA §6, items 48–49; CHANGELOG "What projects must update" — do all 8, in order):**
1. `pnpm payload generate:importmap` — `@intecion/ipal-kit/admin#FaviconCheck` (hint under Site settings → Site icon)
and the `RowLabel` entries are injected into every project; then `pnpm iapl:skills`, `rm -rf .next`. **Check:** pick
and the `RowLabel` entries are injected into every project; then `pnpm exec iapl-skills`, `rm -rf .next`. **Check:** pick
a 32×32 PNG as the site icon → a warning appears under the field; saving still works.
2. **Node.js 20.9 or later** (the plugin's `nodemailer` 10 needs it) — check the Coolify build image and `.nvmrc` /
`engines`. Remove `nodemailer` and `@types/nodemailer` from the project's own `package.json` if someone added them
@@ -218,7 +218,7 @@ and the browser tab shows the same separator.
utilities and `dark:` colour classes file by file (`iapl-audit` lists them) and remove the legacy block. next/font
variables become `--font-family-body` / `--font-family-heading`. Check: `iapl-tokens --check`, the site in both themes.
Only with the owner's decision ("Project decisions": which sites migrate when).
7. `pnpm iapl:skills` (new agent rules: architecture questions first, IAPL first). Optional with the owner's
7. `pnpm exec iapl-skills` (new agent rules: architecture questions first, IAPL first). Optional with the owner's
consent: `pnpm exec iapl-skills --external`.
**→ 1.15.0 (PROGRAMISTA §6, item 55; CHANGELOG 1.15.0 "What projects must update" — do all 10, in order):**
@@ -231,7 +231,7 @@ and the browser tab shows the same separator.
4. Optional: the block library, block by block (block-library.md); after turning blocks on: `pnpm generate:types`,
`pnpm payload generate:importmap`, Postgres/SQLite `migrate:create`.
5. **CookieButton** lifts above the footer — check a site with its own fixed footer bar; `avoid={false}` keeps it fixed.
6. `pnpm iapl:skills` (new **iapl-doctor**; updated iapl-reference, iapl-setup, iapl-site, iapl-audit).
6. `pnpm exec iapl-skills` (new **iapl-doctor**; updated iapl-reference, iapl-setup, iapl-site, iapl-audit).
7. Run `pnpm exec iapl-doctor` (and `--url https://<site>`), fix or silence each finding with a reason in
`iapl-doctor.json`. `IAPL_DOCTOR_TOKEN` (≥ 32 characters) only if the deep check runs against production.
8. Nothing for the exact dependency pins (`nodemailer` 10.3.1 and three more) beyond `pnpm install`.
@@ -245,18 +245,18 @@ and the browser tab shows the same separator.
**→ 1.15.1 (PROGRAMISTA §6, item 56; seed exit guard; seeding.md) — nothing required, recommended:**
1. Every seed script: `import { createSeeder, guardSeedExit } from '@intecion/ipal-kit/seed'` and `guardSeedExit()` as
the first statement, before `getPayload()`; the script ends with `seed.summary()` (the `iapl-site` / `iapl-form`
templates show it). `pnpm iapl:skills` for the updated templates.
templates show it). `pnpm exec iapl-skills` for the updated templates.
2. **Check:** run the seed with `SEED_DRY_RUN=1` locally → exit 0; in Coolify's Terminal after a seed, `echo $?` → `0`
(a `1` with `[seed] ended …` means the run stopped early — run it again).
**→ 1.15.2 (PROGRAMISTA §6, item 57; iapl-doctor route groups; doctor.md) — nothing required:**
1. `pnpm iapl:skills`; remove a temporary `layout-required` silence in `iapl-doctor.json` added for a route group with
1. `pnpm exec iapl-skills`; remove a temporary `layout-required` silence in `iapl-doctor.json` added for a route group with
another name or a `notFoundView.tsx`.
2. Two frontend candidates reported → `"layout": { "frontend": "src/app/(<group>)" }` in `iapl-doctor.json`.
**Check:** `pnpm exec iapl-doctor --strict` → no `layout-required` finding for the site's own route group.
**→ 1.15.3 (PROGRAMISTA §6, item 58; iapl-audit, bilingual panel labels; iapl-audit skill) — nothing required:**
1. `pnpm iapl:skills`, so the updated `audit.sh` and `polish-literals.mjs` reach the project.
1. `pnpm exec iapl-skills`, so the updated `audit.sh` and `polish-literals.mjs` reach the project.
2. Remove a temporary `i18n-literals` silence or `iapl-audit-skip` added because of `adminText()` / `{ en, pl }` labels.
**Check:** `pnpm exec iapl-doctor --strict` → no `i18n-literals` finding for a schema file's bilingual labels; Polish
text in a `.tsx` component is still reported.
@@ -280,7 +280,7 @@ text in a `.tsx` component is still reported.
**Check:** `SEED_DRY_RUN=1 pnpm seed` reports 0 errors; the real run creates the same records.
**→ 1.16.0 (PROGRAMISTA §6, item 61; files on forms, e-mailed and never stored; forms.md "Files") — nothing required:**
1. `pnpm iapl:skills`. Existing forms need nothing; without `forms.attachments` nothing changes. No import map change.
1. `pnpm exec iapl-skills`. Existing forms need nothing; without `forms.attachments` nothing changes. No import map change.
2. Only if the site wants files on a form (ask the owner): `iapl({ forms: { attachments: true } })`, a **File** field on
the form (panel or seed — `iapl-form` skill), one e-mail of that form with a fixed recipient (no `{{field}}`),
`pnpm generate:types`; Postgres/SQLite: `pnpm payload migrate:create` (additive). Add the `formClasses` keys `file`,
@@ -298,7 +298,7 @@ sender mailbox a minute later.
every site below Next.js 16.4.5:**
1. `pnpm add next@16.4.6 eslint-config-next@16.4.6`, `rm -rf .next`, `pnpm build`; commit `package.json` and the lockfile,
redeploy on Coolify (the new image ships the fixed Next.js).
2. `pnpm iapl:skills` (updated `iapl-setup` / `iapl-upgrade`).
2. `pnpm exec iapl-skills` (updated `iapl-setup` / `iapl-upgrade`).
**Check:** `pnpm ls next` → 16.4.6; `pnpm exec iapl-doctor` → no `next-min` finding; `pnpm dev` prints no security warning.
**→ 1.16.2 (PROGRAMISTA §6, item 63; Payload's mongoose and happy-dom advisories; AGENT.md §4 item 12) — required for
@@ -306,7 +306,7 @@ every site:**
1. Add to `pnpm.overrides` in `package.json`: `"mongoose@>=8 <8.24.7": "~8.24.10"` (MongoDB sites only) and
`"happy-dom@<21.0.4": "^21.0.4"` (every site). Then `pnpm install`, `pnpm build`; commit `package.json` and the
lockfile, redeploy on Coolify. No data change, no migration.
2. `pnpm iapl:skills` (updated `iapl-setup` / `iapl-upgrade`).
2. `pnpm exec iapl-skills` (updated `iapl-setup` / `iapl-upgrade`).
**Check:** `pnpm why mongoose happy-dom` → mongoose 8.24.10, happy-dom 21.0.4; `pnpm audit --prod` → no high or critical;
`pnpm exec iapl-doctor` → no `transitive-min` finding; open the panel and save a document.
@@ -323,7 +323,7 @@ recommended, not required (the plugin's peer range stays `^3.90.2`):**
`pnpm build`; commit `package.json` and the lockfile, redeploy on Coolify.
3. Postgres/SQLite: `pnpm payload migrate:create`, commit it if it is not empty (3.94.1 changes long index and foreign
key names). MongoDB: no migration.
4. `pnpm iapl:skills` (updated `iapl-setup` / `iapl-upgrade`).
4. `pnpm exec iapl-skills` (updated `iapl-setup` / `iapl-upgrade`).
**Check:** `pnpm ls payload @payloadcms/ui @payloadcms/db-mongodb` → 3.94.1; `pnpm why dompurify happy-dom` → 3.4.17,
21.0.4; `pnpm audit --prod` → no high or critical; `pnpm exec iapl-doctor` → no `versions` finding; Coolify Terminal
`node -v` → 22.23.5 or later; the panel opens, a document saves, a form submission arrives.
@@ -335,7 +335,7 @@ for every site:**
owner's OK: logs everyone out, 2FA code again, API keys regenerate; deployment.md "`PAYLOAD_SECRET` — length and
changing it"), or add `secretMinLength: 0` to `iaplEnvRules({ … })` for now and note it under "Project
decisions" in AGENTS.md.
1. Update the package, `pnpm install`, `pnpm iapl:skills`, build, redeploy on Coolify. No migration, no config
1. Update the package, `pnpm install`, `pnpm exec iapl-skills`, build, redeploy on Coolify. No migration, no config
change for a site with one auth collection. `pnpm ls @clocklimited/payload-2fa` should show 3.0.0-beta.7 (tested: beta.1 and beta.7);
another version may stop startup with `[iapl] twoFactor: the injected 2FA plugin did not add …`.
2. `grep -rn "auth:" src/collections` — more than one auth collection? Then: `admin: { user: '<staff slug>' }` in
@@ -380,7 +380,7 @@ gets `403` from the same addresses and from `POST /api/setup-totp`. The Coolify
the code → you land on `/admin` (not on example.com); a normal login still returns to the page you came from.
No option, env, schema or migration. A project that registered its own 2FA views, or wrote a proxy rule that
strips `back`, can keep them (`twoFactor.safeBack: false` turns the plugin's check off).
2. `pnpm iapl:skills`.
2. `pnpm exec iapl-skills`.
**→ 1.16.6 — 2FA setup required (CHANGELOG 1.16.6; PROGRAMISTA §6, item 68; security.md "Setup required") — required with 2FA on:**
**Not a routine patch, although the number is one.** From this version an account without 2FA can only set it up and is
@@ -392,7 +392,7 @@ site without steps 1–3 and a deploy day agreed with the owner. Steps 2, 3 and
Make sure at least one administrator (better two) has 2FA set up — otherwise nobody can reopen setup from the panel.
The 72 hours of existing accounts start at the first start after the deploy and are counted once (restarts
and redeploys do not extend them): agree the deploy day with the owner.
2. Update the package, `pnpm install`, `pnpm iapl:skills`, `pnpm payload generate:types`,
2. Update the package, `pnpm install`, `pnpm exec iapl-skills`, `pnpm payload generate:types`,
**`pnpm payload generate:importmap`** (new: `TwoFactorStatusField`, `TwoFactorAlert`; commit `importMap.js`),
then `pnpm exec iapl-doctor` before deploying.
3. **Postgres/SQLite — required, same deploy, or nobody can log in:** `pnpm payload migrate:create` (adds the
@@ -424,7 +424,7 @@ setup screen with "Set up two-step verification by …"; after the code it is in
account → "Two-step verification: Set up." and the reset button; delete the account.
**→ 1.16.7 (hardening; CHANGELOG 1.16.7; PROGRAMISTA §6, item 69) — not a routine patch: agree the deploy with the owner, read every point, most sites change nothing:**
1. Update the package, `pnpm install`, `pnpm iapl:skills`, `pnpm payload generate:types`. No import-map change, **no
1. Update the package, `pnpm install`, `pnpm exec iapl-skills`, `pnpm payload generate:types`. No import-map change, **no
schema change and no migration** on any database (the verify count uses Payload's own `payload-kv`
collection). `grep -n "staffCollections\|authCollection" src/payload.config.ts`: every slug there must be an
auth collection of the config — with a wrong one Payload does not start (the slug is in the log; `/api/health`
@@ -510,7 +510,7 @@ account → "Two-step verification: Set up." and the reset button; delete the ac
`"smtpPassword":"********"`; a test e-mail and a test form still work; an editor and an admin still log in.
**→ 1.16.8 (security follow-ups; CHANGELOG 1.16.8; PROGRAMISTA §6, item 71) — most sites: update, rebuild, read the start log:**
1. Update the package, `pnpm install`, `pnpm iapl:skills`. No option, schema, migration or import-map change.
1. Update the package, `pnpm install`, `pnpm exec iapl-skills`. No option, schema, migration or import-map change.
2. **Built with Turbopack?** `grep -n '"build"' package.json` — `next build` without `--webpack`: the old build serves
the plugin's `package.json` under `/_next/static/media/` (registry and repository addresses, no secret).
`rm -rf .next`, build, `find .next/static -name 'package*.json'` prints nothing; redeploy; purge a CDN or cache.
@@ -537,7 +537,7 @@ Every name from before keeps working: `ipalKit()` and the other old exports, the
ipal-kit"). **Do not rename anything in the project unless the owner asks.**
1. Update the package, `pnpm install`. No option, schema, migration or import-map change (`pnpm payload generate:importmap`
gives no diff).
2. Refresh the skills: `pnpm exec iapl-skills` (or the project's `pnpm ipal:skills` script — the same program). It
2. Refresh the skills: `pnpm exec iapl-skills` (the project's `ipal:skills` script, where it has one, runs the same program). It
installs `iapl-*`, removes the 16 old `ipal-*` folders by name (a skill of the project's own named `ipal-…` stays),
and rewrites the pointer block in `AGENTS.md` in place. Commit the result. Old skill names written by hand in
`AGENTS.md` ("Project decisions") are not touched: update them when you edit that file anyway.