back
loading skill details...
mongodb — an installable skill for AI agents, published by hoodini/ai-agents-skills.
MongoDB and Mongoose schema design, querying, aggregation pipelines, and performance optimization.
Covers both native MongoDB driver and Mongoose ODM with connection setup, CRUD operations, and graceful shutdown patterns
Schema design guidance including embedded vs. referenced documents, virtuals, validation, indexes, and text search configuration
Query operations with 20+ operators (comparison, logical, array, regex) plus find, update, and upsert patterns with query builders
Aggregation pipeline stages ($match, $group, $lookup, $unwind, $facet) with real-world examples for sales analytics and top-product queries
Middleware hooks, transactions, bulk operations, cursor iteration for large datasets, and Atlas-specific features like full-text and vector search
MongoDB & Mongoose
Build and query MongoDB databases with best practices.
Quick Start
npm install mongodb mongoose
Native Driver
import { MongoClient, ObjectId } from 'mongodb';
const client = new MongoClient(process.env.MONGODB_URI!);
const db = client.db('myapp');
const users = db.collection('users');don't have the plugin yet? install it then click "run inline in claude" again.