Create a new tested code example in the Grove platform. Use when the user asks to "create a code example", "add a new example", "scaffold a Grove example", "new tested example for docs", "create an example for [language]", or wants to add a tested, snippeted code example for MongoDB documentation. Covers Python (PyMongo), Go, Java (Sync Driver), JavaScript (Node.js Driver), C#, and Mongosh (MongoDB Shell).
95
92%
Does it follow best practices?
Impact
100%
2.70xAverage score across 3 eval scenarios
Passed
No known issues
Python Grove example conventions
snake_case example filename
100%
100%
try/finally client close
0%
100%
CONNECTION_STRING parameter
0%
100%
Return marked :remove:
0%
100%
Snippet name kebab-case
0%
100%
tests_package directory
0%
100%
__init__.py in example dirs
100%
100%
__init__.py in test dirs
0%
100%
unittest.TestCase subclass
0%
100%
setUp drops database
0%
100%
Mongosh Grove example conventions
No imports in example
100%
100%
No connection handling
100%
100%
No return statement
100%
100%
kebab-case.js filename
80%
100%
outputFromExampleFiles() API
0%
100%
.withDbName() called
0%
100%
CommonJS require syntax
0%
100%
No dropDatabase on sample db
100%
100%
Paths relative to examples/
0%
100%
Bluehawk // comment style
0%
100%
Go driver Grove example conventions
snake_case.go filename
100%
100%
Package matches directory
100%
100%
PascalCase exported function
100%
100%
utils.GetConnectionString()
0%
100%
defer for disconnect
0%
100%
Returns []bson.D or slice
50%
100%
// Bluehawk comment style
100%
100%
Table-driven test structure
0%
100%
setupTestDB pattern
0%
100%
defer cleanup() in test
0%
100%
5985af5
Table of Contents
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.