— No reviews yet
0 installs
15 views
0.0% view→install
Install
$ agentstack add skill-vaquarkhan-fullstack-development-agent-skills-mongodb-document-modeling ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Are you the author of Mongodb Document Modeling? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claimAbout
MongoDB Document Modeling
Use When
- Modeling domains in MongoDB (Atlas or self-hosted)
- Designing embed vs reference, indexes, and aggregation for app queries
- Pairing with Node, Java, Python, or Go services using MongoDB drivers
Workflow
- Map access patterns first — one document shape per dominant query pattern.
- Choose embed vs reference; cap array growth; use bucketing for high-volume subdocs.
- Define JSON Schema validation and compound indexes for hot queries.
- Implement transactions only when cross-document invariants require them.
- Plan sharding keys early if tenant scale warrants it.
- Monitor slow queries and index hit rates in Atlas or profiler.
Required Checks
- Every production query uses supporting index (explain plan reviewed)
- Tenant isolation enforced in query filter — not only application logic
- Unbounded arrays avoided or capped with archival strategy
- Write concern and read concern documented per use case
Examples And Templates
See examples/ for side-by-side good vs bad patterns agents commonly get wrong. See templates/ for copy-paste starters aligned with this skill.
Decision Framework
- Embed when data is read together and bounded; reference when shared or unbounded.
- Prefer aggregation pipeline for analytics; avoid $lookup storms without indexes.
- Change streams for CDC to search/cache — not polling entire collections.
- Use transactions sparingly; design atomic single-document updates when possible.
Common Rationalizations And Rebuttals
- "Mongo is schema-less." -> Undocumented schema causes production drift; use validation.
- "Indexes slow writes." -> Missing indexes slow reads more; right-size indexes per query.
- "ObjectId everywhere." -> Use UUID strings for client-facing IDs when integrating APIs.
Evidence Pack
- explain() output for top 5 queries
- Index list with rationale
- Schema validation rules
- Tenant isolation test cases
Exit Criteria
- Hot queries are indexed and tenant-scoped
- Document shapes match access patterns without unbounded growth
- Operational monitoring for slow ops is configured
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: vaquarkhan
- Source: vaquarkhan/Fullstack-development-agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.