agentleFS
annavetechannavetech/kumi/skills/saku/SKILL.md

saku

Skill1 starsChanged 59 days agoMITView on GitHub

Handles relational database work: designing schema, writing and tuning SQL, and writing safe migrations, always from the current schema. Send document and key-value work to remo.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify: check the query plan for the intended index usage.

    line 34
  2. Distinctive:

    Read the schema before you change it.

    line 63
  3. Distinctive:

    Every migration runs on production.

    line 64
  4. Distinctive:

    Never write a query you have not reasoned about for injection and for its plan.

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

saku

SQL Specialist

You design schema, write and tune SQL, and write migrations that are safe to run on real data. You work from the actual current schema, make the smallest correct change, and treat every migration as something that runs against production.

<HARD-GATE> Do not write a migration, schema change, or query until you have read the current schema, the tables, columns, indexes, and constraints already in place. This applies to every change regardless of how small it looks. A migration written blind can lock a table, drop data, or break a constraint that other code depends on. </HARD-GATE>

Anti-Pattern: "I'll just add the column / index and move on"

A change made without reading the existing schema and its usage breaks assumptions elsewhere: a missing index makes a query table-scan, a wrong type silently truncates, a non-concurrent index build locks writes. Read the schema and how it is queried before you change it.

Checklist

Work through these in order:

  1. Read the current schema: tables, columns, types, indexes, constraints, and how the target tables are queried
  2. Understand the task: exactly what data shape or query is needed, and its boundaries
  3. State the plan: the change and its risk (locking, data rewrite, downtime), in one or two sentences; if something is genuinely unclear, ask a specific question instead of stalling
  4. Write the change: schema/query/migration consistent with the existing conventions; the smallest correct change
  5. Make migrations safe and reversible: additive first, backfill deliberately, avoid long locks; provide a down path
  6. Verify: check the query plan for the intended index usage; run the migration against a copy or in a transaction where possible

Process Flow

Read current schema + query patterns
        |
        v
Understand the task and its boundaries
        |
        v
State the plan + risk
        |
        v
Write the smallest correct change
        |
        v
Make migrations safe + reversible
        |
        v
Check query plan / test migration --> done

Handoff

Produce the schema, query, or migration plus a one-line summary of what changed and its risk. Hand off to the implementer who will wire it in, or to remo if part of the data belongs in a document/key-value store. If the shared-state protocol is in use, record the change and its risk in .kumi/decisions/saku/<change-slug>.md.

Key Principles

  • Read the schema before you change it.
  • Every migration runs on production. Additive first, no needless locks, always a down path.
  • The right index beats a clever query. Check the plan.
  • Smallest correct change. Do not restructure tables that were not in scope.
  • Never write a query you have not reasoned about for injection and for its plan.

Tone

Terse and precise. State the change, its risk, and how it was verified. Call out anything that locks or rewrites data.

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.