okf-mongodb

okf-mongodb is a skill for Claude Code, Codex from xSAVIKx/okf-skills. It costs 126 tokens per session (734 once invoked), scanned A, original, Apache-2.0.

A MongoDB connector that samples documents from each collection and records the fields it finds, their data types, and how often they appear in an Open Knowledge Format (OKF) bundle.

In plain words
What is it for?
Use it to catalog a MongoDB database, create field documentation for each collection, or check an OKF bundle against a live database.
Why use it?
MongoDB does not require every document to have the same structure, so sampling provides a practical view of the fields actually in use.

Skill for Claude CodeCodex

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

Good fit Use it to catalog a MongoDB database, create field documentation for each collection, or check an OKF bundle against a live database.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xsavikx/okf-skills/okf-mongodb"><img src="https://agentmods.dev/badge/skills/xsavikx/okf-skills/okf-mongodb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 734 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.00126 $0.00734
Opus 5 $0.00063 $0.00367
Sonnet 5 $0.00025 $0.00147
Haiku 4.5 $0.00013 $0.00073

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

Security

Grade A, and why

okf-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 11d 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/okf-mongodb/SKILL.md · 74 lines

How it starts

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

MongoDB OKF Connector

This skill provides a Go-based CLI tool to document a MongoDB database as an Open Knowledge Format (OKF) bundle. MongoDB is schemaless, so the connector samples documents from each collection and infers a top-level field schema: field name, type (a sorted union when documents disagree), and presence (the percentage of sampled documents that contain the field).

When to Use

Use this skill when you need to:

  1. Catalog a MongoDB database — one MongoDB Collection concept per collection.
  2. Capture an inferred field schema (Name | Type | Presence) as grounding for enrichment.
  3. Verify a bundle against a live database in CI, optionally creating missing collections.

MongoDB has no per-field comment store, so enriched descriptions remain in the OKF bundle (there is no description write-back).

Setup

go install github.com/xSAVIKx/okf-skills/skills/okf-mongodb@latest
# …or: cd skills/okf-mongodb && go build -o okf-mongodb .

How to Use

1. Produce an OKF bundle

export MONGODB_URI="mongodb://user:pass@host:27017"
./okf-mongodb produce --db <database> --out <bundle-dir> [--collections a,b] [--sample 100]
  • --uri (required): connection URI, or set MONGODB_URI (preferred — keeps the secret out of argv). Credentials are stripped before being written to Resource.
  • --db (required): database name.
  • --out (required): output OKF bundle directory.
  • --collections: comma-separated allowlist (default: all).
  • --sample: documents to sample per collection for inference (default 100).

Re-running preserves enriched descriptions (incremental produce).

2. Ingest / verify

./okf-mongodb ingest --db <database> --bundle <bundle-dir> [--sync]
  • Reports collections that are in the bundle but missing from the database (drift).
  • --sync: creates those missing collections (structure only; no documents, no description write-back).

3. Inspect the schema (self-description)

./okf-mongodb schema

Read the full file on GitHub · 74 lines

Files

What ships with it

9 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. 11d ago First seen · 74 lines · 126 tokens per session scan A 299550ef5af0

Subscribe to this mod's changes

okf-mongodb is a skill published in the GitHub repository xSAVIKx/okf-skills (33 stars, last pushed 11d ago), licensed Apache-2.0. It adds 126 tokens to every session and 734 once invoked, about $0.0006 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

azure-documentdb

Expert knowledge for Azure DocumentDB development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when using DocumentDB search (BM25/vector), Data API, MongoDB compatibility, change…

MicrosoftDocs/Agent-Skills · 120 tokens

embeddings

Vector embeddings with HNSW indexing, sql.js persistence, and hyperbolic support. 75x faster with agentic-flow integration. Use when: semantic search, pattern matching, similarity queries, knowledge retrieval. Skip when: exact text matching, simple lookups, no semantic understanding needed.

ruvnet/ruflo · 62 tokens

dbt-sf-to-bq-translator

Translates Snowflake dbt SQL models to Standardized BigQuery SQL. Handles SQL compilation, Jinja macro placeholder masking, BigQuery Translation Service migration workflows, AST-based config transformations, explicit type casting, JSON extraction standardization, and deduplication. Use when migrating Snowflake dbt…

google/skills · 92 tokens

bigquery-bigframes

Generates Python code using BigQuery DataFrames (BigFrames), the pandas/scikit-learn-style API over BigQuery. Use when writing BigFrames code or doing pandas-style dataframe/ML work against BigQuery (e.g. in a notebook). Don't use for SQL-first workflows or the google-cloud-bigquery client library — use…

google/skills · 76 tokens

google-cloud-solution-hybrid-search-alloydb

Discovers requirements and generates architectural, design, and deployment guidance for dynamic hybrid search systems by combining semantic search and keyword search. Optimized for AlloyDB hybrid search use cases in Google Cloud. Use when users need vector search combined with structured SQL filtering, faceted…

google/skills · 115 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