← Back to list

database-skill
by subhankaladi
⭐ 2🍴 1📅 Jan 24, 2026
SKILL.md
name: database-skill description: Design and manage databases including tables, migrations, and schema structure. Use for backend and full-stack projects.
Database Design & Management
Instructions
-
Schema design
- Identify entities and relationships
- Normalize data where needed
- Define primary and foreign keys
-
Tables creation
- Use clear and meaningful table names
- Define proper data types
- Add constraints (NOT NULL, UNIQUE)
-
Migrations
- Create versioned migrations
- Support rollback and re-run
- Keep migrations small and focused
-
Indexes & performance
- Add indexes on frequently queried columns
- Avoid over-indexing
- Optimize for read/write balance
Best Practices
- Follow consistent naming conventions
- Keep schema simple and scalable
- Always use migrations (no manual DB changes)
- Document schema changes
- Test migrations before production
Example Structure
-- users table
CREATE TABLE users (
id SERIAL PRIMARY KEY,
name VARCHAR(100) NOT NULL,
email VARCHAR(150) UNIQUE NOT NULL,
password TEXT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
Score
Total Score
40/100
Based on repository quality metrics
✓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
Reviews
💬
Reviews coming soon