开发与测试
rich-skill
A skill with code blocks and imperative instructions for testing content and contamination analysis.
agent-ecosystem · 已有 AI 审核记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add agent-ecosystem/skill-validator --skill rich-skill技能说明
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.