mongodb
Skill by sickn33
Administers MongoDB databases with guidance on installation, users, indexing, replica sets, sharding, and backups. It is written for operators who manage MongoDB deployments on Linux servers or Docker.
Install mongodb
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/mongodb ~/.claude/skills/mongodbRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/mongodb ~/.gemini/antigravity-cli/skills/mongodbAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a docs-only guide for administering MongoDB. It covers installing MongoDB 7 on Debian or Ubuntu, creating admin and application users, enabling authorization, and running common mongosh commands for inserts, queries, updates, and deletes. It also includes indexing, aggregation pipeline examples, and monitoring queries.
The skill explains how to set up a three-member replica set with a shared keyfile and provides a Docker Compose lab for it. It describes backup and restore with mongodump and mongorestore, plus configuration tuning and a troubleshooting table. The source says it is aimed at people managing MongoDB deployments and asks them to check support status for the chosen version. Helper scripts and templates are not bundled.
Written from the project's SKILL.md and checked against it.
What it can do
- Install MongoDBShows how to add the MongoDB 7 apt repository, install mongodb-org, and start mongod on Debian or Ubuntu.
- Set up users and authCreates admin and application-scoped users and enables authorization in mongod.conf.
- Run mongosh commandsLists commands for inserting, querying, updating, and deleting documents in mongosh.
- Create indexesCovers unique, compound, text, and TTL indexes, plus explain output to verify index use.
- Build aggregation pipelinesProvides examples for grouping, sorting, lookups, and daily trend reports.
- Configure replica setsExplains member configuration, keyfile generation, rs.initiate, and replication lag checks.
- Back up and restoreShows mongodump and mongorestore commands, including compressed dumps and the --drop option.
- Run a Docker Compose labProvides a three-container replica set setup with a keyfile and an init service.
- Monitor performanceLists serverStatus, currentOp, collection stats, and profiler queries for slow operations.
- Tune configurationGives production config suggestions for WiredTiger cache, compression, connections, and profiling.
What you need
- Linux server (Debian/Ubuntu or RHEL-based) or Docker
- Root or sudo access for package installation
- mongosh for running shell commands
Try asking
- Set up a MongoDB 7 install on Ubuntu with authorization enabled
- Create an application user with readWrite access to mydb
- Show me how to build a three-member replica set with a keyfile
Good to know
- Docs-only import. Upstream scripts and templates are not bundled.
- Infrastructure commands can disrupt services. Confirm the target and have backups first.
- The --drop restore option overwrites collections and needs a tested restore into isolation.
- TTL indexes delete data asynchronously.
Security check
C- Asks for administrator rights (sudo)In
skills/mongodb/SKILL.md:sudo
Checked automatically: skills/mongodb/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB
Alternatives to mongodb
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
mongodb: common questions
Does this skill cover production replica sets?
It says production availability generally needs three appropriately distributed voting data-bearing members. It also notes that an arbiter holds no data and is not an equivalent redundant copy.
How does the skill handle passwords in examples?
The source says passwords and URIs are placeholders. It advises using prompts or protected tool configuration instead of real secrets in process arguments or committed Compose files.
Can I run scripts from this skill directly?
No. The source says it is docs-only and that helper scripts and templates are not bundled.
How do I install mongodb?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mongodb free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is mongodb safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.
What are alternatives to mongodb?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
