From 8646585b7e270d0c8199be96d087dc27eced2cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Smoli=C5=84ski?= Date: Thu, 22 Oct 2026 17:48:26 +0200 Subject: [PATCH] CLAUDE.md: main rule (the plugin helps projects, never limits them) and complete agent guide rule Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 3e76769..d4d50e8 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -2,3 +2,20 @@ This project uses the Payload CMS skill at `.claude/skills/payload/`. Start with `.claude/skills/payload/SKILL.md` for a quick reference, then see `.claude/skills/payload/reference/` for detailed docs. + +## Main rule: the plugin helps projects, never limits them + +ipal-kit is a plugin. Every change must leave the consuming project free to adapt it. + +- Every module and feature can be turned off on its own. Turning one off never takes away anything the project still needs. +- Every default can be overridden: access rules, fields, hooks, labels, routes, collections and globals. The project's own config is merged with the plugin's and wins. +- Secure defaults are welcome. They come with an option to loosen or extend them, never as a hard lock. +- Export the building blocks (helpers, builders, hooks), not only finished features. +- Never force a dependency, route, UI or data shape where an option or an exported piece would do. + +## Rule: an agent that adds the plugin gets the complete guide + +When an agent adds ipal-kit to a project, `docs/agent/AGENT.md` and the `ipal-*` skills (installed by `ipal-skills`) must tell it how to set up and use every function the plugin supports. + +- Every export, option, env var, route, middleware, layout component, admin import-map entry and hook a project must wire is documented, with steps and a way to verify it. +- A change that adds or alters a feature updates the agent guide and the matching skill in the same change.