Toolverse
All skills

drizzle

by lobehub

Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
lobehub
Category
Backend
Views
340

About this skill

Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.

How to use

  1. Zainstaluj skill w swoim projekcie lobehub, wskazując ścieżkę do repozytorium drizzle z gałęzi main.
  2. Umieść konfigurację Drizzle w pliku drizzle.config.ts na poziomie głównym projektu.
  3. Organizuj schematy w katalogu src/database/schemas/, korzystając z funkcji pomocniczych z pliku _helpers.ts do znaczników czasu (createdAt, updatedAt, accessedAt).
  4. Definiuj tabele w PostgreSQL, stosując konwencje: nazwy tabel w liczbie mnogiej i snake_case (np. users, session_groups), kolumny w snake_case (user_id, created_at). Dla kluczy głównych użyj text z prefixem (np. idGenerator('agents')), dla kluczy obcych dodaj references() z akcją onDelete.
  5. Tworząc indeksy, zwracaj tablicę zamiast obiektu, np. (t) => [uniqueIndex('client_id_user_id_unique').on(t.clientId, t.userId)].
  6. Wnioskuj typy TypeScript z tabel za pomocą createInsertSchema oraz typeof agents.$inferInsert i typeof agents.$inferSelect, aby uzyskać typy NewAgent i AgentItem.

Related skills

pdf-to-markdown

by aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions \

Backend
355664

seedream-image-gen

by openclaw

Generate images via Seedream API (doubao-seedream models). Synchronous generation.

Backend
6235

openspec

by ruan-cat

OpenSpec 中文版规范助手 - 规范驱动的 AI 编程开发,帮助初始化、创建提案、编写规格、校验格式并归档变更。触发条件: 当用户提及 openspec、规范文档、需求管理、变更提案、spec-driven development 等关键词时主动调用。

Backend
27122

literature-review

by K-Dense-AI

Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature

Backend
238507

fastapi-templates

by wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

Backend
327582

effective-go

by openshift

Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.

Backend
248296