Skill Example Runner

Description

XSpoonAi Updated 17 repo stars

File contents

Description

Run sample input for each skill and collect outputs. Tests all skills with demo data and saves results for documentation.

Inputs

{
  "skills_path": "Path to skills directory",
  "save_results": true
}

Outputs

{
  "ok": true,
  "data": {
    "executed": 50,
    "successful": 48,
    "failed": 2
  }
}

Usage

Demo Mode

python scripts/main.py --demo

Run Examples

echo '{"skills_path":"./","save_results":true}' | python3 scripts/main.py

Examples

Example 1: Test All Skills

$ echo '{"skills_path":".","save_results":true}' | python3 scripts/main.py
{
  "ok": true,
  "data": {
    "executed": 50,
    "successful": 48,
    "failed": 2,
    "results_file": "skill_outputs.json"
  }
}

Error Handling

When an error occurs, the skill returns:

{
  "ok": false,
  "error": "Error description",
  "details": {
    "skills_path": "Directory not found"
  }
}

XSpoonAi/spoon-awesome-skill commit 2cd3cd8ca1

Frequently asked questions

npx get-skill add xspoonai/skill-example-runner