121downloads

MongoDB connection pools and timeout tuning skill

Review MongoDB client connections, pool sizing and timeouts for your workload. Diagnose connection failures before choosing driver configuration changes.

When it runs

Your agent reads this description from SKILL.md to decide when to load the skill:

Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language. Use this skill when working/updating/reviewing on functions that instantiate or configure a MongoDB client (eg, when calling `connect()`), configuring connection pools, troubleshooting connection errors (ECONNREFUSED, timeouts, pool exhaustion), optimizing performance issues related to connections. This includes scenarios like building serverless functions with MongoDB, creating API endpoints that use MongoDB, optimizing high-traffic MongoDB applications, creating long-running tasks and concurrency, or debugging connection-related failures.

What SKILL.md covers

  • Core Principle: Context Before Configuration
  • Understanding How Connection Pools Work
  • Configuration Design
  • Troubleshooting Connection Issues
  • Environmental Context (MANDATORY)
  • Advising on Monitoring & Iteration
  • When creating code

Files in the ZIP

Related skills