mikroorm-adapter

mikroorm-adapter is a skill for Claude Code from kavo-labs/kavo. It costs 92 tokens per session (1,336 once invoked), scanned A, original, MIT.

An adapter that connects Kavo, a Nest application toolkit, to MikroORM, an object-relational mapping library for databases.

In plain words
What is it for?
Use it when adding Kavo to a MikroORM project or checking how entities, database connections, filters, soft deletion, and related records work.
Why use it?
It documents the setup details needed to use Kavo with MikroORM, including its current entity and connection conventions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the kavo-skills plugin — 15 skills shipped together

Good fit Use it when adding Kavo to a MikroORM project or checking how entities, database connections, filters, soft deletion, and related records work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kavo-labs/kavo/mikroorm-adapter
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kavo-labs/kavo --skill mikroorm-adapter
Clone the repo
git clone --depth 1 https://github.com/kavo-labs/kavo

Made for: Claude Code.

Or install kavo-skills, the plugin that ships this one along with the rest of its 15 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mikroorm-adapter

README.md
[![agentmods](https://agentmods.dev/badge/skills/kavo-labs/kavo/mikroorm-adapter/github.svg)](https://agentmods.dev/skills/kavo-labs/kavo/mikroorm-adapter)
Your own site
<a href="https://agentmods.dev/skills/kavo-labs/kavo/mikroorm-adapter"><img src="https://agentmods.dev/badge/skills/kavo-labs/kavo/mikroorm-adapter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mikroorm-adapter

Your own site · 80×15
<a href="https://agentmods.dev/skills/kavo-labs/kavo/mikroorm-adapter"><img src="https://agentmods.dev/badge/skills/kavo-labs/kavo/mikroorm-adapter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,336 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.01336
Opus 5 $0.00046 $0.00668
Sonnet 5 $0.00018 $0.00267
Haiku 4.5 $0.00009 $0.00134

Measured 5d ago against content hash a16bba979196, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

mikroorm-adapter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

extensions/skills/mikroorm-adapter/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MikroORM adapter

@kavo/mikroorm adapts Kavo to a MikroORM EntityManager. Setup is closest to the TypeORM path — a decorated entity class is the identity, so nothing is declared twice — with the differences below.

npm install @kavo/core @kavo/nest @kavo/mikroorm

@mikro-orm/core (^7.0.0) is a peer dependency, plus whichever driver package your database needs (@mikro-orm/postgresql, @mikro-orm/mysql, @mikro-orm/sqlite, …), and @mikro-orm/decorators if you declare entities with decorators (below).

The entity class is the identity

Decorators moved out of @mikro-orm/core in v7. They live in @mikro-orm/decorators/legacy now; @mikro-orm/core still exports the runtime pieces (MikroORM, Collection, wrap, …). Importing Entity from @mikro-orm/core is the v6 spelling and no longer resolves.

// book.entity.ts
import { Entity, PrimaryKey, Property } from "@mikro-orm/decorators/legacy";

@Entity()
export class Book {
  @PrimaryKey({ type: "number" })
  id!: number;

  @Property({ type: "string" })
  title!: string;
}
@Kavo(Book)
@Controller("books")
export class BookController {}

Wiring — pass the ORM, not the EntityManager

// app.module.ts
import { Module } from "@nestjs/common";
import { KavoModule } from "@kavo/nest";
import { createInfrastructure } from "@kavo/mikroorm";
import { MikroORM } from "@mikro-orm/core";
import { defineConfig } from "@mikro-orm/postgresql";
import { Book } from "./book.entity.js";
import { BookController } from "./book.controller.js";

const orm = await MikroORM.init(defineConfig({ dbName: process.env.DB_NAME!, entities: [Book] }));

@Module({
  imports: [
    KavoModule.forRoot({
      infrastructure: createInfrastructure(orm),
    }),
  ],
  controllers: [BookController],
})
export class AppModule {}

createInfrastructure takes the MikroORM instance, not an EntityManager, on purpose. MikroORM is a Unit-of-Work ORM whose EntityManager holds an identity map, so every Kavo operation calls orm.em.fork() to get its own — the isolation a request-scoped RequestContext would give a hand-written app.

Read the full file on GitHub · 146 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed a16bba979196
  2. 7d ago Changed de9353c44d39
  3. 10d ago First seen · 146 lines · 92 tokens per session scan A 3ff82f7cd5e9

Subscribe to this mod's changes

mikroorm-adapter is a skill published in the GitHub repository kavo-labs/kavo (14 stars, last pushed today), licensed MIT. It adds 92 tokens to every session and 1,336 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-02.

Related

Other skills, from other repositories

servicenow-table-api

Foundational ServiceNow data access — generic Table API CRUD, Aggregate/stats roll-ups, and raw REST escape-hatch via the servicenow-api MCP server. Use when the agent must read, insert, update, patch, delete, count, or aggregate records in ANY ServiceNow table (including scoped app tables with no dedicated API), or…

Knuckles-Team/servicenow-api · 180 tokens

prisma-8

Use when working in a project that depends on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo (Prisma 8, formerly Prisma Next): editing contract.prisma or a contract.ts builder, running prisma contract emit, planning or applying migrations, editing migration.ts, writing db.orm / db.sql / db.query…

prisma/orm · 220 tokens

horse-database-pooling

Guide for setting up thread-safe database connection pooling (FireDAC / UniDAC) in multithreaded Horse applications.

HashLoad/horse · 30 tokens

ocli-api

Turn any OpenAPI/Swagger API into CLI commands and call them. Search endpoints with BM25, check parameters, execute — no MCP server needed.

EvilFreelancer/openapi-to-cli · 34 tokens

db-infra-mocks

Propose minimal seams and local substitutes so tests run without real RDBMS/Redis/Mongo infrastructure.

pilinux/gorest · 27 tokens

mail-time

Use when building, wiring, reviewing, or debugging MailTime and ostrio:mailer email queues for horizontally scaled Node.js, Bun, or Meteor apps. Trigger on MailTime, MongoQueue, RedisQueue, PostgresQueue, mailTimePreset, JoSk email scheduling, Redis Cluster / KeyDB Cluster / Valkey useHashTags, KeyDB…

veliovgroup/mail-time · 179 tokens