EAI-1703: Atlas CLI skill#36
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new MongoDB Atlas CLI skill to guide agents in safely installing/authenticating the atlas CLI and performing common Atlas operations (with emphasis on cluster management and avoiding interactive/long-running commands that break agent shells).
Changes:
- Introduces
skills/mongodb-atlas-cli/SKILL.mdwith end-to-end CLI setup + cluster-management playbooks and safety guardrails. - Adds
testing/mongodb-atlas-cli/evals/evals.jsonwith 5 eval prompts covering auth hand-off, M0→M10 upgrade semantics, migration scope, region change via--file, and pause auto-resume constraints.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| skills/mongodb-atlas-cli/SKILL.md | New skill documentation/playbooks for Atlas CLI usage, including non-interactive-safe patterns and cluster lifecycle guidance. |
| testing/mongodb-atlas-cli/evals/evals.json | Adds evaluation cases to validate the skill’s intended behaviors and guardrails. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| 1. Discover the user's orgs and projects. Both commands are read-only and stateless: | ||
|
|
||
| ```bash | ||
| atlas orgs list |
There was a problem hiding this comment.
This section uses atlas orgs list, but earlier the skill enumerates the top-level command as organizations. To avoid confusion for users copying commands, either use the canonical atlas organizations list form here or explicitly note that orgs is an alias.
| atlas orgs list | |
| atlas organizations list |
MongoDB Agent Skill Submission
Skill Information
Skill Name: MongoDB Atlas CLI
Skill Directory:
skills/mongodb-atlas-cliUse Case
Drive MongoDB Atlas from the terminal via the
atlasCLI — install and authenticate the CLI, then run commands against Atlas resources (clusters, projects, users, network access, migrations, etc.). Detailed playbooks for cluster management; high-level map for everything else.Value Proposition
The Atlas CLI has a large surface area with sharp edges: interactive auth that hangs non-interactive shells, long-running
--watchcommands that block agent turns for 7-10 min, tier-specific restrictions (FLEX can't pause, M0 → M10+ uses a different subcommand than M10+ → M30), silent Atlas policies (30-day auto-resume), and config-file-only changes (region/provider moves have no flag). Unskilled agents improvise — sometimes confidently wrong. This skill encodes the corrections.Special Considerations
Requires the
atlasCLI onPATH. Cloud operations require Atlas auth (interactive login or Service Account env vars); local deployments require Docker.Validation Prompts
Five eval cases in
testing/mongodb-atlas-cli/evals/evals.json, each exercising a distinct skill section.1. Auth hand-off
atlas auth loginitself (interactive, hangs a non-interactive shell). Hands off to the user with two options: interactive login they run themselves, or Service Account env vars (MONGODB_ATLAS_CLIENT_ID/CLIENT_SECRET) they add to their own shell profile.atlas auth loginand offers to run it for the user. Would hang the agent session.2. M0 upgrade to M10 (correct subcommand + warnings)
atlas clusters upgrade(NOTatlas clusters update— that command only works on M10+ and fails on M0/FLEX). Surfaces three warnings: downtime during tier change, billing starts on the paid tier, one-way (can't scale back to M0/FLEX).upgrade) but only surfaces 1 of 3 warnings (billing). Misses downtime entirely; one-way framing is weak.3. Migrate scope
atlas liveMigrations— that CLI surface only handles push migrations from Cloud-Manager-monitored sources, not arbitrary self-managed deployments. Asks whether the source is in Cloud Manager; if not, hands off to Pull Live Migration (Atlas UI),mongosync, ormongomirror. Flags M10+ destination requirement.atlas liveMigrationsexists, no mention ofmongosync/mongomirror, misses M10+ destination constraint.4. Region change requires
--fileatlas clusters updatehas no--regionflag; region/provider changes require--file cluster-config.json. Workflow: dump current spec withdescribe --output json, edit, apply viaupdate --file. Cross-region moves trigger an initial sync (not rolling) — elevated impact during cutover.--fileworkflow right, but gives wrong downtime advice — claims the migration is "rolling node-by-node" with "no downtime." Actual behavior per Atlas docs: initial sync, elevated latency and oplog pressure. A user planning no maintenance window based on this answer would be surprised.5. Pause 30-day cap
atlas clusters pause Cluster0. Surfaces the 30-day auto-resume cap — user said "about a month," so Atlas will likely auto-resume and billing will restart before they return. Mentions 60-min minimum uptime before re-pausing, and that storage is still billed while paused.Author Self-Validation
skill-validator(passed, medium contamination score is false positive — multi-cloud tool references).SME Review
SME: @
Additional Context
atlas <command> --helpand the relevant docs rather than being inlined.atlas <cmd> --helpoutput at authoring time.--help/ docs.