mongoose-mongodb — Claude Code skill: what it does, how to install
This skill helps connect MongoDB to Node.js with Mongoose, covering schemas, CRUD work, document links, and advanced queries.
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill mongoose-mongodb -a claude-codeWhat mongoose-mongodb does
The skill guides an agent through MongoDB integration in Node.js with Mongoose. It covers connection setup, schemas and models, CRUD operations, document relationships, population, validation, indexes, middleware, virtual fields, and aggregation pipelines.
It can shape queries with comparison and logical conditions, array filters, and regular expressions. The project needs the mongoose package, and the connection string should come from the MONGODB_URI environment variable. Without that variable, the database connection cannot be configured.
The material also covers transactions for multi-document work, read-only queries with lean(), connection error handling, and closing the connection when the application stops. It is aimed at Node.js applications using JSON-like MongoDB data.
What it helps with
- connect MongoDB to a Node.js application
- define Mongoose schemas and data models
- run create, read, update, and delete operations
- load related documents through population
- build aggregation pipelines for database statistics
Example prompts for the agent
- Connect this Node.js project to MongoDB with
mongooseand theMONGODB_URIenvironment variable. - Create a Mongoose user model with validation, an email index, and CRUD methods.
- Add a post-to-user relationship, then load the author with
populate.
How to install mongoose-mongodb
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill mongoose-mongodb -a claude-code2Manually: put the files in place
~/.claude/skills/mongoose-mongodb/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/mongoose-mongodb/
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill mongoose-mongodb -a codex2Manually: put the files in place
.agents/skills/mongoose-mongodb/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill mongoose-mongodb -a cursor2Manually: put the files in place
.cursor/skills/mongoose-mongodb/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install pluginagentmarketplace/custom-plugin-nodejs mongoose-mongodb2Manually: put the files in place
.github/skills/mongoose-mongodb/SKILL.md1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill mongoose-mongodb -a gemini-cli2Platform CLI
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-nodejs --path skills/mongoose-mongodbManually: put the files in place
.devin/skills/mongoose-mongodb/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill mongoose-mongodb -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about mongoose-mongodb
How do I install mongoose-mongodb in Claude Code?
Run npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill mongoose-mongodb -a claude-code, then check ~/.claude/skills/mongoose-mongodb/SKILL.md.
What does mongoose-mongodb do?
It helps an agent build MongoDB features in Node.js with Mongoose, including schemas, models, CRUD operations, relationships, and advanced queries.
What is required before connecting MongoDB?
Prepare a Node.js project, install mongoose, and set MONGODB_URI to the database connection string.