tpmjs/.claude/commands/db-studio.md
Ajax Davis fa962d3527 feat(claude): add database slash commands for common operations
Add 5 new slash commands for database management:

- /db-check - Check database connection and show table row counts
- /db-migrate - Create and apply Prisma migrations (production)
- /db-push - Push schema changes without migrations (development)
- /db-studio - Open Prisma Studio visual database browser
- /db-seed - Run seed script to initialize database

These commands make it easy to test database connectivity, run migrations,
view data in Prisma Studio, and seed the database with initial data.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 02:24:28 +10:00

601 B

description
Open Prisma Studio to view and edit database data

Open Prisma Studio, a visual database browser:

  1. Run pnpm --filter=@tpmjs/db db:studio in the background
  2. Wait for the "Prisma Studio is up on http://localhost:5555" message
  3. Tell the user that Prisma Studio is now running at http://localhost:5555
  4. Remind the user they can view and edit all database tables (Tool, SyncCheckpoint, SyncLog) in the browser
  5. Tell them to use Ctrl+C in the terminal or kill the background process when done

This provides a visual interface to browse, search, and edit database records.