Mongodb
Manage MongoDB databases via the mongosh CLI. Use when querying, inspecting, or managing MongoDB collections.From its SKILL.md
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.
SKILL.md
1.1 KB, 206 tokens by cl100k_base, 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]
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 0 of the 12 instructions most databases sql skills give in 206 tokens
Counted across 609 of the 712 authors here whose files we hold, read 2026-09-06
- Index all foreign key columnsin 26 of 609
- Use cursor pagination instead of offsetin 25 of 609, across 20 files
- Use timestamptz for timestampsin 21 of 609
- Specify columns instead of using select starin 20 of 609, across 10 files
- Use parameterized queries for all database interactionsin 20 of 609, across 19 files
- Use Enum for categorical datain 17 of 609, across 7 files
- Order by frequently filtered columnsin 17 of 609, across 7 files
- Batch data insertsin 17 of 609, across 7 files
- Use expand-contract pattern for schema changesin 17 of 609
- Use materialized views for real-time aggregationsin 16 of 609, across 6 files
- Partition tables by timein 16 of 609, across 6 files
- Use smallest appropriate data typesin 16 of 609, across 6 files
Said here and by no other author read
- Use mongosh to interact with databases
- Connect using the specified connection string format
- List databases to inspect available data
- Select a database using the use command
- List collections within the current database
- Query documents using find and countDocuments
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.