CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

mongodb-natural-language-querying

Generate read-only MongoDB queries (find) or aggregation pipelines using natural language, with collection schema context and sample documents. Use this skill whenever the user asks to write, create, or generate MongoDB queries, wants to filter/query/aggregate data in MongoDB, asks "how do I query...", needs help with query syntax, or discusses finding/filtering/grouping MongoDB documents. Also use for translating SQL-like requests to MongoDB syntax. Does NOT handle Atlas Search ($search operator), vector/semantic search ($vectorSearch operator), fuzzy matching, autocomplete indexes, or relevance scoring - use search-and-ai for those. Does NOT analyze or optimize existing queries - use mongodb-query-optimizer for that. Does NOT handle aggregation pipelines that involve write operations. Requires MongoDB MCP server.

Quality

92%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Content

82%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 content is a strong, highly actionable single-file skill: concrete MCP tool calls, explicit output formats, and MongoDB-specific query-quality rules that go beyond general knowledge. Its main weaknesses are moderate redundancy (field validation and index checking repeated across sections) and the absence of an execute-and-verify feedback loop for generated queries despite having read-capable MCP tools available.

Suggestions

Consolidate the field-validation guidance (currently in 'Analyze Context and Validate Fields', Best Practices #4, and Error Prevention #1) and the index-coverage guidance (currently in four places) into single authoritative sections to remove repetition and save tokens.

Add an explicit verification step to the workflow: after generating a query, execute it via mcp__mongodb__find (or the aggregation tool) to confirm it runs and returns plausible results, fixing field names or operators if not — this closes the feedback loop in a database context.

Consider moving the operator-selection and array-operations reference lists (Best Practices #5–6) into a references/ file, which would shorten SKILL.md and reduce overlap between the Schema Analysis / Sample Document Usage sections and steps 1–2.

DimensionReasoningScore

Conciseness

The body is dense and imperative with little concept over-explanation, but contains noticeable repetition: field-name validation is stated three times ("always validate field names against the schema you fetched", Best Practices "Validate field names against the schema before using them", Error Prevention "Validate all field references against the schema") and index-coverage checking is repeated across four sections, and the array-field bullet restates the previous bullet's rationale. This fits anchor 4 (efficient with minor over-explanation that could be trimmed) rather than anchor 5, where every token earns its place.

4 / 5

Actionability

Guidance is fully executable: exact MCP tool invocations with parameters (e.g., "mcp__mongodb__collection-schema({ database, collection, sampleSize: 50 })"), concrete response-format templates for both find and aggregation outputs, specific operator-selection rules with code examples ("arrayField.0": {$exists: true}), and a worked end-to-end example with its generated query. This matches anchor 5's copy-paste-ready coverage of common cases; anchor 4 would require gaps that are not present.

5 / 5

Workflow Clarity

The process is clearly sequenced (gather context in a specified order → validate fields against schema → choose find vs aggregation → format response) with checkpoints before and after generation, plus an Error Handling section and a contextualizing example workflow. It falls short of anchor 5 because there is no explicit execute-and-verify feedback loop (e.g., running the generated query via mcp__mongodb__find and fixing it if it fails or returns unexpected results), which matters in a database context per the rubric's feedback-loop note; the destructive/batch cap of 3 does not apply since the skill is explicitly read-only.

4 / 5

Progressive Disclosure

The single SKILL.md is well-organized with clear headers, a numbered process, and no nested or dead references (no bundle files exist, and none are referenced), so navigation is easy. However, at ~185 lines with some content overlap (Schema Analysis and Sample Document Usage largely restate steps 1–2, and the operator reference lists could live in a reference file), it fits anchor 4 (good structure, minor organization gaps) rather than anchor 5, and the under-50-line simple-skill exception does not apply.

4 / 5

Total

17

/

20

Passed

Description

100%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.

The description is a strong example: it states concrete capabilities in third person, provides explicit and varied "Use when..." trigger phrases, and clearly fences its scope against sibling skills (Atlas/vector search, query optimization, write pipelines). Both the what and the when are unambiguous, and the "Requires MongoDB MCP server" dependency note is a useful explicit constraint.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions — "Generate read-only MongoDB queries (find) or aggregation pipelines", "with collection schema context and sample documents", and "translating SQL-like requests to MongoDB syntax" — giving comprehensive coverage of the skill's capabilities. It fits the anchor-5 example pattern ("Extract text and tables from PDF files, fill forms, merge documents") rather than anchor 4, which reserves room for coverage gaps that are not present here.

5 / 5

Completeness

Both questions are answered explicitly: the what ("Generate read-only MongoDB queries (find) or aggregation pipelines using natural language") and the when ("Use this skill whenever the user asks to write, create, or generate MongoDB queries...") with concrete trigger phrases. It mirrors the anchor-5 good example structure; anchor 4 would require the when-clause to be less explicit than it is.

5 / 5

Trigger Term Quality

Natural trigger phrases are covered comprehensively with synonyms: "write, create, or generate MongoDB queries", "filter/query/aggregate data", the verbatim user question form "how do I query...", "finding/filtering/grouping MongoDB documents", and "SQL-like requests". This matches anchor 5's requirement for comprehensive natural-term coverage including synonyms; anchor 4 ("a few natural terms missing") would apply only if common phrasings were absent.

5 / 5

Distinctiveness Conflict Risk

The skill has a clear read-only query-generation niche with explicit conflict-avoidance routing: "Does NOT handle Atlas Search ($search operator)... use search-and-ai for those", "Does NOT analyze or optimize existing queries - use mongodb-query-optimizer for that", and "Does NOT handle aggregation pipelines that involve write operations". This exceeds anchor 4's "minor overlap risk" by actively disambiguating against named sibling skills.

5 / 5

Total

20

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

allowed_tools_field

'allowed-tools' contains unusual tool name(s)

Warning

Total

15

/

16

Passed

Repository

boranfurkan/reproducer-hackathon

Path

skills/.agents/skills/mongodb-natural-language-querying/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.