← ClaudeAtlas

mongodb-mongooselisted

MongoDB with Mongoose — schemas, models, aggregation pipelines, migrations, and Atlas connections. Use when designing collections, writing queries, or integrating MongoDB into Node.js/Next.js apps.
bg-szy/TOP-SKILLS · ★ 1 · API & Backend · score 70
Install: claude install-skill bg-szy/TOP-SKILLS
# Mongodb Mongoose > Optimized for current MongoDB server releases, Mongoose 8.x+, Node.js 22+, and TypeScript 5.5+. Comprehensive guidance for MongoDB database design, Mongoose ODM patterns, and Atlas integration for Node.js/Next.js applications. - Leverage native parallel subagent dispatch and 200k+ context windows where available. ## When to Use This Skill Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below. - Designing MongoDB schemas and data models - Building Mongoose models with validation and middleware - Implementing the repository pattern for data access - Writing aggregation pipelines for complex queries - Managing MongoDB Atlas connections and configuration - Integrating MongoDB with Next.js API routes - Database migration strategies --- ## Anti-Patterns - Modeling documents like normalized tables by default: MongoDB performance depends on query-driven shape, not relational purity. - Returning full hydrated documents for every request: Over-fetching and hydration overhead accumulate quickly in API paths. - Adding middleware without write-path tests: Hooks can silently change create, update, and migration behavior. ## Verification Protocol Before claiming "skill applied successfully": 1. Pass/fail: The Mongodb Mongoose implementation names the target runtime, framework version, and affected files. 2. Pass/fail: Build, lint, test, or equivalent local validation is run for the changed surface. 3. Pass/fa