Files
ipal-kit/reference/AGENTS.md
T
Radosław SmolińskiandClaude Opus 5.5 1270ebc3d1
CI / check (push) Failing after 5m28s
CI / reference (push) Skipped
CI / reference-full (push) Skipped
1.16.6 upgrade notes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 20:38:42 +01:00

5.9 KiB
Raw Blame History

AGENTS.md

Project: Example Studio (Pracownia Przykład, made up) · example-studio.pl · market PL · industry architecture and interior design Languages: pl (default), en · Media: R2 in production, local disk in dev · Email: SMTP from Site integrations

This is the ipal-kit reference site (reference/ in the plugin repo). Every file shows a convention from docs/agent/AGENT.md; the company and all content are invented. The project starter (ipal-kit create) is generated from this folder (starter.manifest.json).

Rules

Before your first change, read all of: node_modules/@intecion/ipal-kit/docs/agent/AGENT.md Module details: node_modules/@intecion/ipal-kit/docs/<module>.md. Skills: .agents/skills/ipal-* (refresh: pnpm exec ipal-skills). Always run ipal-audit before "done". The rules in AGENT.md take precedence over your general knowledge of Next/Payload. ipal-kit first: anything the plugin covers is built with the plugin. Missing or broken → plugin gap (ipal-plugin-gap): report to the owner and wait; never a hand-built replacement or a patch in node_modules. Code rules: AGENT.md "Code rules" (single responsibility, no duplicates, typed, texts from the panel, checks). Write everything in this file in English.

Site map

  • Home /pl · /en — hero, logos, featureGrid, textMedia, stats, testimonials, faq, cta (template home)
  • About /pl/o-nas · /en/about — template about
  • Services /pl/uslugi · /en/services — template services; three service pages (template service, quote form)
  • Case studies /pl/realizacje · /en/case-studies — archive of the caseStudies collection (entry list block)
  • Blog /pl/blog · /en/blog — archive of posts (template blogIndex + entry list); posts use template post
  • Contact /pl/kontakt · /en/contact — Contact form; Quote /pl/wycena · /en/quote — step-by-step Quote form
  • Privacy policy, Terms, Cookie policy — templates legal / cookiePolicy, noindex
  • 404 /pl/nie-znaleziono — template notFound, assigned in System pages
  • Blocks showcase /pl/bloki · /en/blocks — every library block × variant, also inverted; noindex (demo only)
  • Design tokens /pl/design · /en/design — the styleguide, light and dark; noindex, not a Pages document

Project decisions

  • Languages: pl (default) and en, every language with a URL prefix (/pl/…, /en/…); / redirects to /pl.
  • Styling: the ipal-kit token standard — src/design/tokens.ts → pnpm tokens → src/design/tokens.css; fluid-wide; brand sage green + terracotta accent, sharp radius; Inter (body) + Fraunces (headings) via next/font.
  • Pages and content: Pages from library blocks only (all 15 turned on for the showcase); collections posts and caseStudies with archive pages.
  • Forms: Contact form and Quote form (step-by-step), seeded; e-mail to the company (Company → E-mail) and a confirmation to the sender; SMTP from Site integrations; Turnstile on.
  • Analytics and consent: GA4/GTM wired but off until IDs are entered; Consent Mode advanced (default); banner settings="detailed", controls="switch", equalChoice; consent log on; cookie scanner with crawl (shared cookie-crawler service).
  • SEO/GEO: local business (ProfessionalService JSON-LD from the Company global); llms.txt, llms-full.txt, Markdown, MCP and AI bots on; FAQ rich results from FAQ blocks; policies noindex.
  • Database and media: MongoDB only; database names from databaseNamesFor('example-studio.pl') → example-studiopl_dev / example-studiopl_prod; media on Cloudflare R2 in production (R2_PUBLIC_URL empty = served by the app), local disk in dev.
  • Admin: 2FA on (issuer "Example Studio"); white-label from Site settings; adminMeta on; Intecion technology credit (default).
  • Hosting: Coolify — the team's existing flow: build and check locally, Coolify builds the app from the repo with its default build pack (Nixpacks), MongoDB is a separate Coolify resource on the same Docker network; no Dockerfile (docs/DEPLOY.md). Domains example-studio.pl + www (redirect to apex). DNS by the team.
  • Theme: light and dark with a toggle; Site settings → Theme default "system" (set by hand in the panel — the seed cannot change a field that already holds its default value, reported as a plugin gap).
  • CSP: enforced (not report-only), flags turnstile and analytics; reports to /api/csp-report.
  • Approved exception: the /design styleguide has its labels in code (token names, a technical page, noindex) — the "texts from the panel" rule does not apply to it.
  • Approved exception: ALLOW_LOCAL_MEDIA=1 (instrumentation.ts, next.config.ts) lets a production build run without R2 for local checks and CI only; never set in Coolify.

ipal-kit 1.16.6 — agent guide

This project is built on @intecion/ipal-kit (a Payload CMS 3 plugin). Before you write code:

  1. Rules: node_modules/@intecion/ipal-kit/docs/agent/AGENT.md.
  2. Everything the plugin provides (options, env vars, routes, layout, hooks, collections, globals, every export): the ipal-reference skill — .agents/skills/ipal-reference/SKILL.md.
  3. New project or missing foundation: the ipal-setup skill; a whole site: ipal-site. All skills: .agents/skills/.
  4. Module details: node_modules/@intecion/ipal-kit/docs/<module>.md.
  5. ipal-kit first: if the plugin has it, use it. Broken or not enough → report it with the ipal-plugin-gap skill and wait for the owner — no hand-built replacement, never patch node_modules.
  6. Before you set up a site: ask the owner the architecture questions (AGENT.md "Ask before you build") and wait for the answers; record them under "Project decisions".
  7. ipal-kit docs, this guide and the skills are in English; write rules, AGENTS.md entries and gap reports in English.