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.
npx skills add kavo-labs/kavo --skill mongoose-adaptergit clone --depth 1 https://github.com/kavo-labs/kavoWrote 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.
[](https://agentmods.dev/skills/kavo-labs/kavo/mongoose-adapter)<a href="https://agentmods.dev/skills/kavo-labs/kavo/mongoose-adapter"><img src="https://agentmods.dev/badge/skills/kavo-labs/kavo/mongoose-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.
<a href="https://agentmods.dev/skills/kavo-labs/kavo/mongoose-adapter"><img src="https://agentmods.dev/badge/skills/kavo-labs/kavo/mongoose-adapter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00097 | $0.01009 |
| Opus 5 | $0.00048 | $0.00504 |
| Sonnet 5 | $0.00019 | $0.00202 |
| Haiku 4.5 | $0.00010 | $0.00101 |
Grade A, and why
mongoose-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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Mongoose adapter
@kavo/mongoose adapts Kavo to a Mongoose connection. The engine, routes,
query grammar, and DTO slots are identical to every other adapter — the
differences below come from MongoDB itself, not from Kavo.
npm install @kavo/core @kavo/nest @kavo/mongoose
mongoose (^7.0.0 || ^8.0.0) is a peer dependency.
The model is the entity identity
Unlike Prisma, there is nothing to declare twice. A Mongoose model is
already a constructor, so it is the identity @Kavo() wants — no marker
class, no entity list (ADR-0018).
// book.model.ts
import mongoose, { Schema } from "mongoose";
const bookSchema = new Schema({
title: { type: String, required: true },
});
export const Book = mongoose.model("Book", bookSchema);
@Kavo(Book) // the model itself
@Controller("books")
export class BookController {}
Wiring
// app.module.ts
import { Module } from "@nestjs/common";
import { KavoModule } from "@kavo/nest";
import { createInfrastructure } from "@kavo/mongoose";
import mongoose from "mongoose";
import { BookController } from "./book.controller.js";
await mongoose.connect(process.env.MONGO_URL!);
@Module({
imports: [
KavoModule.forRoot({
infrastructure: createInfrastructure(mongoose.connection),
}),
],
controllers: [BookController],
})
export class AppModule {}
createInfrastructure(connection) derives both the entity metadata and the
repository adapter from the connection's own registered models.
Define models at module scope, before connecting. @Kavo() generates its
routes at class-decoration time, and Mongoose buffers commands until
connect() resolves — a model created after the decorator runs is not
registered in time.
Ids are strings, and the field is _id
MongoDB's primary key is _id, and the adapter renders every ObjectId as a
hex string at the boundary. So responses are keyed by _id, not by a
numeric id, and a DTO declares it as a string:
export class BookItemDto {
_id = "";
title = "";
}
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.
- 3d ago Changed 8839ac31cc3a
- 5d ago Changed 3e1f42112aa3
- 8d ago First seen · 129 lines · 97 tokens per session scan A 2cbf77059c1b
mongoose-adapter is a skill published in the GitHub repository kavo-labs/kavo (14 stars, last pushed today), licensed MIT. It adds 97 tokens to every session and 1,009 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.
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…
prisma-8
Comprehensive guide for building with Prisma 8 (Prisma Next), the contract-first data layer. Use whenever working on Prisma code in a project that uses it — authoring or editing the data contract (contract.prisma, PSL, TypeScript builders), migrations, queries (db.orm / db.sql), runtime wiring (db.ts, middleware…
horse-database-pooling
Guide for setting up thread-safe database connection pooling (FireDAC / UniDAC) in multithreaded Horse applications.
dynamic
Fullstack development with bkend.ai BaaS — authentication, database, API integration. Triggers: fullstack, BaaS, login, signup, database, web app.
ocli-api
Turn any OpenAPI/Swagger API into CLI commands and call them. Search endpoints with BM25, check parameters, execute — no MCP server needed.
db-infra-mocks
Propose minimal seams and local substitutes so tests run without real RDBMS/Redis/Mongo infrastructure.