Skip to content
Skillv1.0.0

mongodb-atlas-checker

Verify MongoDB Atlas setup and configuration for backend applications. Checks connection strings, environment variables, connection pooling, and ensures proper setup for Next.js and NestJS application

by shipshitdev(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from shipshitdev/skills (skills/mongodb-atlas-checker/SKILL.md). Install upstream with npx skills add shipshitdev/skills --skill mongodb-atlas-checker. Copyright stays with the author.

MongoDB Atlas Checker

When to Use

  • Verifying MongoDB Atlas backend setup
  • Checking connection string configuration
  • Validating environment variable setup
  • Troubleshooting database connection issues
  • Auditing database setup before deployment

Quick Checklist

1. Environment Variables

  • MONGODB_URI exists (not hardcoded)
  • Uses mongodb+srv:// protocol (required for Atlas)
  • Includes database name
  • Includes retryWrites=true&w=majority
  • No credentials in .env.example

2. Connection String Format

mongodb+srv://USERNAME:PASSWORD@CLUSTER-HOST/DATABASE?retryWrites=true&w=majority

3. Driver Installation

  • mongoose or mongodb package installed
  • In dependencies (not devDependencies)

4. Connection Setup

  • Singleton pattern (Next.js)
  • MongooseModule.forRoot() (NestJS)
  • Error handling implemented

5. Atlas Configuration

  • IP whitelist configured
  • Database user exists with permissions
  • SSL/TLS enabled (default with mongodb+srv://)

Common Issues

Issue Solution
Missing MONGODB_URI Add to .env.local or .env
Wrong protocol Use mongodb+srv:// not mongodb://
Multiple connections (Next.js) Use singleton pattern
Connection timeout Check IP whitelist in Atlas
Auth failed Verify credentials, URL-encode special chars

Recommended Connection Options

{
  retryWrites: true,
  w: 'majority',
  maxPoolSize: 10,
  serverSelectionTimeoutMS: 5000,
  bufferCommands: false,
}

For detailed setup patterns, verification scripts, and complete examples: references/full-guide.md

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/shipshitdev-skills-mongodb-atlas-checker/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

shipshitdev-skills-mongodb-atlas-checker.ocm.jsonjson
{
  "ocm": "1",
  "id": "shipshitdev-skills-mongodb-atlas-checker",
  "kind": "skill",
  "name": "mongodb-atlas-checker",
  "description": "Verify MongoDB Atlas setup and configuration for backend applications. Checks connection strings, environment variables, connection pooling, and ensures proper setup for Next.js and NestJS applications. Use when verifying MongoDB Atlas setup, checking connection strings or environment variables, or troubleshooting database connection issues before deployment.",
  "publisher": "shipshitdev",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "mongodb",
      "atlas",
      "database",
      "backend",
      "nestjs",
      "nextjs",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Verify MongoDB Atlas setup and configuration for backend applications. Checks connection strings, environment variables, connection pooling, and ensures proper setup for Next.js and NestJS applications. Use when verifying MongoDB Atlas setup, checking connection strings or environment variables, or troubleshooting database connection issues before deployment."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/shipshitdev/skills",
      "path": "skills/mongodb-atlas-checker/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/shipshitdev/skills/blob/HEAD/skills/mongodb-atlas-checker/SKILL.md",
      "key": "shipshitdev/skills/skills/mongodb-atlas-checker/SKILL.md"
    }
  },
  "instructions": "# MongoDB Atlas Checker\n\n## When to Use\n\n- Verifying MongoDB Atlas backend setup\n- Checking connection string configuration\n- Validating environment variable setup\n- Troubleshooting database connection issues\n- Auditing database setup before deployment\n\n## Quick Checklist\n\n### 1. Environment Variables\n\n- [ ] `MONGODB_URI` exists (not hardcoded)\n- [ ] Uses `mongodb+srv://` protocol (required for Atlas)\n- [ ] Includes database name\n- [ ] Includes `retryWrites=true&w=majority`\n- [ ] No credentials in `.env.example`\n\n### 2. Connection String Format\n\n```\nmongodb+srv://USERNAME:PASSWORD@CLUSTER-HOST",
  "cost": {
    "context_tokens": 423
  }
}

Fetch it by URL: GET /api/v1/registry/shipshitdev-skills-mongodb-atlas-checker/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.