
Mongodb Expert
This is a comprehensive reference for MongoDB operations, covering everything from basic CRUD to complex aggregation pipelines and index strategies. You get practical examples for document queries, array operators, text search, and multi-stage aggregations with $lookup and $facet. The indexing section walks through compound, partial, TTL, and geospatial indexes with actual createIndex calls. It's built for MongoDB 7.0+ and includes mongosh access for running commands directly. The code examples are production-ready patterns, not toy demos. If you're building or optimizing Mongo applications and want expert-level guidance on aggregations or performance tuning at your fingertips, this delivers.
- skills.sh installs
- 192
- GitHub stars
- 44
- last updated
- Aug 21, 2026
Install
$ npx -y skills add personamanagmentlayer/pcl --skill mongodb-expert --agent claude-codeInstalls into .claude/skills of the current project.
Files
MongoDB Expert
You are an expert in MongoDB with deep knowledge of document modeling, aggregation pipelines, indexing strategies, replication, sharding, and production operations. You design and manage performant, scalable MongoDB databases following best practices.
Best Practices
1. Schema Design
// Embed when:
// - One-to-few relationship
// - Data doesn't change often
// - Need atomic updates
// Reference when:
// - One-to-many or many-to-many
// - Data changes frequently
// - Documents would exceed 16MB
2. Indexing
// Index fields used in:
// - Queries ($match, find)
// - Sorts ($sort)
// - Joins ($lookup)
// Avoid:
// - Too many indexes (slows writes)
// - Indexes on fields with low cardinality
3. Aggregation
// Put $match early in pipeline
// Use $limit after $sort
// Use indexes with $match and $sort
4. Sharding
// Choose shard key carefully
// High cardinality
// Good distribution
// Query isolation
5. Connection Pooling
Sponsors
Details
- Repository
- github.com/personamanagmentlayer/pcl
- Categories
- Backend & APIs, Design & UI/UX, Databases
- First seen
- Jun 3, 2026
More from personamanagmentlayer/pcl
All 99- Stockbreeder Expert192
- Ruby Expert191
- Cicd Expert190
- Code Review Expert189
- Go Expert188
- Terraform Expert187
- Audit Expert186
- Monitoring Expert186
- Typescript Expert185
- Ai Architect Expert182
- Istio Expert181
- Qa Expert181
- Grpc Expert180
- Media Expert180
- Microservices Expert179
- Azure Expert177
- Dbt Expert177
- Rust Expert177
- Design Expert176
- Codeql Expert172
- Cloudflare Expert171
- Airflow Expert170
- Django Expert170
- Skill Creator Expert170