CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

mongodb-connection

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.

Quality

80%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./skills/.agents/skills/mongodb-connection/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

67%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body delivers genuinely non-obvious, driver-specific guidance: per-workload configuration tables with reasoning, capacity formulas that account for monitoring connections, topology-aware pool sizing, and symptom-driven troubleshooting with explicit scope boundaries. Its main weakness is redundancy — several facts and directives appear two or three times — and the absence of a single worked code example, alongside an implicit rather than explicit end-to-end workflow.

Suggestions

Deduplicate repeated facts and directives: state the ~1 MB/connection cost, the monitoring-connection formula, the MongoDB 8.0 defaultMaxTimeMS note, the serverless init-outside-handler pattern, and the one-question-at-a-time rule once each, cutting roughly 20-30 lines.

Add one complete, executable client-configuration snippet (e.g., a Node.js or Python MongoClient with inline rationale comments) so the 'When creating code' guidance has a concrete model to follow.

State the end-to-end workflow as an explicit ordered sequence (gather context one question at a time -> design values with justification -> apply -> monitor and iterate) at the top of the body, letting the section headers elaborate each phase.

DimensionReasoningScore

Conciseness

The parameter tables and formulas are information-dense, but the body repeats facts multiple times: ~1 MB per connection (lines 20, 53, 177), the monitoring-connection formula (lines 28 and 63), MongoDB 8.0 defaultMaxTimeMS (lines 104 and 181), serverless init-outside-handler (lines 71, 79, 182), and 'ask only one question at a time' (lines 32 and 140); line 19 also explains why connection pooling exists, which Claude already knows. This is 'could be tightened' territory (3) rather than heavily padded (2), since most content is driver-specific knowledge Claude does not have.

3 / 5

Actionability

Concrete, specific guidance throughout: per-scenario parameter tables with values and reasoning, a pool-size formula '(Ops/sec) × (Avg duration) + 10-20% buffer', named symptoms ('MongoWaitQueueTimeoutError', 'WaitQueueTimeoutError'), decision rules ('Increase maxPoolSize when: Wait queue has operations waiting (size > 0) + server shows low utilization'), and metrics to watch ('connections.totalCreated'). Not 5 because no complete executable configuration snippet is shown — the skill instructs how to comment code it might produce but never models one.

4 / 5

Workflow Clarity

Phases are clearly delineated with headers and explicit gating: gather context ('Before suggesting any configuration changes, ensure you have the sufficient context', 'ALWAYS verify'), design with justified values, then monitor and iterate ('You must guide users to monitor'), plus a troubleshooting flow that classifies client vs. infrastructure issues by symptom. Monitoring serves as the validation feedback loop for these database operations. It stays at 4 rather than 5 because the end-to-end sequence is implicit across sections rather than stated as one ordered workflow.

4 / 5

Progressive Disclosure

A single one-level-deep reference (references/monitoring-guide.md) that exists on disk, is substantive, and is clearly signaled three times with its purpose ('See references/monitoring-guide.md for how to set up monitoring'). Good structure overall; the minor gap keeping it at 4 is that the ~190-line body inlines all scenario and topology detail, some of which could be split into references, and the repeated reference mentions could be consolidated.

4 / 5

Total

15

/

20

Passed

Description

83%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description that explicitly states what the skill does and when to use it, with concrete trigger phrases and real error identifiers users would naturally mention. Minor deductions for a vague 'patterns' term, slight redundancy between the opening and later clauses, and a few missing natural synonyms such as driver names or 'connection string'.

DimensionReasoningScore

Specificity

Lists several concrete actions — 'Optimize MongoDB client connection configuration (pools, timeouts, patterns)', 'configuring connection pools', 'troubleshooting connection errors (ECONNREFUSED, timeouts, pool exhaustion)' — with named error codes. It falls short of 5 because 'patterns' is vague and the 'optimizing performance issues related to connections' clause restates the opening rather than adding a distinct action.

4 / 5

Completeness

Clearly answers both: what ('Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language') and when ('Use this skill when working/updating/reviewing on functions that instantiate or configure a MongoDB client...') with multiple concrete trigger scenarios (serverless, API endpoints, high-traffic, debugging failures). Matches the 5 anchor; the 4 anchor's 'when could be more explicit' does not apply here.

5 / 5

Trigger Term Quality

Good natural-term coverage: 'instantiate or configure a MongoDB client (eg, when calling `connect()`)', 'ECONNREFUSED', 'pool exhaustion', 'serverless functions', 'API endpoints', 'high-traffic' — including error strings users would paste verbatim. Not 5 because common variations like specific driver names (mongoose, PyMongo) or 'connection string' are absent, keeping it at 'a few natural terms missing'.

4 / 5

Distinctiveness Conflict Risk

'MongoDB client connection configuration' is a clear, well-scoped niche with distinct triggers, unlikely to fire for unrelated skills. It stays at 4 rather than 5 because 'optimizing performance issues related to connections' leaves minor overlap risk with a hypothetical general MongoDB performance skill.

4 / 5

Total

17

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

boranfurkan/reproducer-hackathon

Path

skills/.agents/skills/mongodb-connection/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.