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.5 | $0.00039 | $0.00404 |
| Sonnet 5.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 1mo 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.
- 1mo ago Changed 8839ac31cc3a
- 1mo ago Changed 3e1f42112aa3
- 1mo 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 (17 stars, last pushed today), licensed MIT. It adds 97 tokens to every session and 1,009 once invoked, about $0.0004 per session on Opus 5.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
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…
webiny-api-opensearch-catalog
Name: createOpenSearchClient Import: import { createOpenSearchClient } from "webiny/api/opensearch" Source: @webiny/api-opensearch/client.ts.
mongodb-mongoose
MongoDB with Mongoose — schemas, models, aggregation pipelines, migrations, and Atlas connections. Use when designing collections, writing queries, or integrating MongoDB into Node.js/Next.js apps.
nestjs-expert
Expert knowledge in NestJS framework, modular architecture, dependency injection, TypeORM/Prisma persistence, microservices transports, and enterprise-grade Node.js backend development. Use when the user mentions NestJS, Nest CLI, decorators, dependency injection, guards, interceptors, or backend microservices, or…
create-pr
Creates a GitHub PR with a Linear-ticket-prefixed title and a decision-led, narrative description for Prisma 8. Use when the user wants to create a pull request, open a PR, or submit changes for review.
draft-release-notes
Author the committed release-notes file for a Prisma 8 release (stable or 8.0.0-rc.N) by enumerating the merged PRs since the previous release v tag (stable or -rc.N), resolving opaque TML-NNNN: titles via Linear context (never copied verbatim), triaging public-worthiness, and writing categorized notes — breaking…