Cloudflare's official skill for running and debugging Workers locally with cf dev, wrangler dev or the Vite plugin, reading and seeding local bindings through Local Explorer, and routing production debugging to Workers observability.
MongoDB Connection Optimizer Skill
MongoDB's official skill for connection pools and timeouts — it refuses to hand you numbers until it knows your deployment, workload and concurrency.
Install
Other ways to install
About
- Refuses to propose pool values before establishing deployment, workload and concurrency
- Accounts for the 2 monitoring connections per replica-set member per MongoClient
- Sizing formula from ops/sec x duration, with a conservative fallback for variable workloads
- Distinguishes synchronous from asynchronous drivers when sizing
- Maps pool exhaustion, ECONNREFUSED, timeouts, churn and latency to causes
- Scenario configs for serverless, long-running APIs, high-traffic services and batch jobs
Pool settings are the parameters people copy from a blog post and never revisit. maxPoolSize: 100 on a serverless function, maxPoolSize: 10 behind a thread pool of 200 — both are wrong in a way that only shows up under load, as timeouts that look like a database problem. This official MongoDB skill exists to stop an agent doing that on your behalf.
Context before configuration
The rule it opens with is a prohibition: never add a pool or timeout parameter without first understanding the application. If the agent lacks the context, it asks — one question at a time, broad first (deployment type, workload shape, concurrency) before drilling into specifics. Every value it then proposes comes with the reasoning attached: maxPoolSize: 50 is justified as "your observed peak of 40 concurrent operations with 25% headroom", not asserted.
The arithmetic people miss
Two numbers dominate and both get forgotten. Each connection costs roughly 1MB of RAM on the server even while idle. And every MongoClient opens two monitoring connections per replica set member, on top of your pool — so ten app instances with minPoolSize: 5 against a three-member set is 210 server connections, not 50. The skill carries that formula, the instances x (maxPoolSize + 2) x members upper bound, and the net.maxIncomingConnections guidance for self-managed servers that keeps mongos from spiking the shards.
For sizing it uses (ops/sec) x (avg duration) + 10-20% buffer when you have the performance data, and tells you to start at 10-20 and measure when durations are variable — plus the observation that fixing the query is often cheaper than growing the pool.
Topology and troubleshooting
It distinguishes synchronous drivers (PyMongo, Java sync — pool tends to track thread count) from asynchronous ones (Node.js, Motor — smaller pools suffice), and covers how pools are created per server per client, why shard count does not directly drive pool size, and when secondary reads add a pool per member.
The troubleshooting half maps symptoms to causes: pool exhaustion, ECONNREFUSED and socket timeouts, connection churn, and high latency. Scenario configs cover serverless functions, long-running APIs, high-traffic services and batch jobs.
Applies to every officially supported driver — Node.js, Python, Java, Go, C#, Ruby, PHP. Apache-2.0, part of MongoDB's agent-skills repository.
SKILL.md
The instructions your agent loads, as published by MongoDB.
Related Skills
See all MongoDB Connection Optimizer alternativesSkill: Inngest Flow Control
by Inngest
Seven ways to throttle agent and background workloads — concurrency keys, throttling, rate limiting, debounce, singleton, priority and batching — with a decision guide that picks the right one.
Official AWS skill for Aurora PostgreSQL: creates clusters (express configuration by default), sizes Aurora serverless ACUs, weighs I/O-Optimized storage and Reserved Instances vs Savings Plans, and plans upgrades with tiered safety guardrails.
Skill: Prisma Postgres Setup
by Prisma
Prisma's official skill for getting an app a Prisma Postgres database: reuse an existing connection, use the Vercel Marketplace flow, spin up a no-account database with npx create-db, or provision a persistent one, then connect and verify it.