example-skill
Number of times to repeat the message
Example Skill
This is an example skill that demonstrates the capabilities of the Skill Aggregation Framework.
Overview
This skill includes example scripts in three languages:
- JavaScript (executed in VM2 sandbox)
- Python (executed as subprocess)
- Shell (executed as subprocess with command validation)
Usage
Trigger this skill to test the execution engine. You can specify parameters to customize the output.
Workflow
- Call the desired script with parameters
- The script will process the input
- Output will be streamed back to the caller
- Any generated files will be available as artifacts
Scripts
JavaScript (scripts/hello.js)
A simple JavaScript script that demonstrates sandbox execution and artifact creation.
Python (scripts/analyze.py)
A Python script that performs text analysis and generates a JSON report.
Shell (scripts/process.sh)
A shell script that demonstrates basic text processing.
Examples
JavaScript execution:
{
"skill_id": "example-skill",
"script_path": "scripts/hello.js",
"script_type": "JAVASCRIPT",
"parameters": {
"message": "Hello World",
"count": "5"
}
}
Python execution:
{
"skill_id": "example-skill",
"script_path": "scripts/analyze.py",
"script_type": "PYTHON",
"parameters": {
"text": "This is sample text for analysis"
}
}