0054 — Editable database-backed agent prompts and skills #135

Merged
chad merged 6 commits from glen/editable-prompts-skills into main 2026-10-20 18:56:31 -04:00
Collaborator

What changed

  • Seed app prompt sections and shipped skills from Git into SQLite once; serve the active version from the database, with history, optimistic concurrency, restore and reset to current shipped defaults.
  • Add Settings UI for prompt/skill editing, previews, diffs, status, skill creation and reversible deletion; label the boundary between editable guidance and code-enforced tool checks.
  • Add approval-gated propose_prompt_change for agent-proposed prompt and skill changes, with full review cards in chat and Inbox. New thread bindings accept only active thread skills.
  • Add design doc 0054, migration 0057 and reconstructed 0056 Drizzle snapshot so generated schema never re-adds shipped usage columns.

Verification

  • npm run typecheck, npm run lint (0 errors, 2 existing warnings), npm run test (910 passed, 16 skipped).
  • Simulated upgrade from 0056 to 0057 and checked FK integrity; independently reviewed migration snapshot and branch.
  • Browser QA at desktop and 390px mobile: edit/save, create skill, disable/restore, reset, no horizontal overflow. Screenshots attached in the thread.
  • Independent review: should-fix on unbounded proposal diff height addressed in f545e68; minor notes documented as follow-ups (card size, tab arrow-key navigation, client-side byte cap).
## What changed - Seed app prompt sections and shipped skills from Git into SQLite once; serve the active version from the database, with history, optimistic concurrency, restore and reset to current shipped defaults. - Add Settings UI for prompt/skill editing, previews, diffs, status, skill creation and reversible deletion; label the boundary between editable guidance and code-enforced tool checks. - Add approval-gated `propose_prompt_change` for agent-proposed prompt and skill changes, with full review cards in chat and Inbox. New thread bindings accept only active thread skills. - Add design doc 0054, migration 0057 and reconstructed 0056 Drizzle snapshot so generated schema never re-adds shipped usage columns. ## Verification - `npm run typecheck`, `npm run lint` (0 errors, 2 existing warnings), `npm run test` (910 passed, 16 skipped). - Simulated upgrade from 0056 to 0057 and checked FK integrity; independently reviewed migration snapshot and branch. - Browser QA at desktop and 390px mobile: edit/save, create skill, disable/restore, reset, no horizontal overflow. Screenshots attached in the thread. - Independent review: should-fix on unbounded proposal diff height addressed in f545e68; minor notes documented as follow-ups (card size, tab arrow-key navigation, client-side byte cap).
glen force-pushed glen/editable-prompts-skills from f545e684b5
All checks were successful
deploy / checks (pull_request) Successful in 42s
deploy / deploy (pull_request) Has been skipped
to d439d44c72
All checks were successful
deploy / checks (pull_request) Successful in 42s
deploy / deploy (pull_request) Has been skipped
2026-10-20 18:52:47 -04:00
Compare
chad approved these changes 2026-10-20 18:56:27 -04:00
chad merged commit 8a4d39a66d into main 2026-10-20 18:56:31 -04:00
Sign in to join this conversation.
No reviewers
No labels
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
chad/sweatshop-legacy!135
No description provided.