Files
ipal-kit/docs/agent/skills/ipal-plugin-gap/SKILL.md
T
Radosław SmolińskiandClaude Opus 5.5 2d9f3e15d4 Docs in English (part 1), seeding guide, Coolify deployment
- Translate to English every doc the code branches did not touch: AGENT.md,
  developer guide, vibe, CHANGELOG, docs index, module pages, all skills
  except ipal-seo-check (14 pages follow after the security/SEO merge).
  Placeholder marker is now [TO FILL: …]; skill resources renamed to
  section-code.md / nav-code.md. AGENT.md and the ipal-skills pointer
  block say the docs are in English.
- docs/seeding.md: create-only, natural keys, never delete, no users or
  secrets, empty-field globals, fallbackLocale: false, dry run, backup and
  restore, production update guard, seeds vs migrations, Coolify Terminal.
  Seed templates gain --dry-run, the SEED_UPDATE production guard
  (IPAL_SEED_ALLOW_PROD_UPDATE), skip of edited records and a summary.
  "Seeding on production" rule block in AGENT.md.
- Coolify is the single deployment path (deployment, env, developer guide,
  ipal-setup): build vs runtime env, migrations on container start
  (prodMigrations), health check and rolling updates, rollback, backups and
  restore, DNS/Let's Encrypt/CAA. R2: custom domain needs a Cloudflare zone;
  default is media served by the app (R2_PUBLIC_URL empty).
- docsConsistency: no Polish prose outside code/quoted data (pending pages
  listed); IPAL_* names may also be read by shipped skill templates.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-22 17:39:03 +02:00

53 lines
3.0 KiB
Markdown

---
name: ipal-plugin-gap
description: Handles the moment when @intecion/ipal-kit seems to lack a feature or behaves wrongly — verifies against the plugin docs and type definitions first, then writes a structured report for the plugin instead of patching the project with hooks, hardcoded values or copied plugin code. Use when tempted to work around the plugin, when a plugin function errors or is missing, or when the same need appears in several projects.
---
# ipal-plugin-gap
Rule: AGENT.md §1.3 — **do not patch silently**. A report + a minimal, marked
workaround (if the work needs it) — and you keep working, you do not wait for a reply.
Report type: **bug** (the plugin behaves differently from the docs) or **improvement**
(the same code written in yet another project; no option exists that would remove it).
**Plugin rule:** ipal-kit helps the project, never limits it. Every module can be
turned off separately; every default (access, fields, hooks, labels, routes, collections,
globals) can be overridden and the project config wins; safe defaults have an option to
relax them; the plugin exports building blocks, not only ready-made functions. A missing option or
building block is a **plugin gap to report** (type: improvement) — not a reason to patch `node_modules`.
## 1. Check that the plugin does not already have it
- `ls node_modules/@intecion/ipal-kit/docs/` — read the module file,
- `grep -rn "<keyword>" node_modules/@intecion/ipal-kit/dist --include=*.d.ts`,
- `ipalKit` options (`IpalOptions` in `dist/types.d.ts`: `*Fields`, `formOverrides`, `access`, `enabled`…)
and the exported building blocks (`build*`, `create*`) — often an override is enough, not a new function,
- check the version: `grep '"version"' node_modules/@intecion/ipal-kit/package.json`
(the problem may be fixed in a newer one — the **ipal-upgrade** skill).
The plugin has it → use it and tell the user where it was.
## 2. Report (when it really is missing or broken)
Save it in the project's `docs/plugin-requests/<date>-<topic>.md`. Show the user
right away only a **blocking bug** (you cannot go on without a workaround); everything else goes into
the final report (ipal-site, "For ipal-kit" section).
```markdown
# <topic>
**Type:** bug / improvement · **Project:** <name> · **ipal-kit:** <version>
## Problem
<what does not work / what is missing; error message; steps to reproduce>
## Why it belongs in the plugin
<whether other projects will need it — be specific>
## Proposed API
<function signature / ipalKit option / admin panel field; usage example in the project>
## Temporary workaround (if needed)
<minimal, in one file, with the comment `// WORKAROUND ipal-kit <version>: docs/plugin-requests/<file>`>
```
## 3. What not to do
- a hook with the client's domain/name/colour hardcoded,
- a copy of a plugin component in the project (e.g. `Analytics`, `CookieBanner`),
- edits / `patch-package` in `node_modules/@intecion/ipal-kit`,
- `as any` / `@ts-ignore` "to make it pass",
- dynamic `import()` through a variable (it will not be bundled).