@shipshitdev/mongodb-migration-expert
Database schema design, indexing, and migration guidance for MongoDB-based applications.
No skills found in this collection.
SKILL.md
| name | mongodb-migration-expert |
| description | Database schema design, indexing, and migration guidance for MongoDB-based applications. Use when adding or changing MongoDB collections, indexes, or fields, designing schema for multi-tenant or large datasets, or planning forward-only migrations. |
MongoDB Migration Expert
Design schema changes and migrations that are safe, indexed, and backwards compatible.
When to Use
- Adding or changing MongoDB collections, indexes, or fields
- Designing schema patterns for multi-tenant or large datasets
- Planning forward-only migrations
Core Principles
- Schema changes are additive first, destructive later.
- Backfill data in batches; avoid locking large collections.
- Indexes must match query patterns.
- Keep migrations idempotent and observable.
Migration Workflow
- Add new fields with defaults or nullable values.
- Deploy code that handles both old and new fields.
- Backfill data (scripted batches).
- Add or adjust indexes after backfill if needed.
- Remove legacy fields in a later release.
Indexing
- Add compound indexes for common filters and sorts.
- Avoid over-indexing; each index slows writes.
- Validate index usage with
explain.
Multi-tenant Pattern (if applicable)
- Include
tenantIdon documents. - Compound indexes should start with
tenantId.
Checklist
- Backwards compatible reads and writes
- Idempotent scripts
- Indexes created with safe options
- Roll-forward plan documented
Loading...
Select a file to preview
Analyzing security...
Checking scan reports and verification data.
Bill of Materials
Everything this skill can do — files, network, commands, and more.
No demos yet. To add one, ask your AI agent: "Submit a demo for @shipshitdev/mongodb-migration-expert" — or upload via the API.
To add a demo, ask your AI agent: "Submit a demo for @shipshitdev/mongodb-migration-expert"
No eval data yet. Eval results are published via the SkillSafe API.