create-mongodb-repository
CommunityBuild production-ready MongoDB repositories.
Authormadooei
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill enables developers to implement robust MongoDB repositories in TypeScript using the native driver, reducing boilerplate and ensuring consistent mapping, indexing, and ObjectId handling.
Core Features & Use Cases
- Native-driver MongoDB repository with document mapping, Zod validation, and typed interfaces.
- Index management: ensures performance with lazy initialization and idempotent index creation.
- Safe ObjectId handling: validates and converts between string IDs and ObjectId objects, with read-time validation.
- Use Case: implement repositories for entities like Note, User, or Product and plug them into the data layer.
Quick Start
Create the implementation file at src/repositories/mongodb/{entity-name}.mongodb.repository.ts and wire it to your existing database setup.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: create-mongodb-repository Download link: https://github.com/madooei/backend-template/archive/main.zip#create-mongodb-repository Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.