$npx -y skills add agent-ecosystem/skill-validator --skill rich-skillA skill with code blocks and imperative instructions for testing content and contamination analysis.
| 1 | # Rich Skill |
| 2 | |
| 3 | You must always follow these instructions. Never skip validation steps. |
| 4 | |
| 5 | ## Setup |
| 6 | |
| 7 | Use the CLI to configure your environment. Install the required dependencies. |
| 8 | |
| 9 | ```bash |
| 10 | npm install mongodb |
| 11 | pip install pymongo |
| 12 | ``` |
| 13 | |
| 14 | ```javascript |
| 15 | const { MongoClient } = require('mongodb'); |
| 16 | const client = new MongoClient('mongodb://localhost:27017'); |
| 17 | ``` |
| 18 | |
| 19 | ```python |
| 20 | from pymongo import MongoClient |
| 21 | client = MongoClient('mongodb://localhost:27017') |
| 22 | ``` |
| 23 | |
| 24 | ## Usage |
| 25 | |
| 26 | Create a new database connection. Ensure the connection string is valid. |
| 27 | Run the tests before deploying. Check that all queries return expected results. |
| 28 | |
| 29 | - Step 1: Configure the connection |
| 30 | - Step 2: Run migrations |
| 31 | - Step 3: Validate the schema |
| 32 | - Step 4: Deploy |
| 33 | |
| 34 | ## Configuration |
| 35 | |
| 36 | Set the following environment variables. You may consider using a `.env` file. |
| 37 | It could simplify local development. This is optional but suggested. |
| 38 | |
| 39 | ```yaml |
| 40 | database: |
| 41 | host: localhost |
| 42 | port: 27017 |
| 43 | ``` |
| 44 | |
| 45 | Build the project with Node.js or Django depending on your stack. |