Rich Skill

A skill with code blocks and imperative instructions for testing content and contamination analysis.

pantheon-org 9837dd1 1.1 KB Updated

File contents

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.

pantheon-org/tekhne/tree/main/crates/skill-validator-rs/tests/golden-corpus/fixtures/testdata/rich-skill commit 9837dd1da4

Frequently asked questions

npx skillmds@latest add pantheon-org/rich-skill