← スキル一覧に戻る

drizzle-db
by Fawwaz-2009
⭐ 0🍴 0📅 2026年1月19日
SKILL.md
name: drizzle-db description: Query the project's database using Drizzle ORM. Use when the user asks about database contents, schema inspection, or data queries. Supports read-only mode for safety.
Drizzle DB Connector
Execute SQL queries against the project's database through Drizzle ORM.
When to use
- User asks about database contents or data
- Need to inspect database schema or tables
- Querying data for analysis or debugging
- Checking database state
How to use
Run queries using the query script located in this skill's directory:
node .claude/skills/drizzle-db/scripts/query.js "SELECT * FROM users LIMIT 10"
The script:
- Connects to the database using the project's Drizzle configuration
- Executes the SQL query
- Returns results as JSON
Configuration
This skill is configured during installation:
dialect: Database type (sqlite/postgres/mysql)databasePath: For SQLite - direct path to .db file (e.g., ./apps/web/data/app.db)drizzleConfigPath: For Postgres/MySQL - path to drizzle.config.tsreadOnly: Whether to enforce read-only queries (default: true)
Configuration is stored in .claude/skills/drizzle-db/.config.json
Example config for SQLite:
{
"dialect": "sqlite",
"databasePath": "./apps/web/data/app.db",
"readOnly": true
}
Read-only mode
When readOnly is true (default), the following operations are blocked:
- INSERT
- UPDATE
- DELETE
- DROP
- ALTER
- TRUNCATE
- CREATE
Only SELECT queries are allowed for safety.
Examples
# Get all users
node .claude/skills/drizzle-db/scripts/query.js "SELECT * FROM users"
# Count records
node .claude/skills/drizzle-db/scripts/query.js "SELECT COUNT(*) FROM posts"
# Join tables
node .claude/skills/drizzle-db/scripts/query.js "SELECT u.name, p.title FROM users u JOIN posts p ON u.id = p.user_id"
# Get schema information
node .claude/skills/drizzle-db/scripts/query.js "SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'"
Limitations
- Requires Node.js and the project's Drizzle setup
- Read-only mode prevents data modifications by default
- Queries timeout after 30 seconds
- Results are limited to 1000 rows by default
Troubleshooting
If queries fail:
- Verify drizzle.config.ts path is correct in
.config.json - Ensure database connection credentials are set
- Check that Drizzle dependencies are installed:
npm install drizzle-orm - Verify database is accessible from current environment
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です