chore(db): SR-11 M2 — drop legacy skill table + skill_overrides_json (#879) #894

Merged
charles merged 2 commits from feat/879-sr11-m2-drop-legacy-skill into main 2026-05-06 00:13:11 +00:00
Collaborator

Closes #879 (SR-11 M2).

Schema

  • 0003: DROP TABLE IF EXISTS skill
  • 0004: remove agent_type_config.skill_overrides_json via idempotent PRAGMA table_info guard in migrate.ts (avoids ALTER … DROP COLUMN on DBs that never had the column)

Boot order

  • Apply migrations paused before 0003, run runSr3M1Migration, then apply the rest so SR-3 can still read legacy skill / skill_overrides_json.

Code

  • Removed Drizzle skill table + resolveSkill / SkillRow and skill_overrides on AgentTypeConfigRow
  • Replaced loadSkill/skillCache with readSkillMarkdownFile in skill-library.ts
  • Type rename: agent_skill row updates; affected_rows.agent_skill (was skill); ConfigTable uses agent_skill

Note

No production / backup requirements for this environment; local DB loss acceptable.

just qa green; pre-push hook passed.

Closes #879 (SR-11 M2). ### Schema - `0003`: `DROP TABLE IF EXISTS skill` - `0004`: remove `agent_type_config.skill_overrides_json` via idempotent `PRAGMA table_info` guard in `migrate.ts` (avoids `ALTER … DROP COLUMN` on DBs that never had the column) ### Boot order - Apply migrations **paused before** `0003`, run `runSr3M1Migration`, then apply the rest so SR-3 can still read legacy `skill` / `skill_overrides_json`. ### Code - Removed Drizzle `skill` table + `resolveSkill` / `SkillRow` and `skill_overrides` on `AgentTypeConfigRow` - Replaced `loadSkill`/`skillCache` with `readSkillMarkdownFile` in `skill-library.ts` - Type rename: `agent_skill` row updates; `affected_rows.agent_skill` (was `skill`); `ConfigTable` uses `agent_skill` ### Note No production / backup requirements for this environment; local DB loss acceptable. `just qa` green; pre-push hook passed.
feat: remove legacy skills agent-config and GET /agents/skills (SR-10, #878)
All checks were successful
qa / dockerfile (pull_request) Successful in 7s
qa / sql-layer-check (pull_request) Successful in 7s
qa / db-schema (pull_request) Successful in 27s
qa / qa-1 (pull_request) Successful in 48s
qa / qa (pull_request) Successful in 0s
c87083224b
Drop the filesystem skill dump HTTP route in favour of /agents/skills/library,
remove skills from /agent-config CRUD and debug resolution, and align the web app:
history filters, inheritance panel on non-skills tabs, skill name discovery via
library endpoint, and SkillsTab typing for DB-backed skills only.

Co-authored-by: Cursor <cursoragent@cursor.com>
fix(history-tab): surface clear error for legacy skill revision restore (SR-10)
All checks were successful
qa / dockerfile (pull_request) Successful in 6s
qa / sql-layer-check (pull_request) Successful in 7s
qa / db-schema (pull_request) Successful in 11s
qa / qa-1 (pull_request) Successful in 53s
qa / qa (pull_request) Successful in 0s
026556860b
Split the generic "missing kind or name" guard so operators attempting
to restore a legacy `skill` revision see a meaningful message instead
of the confusing generic one.

Co-authored-by: Cursor <cursoragent@cursor.com>
chore(db): SR-11 M2 drop legacy skill ladder + skill_overrides_json (#879)
All checks were successful
qa / dockerfile (pull_request) Successful in 13s
qa / sql-layer-check (pull_request) Successful in 13s
qa / db-schema (pull_request) Successful in 15s
qa / qa-1 (pull_request) Successful in 1m31s
qa / qa (pull_request) Successful in 0s
932716aebe
- Migrations 0003 (DROP skill) + 0004 (idempotent column drop via migrate.ts)
- Pause applyMigrations before 0003, run SR-3 M1, then finish migrations
- Remove resolveSkill / skill schema; agent rename updates agent_skill
- Replace loadSkill cache with readSkillMarkdownFile from skill-library

Co-authored-by: Cursor <cursoragent@cursor.com>
fix(db): use plain string compare for pauseBeforeMigration; fix stale SR-11 error msg
All checks were successful
qa / sql-layer-check (pull_request) Successful in 9s
qa / dockerfile (pull_request) Successful in 12s
qa / db-schema (pull_request) Successful in 14s
qa / qa-1 (pull_request) Successful in 1m28s
qa / qa (pull_request) Successful in 0s
d92b7c25e5
- Replace locale-sensitive `localeCompare` with `>=` in migrate.ts pause guard
- Update history-tab error: "until SR-11" is now past tense

Co-authored-by: Cursor <cursoragent@cursor.com>
charles force-pushed feat/879-sr11-m2-drop-legacy-skill from d92b7c25e5
All checks were successful
qa / sql-layer-check (pull_request) Successful in 9s
qa / dockerfile (pull_request) Successful in 12s
qa / db-schema (pull_request) Successful in 14s
qa / qa-1 (pull_request) Successful in 1m28s
qa / qa (pull_request) Successful in 0s
to ed865a76e7
All checks were successful
qa / sql-layer-check (pull_request) Successful in 10s
qa / dockerfile (pull_request) Successful in 11s
qa / db-schema (pull_request) Successful in 35s
qa / qa-1 (pull_request) Successful in 1m25s
qa / qa (pull_request) Successful in 0s
2026-05-06 00:01:55 +00:00
Compare
charles deleted branch feat/879-sr11-m2-drop-legacy-skill 2026-05-06 00:13:12 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/claude-hooks!894
No description provided.