agentleFS
MongoDBKnown publishermongodb/mongo-python-driver/.github/copilot-instructions.md

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

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 2 mentionsApr 2026: 3 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the mongodb/mongo-python-driver repository that our weekly crawl found: only 13 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about mongodb/mongo-python-driver

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

8 more on GitHub

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
  1. Distinctive:

    When reviewing code, focus on:

    line 1
  2. Distinctive:

    Check for hardcoded secrets, API keys, or credentials.

    line 4
  3. Distinctive:

    Check for instances of potential method call injection, dynamic code execution, symbol injection or other code injection vulnerabilities.

    line 5
  4. Distinctive:

    Check for memory leaks and resource cleanup.

    line 9
  5. Distinctive:

    Use clear, descriptive naming conventions.

    line 13
  6. Distinctive:

    Avoid encapsulation violations and ensure proper separation of concerns.

    line 14
  7. Distinctive:

    All public classes, modules, and methods should have clear documentation in Sphinx format.

    line 15
  8. Very specific:

    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 …

    line 18
  9. Distinctive:

    All asynchronous functions must not call any blocking I/O.

    line 19
  10. Distinctive:

    Ask clarifying questions when code intent is unclear.

    line 25
  11. Distinctive:

    Always prioritize security vulnerabilities and performance issues that could impact users.

    line 27
  12. Distinctive:

    Always suggest changes to improve readability and testability.

    line 29

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

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/synchronous or files in test/ that also have a file of the same name in test/asynchronous unless the reviewed changes include a _IS_SYNC statement. PyMongo generates these files from pymongo/asynchronous and test/asynchronous using tools/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)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.