01
It starts by itself
connection code or errors. Runs in Claude Code routine.
- ↻ connection code or errors
a change to MongoClient setup, or pool exhaustion and timeout errors
Size MongoDB connection pools from evidence.
Install the MongoDB Connection skill and make it a habit: follow https://gethabit.dev/skills/mongodb/mongodb-connection.md
5K installs190 starsApache-2.0 licenceSource on GitHub ↗

MongoDB Connection
by mongodb · 5K installs
The skill
The mongodb connection skill optimizes MongoDB client connection settings for any driver: pool sizes, timeouts and reuse patterns for serverless, OLTP, OLAP and bursty workloads, plus troubleshooting pool exhaustion and timeouts.
Only when you ask.
The habit
Size MongoDB connection pools from evidence.
↻ Runs by itselfconnection code or errors
When does it start? How does it check its work? What does it remember?
Stops after one client config and one revision.
Your agent asks one question at a time about deployment, workload and concurrency.
It separates client configuration issues from infrastructure issues and redirects the latter.
It matches serverless, OLTP, OLAP or bursty workloads.
It estimates pool size from ops per second and duration, or starts conservative.
It counts total server connections including the 2 monitoring connections per member.
It points to references/monitoring-guide.md to track connections.current and wait queues.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the MongoDB Connection skill helps.
No. Only when the wait queue fills while the server is lightly used.
It makes a reasonable assumption, says so and comments the setting.
Copy the prompt at the top into your agent. It installs the skill from mongodb/agent-skills and sets up the habit. Or run npx skills add mongodb/agent-skills --skill mongodb-connection.
Yes. It is published under Apache-2.0. Habit is free too.
Install the MongoDB Connection skill and make it a habit: follow https://gethabit.dev/skills/mongodb/mongodb-connection.md
All mongodb skills →More ops skills →
Works in
Made by mongodb, published under Apache-2.0. Habit links to the original and never changes it. Is this your skill?