mongodb

mongodb is a skill for Claude Code, Codex from dayfinggg/openai-codex-agent-skills. It costs 30 tokens per session (268 once invoked), scanned A, original, MIT.

A guide for MongoDB, a database that stores records as flexible documents rather than rows in fixed tables. It covers schemas, queries, aggregations, indexes, performance, and client connections.

In plain words
What is it for?
Use it to design documents, write queries and aggregations, diagnose client pools or connection failures, and investigate slow queries and indexes.
Why use it?
It keeps schema design, query meaning, connection management, and measured performance distinct while matching the actual MongoDB deployment and driver versions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design documents, write queries and aggregations, diagnose client pools or connection failures, and investigate slow queries and indexes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dayfinggg/openai-codex-agent-skills/mongodb
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 dayfinggg/openai-codex-agent-skills --skill mongodb
Clone the repo
git clone --depth 1 https://github.com/dayfinggg/openai-codex-agent-skills

Made for: Claude Code, Codex.

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 mongodb

README.md
[![agentmods](https://agentmods.dev/badge/skills/dayfinggg/openai-codex-agent-skills/mongodb/github.svg)](https://agentmods.dev/skills/dayfinggg/openai-codex-agent-skills/mongodb)
Your own site
<a href="https://agentmods.dev/skills/dayfinggg/openai-codex-agent-skills/mongodb"><img src="https://agentmods.dev/badge/skills/dayfinggg/openai-codex-agent-skills/mongodb/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 mongodb

Your own site · 80×15
<a href="https://agentmods.dev/skills/dayfinggg/openai-codex-agent-skills/mongodb"><img src="https://agentmods.dev/badge/skills/dayfinggg/openai-codex-agent-skills/mongodb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 268 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.
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.00030 $0.00268
Opus 5.5 $0.00012 $0.00107
Sonnet 5.5 $0.00006 $0.00054
Haiku 4.5 $0.00003 $0.00027

Measured today against content hash 1c93af2dec39, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mongodb 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 today.

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.

codex/skills/mongodb/SKILL.md · 21 lines

What it actually says

Establish the target MongoDB deployment, server and driver versions, authorized database, and requested result. Choose the relevant procedure from verified workload evidence.

Read host integration once before following the imported procedures.

Task Read
Configure or diagnose client pools, lifecycle, and connection failures Connections
Design documents, validation, embedding, or references Schema design
Turn a data question into a query or aggregation Query authoring
Investigate slow queries, indexes, or aggregation performance Query optimization

Load the selected guide and only the reference patterns it calls for. Keep schema design, query meaning, and measured performance distinct even when a task needs several procedures.

Discover the host's actual MongoDB capabilities instead of assuming upstream MCP names are available. An existing authorized driver or CLI can provide equivalent evidence. Preserve the current deployment and do not provision a hosted service solely to follow a sample.

Files

What ships with it

29 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 21 lines · 30 tokens per session scan A 1c93af2dec39

Subscribe to this mod's changes

mongodb is a skill published in the GitHub repository dayfinggg/openai-codex-agent-skills (8 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 268 once invoked, about $0.0001 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-10-30.

Related

Other skills, from other repositories

mongodb-schema-and-indexing

Production-grade MongoDB schema design patterns, indexing strategies, ESR rule (Equality, Sort, Range), aggregation framework optimization, and sharding/partitioning architectures. Use when designing MongoDB schemas, tuning query performance, or building aggregation pipelines.

hamzabellouch/agent-skills · 54 tokens

kmp-mongodb-database

MongoDB Kotlin Coroutine Driver pattern for Kotlin Multiplatform full-stack apps. Covers: server-side MongoDB access, document mapping, repository boundaries, typed database errors, reactive reads with Flow, change streams, and a scaffold script for repeated database setup. Use this for the backend data layer, not…

ronjunevaldoz/kmp-agent-skills · 70 tokens

byted-volcengine-mongodb

An operations tool for Volcengine MongoDB, a document database that stores data in flexible, JSON-like records. It can query managed MongoDB instances and return details for further explanation or diagnosis.

bytedance/agentkit-samples · 82 tokens

prisma-mongodb-upgrade

Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7. Use when a MongoDB project asks about upgrading Prisma, when "upgrade to prisma 7" comes up in a project with provider = "mongodb", or when evaluating a move to Prisma Next. Triggers on "upgrade prisma mongodb"…

nitrocloudofficial/nitrostack · 95 tokens

mongodb-connection

Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language. Use this skill when working/updating/reviewing on functions that instantiate or configure a MongoDB client (eg, when calling connect()), configuring connection pools, troubleshooting connection errors…

fcakyon/claude-codex-settings · 122 tokens

mongodb-schema-design

MongoDB schema design patterns and anti-patterns. Use when designing data models, reviewing schemas, migrating from SQL, or troubleshooting performance issues caused by schema problems. Triggers on "design schema", "embed vs reference", "MongoDB data model", "schema review", "unbounded arrays", "one-to-many", "tree…

fcakyon/claude-codex-settings · 127 tokens