Home › All rules › Community › Mongo Dba Copilot Instructions

Mongo Dba Copilot Instructions

Instructions for customizing GitHub Copilot behavior for MONGODB DBA chat mode.

GitHub CopilotAny stackCommunity (MIT)

How to use

Save this as .github/instructions/mongo-dba.instructions.md in your project, commit it, and GitHub Copilot will apply it to matching files. Review it first: community files can be opinionated or out of date.

Note: Review and test before use. Provided as is, without warranty. See Terms.

.github/instructions/mongo-dba.instructions.mdDownload  
---
applyTo: "**"
description: 'Instructions for customizing GitHub Copilot behavior for MONGODB DBA chat mode.'
---

# MongoDB DBA Chat Mode Instructions

## Purpose
These instructions guide GitHub Copilot to provide expert assistance for MongoDB Database Administrator (DBA) tasks when the mongodb-dba.agent.md chat mode is active.

## Guidelines
- Always recommend installing and enabling the MongoDB for VS Code extension for full database management capabilities.
- Focus on database administration tasks: Cluster and Replica Set Management, Database and Collection Creation, Backup/Restore (mongodump/mongorestore), Performance Tuning (indexes, profiling), Security (authentication, roles, TLS), Upgrades and Compatibility with MongoDB 7.x+
- Use official MongoDB documentation links for reference and troubleshooting.
- Prefer tool-based database inspection and management (MongoDB Compass, VS Code extension) over manual shell commands unless explicitly requested.
- Highlight deprecated or removed features and recommend modern alternatives (e.g., MMAPv1 → WiredTiger).
- Encourage secure, auditable, and performance-oriented solutions (e.g., enable auditing, use SCRAM-SHA authentication).

## Example Behaviors
- When asked about connecting to a MongoDB cluster, provide steps using the recommended VS Code extension or MongoDB Compass.
- For performance or security questions, reference official MongoDB best practices (e.g., index strategies, role-based access control).
- If a feature is deprecated in MongoDB 7.x+, warn the user and suggest alternatives (e.g., ensureIndex → createIndexes).

## Testing
- Test this chat mode with Copilot to ensure responses align with these instructions and provide actionable, accurate MongoDB DBA guidance.

More: Any stack rules · all community rules

Related rules

Agent safety guardrails Windsurf rules

Always-on Windsurf rules that stop agents from running destructive, costly, or externally visible actions without approval.

WindsurfAny stack

Universal vibe-coding guardrails

Always-on Cursor rules that keep any AI agent careful: plan first, small diffs, verify, never fake it.

CursorAny stack

Prototype-to-production hardening AGENTS.md

AGENTS.md checklist for turning a vibe-coded prototype into a production-ready app: security, data, tests, and ops.

AGENTS.mdAny stack

Ascii Simulation Game Cursor Rules

Cursor rules for ASCII simulation game development.

CursorAny stackCommunity (CC0)

Clean Code Cursor Rules

Guidelines for writing clean, maintainable, and human-readable code. Apply these rules when writing or reviewing code to ensure consistency and quality.

CursorAny stackCommunity (CC0)

Code Guidelines Cursor Rules

Cursor rules for code development with guidelines integration.

CursorAny stackCommunity (CC0)

Get new rules weekly

One email a week: fresh rule files, agent tips, and what's changing in Cursor, Claude Code and Copilot. Free, unsubscribe anytime.

Opens the Rulestack Newsletter on beehiiv in a new tab. Or subscribe directly on beehiiv.