deploy-mongodb-agents
Installation
SKILL.md
Deploy an Atlas agent to Agent Engine
Deploys one agent from agents/<name> (atlas-explorer or atlas-query-insights) to your own Agent Engine project. Both agents follow the same steps. Each agent's README is the source of truth for details; if it disagrees with this skill, follow the README.
Run agentengine commands from the agent directory, or from the repo root with --workspace <name>.
Ground rules
- Keep secrets out of your context. Never run a command that prints a secret, and never read
.env,.env.*, or any file the user saved a secret to. Steps marked User runs are run by the user in their own terminal, not with the!prefix and not by you, because anything they print lands in the conversation. Everyagentengine secret setis a user-run step. - Confirm before granting access. Creating an MCP configuration and enabling writes both grant access. Before each, show the user exactly what will be created or changed and wait for an explicit yes. Don't batch these into one approval.
- Never run commands that don't exit or need a person. Don't use
-for any follow flag (deploy logs -f,deploy get -f,logs -f); they never exit and will hang you.agentengine auth login,atlas auth login, andagentengine initare interactive or state-changing, so stop and ask the user to run them. - Don't pass
--yesor--autotoagentengine deploy.--yesaccepts billed Flex cluster defaults and IP access-list changes.--autobuilds and then tails the deployment. Plainagentengine deployrun non-interactively never prompts, never runsinit, and never starts a build; it prints any missing setup instead, which you then hand to the user. - Ask before changing the environment again. The user asking for a deploy covers one
agentengine deploy. Ask before any redeploy, and show the user anyagent.yamlchange before saving it. - Narrowest access by default. Read-only is the default because the roles on the MCP configuration are the hard limit on what the agent can do in Atlas. A leaked credential, a prompt injection, or a model mistake can then read data but can't change it. Only move to a write role when the user states a concrete need (for example "it needs to create indexes on
ordersin staging"). "Might be useful" isn't a need.
Before you start
Ask the user, rather than assuming: