IAPL rename: docs, agent guide, skills, reference site and starter on the new names; changelog draft
- docs, AGENT.md, the 16 skills, PROGRAMISTA and README use the preferred names (scripted, same list of forms); past CHANGELOG entries and the proposals in docs/dev are not rewritten - AGENT.md: 'Names: IAPL and ipal-kit' — old name, new name, state in 1.x; what is not renamed; storageNames - iapl-upgrade '→ 1.17.0', PROGRAMISTA §6 item 72, CHANGELOG 1.17.0 (draft): nothing required - env.md, doctor.md (legacy-names, storage-names), stats.md, security.md, project-starter.md, iapl-reference, iapl-setup - skill scripts read ipal-audit-skip and IPAL_IP_HEADER too; audit rule ids stay what they were - reference site: iapl(), iapl-doctor.json, iapl-* skills, storageNames: 'iapl'; INDEX.md regenerated Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
425fac14fb
commit
b91984fbcd
+34
-34
@@ -11,26 +11,26 @@
|
||||
|
||||
The agent works like an independent contractor (AGENT.md §0a): it asks once, in one list,
|
||||
only for missing data; it makes technical decisions itself; it checks its own
|
||||
work; it speaks up only with the final report (or when ipal-kit has a bug).
|
||||
work; it speaks up only with the final report (or when IAPL has a bug).
|
||||
|
||||
```
|
||||
/ipal-site <brief: client, industry, pages and sections, languages, forms — or a path to a brief file>
|
||||
/iapl-site <brief: client, industry, pages and sections, languages, forms — or a path to a brief file>
|
||||
```
|
||||
You: answer the list of questions (or don't — it will use the defaults), and at the end
|
||||
read the report: what was done, check results, `[TO FILL]` placeholders,
|
||||
reports to ipal-kit. The steps below are **guided mode** — for when you want to
|
||||
reports to IAPL. The steps below are **guided mode** — for when you want to
|
||||
control each stage or fix one thing.
|
||||
|
||||
| Need | Prompt |
|
||||
|---|---|
|
||||
| new section / section fix | `/ipal-block <Name> — <description/screenshot>` |
|
||||
| form | `/ipal-form <which form, where, who receives submissions>` |
|
||||
| new language | `/ipal-locale-add <code> — <who translates>` |
|
||||
| change fields that have content in the database | `/ipal-migrate-fields <what to what>` |
|
||||
| something does not work | `/ipal-debug <symptom / message>` |
|
||||
| SEO / Google does not see it | `/ipal-seo-check <url>` |
|
||||
| GDPR / pixels before consent | `/ipal-consent-check <url>` |
|
||||
| before handover | `/ipal-audit` |
|
||||
| new section / section fix | `/iapl-block <Name> — <description/screenshot>` |
|
||||
| form | `/iapl-form <which form, where, who receives submissions>` |
|
||||
| new language | `/iapl-locale-add <code> — <who translates>` |
|
||||
| change fields that have content in the database | `/iapl-migrate-fields <what to what>` |
|
||||
| something does not work | `/iapl-debug <symptom / message>` |
|
||||
| SEO / Google does not see it | `/iapl-seo-check <url>` |
|
||||
| GDPR / pixels before consent | `/iapl-consent-check <url>` |
|
||||
| before handover | `/iapl-audit` |
|
||||
|
||||
---
|
||||
|
||||
@@ -48,9 +48,9 @@ control each stage or fix one thing.
|
||||
6. When the agent breaks a rule — use the repair prompts at the end of this file; do not explain
|
||||
it again from scratch.
|
||||
|
||||
**Skills instead of long prompts.** When the project has the ipal-kit skills
|
||||
(`pnpm exec ipal-skills`, AGENT.md §14), most steps are one short
|
||||
prompt, e.g. `/ipal-block Hero — <description/screenshot>`. The prompts below also work
|
||||
**Skills instead of long prompts.** When the project has the IAPL skills
|
||||
(`pnpm exec iapl-skills`, AGENT.md §14), most steps are one short
|
||||
prompt, e.g. `/iapl-block Hero — <description/screenshot>`. The prompts below also work
|
||||
without skills; the short version is given at each step.
|
||||
|
||||
**Prefix for every prompt** (paste it at the start if the agent does not read
|
||||
@@ -79,7 +79,7 @@ buildLinksField/CMSLink, minimum collections. If not — tell it to read again.
|
||||
|
||||
## STEP 1 — Skeleton and installation
|
||||
|
||||
Short version: `/ipal-setup` (walks through steps 1–8, stage by stage).
|
||||
Short version: `/iapl-setup` (walks through steps 1–8, stage by stage).
|
||||
|
||||
|
||||
```
|
||||
@@ -114,7 +114,7 @@ Do not copy rules from AGENT.md — only a link.
|
||||
```
|
||||
Create src/i18n.config.ts (as const satisfies I18nConfig) with languages <…>
|
||||
and payload.config.ts according to PROGRAMISTA.md §2.3:
|
||||
ipalKit with i18n, access, pages (slug 'pages'), seo, forms,
|
||||
iapl with i18n, access, pages (slug 'pages'), seo, forms,
|
||||
twoFactor with INJECTED payloadTotp (issuer: '<client name>'), whiteLabel: true,
|
||||
email: mailAdapter(). Do not add content collections yet.
|
||||
Plan first.
|
||||
@@ -153,7 +153,7 @@ Before this: `/impeccable init` and `/impeccable document` → `PRODUCT.md`, `DE
|
||||
Based on DESIGN.md, create src/app/(frontend)/styles.css according to AGENT.md §6.11:
|
||||
@theme with tokens (primary, background, foreground, muted + fonts), @source for the plugin,
|
||||
mapping of --ipal-primary / --ipal-radius. Fonts through next/font.
|
||||
Then the primitives 1:1 from node_modules/@intecion/ipal-kit/docs/agent/skills/ipal-block/resources/section-code.md:
|
||||
Then the primitives 1:1 from node_modules/@intecion/ipal-kit/docs/agent/skills/iapl-block/resources/section-code.md:
|
||||
components/ui/CMSLink.tsx,
|
||||
Button.tsx, Media.tsx, Section.tsx, SectionHeader.tsx, and components/icons according to §6.10.
|
||||
Zero hex values in components — tokens only.
|
||||
@@ -189,7 +189,7 @@ Do this according to PROGRAMISTA.md §2.8–2.9 and seo.md:
|
||||
- next.config.ts: htmlLimitedBots, buildSecurityHeaders,
|
||||
- page metadata through generatePageMetadata from lib/content (shared cache), favicon through buildIconsMetadata,
|
||||
- JSON-LD: Organization + WebSite come from SiteProviders using Site settings; local business → siteJsonLd in createContentHelpers (seo.md),
|
||||
- src/instrumentation.ts with assertEnv(ipalEnvRules(...)) imported from @intecion/ipal-kit/env (env.md).
|
||||
- src/instrumentation.ts with assertEnv(iaplEnvRules(...)) imported from @intecion/ipal-kit/env (env.md).
|
||||
No CSP yet — that comes in step 14.
|
||||
Plan first.
|
||||
```
|
||||
@@ -199,17 +199,17 @@ Check: `curl -A "Googlebot" http://localhost:3000/pl | grep canonical` — in `<
|
||||
|
||||
## STEP 8 — Header, Footer, company data
|
||||
|
||||
Short version: `/ipal-nav <menu items, footer columns, market>`.
|
||||
Short version: `/iapl-nav <menu items, footer columns, market>`.
|
||||
|
||||
|
||||
```
|
||||
Do this according to AGENT.md §6.8, code from node_modules/@intecion/ipal-kit/docs/agent/skills/ipal-nav/resources/nav-code.md:
|
||||
Do this according to AGENT.md §6.8, code from node_modules/@intecion/ipal-kit/docs/agent/skills/iapl-nav/resources/nav-code.md:
|
||||
- globals/Header.ts, Footer.ts (code from §6.8),
|
||||
- globals/Company.ts for market <PL/AU/…>: name, address, <NIP/ABN/…>, phone, email —
|
||||
all localized where it is text,
|
||||
- menu through resolveNav from lib/content (plugin, NOT lib/navigation.ts), components/layout/Header.tsx, Footer.tsx, MobileNav.tsx,
|
||||
- legal links in the footer from System pages roles, NOT by hand,
|
||||
- the project's own globals (Header, Footer, Company) get buildGlobalRevalidateHook (afterChange); plugin globals refresh through ipalKit({ revalidatePath }).
|
||||
- the project's own globals (Header, Footer, Company) get buildGlobalRevalidateHook (afterChange); plugin globals refresh through iapl({ revalidatePath }).
|
||||
Wire it into [locale]/layout.tsx. a11y labels from the admin panel.
|
||||
Plan first.
|
||||
```
|
||||
@@ -230,7 +230,7 @@ Goal: as few blocks as possible, each reusable. Do not write code.
|
||||
|
||||
**9b. One block:**
|
||||
|
||||
Short version: `/ipal-block <Name> — <fields from 9a>, <appearance description / screenshot>`.
|
||||
Short version: `/iapl-block <Name> — <fields from 9a>, <appearance description / screenshot>`.
|
||||
|
||||
```
|
||||
Build the <name> block according to AGENT.md §6 (layer 3):
|
||||
@@ -249,11 +249,11 @@ Check with the checks from AGENT.md §11 (grep for `ctaLabel`, `href="/`, `<img`
|
||||
|
||||
## STEP 10 — Forms, Turnstile, email
|
||||
|
||||
Short version: `/ipal-form <form, who receives submissions>`.
|
||||
Short version: `/iapl-form <form, who receives submissions>`.
|
||||
|
||||
```
|
||||
Do this according to forms.md, turnstile.md, email.md:
|
||||
- form block: <RenderForm> from @intecion/ipal-kit/rsc + formClasses.ts (ipal-form skill) — fields, steps,
|
||||
- form block: <RenderForm> from @intecion/ipal-kit/rsc + formClasses.ts (iapl-form skill) — fields, steps,
|
||||
select options and texts from the admin panel, no custom renderer,
|
||||
- consent checkbox (GDPR consent) with a link to the policy through getSystemPagePath,
|
||||
- Turnstile from SiteProviders in the layout — without passing siteKey to the block,
|
||||
@@ -282,7 +282,7 @@ pings to Google); only non-Google pixels are blocked until consent (analytics.md
|
||||
|
||||
## STEP 12 — Content collections (only when the client needs them)
|
||||
|
||||
Short version: `/ipal-collection <what the client needs>`.
|
||||
Short version: `/iapl-collection <what the client needs>`.
|
||||
|
||||
|
||||
```
|
||||
@@ -301,7 +301,7 @@ Plan first.
|
||||
|
||||
```
|
||||
Check according to hooks.md that these are wired:
|
||||
buildRevalidateHook (a collection hook: Pages + content collections; plugin globals: ipalKit({ revalidatePath }); the project's own globals: buildGlobalRevalidateHook, as in step 8), trackSlugHistoryHook + resolveRedirect,
|
||||
buildRevalidateHook (a collection hook: Pages + content collections; plugin globals: iapl({ revalidatePath }); the project's own globals: buildGlobalRevalidateHook, as in step 8), trackSlugHistoryHook + resolveRedirect,
|
||||
buildCrossLocaleFieldSync (languages from the config), buildPreventDeleteSystemPage, buildValidateUniqueRole.
|
||||
Show a test: change a page's slug → the old URL returns 308 to the new one.
|
||||
```
|
||||
@@ -335,8 +335,8 @@ a hex value instead of a token, a new field with a forbidden name, or a file >80
|
||||
|
||||
## STEP 16 — Audit before handover
|
||||
|
||||
Short version: `/ipal-audit` (script), on the built app `/ipal-seo-check http://localhost:3000`
|
||||
and `/ipal-consent-check http://localhost:3000/<locale>`, then the editor test and compliance by hand.
|
||||
Short version: `/iapl-audit` (script), on the built app `/iapl-seo-check http://localhost:3000`
|
||||
and `/iapl-consent-check http://localhost:3000/<locale>`, then the editor test and compliance by hand.
|
||||
|
||||
|
||||
```
|
||||
@@ -372,14 +372,14 @@ Move <what> to a field in <block/global> and show the diff.
|
||||
**Zoo of CTA fields / monolithic section:**
|
||||
```
|
||||
Stop. AGENT.md §6.5–6.6: CTA = buildLinksField() + CMSLink, image = media + Media,
|
||||
max ~80 lines of JSX. Refactor <block> according to §6.7. If there is content in the database — run /ipal-migrate-fields first.
|
||||
max ~80 lines of JSX. Refactor <block> according to §6.7. If there is content in the database — run /iapl-migrate-fields first.
|
||||
```
|
||||
|
||||
**Unreadable admin panel (cta1/cta2, dozens of fields, "Item 01", Polish labels):**
|
||||
```
|
||||
Stop. AGENT.md §6.5a: repeated items = an array with labels + rowLabel ("+ Add …"), zero numbered
|
||||
fields and spare fields, EN labels of 1–3 words, descriptions ≤ 80 characters, settings in the sidebar.
|
||||
Fix <block> (with content in the database → /ipal-migrate-fields) and run the empty block test.
|
||||
Fix <block> (with content in the database → /iapl-migrate-fields) and run the empty block test.
|
||||
```
|
||||
|
||||
**The agent writes something the plugin already has:**
|
||||
@@ -389,7 +389,7 @@ already has it (AGENT.md §1.1, §7). If it does — remove your code and use th
|
||||
```
|
||||
|
||||
**The plugin is missing something / the plugin has a bug:**
|
||||
Short version: `/ipal-plugin-gap <what does not work>`.
|
||||
Short version: `/iapl-plugin-gap <what does not work>`.
|
||||
```
|
||||
Do not patch it silently. Write a report according to AGENT.md §1.3 (problem, proposed API, why it is universal)
|
||||
in docs/plugin-requests/, tell me, and wait for my decision on that part — no workaround on your own.
|
||||
@@ -403,7 +403,7 @@ If it is a block or a global — rework it.
|
||||
|
||||
**"Done" without proof:**
|
||||
```
|
||||
Run /ipal-audit (without --quick) and show the full output. Without it the step is not finished.
|
||||
Run /iapl-audit (without --quick) and show the full output. Without it the step is not finished.
|
||||
```
|
||||
|
||||
**The agent lost the rules (long conversation):**
|
||||
@@ -414,9 +414,9 @@ and check your recent changes against §0 (compass). List the violations.
|
||||
|
||||
---
|
||||
|
||||
## EXISTING PROJECT — upgrade to the latest ipal-kit
|
||||
## EXISTING PROJECT — upgrade to the latest IAPL
|
||||
|
||||
Short version: `/ipal-upgrade`.
|
||||
Short version: `/iapl-upgrade`.
|
||||
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user