mongodb

Manage MongoDB databases via mongosh for CRUD, indexing, and aggregation.

50|13|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/chaterm/terminal-skills --skill mongodb-chaterm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mongodb
Source: https://github.com/chaterm/terminal-skills/tree/main/database/mongodb
Command: npx skills add https://github.com/chaterm/terminal-skills --skill mongodb-chaterm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the management of MongoDB databases, from basic operations and performance tuning to advanced indexing and cluster scaling.

Core Features & Use Cases

  • Database & Collection Management: Create, drop, and manage databases and collections efficiently.
  • CRUD Operations: Perform insert, find, update, and delete operations with ease.
  • Indexing & Optimization: Create, manage, and analyze indexes for faster queries.
  • Aggregation Framework: Build complex data aggregation pipelines.
  • Backup & Restore: Securely back up and restore your MongoDB data.
  • Replica Set Management: Configure and manage replica sets for high availability.
  • Performance Monitoring: Monitor server status, current operations, and slow queries.
  • Use Case: Optimize slow-running queries by analyzing index usage and creating appropriate indexes.

Quick Start

Use the mongodb skill to connect to a local MongoDB instance and display all databases.

Frequently Asked Questions about mongodb

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize slow MongoDB queries using indexing?

To optimize slow MongoDB queries, you can analyze index usage and create appropriate indexes. This Skill provides commands to manage and analyze indexes, enabling faster query execution and improved database performance.

How do I build complex data aggregation pipelines in MongoDB?

You can build complex data aggregation pipelines in MongoDB using the Aggregation Framework. This Skill offers comprehensive guidance for constructing multi-stage pipelines to process and transform your data efficiently.

What is the best way to configure MongoDB replica sets for high availability?

The best way to configure MongoDB replica sets for high availability is through replica set administration commands. This Skill provides detailed guidance for configuring and managing replica sets to ensure database redundancy.

Can I monitor MongoDB performance and slow queries via mongosh?

Yes, you can monitor MongoDB performance and slow queries via mongosh. This Skill requires direct interaction with the mongosh client to check server status, current operations, and identify slow-running queries for optimization.

How do I securely back up and restore a NoSQL MongoDB database?

You can securely back up and restore a NoSQL MongoDB database using built-in backup commands. This Skill covers comprehensive backup and restore scenarios to protect your data from loss during cluster management operations.