Mongodb Backups
TheDecipherist/claude-code-mastery-project-starter-kit
Production MongoDB backup and restore practices that the documentation gets wrong.
Estimates the storage and memory impact of encrypting fields in collections with Queryable Encryption (QE) enabled.
$ npx skills add mongodb/agent-skills --skill mongodb-qe-size-estimation -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mongodb/agent-skills mongodb-qe-size-estimation --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/mongodb/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mongodb-qe-size-estimation .claude/skills/mongodb-qe-size-estimation && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "mongodb-qe-size-estimation" agent skill from https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-qe-size-estimation into .claude/skills/mongodb-qe-size-estimation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mongodb-qe-size-estimation", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-qe-size-estimationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mongodb/agent-skills --skill mongodb-qe-size-estimation -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mongodb/agent-skills mongodb-qe-size-estimation --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mongodb/agent-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/mongodb-qe-size-estimation .agents/skills/mongodb-qe-size-estimation && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "mongodb-qe-size-estimation" agent skill from https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-qe-size-estimation into .agents/skills/mongodb-qe-size-estimation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mongodb-qe-size-estimation", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mongodb/agent-skills --skill mongodb-qe-size-estimation -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mongodb/agent-skills mongodb-qe-size-estimation --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mongodb/agent-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/mongodb-qe-size-estimation .cursor/skills/mongodb-qe-size-estimation && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "mongodb-qe-size-estimation" agent skill from https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-qe-size-estimation into .cursor/skills/mongodb-qe-size-estimation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mongodb-qe-size-estimation", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mongodb/agent-skills.git --path skills/mongodb-qe-size-estimation--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mongodb/agent-skills --skill mongodb-qe-size-estimation -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mongodb/agent-skills mongodb-qe-size-estimation --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mongodb/agent-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/mongodb-qe-size-estimation .gemini/skills/mongodb-qe-size-estimation && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "mongodb-qe-size-estimation" agent skill from https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-qe-size-estimation into .gemini/skills/mongodb-qe-size-estimation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mongodb-qe-size-estimation", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mongodb/agent-skills mongodb-qe-size-estimationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mongodb/agent-skills --skill mongodb-qe-size-estimation -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mongodb/agent-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/mongodb-qe-size-estimation .github/skills/mongodb-qe-size-estimation && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "mongodb-qe-size-estimation" agent skill from https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-qe-size-estimation into .github/skills/mongodb-qe-size-estimation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mongodb-qe-size-estimation", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mongodb/agent-skills --skill mongodb-qe-size-estimation -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mongodb/agent-skills mongodb-qe-size-estimation --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mongodb/agent-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/mongodb-qe-size-estimation .opencode/skills/mongodb-qe-size-estimation && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "mongodb-qe-size-estimation" agent skill from https://github.com/mongodb/agent-skills/tree/main/skills/mongodb-qe-size-estimation into .opencode/skills/mongodb-qe-size-estimation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mongodb-qe-size-estimation", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
mongodb-qe-size-estimationEstimates the storage and memory impact of encrypting fields in collections with Queryable Encryption (QE) enabled.
Mongodb Qe Size Estimation is an agent skill from mongodb/agent-skills, published by the product's own GitHub organization. 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.
Its SKILL.md is about 4.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases, covering NoSQL databases. It works with MongoDB. The repository describes itself as: Use the official MongoDB Skills with your favorite coding agent to build faster. The licence is Apache-2.0.
9 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 18b014e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Mongodb Qe Size Estimation loads about 4.2k tokens when it runs. Until then it costs about 59 tokens; SKILL.md has 2,514 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from mongodb/agent-skills at commit 18b014e, republished under its Apache-2.0 licence (© mongodb). 2,514 words, ~4,234 tokens.
.claude/skills/mongodb-qe-size-estimation/SKILL.md (or your agent's skills folder).<content>) is for LLM use. Don't save it to qe-sizing-calculations.md or mention it to the user.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 numUnindexed and numIndexed to qe-sizing-calculations.md as:
numEntries: <sum of numUnindexed and numIndexed>
Write a section heading to qe-sizing-calculations.md:
== FIELD VALUES ===============================================================
As you get information, write it to qe-sizing-calculations.md in the following format, omitting any lines that don't apply. For unindexed fields, this means omitting the Query Type.
<Field Name> <the name provided by the user, or the dot notation "path" value if taken from the encryption schema>
Query Type: <equality, range, prefix, suffix, substring, or "prefix and suffix">
mlen: <include if Query Type is substring. Integer from 2-50, inclusive>
lb: <include if Query Type is "prefix", "suffix", or "substring". Integer 1+ for prefix and suffix queries, or 2+ for substring queries>
ub: <include if Query Type is "prefix", "suffix", or "substring". Integer 1+ for prefix and suffix queries, or 2-6 for substring queries>
lb_prefix: <include if Query Type is "prefix and suffix". Integer 1+>
ub_prefix: <include if Query Type is "prefix and suffix". Integer 1+>
lb_suffix: <include if Query Type is "prefix and suffix". Integer 1+>
ub_suffix: <include if Query Type is "prefix and suffix". Integer 1+>
v: <omit if Query Type is range, otherwise include. Integer representing the average byte length of the unencrypted values for the field>
If the user provided an encryption schema, do this once:
If the user didn't provide an encryption schema, do this per field:
Do this per field:
Check the list below, and ask the user for the values that aren't already populated. Write all values to the qe-sizing-calculations.md file.
mlen: (LLM Note: only include if no schema provided, and Query Type is substring) Max Length, the maximum allowable length of the string. lb: (LLM Note: only include if no schema provided, and Query Type is "prefix", "suffix", or "substring") Lower Bound, the minimum searchable characters. ub: (LLM Note: only include if no schema provided, and Query Type is "prefix", "suffix", or "substring") Upper Bound, the maximum searchable characters. lb_prefix: (LLM Note: only include if no schema provided, and Query Type is "prefix and suffix") Lower Bound for prefix queries, the minimum searchable characters. ub_prefix: (LLM Note: only include if no schema provided, and Query Type is "prefix and suffix") Upper Bound for prefix queries, the maximum searchable characters. lb_suffix: (LLM Note: only include if no schema provided, and Query Type is "prefix and suffix") Lower Bound for suffix queries, the minimum searchable characters. ub_suffix: (LLM Note: only include if no schema provided, and Query Type is "prefix and suffix") Upper Bound for suffix queries, the maximum searchable characters. v: (LLM Note: skip if Query Type is range since we have no calculation for those, otherwise needed once per field). Average byte length of the unencrypted values for the field. If the user provides character length, accept it as equivalent.
Validate values against the formatting snippet at the start of this step. Validate that lb ≤ ub ≤ mlen (if present). Validate that lb_prefix ≤ ub_prefix and lb_suffix ≤ ub_suffix (if present). If a value falls outside allowable bounds, reject it and inform the user. Do not proceed without a valid value.
If mlen < v, warn the user that the full field value isn't queryable, but accept it as valid.
Repeat until you have populated the full number of entries, numEntries, in qe-sizing-calculations.md.
This step populates calculation information to file, including intermediate steps.
For every entry in qe-sizing-calculations.md:
For fields with no Query Type:
T: 0 Document Storage (bytes): <run the calculation: 71 + ceil((v+6)/16) * 16>
For fields with a Query Type of "equality":
T: 1 Document Storage (bytes): <run the calculation: 1.2 * (255 * T + 122 + ceil((v + 6) / 16) * 16)>
For fields with a Query Type of "range", there is currently no formula, so record an entry with values of 0:
T: 0 Document Storage (bytes): 0
For fields with a Query Type of "prefix" or "suffix":
T formula: T = 1 + (ub - lb + 1) T calculation: <The T formula template with all placeholders populated by the field's values, but not calculated> T: <run the calculation in "T calculation" and write the result here> Document Storage (bytes): <run the calculation: 1.2 * (255 * T + 122 + ceil((v + 6) / 16) * 16)>
For fields with a Query Type of "prefix and suffix":
T formula: T = 1 + (ub_prefix - lb_prefix + 1) + (ub_suffix - lb_suffix + 1) T calculation: <The T formula template with all placeholders populated by the field's values, but not calculated> T: <run the calculation in "T calculation" and write the result here> Document Storage (bytes): <run the calculation: 1.2 * (255 * T + 122 + ceil((v + 6) / 16) * 16)>
For fields with a Query Type of "substring":
T formula: T = 1 + (ub - lb + 1) * (2 * mlen + 2 - ub - lb) / 2 T calculation: <The T formula template with all placeholders populated by the field's values, but not calculated> T: <run the calculation in "T calculation" and write the result here> Document Storage (bytes): <run the calculation: 1.2 * (255 * T + 122 + ceil((v + 6) / 16) * 16)>
These values are collection-level and calculated as totals across all entries.
At the end of the qe-sizing-calculations.md file, silently write the following lines:
== COLLECTION-LEVEL TOTALS ====================================================
N: <copy the N value from the top of the file down to this section, for easier reading>
T_Total: <the sum of all T values.>
Index Storage (bytes): <run the calculation: 1.2 * (67 * T_Total + 640)>
Total Disk Storage (bytes): <run the calculation: N * (Index Storage + (the sum of all Document Storage values))>
Memory (bytes): <run the calculation: N * (52 * T_Total + 17)>
Output the following, and include the units:
Total Disk Storage Impact: <the Total Disk Storage value from qe-sizing-calculations.md, converted to decimal GB (1000³ bytes) > Required Memory: <the Memory value from qe-sizing-calculations.md, converted to binary GiB (1024³ bytes)> Fields by Impact (descending): <sort all fields in qe-sizing-calculations.md by T, descending, then list them as: Name (<either the Query Type, or unindexed>): T>
If the encryption schema or manual inputs included fields with range queries enabled, list those fields and remind the user that their impact wasn't calculated.
Present advice. Don't provide any advice the user has explicitly rejected, such as suggesting different query types if they insist a field needs to allow substring queries. Only raise problems, don't mention something if it passes all checks. If you suggest changing values to a specific number, populate the Step 6 T formula template for that query type with the suggested values, calculate it with available mathematical tools, and quote only that result.
<documents in collection>). Tell them not to use substring queries on collections of more than 50 million documents.Also inform the user of the path to the qe-sizing-calculations.md file, and ask if they want to review the data, or delete the temporary file. Remind them that the temporary file contains the names of encrypted fields and their average plaintext lengths, and should be deleted once finished.
© mongodb, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/mongodb-qe-size-estimation of mongodb/agent-skills.
Open the folder on GitHubat commit 18b014e
Mongodb Qe Size Estimation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Mongodb Qe Size Estimation this skillmongodb/agent-skills | 190 | — | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Mongodb BackupsTheDecipherist/claude-code-mastery-project-starter-kit | 338 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Abp Moduleabpframework/abp | 14k | — | ~1.6k | Automated safety check: Pass | LGPL-3.0 | |
| Abp Mongodbabpframework/abp | 14k | — | ~1.4k | Automated safety check: Pass | LGPL-3.0 | |
| Mongodbsickn33/agentic-awesome-skills | 47k | 2 repos | ~2.7k | Automated safety check: Notes | MIT | |
| MongodbRightNow-AI/openfang | 18k | — | ~821 | Automated safety check: Pass | Apache-2.0 |
TheDecipherist/claude-code-mastery-project-starter-kit
Production MongoDB backup and restore practices that the documentation gets wrong.
abpframework/abp
ABP reusable Module solution template - EF Core + MongoDB dual support, virtual methods for extensibility, DbTablePrefix, module options pattern, entity extension, separate connection string.
abpframework/abp
ABP MongoDB patterns - AbpMongoDbContext, IMongoCollection, MongoDbRepository, no migrations, embedded documents vs references, manual UpdateAsync required.
sickn33/agentic-awesome-skills
Administer MongoDB databases. An agent skill from sickn33/agentic-awesome-skills.
RightNow-AI/openfang
MongoDB operations expert for queries, aggregation pipelines, indexes, and schema design
TheDecipherist/claude-code-mastery-project-starter-kit
Native-driver, StrictDB, and data-modeling rules for MongoDB.
mongodb/agent-skills
Help with MongoDB query optimization and indexing. An agent skill from mongodb/agent-skills.
mongodb/agent-skills
Review a proposed Agent Skill for structural validity and content quality before publishing.
mongodb/agent-skills
Guide users through configuring key MongoDB MCP server options.
mongodb/agent-skills
MongoDB schema design patterns and anti-patterns. An agent skill from mongodb/agent-skills.
mongodb/agent-skills
Generate read-only MongoDB queries (find) or aggregation pipelines using natural language, with collection schema context and sample documents.
mongodb/agent-skills
Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language.
Works with
Categories
Estimates the storage and memory impact of encrypting fields in collections with Queryable Encryption (QE) enabled. Mongodb Qe Size Estimation is an agent skill from mongodb/agent-skills, published by the product's own GitHub organization. Estimates the storage and memory impact of encrypting fields in collections with Queryable Encryption (QE) enabled.
Mongodb Qe Size Estimation fits situations like: collections that use Client-Side Field Level Encryption (CSFLE) instead of QE; tasks that involve NoSQL databases.
Run `npx skills add mongodb/agent-skills --skill mongodb-qe-size-estimation -a claude-code`. Or copy the skill folder (skills/mongodb-qe-size-estimation in mongodb/agent-skills) into .claude/skills/mongodb-qe-size-estimation in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mongodb/agent-skills --skill mongodb-qe-size-estimation -a codex`. Or copy the skill folder (skills/mongodb-qe-size-estimation in mongodb/agent-skills) into .agents/skills/mongodb-qe-size-estimation in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mongodb/agent-skills --skill mongodb-qe-size-estimation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mongodb-qe-size-estimation, .gemini/skills/mongodb-qe-size-estimation, .github/skills/mongodb-qe-size-estimation and .opencode/skills/mongodb-qe-size-estimation in your project.
SKILL.md names no scripts, command-line tools or credentials: Mongodb Qe Size Estimation is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Mongodb Qe Size Estimation is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.2k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Mongodb Qe Size Estimation: Mongodb Backups (TheDecipherist/claude-code-mastery-project-starter-kit, 338 stars), Abp Module (abpframework/abp, 14k stars), Abp Mongodb (abpframework/abp, 14k stars) and Mongodb (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mongodb (a GitHub organization, an official publisher) maintains it in mongodb/agent-skills, which has 190 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 7, 2026.
Source: mongodb/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.