raheesahmed/sajicode/database
Claude Code and agent skill by raheesahmed/sajicode
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Design and implement production database systems. Covers schema design, migrations, query optimization, ORMs (Prisma, Drizzle, TypeORM), PostgreSQL/SQLite/MongoDB patterns, indexing strategies, connection pooling, and multi-tenant architectures. Use when designing schemas, writing queries, or setting up data access layers.
Install
npx vskill@latest install raheesahmed/sajicode/databaseSKILL.md
Database Engineering
Schema Design Principles
Naming Conventions
- Table names: singular PascalCase (
User,OrderItem) - Column names: camelCase (
createdAt,userId) - Foreign keys:
{referencedTable}Id(userId,orderId) - Indexes:
idx_{table}_{column}(idx_user_email) - Unique constraints:
uq_{table}_{column}(uq_user_email)
Required Columns (every table)
ID Strategy
| Type | Use When | |
|---|---|---|
| UUID v4 | Public-facing IDs, distributed systems | |
| CUID2 | URL-safe, sortable, no collision | |
| Auto-increment | Internal-only, sequential ordering needed | |
| ULID | Sortable UUID alternative |
Prisma Patterns
Schema with Relations
Optimized Queries
Drizzle ORM Patterns
Schema Definition
Migration Workflow
Query Optimization
Index Strategy
N+1 Prevention
Connection Pooling
Security Rules
- ALWAYS use parameterized queries — NEVER string concatenation
- NEVER expose internal IDs in URLs — use UUIDs
- Encrypt sensitive fields at rest (passwords, tokens, PII)
- Use row-level security for multi-tenant data
- Audit log all destructive operations (DELETE, UPDATE on sensitive tables)
- Validate all input with Zod BEFORE database operations
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/database/SKILL.md
Popularity
- 7-day trend score
- 0
Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/raheesahmed/sajicode/database)