mongodb-atlas-stream-p…
Manages MongoDB Atlas Stream Processing (ASP) workflows. Handles workspace provisioning, data…
Estimates the storage and memory impact of encrypting fields in collections with Queryable Encryption (QE) enabled. Do NOT use for collections that use Client-Side Field Level Encryption (CSFLE) instead of QE.
$ npx -y skills add mongodb/agent-skills --skill mongodb-qe-size-estimation --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/mongodb-qe-size-estimationContext preview
The summary Claude sees to decide when to auto-load this skill.
Estimates the storage and memory impact of encrypting fields in collections with Queryable Encryption (QE) enabled. Do NOT use for collections that use Client-Side Field Level Encryption (CSFLE) instead of QE.
name: mongodb-qe-size-estimation license: Apache-2.0 metadata: version: "1.0.0" description: > Estimates the storage and memory impact of encrypting fields in collections with Queryable Encryption (QE) enabled. Do NOT use for collections that use Client-Side Field Level Encryption (CSFLE) instead of QE.
Validate the user's inputs, whether manual or via an encryption schema, against the following:
An encrypted field may be "unindexed" meaning it has no query types enabled. Fields of BSON type object or array *only* support unindexed encryption, though other BSON types can also be unindexed. Otherwise, allowed query types based on a field's BSON type are:
A string field may have both "prefix" and "suffix" enabled, in which case "queries" may be an array of two objects. This is the only valid case where one field is indexed for multiple query types.
No other BSON type + query type combinations are permitted.
Don't accept "preview" query types such as "suffixPreview". These are from earlier Public Preview releases of those query types, so the sizing formulas for their GA versions don't apply.
If the user's input violates any of the preceding rules, reject it. If a user doesn't specify BSON type, only check that each field either has no query types enabled, exactly one valid query type, or exactly two (prefix and suffix). Enumerate validation failures, list allowed combinations, and don't proceed until the user provides valid input.
Create an empty qe-sizing-calculations.md file in the OS temp directory ($TMPDIR, or /tmp if unset). If a qe-sizing-calculations.md file already exists at that location, inform the user and ask for confirmation to delete it and create a new one for the new set of calculations.
State: "This skill calculates the maximum storage impact of enabling Queryable Encryption on a collection. Values are saved to the <path to qe-sizing-calculations.md> file if you want to verify the calculations or see per-field numbers. Note that prefix, suffix, and substring queries on encrypted fields require MongoDB 9.0, and aren't supported in earlier versions.
All values are worst-case. You may see a smaller impact on storage or memory in practice.
Do you want to provide field information manually, or use an encryption schema file?"
If the user opts for an encryption schema, request it as either pasted content or a file path, and expect JSON format. Validate the schema against this skill's "Validation" section. If the schema is valid but includes fields with "range" queries enabled, inform the user that no calculations are available for those fields, so their impact is estimated as 0.
Ask the user how many documents in the collection have encrypted fields. If they don't know, a safe default is the total number of documents in the collection. Save this value to qe-sizing-calculations.md as:
**N:** <value>
Save this value to qe-sizing-calculations.md as:
**numUnindexed:** <number of unindexed encrypted fields>
Save this value to qe-sizing-calculations.md as:
**numIndexed:** <number of encrypted fields indexed for queries>
Save the sum of numUninde
Collection of official MongoDB agent skills for use in agentic workflows. For more information, refer to the MongoDB Agent Skills documentation.
Repo: mongodb/agent-skills
Manages MongoDB Atlas Stream Processing (ASP) workflows. Handles workspace provisioning, data…
Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any…
Generate read-only MongoDB queries (find) or aggregation pipelines using natural language,…
Help with MongoDB query optimization and indexing. Use only when the user asks for…
MongoDB schema design patterns and anti-patterns. Use when designing data models, reviewing…
Guides MongoDB users through implementing and optimizing Atlas Search (full-text), Vector…