Prisma
blencorp/claude-code-kit
Prisma ORM patterns including Prisma Client usage, queries, mutations, relations, transactions, and schema management.
Expert guidance for SeaORM 2.0, Rust's async ORM with strongly-typed columns, nested ActiveModels, Entity Loader API, and entity-first workflow.
$ npx skills add FlyinPancake/yoink --skill sea-orm-2 -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install FlyinPancake/yoink sea-orm-2 --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/FlyinPancake/yoink.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/sea-orm-2 .claude/skills/sea-orm-2 && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sea-orm-2" agent skill from https://github.com/FlyinPancake/yoink/tree/main/.agents/skills/sea-orm-2 into .claude/skills/sea-orm-2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sea-orm-2", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/FlyinPancake/yoink/tree/main/.agents/skills/sea-orm-2Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add FlyinPancake/yoink --skill sea-orm-2 -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install FlyinPancake/yoink sea-orm-2 --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FlyinPancake/yoink.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/sea-orm-2 .agents/skills/sea-orm-2 && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sea-orm-2" agent skill from https://github.com/FlyinPancake/yoink/tree/main/.agents/skills/sea-orm-2 into .agents/skills/sea-orm-2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sea-orm-2", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add FlyinPancake/yoink --skill sea-orm-2 -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install FlyinPancake/yoink sea-orm-2 --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FlyinPancake/yoink.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/sea-orm-2 .cursor/skills/sea-orm-2 && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sea-orm-2" agent skill from https://github.com/FlyinPancake/yoink/tree/main/.agents/skills/sea-orm-2 into .cursor/skills/sea-orm-2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sea-orm-2", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/FlyinPancake/yoink.git --path .agents/skills/sea-orm-2--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add FlyinPancake/yoink --skill sea-orm-2 -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install FlyinPancake/yoink sea-orm-2 --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FlyinPancake/yoink.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/sea-orm-2 .gemini/skills/sea-orm-2 && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sea-orm-2" agent skill from https://github.com/FlyinPancake/yoink/tree/main/.agents/skills/sea-orm-2 into .gemini/skills/sea-orm-2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sea-orm-2", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install FlyinPancake/yoink sea-orm-2Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add FlyinPancake/yoink --skill sea-orm-2 -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/FlyinPancake/yoink.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/sea-orm-2 .github/skills/sea-orm-2 && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sea-orm-2" agent skill from https://github.com/FlyinPancake/yoink/tree/main/.agents/skills/sea-orm-2 into .github/skills/sea-orm-2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sea-orm-2", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add FlyinPancake/yoink --skill sea-orm-2 -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install FlyinPancake/yoink sea-orm-2 --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/FlyinPancake/yoink.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/sea-orm-2 .opencode/skills/sea-orm-2 && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sea-orm-2" agent skill from https://github.com/FlyinPancake/yoink/tree/main/.agents/skills/sea-orm-2 into .opencode/skills/sea-orm-2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sea-orm-2", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sea-orm-2Expert guidance for SeaORM 2.0, Rust's async ORM with strongly-typed columns, nested ActiveModels, Entity Loader API, and entity-first workflow.
Sea Orm 2 is an agent skill from FlyinPancake/yoink. Expert guidance for SeaORM 2.0, Rust's async ORM with strongly-typed columns, nested ActiveModels, Entity Loader API, and entity-first workflow. Use when working with SeaORM entities, queries, migrations, relations, or any database operations in Rust projects using SeaORM. Covers the new 2.0 API patterns, anti-patterns to avoid, and migration from 1.0.
Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/activemodel-patterns.md`, `references/entity-patterns.md` and `references/migration-guide.md`).
It sits in Databases, covering ORMs and data access and Database administration. It works with Rust. The repository describes itself as: yoink is a self-hosted music library manager that supports multiple metadata sources. The licence is Apache-2.0.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 576068a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are rust).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
sea-ql.orgFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sea Orm 2 loads about 2.9k tokens when it runs, and up to ~8.8k if it reads all its reference files. Until then it costs about 91 tokens; SKILL.md has 500 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from FlyinPancake/yoink at commit 576068a, republished under its Apache-2.0 licence (© FlyinPancake). 500 words, ~2,940 tokens.
.claude/skills/sea-orm-2/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.This skill provides expert guidance for using SeaORM 2.0 properly, focusing on the new patterns and avoiding common pitfalls that stem from SeaORM 1.0 knowledge.
SeaORM 2.0 uses #[sea_orm::model] with relations defined directly on the Model struct. This replaces the 1.0 pattern of separate Relation enums and Related trait impls.
mod user {
use sea_orm::entity::prelude::*;
#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "user")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub name: String,
#[sea_orm(unique)]
pub email: String,
}
impl ActiveModelBehavior for ActiveModel {}
}mod user {
use sea_orm::entity::prelude::*;
#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "user")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub name: String,
#[sea_orm(unique)]
pub email: String,
#[sea_orm(has_one)]
pub profile: HasOne<super::profile::Entity>,
#[sea_orm(has_many)]
pub posts: HasMany<super::post::Entity>,
}
}// Has-One
#[sea_orm(has_one)]
pub profile: HasOne<super::profile::Entity>,
// Has-Many
#[sea_orm(has_many)]
pub posts: HasMany<super::post::Entity>,
// Belongs-To (explicit foreign key mapping)
#[sea_orm(belongs_to, from = "user_id", to = "id")]
pub user: HasOne<super::user::Entity>,
// Many-to-Many via junction table
#[sea_orm(has_many, via = "post_tag")]
pub tags: HasMany<super::tag::Entity>,
// Self-referential
#[sea_orm(self_ref, via = "user_follower", from = "User", to = "Follower")]
pub followers: HasMany<Entity>,#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
#[sea_orm(table_name = "post_tag")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub post_id: i32,
#[sea_orm(primary_key, auto_increment = false)]
pub tag_id: i32,
#[sea_orm(belongs_to, from = "post_id", to = "id")]
pub post: Option<super::post::Entity>,
#[sea_orm(belongs_to, from = "tag_id", to = "id")]
pub tag: Option<super::tag::Entity>,
}For detailed entity patterns, see references/entity-patterns.md.
Use COLUMN constant with typed fields instead of the untyped Column enum:
// 2.0 (preferred) -- compile-time type safety
user::Entity::find().filter(user::COLUMN.name.contains("Bob"))
// 1.0 (outdated) -- still works but prefer COLUMN
user::Entity::find().filter(user::Column::Name.contains("Bob"))The COLUMN constant provides:
// Create with nested relations
let bob = user::ActiveModel::builder()
.set_name("Bob")
.set_email("bob@sea-ql.org")
.set_profile(profile::ActiveModel::builder().set_picture("Tennis"))
.insert(db)
.await?;let mut bob = bob.into_active_model();
bob.posts.push(
post::ActiveModel::builder().set_title("My first post")
);
bob.save(db).await?;let post = post::ActiveModel::builder()
.set_title("A sunny day")
.set_user_id(bob.id)
.add_tag(existing_tag)
.add_tag(tag::ActiveModel::builder().set_tag("outdoor"))
.save(db)
.await?;For complete ActiveModel patterns, see references/activemodel-patterns.md.
The Entity Loader eliminates N+1 queries by intelligently using JOIN for 1-1 relations and data loader for 1-N relations.
// Load with relations in a single query
let bob = user::Entity::load()
.filter_by_email("bob@sea-ql.org")
.with(profile::Entity)
.with(post::Entity)
.one(db)
.await?
.expect("Not found");// Nested relations (post -> comments)
let user = user::Entity::load()
.filter_by_id(12)
.with(profile::Entity)
.with((post::Entity, comment::Entity))
.one(db)
.await?;// join paths:
// user -> profile
// user -> post
// post -> post_tag -> tag
let smart_user = user::Entity::load()
.filter_by_id(42)
.with(profile::Entity) // 1-1 uses join
.with((post::Entity, tag::Entity)) // 1-N uses data loader
.one(db)
.await?
.unwrap();
// 3 queries are executed under the hood:
// 1. SELECT FROM user JOIN profile WHERE id = $
// 2. SELECT FROM post WHERE user_id IN (..)
// 3. SELECT FROM tag JOIN post_tag WHERE post_id IN (..)For advanced querying patterns, see references/query-patterns.md.
SeaORM 2.0 supports entity-first development where you define entities and SeaORM creates the schema.
// Auto-create tables from entity definitions (dev/testing)
db.get_schema_registry("my_crate::*")
.sync(db)
.await?;This:
Requires feature flags: entity-registry and schema-sync.
column_type on Custom Wrapper Types// WRONG -- do not annotate column_type on custom types
#[sea_orm(column_type = "Decimal(Some((10, 4)))")]
pub speed: Speed,
// CORRECT -- SeaORM infers the column type from DeriveValueType
pub speed: Speed,
#[derive(Clone, Debug, PartialEq, DeriveValueType)]
pub struct Speed(Decimal);Text for Long Strings on MySQL/MSSQL// WRONG on MySQL/MSSQL -- silently truncates at 255 chars
pub description: String,
// CORRECT -- use column_type for longer strings
#[sea_orm(column_type = "Text")]
pub description: String,
// Also correct -- explicit max length
#[sea_orm(column_type = "String(StringLen::Max)")]
pub event_type: String,ExprTrait ImportMethods like .eq(), .like(), .contains() on Expr require the trait import in 2.0:
use sea_orm::ExprTrait; // required in 2.0
Expr::col((self.entity_name(), *self)).like(s)| 1.0 (removed/renamed) | 2.0 (correct) |
|---|---|
.into_condition() | .into() |
db.execute(Statement::from_sql_and_values(..)) | db.execute_raw(Statement::from_sql_and_values(..)) |
db.query_all(backend.build(&query)) | db.query_all(&query) |
Alias::new("col") for static strings | Expr::col("col") directly |
insert_many(..).on_empty_do_nothing() | insert_many([]) returns None safely |
DeriveValueType GeneratesIn 2.0, DeriveValueType auto-generates NotU8, IntoActiveValue, and TryFromU64. Remove manual implementations to avoid conflicts.
serial is No Longer DefaultAuto-increment columns now use GENERATED BY DEFAULT AS IDENTITY. Use feature flag postgres-use-serial-pk for legacy behavior.
Both Integer and BigInteger map to integer in 2.0. Use sea-orm-cli --big-integer-type=i32 if needed.
For complete migration guide, see references/migration-guide.md.
// Find all
let cakes: Vec<cake::Model> = Cake::find().all(db).await?;
// Filter
let chocolate: Vec<cake::Model> = Cake::find()
.filter(Cake::COLUMN.name.contains("chocolate"))
.all(db)
.await?;
// Find by ID
let cheese: Option<cake::Model> = Cake::find_by_id(1).one(db).await?;
// Eager load related (1-1)
let cake_with_fruit: Vec<(cake::Model, Option<fruit::Model>)> =
Cake::find().find_also_related(Fruit).all(db).await?;
// Eager load related (1-N and M-N)
let cake_with_fillings: Vec<(cake::Model, Vec<filling::Model>)> = Cake::find()
.find_with_related(Filling)
.all(db)
.await?;let apple = fruit::ActiveModel {
name: Set("Apple".to_owned()),
..Default::default()
};
// Insert one
let apple = apple.insert(db).await?;
// Insert many
let result = Fruit::insert_many([apple, pear]).exec(db).await?;let pear: Option<fruit::Model> = Fruit::find_by_id(1).one(db).await?;
let mut pear: fruit::ActiveModel = pear.unwrap().into();
pear.name = Set("Sweet pear".to_owned());
let pear: fruit::Model = pear.update(db).await?;
// Bulk update
Fruit::update_many()
.col_expr(fruit::COLUMN.cake_id, fruit::COLUMN.cake_id.add(2))
.filter(fruit::COLUMN.name.contains("Apple"))
.exec(db)
.await?;// Delete one
orange.delete(db).await?;
// Delete many
fruit::Entity::delete_many()
.filter(fruit::COLUMN.name.contains("Orange"))
.exec(db)
.await?;Key feature flags to know:
sqlx-mysql, sqlx-postgres, sqlx-sqlite - Database driversruntime-tokio-native-tls, runtime-tokio-rustls - Async runtimewith-chrono, with-time - Date/time librarieswith-rust_decimal, with-bigdecimal - Decimal librarieswith-json - JSON supportentity-registry, schema-sync - Entity-first workflowpostgres-use-serial-pk - Legacy PostgreSQL serial typesThis skill provides comprehensive coverage of SeaORM 2.0 with focus on the new patterns and critical anti-patterns to avoid.
© FlyinPancake, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (references) in .agents/skills/sea-orm-2 of FlyinPancake/yoink.
Open the folder on GitHubat commit 576068a
Sea Orm 2 next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sea Orm 2 this skillFlyinPancake/yoink | 112 | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | |
| Prismablencorp/claude-code-kit | 106 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Prisma Expertdavila7/claude-code-templates | 32k | 7 repos | ~2.6k | Automated safety check: Pass | MIT | |
| Frappe Core DatabaseImpertio-Studio/Frappe_Claude_Skill_Package | 187 | — | ~3.8k | Automated safety check: Pass | MIT | |
| Rls Patternsbybren-llc/safe-agentic-workflow | 421 | — | ~1.6k | Automated safety check: Pass | MIT | |
| Veloxdb Scalable Performanceveloxbase/veloxdb | 646 | — | ~1.7k | Automated safety check: Pass | MIT |
blencorp/claude-code-kit
Prisma ORM patterns including Prisma Client usage, queries, mutations, relations, transactions, and schema management.
davila7/claude-code-templates
Prisma ORM expert for schema design, migrations, query optimization, relations modeling, and database operations.
Impertio-Studio/Frappe_Claude_Skill_Package
A skill your agent uses when performing database operations in ERPNext/Frappe v14-v16.
bybren-llc/safe-agentic-workflow
Row Level Security patterns for database operations. An agent skill from bybren-llc/safe-agentic-workflow.
veloxbase/veloxdb
Guides scalability and performance work for VeloxDB's Tauri + Rust PostgreSQL backend and React + TanStack frontend.
cin12211/orca-q
Database performance optimization, schema design, query analysis, and connection management across PostgreSQL, MySQL, MongoDB, and SQLite with ORM integration.
Works with
Categories
Expert guidance for SeaORM 2.0, Rust's async ORM with strongly-typed columns, nested ActiveModels, Entity Loader API, and entity-first workflow. Sea Orm 2 is an agent skill from FlyinPancake/yoink.0, Rust's async ORM with strongly-typed columns, nested ActiveModels, Entity Loader API, and entity-first workflow.
Sea Orm 2 fits situations like: working with SeaORM entities; any database operations in Rust projects using SeaORM.
Run `npx skills add FlyinPancake/yoink --skill sea-orm-2 -a claude-code`. Or copy the skill folder (.agents/skills/sea-orm-2 in FlyinPancake/yoink) into .claude/skills/sea-orm-2 in your project. Claude Code loads it when a task matches its description.
Run `npx skills add FlyinPancake/yoink --skill sea-orm-2 -a codex`. Or copy the skill folder (.agents/skills/sea-orm-2 in FlyinPancake/yoink) into .agents/skills/sea-orm-2 in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add FlyinPancake/yoink --skill sea-orm-2 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sea-orm-2, .gemini/skills/sea-orm-2, .github/skills/sea-orm-2 and .opencode/skills/sea-orm-2 in your project.
SKILL.md names no scripts, command-line tools or credentials: Sea Orm 2 is instructions for the agent only.
SKILL.md names 1 domain. As links in the text: sea-ql.org. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Sea Orm 2 is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Sea Orm 2: Prisma (blencorp/claude-code-kit, 106 stars), Prisma Expert (davila7/claude-code-templates, 32k stars), Frappe Core Database (Impertio-Studio/Frappe_Claude_Skill_Package, 187 stars) and Rls Patterns (bybren-llc/safe-agentic-workflow, 421 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
FlyinPancake (a GitHub user) maintains it in FlyinPancake/yoink, which has 112 GitHub stars. The repository was last updated on October 4, 2026.
Source: FlyinPancake/yoink on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.