name: rich-skill description: A skill with code blocks and imperative instructions for testing content and contamination analysis.
Rich Skill
You must always follow these instructions. Never skip validation steps.
Setup
Use the CLI to configure your environment. Install the required dependencies.
npm install mongodb
pip install pymongo
const { MongoClient } = require('mongodb');
const client = new MongoClient('mongodb://localhost:27017');
from pymongo import MongoClient
client = MongoClient('mongodb://localhost:27017')
Usage
Create a new database connection. Ensure the connection string is valid. Run the tests before deploying. Check that all queries return expected results.
- Step 1: Configure the connection
- Step 2: Run migrations
- Step 3: Validate the schema
- Step 4: Deploy
Configuration
Set the following environment variables. You may consider using a .env file.
It could simplify local development. This is optional but suggested.
database:
host: localhost
port: 27017
Build the project with Node.js or Django depending on your stack.