mongo-python-driver
Copilot instructions4.4k starsChanged 8 months agoApache-2.0View on GitHub
When reviewing code, focus on: Always prioritize security vulnerabilities and performance issues that could impact users. Always suggest changes to improve readability and testability. For example, this suggestion seeks to make the code more readable, reusable, and testable:
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about mongodb/mongo-python-driver
- ansible/ansible“bugfix/postgresql scram passwords”GitHub · Jan 21, 2019 · 3 reactions
- python/typeshed“Creating PyMongo Stubs”GitHub · Nov 30, 2017 · 3 reactions
- SkyyRoseCo/DevSkyy“deps(python)(deps-dev): bump the dev-dependencies group with 6 updates”GitHub · Sep 14, 2026 · 2 reactions
- klassiik/monconbuild“chore(deps)(deps): bump pymongo from 4.10.1 to 4.17.0 in /backend”GitHub · Jul 27, 2026 · 2 reactions
- Army161/MoltForge“Bump pymongo from 4.5.0 to 4.6.3 in /backend in the pip group across 1 directory”GitHub · May 12, 2026 · 2 reactions
The biggest 5 of 13 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 13
Talked about on GitHub (13 times).
On GitHub · 13
- Jan 21, 2019bugfix/postgresql scram passwords — ansible/ansible3 reactions · 55 comments
- Nov 30, 2017Creating PyMongo Stubs — python/typeshed3 reactions · 8 comments
- Sep 14, 2026deps(python)(deps-dev): bump the dev-dependencies group with 6 updates — SkyyRoseCo/DevSkyy2 reactions · 3 comments
- Jul 27, 2026chore(deps)(deps): bump pymongo from 4.10.1 to 4.17.0 in /backend — klassiik/monconbuild2 reactions · 5 comments
- May 12, 2026Bump pymongo from 4.5.0 to 4.6.3 in /backend in the pip group across 1 directory — Army161/MoltForge2 reactions · 1 comment
8 more on GitHub
- Apr 25, 2026chore(deps): bump the minor-and-patch group across 1 directory with 39 updates — CodeWizarz/spec-flow2 reactions · 2 comments
- Apr 11, 2026chore(deps): bump the minor-and-patch group across 1 directory with 40 updates — CodeWizarz/spec-flow2 reactions · 4 comments
- Apr 4, 2026chore(deps): bump the minor-and-patch group across 1 directory with 39 updates — CodeWizarz/spec-flow2 reactions · 4 comments
- Mar 28, 2026chore(deps): bump the minor-and-patch group across 1 directory with 38 updates — CodeWizarz/spec-flow2 reactions · 4 comments
- Mar 21, 2026chore(deps): bump the minor-and-patch group in /apps/api with 37 updates — CodeWizarz/spec-flow2 reactions · 4 comments
- Jan 27, 2026Bump the pip group across 1 directory with 5 updates — hoanganh-hue/hehe2 reactions · 1 comment
- Aug 7, 2025chore(deps-dev): bump pymongo from 4.7.3 to 4.14.0 — langfuse/langfuse-python2 reactions · 1 comment
- Jul 14, 2023Maintain one to one match with original Mongo code — py-bson/bson2 reactions · 7 comments
The file
We split this copilot-instructions.md into the rules it gives an agent
12 rules. About 0 are common, 11 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 1
When reviewing code, focus on:
- Distinctive: line 4
Check for hardcoded secrets, API keys, or credentials.
- Distinctive: line 5
Check for instances of potential method call injection, dynamic code execution, symbol injection or other code injection vulnerabilities.
- Distinctive: line 9
Check for memory leaks and resource cleanup.
- Distinctive: line 13
Use clear, descriptive naming conventions.
- Distinctive: line 14
Avoid encapsulation violations and ensure proper separation of concerns.
- Distinctive: line 15
All public classes, modules, and methods should have clear documentation in Sphinx format.
- Very specific: line 18
Do not review files within pymongo/synchronous or files in test/ that also have a file of the same name in test/asynchronous unless the …
- Distinctive: line 19
All asynchronous functions must not call any blocking I/O.
- Distinctive: line 25
Ask clarifying questions when code intent is unclear.
- Distinctive: line 27
Always prioritize security vulnerabilities and performance issues that could impact users.
- Distinctive: line 29
Always suggest changes to improve readability and testability.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When reviewing code, focus on:
Security Critical Issues
- Check for hardcoded secrets, API keys, or credentials.
- Check for instances of potential method call injection, dynamic code execution, symbol injection or other code injection vulnerabilities.
Performance Red Flags
- Spot inefficient loops and algorithmic issues.
- Check for memory leaks and resource cleanup.
Code Quality Essentials
- Methods should be focused and appropriately sized. If a method is doing too much, suggest refactorings to split it up.
- Use clear, descriptive naming conventions.
- Avoid encapsulation violations and ensure proper separation of concerns.
- All public classes, modules, and methods should have clear documentation in Sphinx format.
PyMongo-specific Concerns
- Do not review files within
pymongo/synchronousor files intest/that also have a file of the same name intest/asynchronousunless the reviewed changes include a_IS_SYNCstatement. PyMongo generates these files frompymongo/asynchronousandtest/asynchronoususingtools/synchro.py. - All asynchronous functions must not call any blocking I/O.
Review Style
- Be specific and actionable in feedback.
- Explain the "why" behind recommendations.
- Acknowledge good patterns when you see them.
- Ask clarifying questions when code intent is unclear.
Always prioritize security vulnerabilities and performance issues that could impact users.
Always suggest changes to improve readability and testability. For example, this suggestion seeks to make the code more readable, reusable, and testable:
# Instead of:
if user.email and "@" in user.email and len(user.email) > 5:
submit_button.enabled = True
else:
submit_button.enabled = False
# Consider:
def valid_email(email):
return email and "@" in email and len(email) > 5
submit_button.enabled = valid_email(user.email)Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

