Reference site: Example Studio on ipal-kit (reference/), index for agents, CI job
reference/ is one complete client site on the plugin (made-up company, pl/en, MongoDB, every library block and template, token standard light/dark, forms, consent, SEO/GEO, enforced CSP, 2FA, base + demo seeds, Coolify runbook, smoke tests). It uses the plugin as file:.. (injected) and is not shipped. - docs/agent/reference-site/INDEX.md (generated by scripts/reference-index.mjs, kept current by test/referenceIndex.test.ts) - AGENT.md section and pointers in ipal-site, ipal-setup, ipal-reference, ipal-upgrade, ipal-block; release steps in PROGRAMISTA §8.1b - CI: reference (fast) on every push, reference-full on main; doctor steps wired, commented until ipal-doctor ships Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8bb5ebd394
commit
8adac41f92
@@ -95,6 +95,17 @@ the ready-to-send list is in **ipal-setup** stage 0 (ipal-site phase 0 uses the
|
||||
it, is marked `// WORKAROUND ipal-kit <version>: docs/plugin-requests/<file>` and is recorded in
|
||||
"Project decisions".
|
||||
|
||||
## Reference site — copy the pattern, not from memory
|
||||
|
||||
Every convention in this file is implemented in the **reference site**: one complete client site on ipal-kit
|
||||
("Example Studio", made up), kept current with each release and built, seeded and smoke-tested in the plugin's CI.
|
||||
Before you write a file the plugin expects you to wire (payload.config, layout, catch-all page, `lib/content.ts`,
|
||||
proxy, SEO/GEO routes, forms, seeds, `AGENTS.md`, `DESIGN.md`, deploy notes), open
|
||||
`node_modules/@intecion/ipal-kit/docs/agent/reference-site/INDEX.md`, find the matching file and copy its pattern —
|
||||
short wiring files are in the index in full, longer ones are linked at the tag of your plugin version. Change only the
|
||||
project's content (names, texts, blocks the site map needs), never the pattern. The index and this file disagree →
|
||||
report it with **ipal-plugin-gap**: it is a plugin bug.
|
||||
|
||||
## Code rules
|
||||
|
||||
Short version of §8 — every skill follows it.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -14,6 +14,8 @@ One section per use of this skill. Details and ready code:
|
||||
`node_modules/@intecion/ipal-kit/docs/agent/AGENT.md` §6.
|
||||
|
||||
## 0. Library block first (docs/block-library.md)
|
||||
See every block and variant rendered (also on `muted` and `inverted`) on the reference site's Blocks page — seed
|
||||
`src/seed/showcase.ts` in `docs/agent/reference-site/INDEX.md`; wiring: `src/blocks/configs.ts`, `src/blocks/registry.ts` there.
|
||||
The plugin ships 15 blocks: `hero`, `textMedia`, `featureGrid`, `cta`, `richText`, `faq`, `contact`, `gallery`,
|
||||
`testimonials`, `stats`, `steps`, `logos`, `team`, `pricing`, `entryList` (variants: `blockLibraryManifest`).
|
||||
1. Does a library block or one of its variants fit the section? → turn it on in `src/blocks/configs.ts`
|
||||
|
||||
@@ -6,6 +6,8 @@ description: Complete map of everything @intecion/ipal-kit provides — every ip
|
||||
# ipal-reference
|
||||
|
||||
## How to use
|
||||
- **A working example of every row** is in the reference site: `docs/agent/reference-site/INDEX.md` (file → what it
|
||||
shows; wiring files in full).
|
||||
- **Look here first**, then at the code. Looking for a function → `grep -n "<word>" resources/api.md`
|
||||
(`resources/api.md` — every export: import, what it does). Module description:
|
||||
`node_modules/@intecion/ipal-kit/docs/<page>.md` (the "details" column).
|
||||
|
||||
@@ -8,6 +8,10 @@ description: Complete start-to-finish install of @intecion/ipal-kit in a Payload
|
||||
**Goal: the MANDATORY SET from AGENT.md §0b (18 items), with nothing left "to discover".** Stage 11
|
||||
checks everything; you do not finish with gaps (exception: an `ipal-audit-skip:` line from a client decision, AGENT.md §0b).
|
||||
|
||||
**Canonical code:** every stage's files exist, wired and tested, in the reference site —
|
||||
`node_modules/@intecion/ipal-kit/docs/agent/reference-site/INDEX.md` (AGENT.md "Reference site"). When a snippet here
|
||||
and the reference site differ, the reference site is the current one (and the difference is a plugin bug to report).
|
||||
|
||||
**Stage 0 first: ask the architecture questions and wait for the answers** (below). After that: **one stage = one
|
||||
commit** (`git commit -m "ipal-setup <N>: <stage>"`), no waiting for an OK between stages (AGENT.md §0a). Missing
|
||||
*content data* (keys, IDs, company data) does not block you: wire the code, the value goes into `.env`/the panel
|
||||
|
||||
@@ -45,7 +45,9 @@ decision on that part; no hand-built replacement, no silent workaround. **Code r
|
||||
decision (AGENT §0a) and on a plugin gap (ipal-plugin-gap — report, wait for the owner).
|
||||
|
||||
## Phase 1 — Foundation
|
||||
- New project → **ipal-setup** (all of it, with `ipal-skills`, `AGENTS.md`).
|
||||
- New project → **ipal-setup** (all of it, with `ipal-skills`, `AGENTS.md`). Every file you wire has its canonical
|
||||
version in the reference site: `node_modules/@intecion/ipal-kit/docs/agent/reference-site/INDEX.md` (AGENT.md
|
||||
"Reference site") — copy the pattern, change only the content.
|
||||
- Existing project on an older ipal-kit → **ipal-upgrade** before anything else.
|
||||
- Exit: `pnpm build` passes, `/admin` works, `ipal-audit --quick` = 0 errors —
|
||||
**including zero "missing: …"**, i.e. the full AGENT.md §0b set (SEO, GEO, R2, Turnstile,
|
||||
@@ -66,6 +68,8 @@ decision on that part; no hand-built replacement, no silent workaround. **Code r
|
||||
## Phase 3 — Navigation and company data → **ipal-nav**
|
||||
|
||||
## Phase 4 — Sections → **ipal-block** for every block
|
||||
The reference site's Blocks page (`/pl/bloki` on the reference site, seed `src/seed/showcase.ts` in the index) shows
|
||||
every library block in every variant, also on the inverted background — pick the closest block × variant there.
|
||||
Library blocks need no code: `libraryBlocks(blockOptions)` in the Pages layout and `createBlockRegistry(content,
|
||||
{ Image, Link, sendForm })` in `src/blocks/registry.ts` (docs/block-library.md "Setup"). Change looks through
|
||||
`classNames` / `ui`, never by copying a block; own it completely only with `ipal-blocks eject <block>`.
|
||||
@@ -116,6 +120,8 @@ title/description of every page (≤ 60 / ≤ 155 characters, unique); `aiSummar
|
||||
keep the auto-fill or fix it when the summary is weak.
|
||||
|
||||
## Phase 8 — Design
|
||||
The reference site's `/design` page (`src/components/design/TokenPanel.tsx` in the index) is the styleguide to reproduce:
|
||||
every token from `IPAL_TOKENS`, light and dark, the inverse scope.
|
||||
The design-token standard (AGENT.md §6.11, `design-tokens.md`): `DESIGN.md` exists → its values go into
|
||||
`src/design/tokens.ts` (template `.agents/skills/ipal-setup/resources/tokens.ts`) → `pnpm exec ipal-tokens` (no ✗
|
||||
contrast rows). None → copy the `DESIGN.md` template, keep the neutral defaults + the brand primary, and recommend
|
||||
|
||||
@@ -197,6 +197,9 @@ and the browser tab shows the same separator.
|
||||
consent: `pnpm exec ipal-skills --external`.
|
||||
|
||||
## 2. Inventory (no code changes)
|
||||
**What changed for projects** between your old and new plugin version is exactly the reference site's diff —
|
||||
`git diff v<old> v<new> -- reference/` in the ipal-kit repo (or the two `docs/agent/reference-site/INDEX.md` files):
|
||||
every file a project must touch, already done once and tested in the plugin's CI.
|
||||
For **every** item in the PROGRAMISTA §6 table show evidence (grep / file) of whether
|
||||
it applies to the project. Run the **ipal-audit** skill (`--quick`) and attach the result.
|
||||
Result: a prioritised to-do list — carry it out right away. Stop
|
||||
|
||||
Reference in New Issue
Block a user