ask-matt
免费Ask which skill or flow fits your situation. A router over the skills in this repo.
中文简介正在准备中。当前显示原文说明。
Database schema changes — generate the migration, update the seed, reseed. Use when editing `app/db/schema.ts`, when adding or altering a table, column, or enum, or when `npm run db:seed` fails to start.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
The database is disposable. data.db is gitignored and holds nothing but seed data, so every schema change is free: migrate, throw the file away, reseed from scratch.
Disposable is also why scripts/seed.ts is part of every schema change rather than a follow-up. The seed script is the definition of the starting data, and it recreates the whole database on each run — so a schema change that skips it produces data whose shape no longer matches the schema.
Edit the schema — app/db/schema.ts.
Generate the migration — npm run db:generate. This writes a new numbered SQL file into drizzle/. Read it and confirm it says what you intended.
Update scripts/seed.ts for every table you touched:
DROP TABLE IF EXISTS line to the drop block at the top of seed(), positioned above the tables it has foreign keys into (children drop first), and insert rows for it..values({ ... }) call for that table.../app/db/schema and use its members at the insert sites, matching how UserRole and CourseStatus are used.Reseed — npm run db:seed. It drops every table, replays the migrations in drizzle/, and reinserts. It prints a summary of row counts when it finishes.
Typecheck — npm run typecheck.
Done when every table changed in step 1 is accounted for in step 3, npm run db:seed prints its summary, and the typecheck passes.
A half-applied migration can leave data.db in a state the seed cannot drop its way out of. Delete it and reseed:
rm -f data.db data.db-shm data.db-wal
npm run db:seed
Nothing is lost — the file is rebuilt from drizzle/ and scripts/seed.ts.
npm run db:migratenpm run db:migrate applies pending migrations to the existing data.db, preserving the rows already in it. The seed already migrates before it inserts, so the steps above never need it. Reach for it when you specifically want to watch a migration land on existing data.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Ask which skill or flow fits your situation. A router over the skills in this repo.
中文简介正在准备中。当前显示原文说明。
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/PRD asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".
中文简介正在准备中。当前显示原文说明。
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
中文简介正在准备中。当前显示原文说明。
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.
中文简介正在准备中。当前显示原文说明。
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
中文简介正在准备中。当前显示原文说明。
A relentless interview to sharpen a plan or design.
中文简介正在准备中。当前显示原文说明。