/cairn:evolvefrom cairn
Use when a Cairn user wants to change or remove something that already exists — phrasings like "add a field / rename a column / change the type / make it required or unique / change who can see or edit records / add skip-logic to the form / delete this record / delete the collection". For creating new collections, use design instead.
Ships in cairn. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Change a live collection — its fields, its rules, who sees what, or its existence — without losing data by accident. These are changes to real tables holding real records: dropped columns lose their data permanently, a mishandled rename is a silent drop, and there is no undo. Slow is smooth.
No write — `set_permissions`, `set_rule`/`remove_rule`, `delete_record`, and any `update_data_schema` whose plan **drops no column** — until its preview (the dry-run plan, the before → after diff, or the exact thing being deleted) was shown in this conversation and the user explicitly said yes to it.The two destructive ones are gated differently: delete_collection, and update_data_schema when the plan drops a column. The server confirms those itself — it answers the call with a request for the user to type a value back (the collection name; the dropped column names) and executes only once that comes back. Show the preview and say plainly what would be destroyed, then call the tool and let the server's confirmation appear — don't ask for a yes or for the typed value first, or the user confirms the same destruction twice. If the server refuses because your client can't present that step, say so and point the user at the Cairn web app; don't retry.
Start every change from a fresh read — get_data_schema (plus get_permissions when touching who-sees-what), never from memory or scrollback. If the conversation paused, re-read before executing: someone may have changed the collection meanwhile.
get_data_schema — a property omitted from it becomes a DROP COLUMN.dry_run_update_data_schema first, and read the plan back in plain words: what's added, what's changed, droppedColumns (their stored data is destroyed — name each one), and inferredRenames — confirm every rename with the user and resend it explicitly via renames. An ambiguous rename left unhinted silently degrades to drop-and-recreate: the column's data is gone.blockers are changes the server refuses (lossy type change, making an existing column required): explain them, don't reshape the schema to dodge them silently.update_data_schema with the same schema and renames, and report what the tool returned, including any unenforcedRules. Who confirms depends on the plan: if it drops no column, only after an explicit yes on that exact plan; if it drops one, step 6 — ask for no yes of your own.Same discipline as at creation (the design skill): get_permissions first, speak in plain sentences ("everyone can see records; people edit only their own"), validate_cel_expression every predicate before it appears in a proposal, then show the exact per-field before → after diff and call set_permissions only on its own yes. Flag plainly when a change widens access (clearing update_when/delete_when lets any member touch any record) and that changing read_when/approval_granted_when makes affected members fully resync the collection.
set_rule / remove_rule edit conditional show/hide on the form; preview with render_collection_form after each change.
query_records), get a yes for that record, then delete_record. If the server refuses because other records reference it, report that reason — the referencing records must change first; don't retry.aggregate_records) so the user knows what is at stake, then call delete_collection: the server asks for the confirmation, requiring the user to type the collection name back before anything is dropped. Don't stage your own yes/no first, and never type the name on the user's behalf. If deletion is blocked because another collection references it, say so and offer to remove the referencing field first (a schema change, above) — the server checks this before asking, so a blocked delete never reaches a confirmation. If the server refuses because your client doesn't support MCP elicitation, the collection can still be deleted from the Cairn web app — say so rather than looking for another tool.Constraints, defaults, calculations, rules, and permissions all take Cairn-extended CEL — profile-gated access (_profile.is_supervisor == true), geo fences (location.inside(zone)), date windows (visit_date >= today().subtractDays(30)), tree relations (area.isDescendantOf(region)). get_guide('cel') lists the full catalog; read the collection's celContext and validate_cel_expression before proposing any of it.
update_data_schema without a dry-run of the same payload shown in this conversation — and approved there too, unless the plan drops a column, in which case the server takes the confirmation and you take none.design's job.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub platyplus/cairn-plugin --plugin cairn7 skills in this plugin
/designUse when a Cairn user wants to start tracking something — one thing or a whole project. Phrasings like "I want to track / collect / register / make a form for X", or "set up my project / we need to track several things / here's our paper system". Covers a single new collection, a multi-collection setup with links and permissions, and adding collections to an existing project. Not for loading data (ingest), answering data questions (explore), or restructuring existing collections./designing-tdd-ingestUse when a Cairn user wants to load data they need to *trust* — a recurring or pipeline-fed import where correctness must be checked, not assumed. Phrasings like "make sure the import is right / the totals should match / verify these loaded correctly / this runs every week / import from my pipeline and check it / did anything get dropped". Adds an assertion-first discipline — state the expected counts, coverage, categories, and shape *before* loading, then dry-run, verify, land, and re-verify — on top of a plain import. For a one-off paste-and-go load with no correctness to prove, use `ingest` instead./exploreUse when a Cairn user asks a question about the data already in a collection — phrasings like "how many / which / show me / top N / trend over time / breakdown by ..." — answered as a table or an aggregation (counts, group-by, time trend).Other plugins' skills for the same job