public-mongodb-expert-base

public-mongodb-expert-base is a skill for Claude Code, Codex from seed-forge/harness-ai-kit. It costs 44 tokens per session (733 once invoked), scanned A, original, Apache-2.0.

A foundational guide to using MongoDB, a database that stores records as flexible documents. It covers document structure, data relationships, indexes, replica sets, and change streams.

In plain words
What is it for?
Use it when designing MongoDB schemas, choosing between embedded and referenced data, creating indexes, or working with replication and change notifications.
Why use it?
It helps developers choose suitable document layouts and database patterns before query and scaling problems appear.

Skill for Claude CodeCodex

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

Good fit Use it when designing MongoDB schemas, choosing between embedded and referenced data, creating indexes, or working with replication and change notifications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/seed-forge/harness-ai-kit/public-mongodb-expert-base
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 seed-forge/harness-ai-kit --skill public-mongodb-expert-base
Clone the repo
git clone --depth 1 https://github.com/seed-forge/harness-ai-kit

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 public-mongodb-expert-base

README.md
[![agentmods](https://agentmods.dev/badge/skills/seed-forge/harness-ai-kit/public-mongodb-expert-base/github.svg)](https://agentmods.dev/skills/seed-forge/harness-ai-kit/public-mongodb-expert-base)
Your own site
<a href="https://agentmods.dev/skills/seed-forge/harness-ai-kit/public-mongodb-expert-base"><img src="https://agentmods.dev/badge/skills/seed-forge/harness-ai-kit/public-mongodb-expert-base/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 public-mongodb-expert-base

Your own site · 80×15
<a href="https://agentmods.dev/skills/seed-forge/harness-ai-kit/public-mongodb-expert-base"><img src="https://agentmods.dev/badge/skills/seed-forge/harness-ai-kit/public-mongodb-expert-base.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 733 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.00044 $0.00733
Opus 5 $0.00022 $0.00367
Sonnet 5 $0.00009 $0.00147
Haiku 4.5 $0.00004 $0.00073

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

Security

Grade A, and why

public-mongodb-expert-base 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 10d 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.

skills/public-mongodb-expert-base/SKILL.md · 69 lines

How it starts

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

MongoDB Knowledge Base

Foundational guidance for building applications with MongoDB.

Source: Adapted from mongodb/agent-skills (schema-design + query-optimizer + connection).

Document Model

  • Design documents around access patterns, not normalization.
  • Embed related data that's always read together (1:1, 1:few).
  • Reference (DBRef or manual ID) for data that grows unbounded or is accessed independently.
  • Use arrays for ordered collections; use sub-documents for named fields.
  • Avoid anti-patterns: unbounded arrays, massive documents (>16MB), excessive nesting.

Schema Design Patterns

Pattern Use for
Embedding 1:1, 1:few relationships, always-read-together data
Referencing 1:many (unbounded), independent access
Bucket Time-series data (group by time window)
Tree Hierarchical data (materialized paths, nested sets)
Outlier Handle occasional large documents separately
Extended Reference Embed frequently accessed fields, reference the rest

Indexing

  • Index fields used in queries, sorts, and aggregation $match/$sort stages.
  • Compound index order matters: equality first, then range, then sort.
  • Use explain() to verify index usage (look for IXSCAN, avoid COLLSCAN).
  • Text indexes for full-text search; 2dsphere for geospatial queries.
  • TTL indexes for auto-expiring documents.
  • Monitor with $indexStats — drop unused indexes.

Aggregation Pipeline

  • Order stages for efficiency: $match and $sort first (use indexes).
  • $lookup for joins (prefer embedding when possible).
  • $group for aggregation; $unwind to flatten arrays before grouping.
  • Use $project early to reduce document size through the pipeline.
  • $facet for multiple aggregations in one query.

Connection & Configuration

  • Connection string: mongodb://host:port/db?options
  • Use connection pooling (built into all official drivers).
  • Set w=majority for write concern (durability).
  • Set readPreference=secondaryPreferred for read scaling.
  • Use retryWrites=true and retryReads=true.

Read the full file on GitHub · 69 lines

Files

What ships with it

3 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. 10d ago First seen · 69 lines · 44 tokens per session scan A a5628e9072da

Subscribe to this mod's changes

public-mongodb-expert-base is a skill published in the GitHub repository seed-forge/harness-ai-kit (22 stars, last pushed 9d ago), licensed Apache-2.0. It adds 44 tokens to every session and 733 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories

mongodb-natural-language-querying

Generate read-only MongoDB queries (find) or aggregation pipelines using natural language, with collection schema context and sample documents. Use this skill whenever the user asks to write, create, or generate MongoDB queries, wants to filter/query/aggregate data in MongoDB, asks "how do I query...", needs help with…

fcakyon/claude-codex-settings · 162 tokens

mongodb-atlas-stream-processing

Manages MongoDB Atlas Stream Processing (ASP) workflows. Handles workspace provisioning, data source/sink connections, processor lifecycle operations, debugging diagnostics, and tier sizing. Supports Kafka, Atlas clusters, S3, HTTPS, and Lambda integrations for streaming data workloads and event processing. NOT for…

fcakyon/claude-codex-settings · 82 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-query-optimizer

Help with MongoDB query optimization and indexing. Use only when the user asks for optimization or performance: "How do I optimize this query?", "How do I index this?", "Why is this query slow?", "Can you fix my slow queries?", "What are the slow queries on my cluster?", etc. Do not invoke for general MongoDB query…

fcakyon/claude-codex-settings · 98 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

mongodb-search-and-ai

Guides MongoDB users through implementing and optimizing Atlas Search (full-text), Vector Search (semantic), and Hybrid Search solutions. Use this skill when users need to build search functionality for text-based queries (autocomplete, fuzzy matching, faceted search), semantic similarity (embeddings, RAG…

fcakyon/claude-codex-settings · 132 tokens