ソース情報
- リポジトリ
- GrayCodeAI/hawk-community-skills
- ソースの最終更新活動
- 2026年5月27日 18:10
- 検出された SKILL.md の言語
- 英語
- スター
- 1
- フォーク
- 0
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
SKILL.md を表示中
SKILL.md
ソースの指示 · 読み取り専用プレビュー- name
- cursor-drizzle
- description
- Cursor IDE rules for drizzle
- license
- MIT
- tags
- ["cursor","ide-rules"]
- domain
- engineering
- version
- 1
- author
- cursorrules-collection
# Drizzle ORM Rules
## Schema
- Define all tables in a central schema file (db/schema.ts)
- Use the appropriate column types for your database (pgTable, mysqlTable, sqliteTable)
- Always define relations explicitly using the relations() function
- Add indexes for columns used in WHERE clauses and JOINs
## Queries
- Use the query API (db.query.users.findMany()) for complex joins and nested data
- Use the CRUD API (db.select().from()) for simple queries
- Always use parameterized queries — never interpolate values into SQL strings
- Use transactions (db.transaction()) for multi-step operations that must be atomic
## Migrations
- Generate migrations with drizzle-kit generate
- Review generated SQL before applying — never auto-apply without inspection
- Keep migration files in version control
- Use drizzle-kit push for development, drizzle-kit migrate for production
## Type Safety
- Infer types from schema: type User = typeof users.$inferSelect
- Use insert types for write operations: type NewUser = typeof users.$inferInsert
- Do not manually define types that duplicate schema definitions
## Anti-patterns
- Do not use raw SQL when Drizzle's query builder can express the same query
- Do not skip the migration step — always generate and apply migrations for schema changes
- Do not mix different database dialects in the same project
GitHubで見る