agentleFS
lfrodrigueslfrodrigues/packt-claude-code-course-auth/.claude/skills/db-migrate/SKILL.md

db-migrate

Skill9 starsChanged 4 months agoMITView on GitHub

Generate a migration from the Drizzle schema, summarize it, and apply only after confirmation

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use react-query-best-practices, you-might-not-need-a-callback and 6 more.

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.
  • bibektimilsina00Skill

    react-query-best-practices

    Audit and fix React Query usage in apps/web — enforce query key factories, signal forwarding, staleTime, and proper mutation patterns. Use when reviewing or fixing server-state code.

    Also in 3 projects that use this

  • bibektimilsina00Skill

    you-might-not-need-a-callback

    Analyze and fix useCallback anti-patterns in your code

    Also in 3 projects that use this

  • MicrosoftSkill

    cleanup

    Also in 3 projects that use this

  • SentrySkill

    commit

    Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

    Also in 3 projects that use this

  • MicrosoftSkill

    release

    Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).

    Also in 3 projects that use this

  • +3 more from bibektimilsina00

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run npm run db:generate to produce the migration from the current Drizzle schema.

    line 8
  2. Distinctive:

    STOP and ask for explicit confirmation.

    line 13
  3. Very specific:

    Only after the user confirms, run npm run db:migrate.

    line 14
  4. Very specific:

    Do NOT hand-edit generated SQL, apps/api/src/db/schema.ts, or existing migration files.

    line 18
  5. Distinctive:

    Do NOT apply a migration or drop data without the explicit confirmation in step 4 — schema changes are one-way doors.

    line 21

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “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

Generate and apply a database migration

  1. Run npm run db:generate to produce the migration from the current Drizzle schema.
  2. Print a short human-readable summary of what changed: tables added/dropped/renamed, columns, indexes, constraints — before showing raw SQL.
  3. Show the generated SQL.
  4. STOP and ask for explicit confirmation.
  5. Only after the user confirms, run npm run db:migrate.

Policy:

  • Do NOT hand-edit generated SQL, apps/api/src/db/schema.ts, or existing migration files. Schema changes flow from auth.ts / Drizzle schema → regenerate.
  • Do NOT apply a migration or drop data without the explicit confirmation in step 4 — schema changes are one-way doors.

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.