safeselect-mongodb

safeselect-mongodb is a skill for Claude Code, Codex from antonillos/safeselect. It costs 45 tokens per session (296 once invoked), scanned A, original, MIT.

Instructions for safely investigating MongoDB databases. MongoDB is a database that stores document-shaped records; these instructions cover schema discovery, limited reads, aggregations, indexes, statistics, query explanations, and redacted test data.

In plain words
What is it for?
Use them to discover databases and collections, inspect sampled document structures, run bounded queries and aggregations, review indexes and statistics, and create redacted fixtures.
Why use it?
They reduce the risk of reading the wrong data, sending incomplete filters, exceeding limits, or bypassing database access rules.

Skill for Claude CodeCodex

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

Good fit Use them to discover databases and collections, inspect sampled document structures, run bounded queries and aggregations, review indexes and statistics, and create redacted fixtures.

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

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 safeselect-mongodb

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/antonillos/safeselect/safeselect-mongodb"><img src="https://agentmods.dev/badge/skills/antonillos/safeselect/safeselect-mongodb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 296 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.00045 $0.00296
Opus 5.5 $0.00018 $0.00118
Sonnet 5.5 $0.00009 $0.00059
Haiku 4.5 $0.00005 $0.00030

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

Security

Grade A, and why

safeselect-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 5d 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/safeselect-mongodb/SKILL.md · 24 lines

What it actually says

SafeSelect MongoDB investigation

  1. Call database_info if the backend is unknown, then list_databases and list_collections using exact returned names. Stop here for listing requests.
  2. Call discover_document_schema before reading unfamiliar documents. Schema discovery is sampled, not exhaustive; missing fields may exist elsewhere.
  3. Use observed fields in bounded find_documents or aggregate_documents calls. Preserve database/collection policy, filters, projection and small limits.
  4. Pass filter/projection/sort as complete nested JSON objects and pipeline as one complete array. If a client flattens values, use a JSON-encoded object or array string. Never send keys like filter.name or pipeline[0].$match.
  5. After flattened or missing-filter rejection, preserve the intended constraint in a complete value. Never substitute {} or retry the same malformed call.
  6. Follow the returned next step once; report terminal failures and stop.

Read document tools and recovery for analysis, fixtures, indexes and statistics. Never bypass SafeSelect policy using raw MongoDB access.

Files

What ships with it

1 file 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. 5d ago First seen · 24 lines · 45 tokens per session scan A a5f168b3fdba

Subscribe to this mod's changes

safeselect-mongodb is a skill published in the GitHub repository antonillos/safeselect (0 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 296 once invoked, about $0.0002 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-24.

Related

Other skills, from other repositories

diesel-guard

Lints Diesel and SQLx Postgres migrations for unsafe schema changes that lock tables or cause downtime, and authors custom Rhai checks. Use when reviewing, writing, or fixing SQL migrations, when diesel-guard reports a violation, when configuring diesel-guard.toml, or when the user mentions migration safety, table…

ayarotsky/diesel-guard · 77 tokens

mongodb

Use when modeling MongoDB documents (embed versus reference, the 16MB cap, bucket and subset patterns), choosing or fixing indexes (compound order by the ESR rule, partial, TTL, multikey, reading explain), writing aggregation pipelines that stay index-eligible, running multi-document transactions with retry, or…

ericrisco/rsc-harness · 118 tokens

surrealism

SurrealDB Surrealism WASM extension development. Write Rust functions, compile to WASM, deploy as database modules. Part of the surreal-skills collection.

skillmds/skillmd · 37 tokens

huawei-cloud-dds-dcs-instance-management

Huawei Cloud DDS (Document Database Service) and DCS (Distributed Cache Service) unified management skill. Provides 16 operations across five capability domains: (1) Query — list/get DDS/DCS instances, DCS node info, DCS custom templates; (2) Analysis — analyze DDS deployment architecture and DCS security posture; (3)…

huaweicloud/huaweicloud-devkit · 258 tokens

database

Query and manage SQLite, PostgreSQL, and MySQL databases from the command line. Use when the user asks to run SQL queries, inspect database schemas, create or alter tables, import or export data, manage indexes, analyze query performance with EXPLAIN, back up or restore databases, or perform CRUD operations via…

bug-ops/zeph · 76 tokens

qdrant

Manage Qdrant vector database via REST API. Use when the user asks to create or delete collections, upsert or search vectors, inspect points, filter by payload fields, manage snapshots, check cluster status, or debug semantic search issues. Covers collection CRUD, point upsert/search/scroll/count, payload indexes…

bug-ops/zeph · 88 tokens