agentleFS
M0xooM0xoo/wisp/.claude/skills/add-migration/SKILL.md

add-migration

Skill0 starsChanged 18 days agoMITView on GitHub

Use when a plugin needs a new table, column or index in the wisp v2 store, or changes the shape of rows or event bodies.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-provider.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • PydanticSkill

    add-provider

    Add a new inference provider to genai-prices, including provider data, matching, usage extractors, update automation, cassettes, agentic checks, generated artifacts, and Python/JavaScript/Go parity tests. Use for a new provider, not a new model on an existing provider.

    Also in 3 projects that use this

The file

Files
SKILL.md

Add a migration

  1. Migrations live with their owner plugin (host/src/migrations.ts), numbered and forward-only. Never edit one that has shipped; add the next one.
  2. Tables carry the plugin's prefix (crew_member, chan_thread). Kernel tables (change, mutation, meta, blob, setting, plugin) belong to @wisp/store; no plugin writes them directly.
  3. STRICT tables, explicit types, INTEGER PRIMARY KEY or TEXT ids. Don't use WITHOUT ROWID for small rows.
  4. Changing the shape of an event body bumps its v. Add an upcaster that reads the old shape; never rewrite history.
  5. The store snapshots the database (VACUUM INTO) before upgrading. Test the migration on a database made by the previous version (test/fixtures/).
  6. .agents/bin/monoflow verify --affected.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.