5.9 KiB
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 fromdocs/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 (templatehome) - About
/pl/o-nas·/en/about— templateabout - Services
/pl/uslugi·/en/services— templateservices; three service pages (templateservice, quote form) - Case studies
/pl/realizacje·/en/case-studies— archive of thecaseStudiescollection (entry list block) - Blog
/pl/blog·/en/blog— archive ofposts(templateblogIndex+ entry list); posts use templatepost - 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— templatenotFound, 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
postsandcaseStudieswith 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
turnstileandanalytics; reports to/api/csp-report. - Approved exception: the
/designstyleguide 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.17.0 — agent guide
This project is built on @intecion/ipal-kit (a Payload CMS 3 plugin). Before you write code:
- Rules:
node_modules/@intecion/ipal-kit/docs/agent/AGENT.md. - Everything the plugin provides (options, env vars, routes, layout, hooks, collections, globals, every export): the
ipal-referenceskill —.agents/skills/ipal-reference/SKILL.md. - New project or missing foundation: the
ipal-setupskill; a whole site:ipal-site. All skills:.agents/skills/. - Module details:
node_modules/@intecion/ipal-kit/docs/<module>.md. - ipal-kit first: if the plugin has it, use it. Broken or not enough → report it with the
ipal-plugin-gapskill and wait for the owner — no hand-built replacement, never patchnode_modules. - 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".
- ipal-kit docs, this guide and the skills are in English; write rules, AGENTS.md entries and gap reports in English.