Mongodb
A society of AI agents with impeccable standards and zero tolerance for 'fix stuff' commits.
npx -y skills add fworks-tech/agenthood --skill mongodbAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Manage MongoDB databases via the mongosh CLI. Use when querying, inspecting, or managing MongoDB collections.
SKILL.md
1.1 KB, as published. Nobody here has run it
mongosh
Use mongosh to interact with MongoDB databases.
Common Commands
Connection
- Connect:
mongosh "mongodb://localhost:27017" - Connect with auth:
mongosh "mongodb://user:pass@host:27017/db"
Inspection
- List databases:
show dbs - Use database:
use <dbname> - List collections:
show collections
Queries
- Find documents:
db.collection.find({ field: "value" }).limit(10) - Count documents:
db.collection.countDocuments({}) - Insert:
db.collection.insertOne({ name: "test" }) - Update:
db.collection.updateOne({ _id: id }, { $set: { field: "value" } })
Notes
- Use
mongosh(new shell) not the deprecatedmongoshell - Connection string format:
mongodb://[user:pass@]host[:port]/[db]