agentsclimarketplace

Script example

Skill ComeOnOliver/skillshub/skills/Guikingone/php-agent-skills/script-example

Example skill demonstrating script execution capabilities. Use when you need to demonstrate how to execute shell, Python, or PHP scripts from within a skill.From its SKILL.md

Install
npx -y skills add ComeOnOliver/skillshub --skill script-example

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

1.1 KB, 207 tokens by cl100k_base, as published. Nobody here has run it

Script Example Skill

This skill demonstrates how to execute scripts from within a skill using the executeScript method.

Available Scripts

  • hello.sh - Simple bash script that prints a greeting
  • analyze.py - Python script that performs basic data analysis
  • process.php - PHP script that processes command-line arguments

Usage

To execute a script from this skill:

$tool = new SkillTool($loader, 'script-example');
$result = $tool->executeScript('hello.sh');

To execute a script with arguments:

$result = $tool->executeScript('process.php', ['arg1', 'arg2']);

Script Execution Features

  • Automatic interpreter detection based on file extension
  • Support for bash (.sh), Python (.py), PHP (.php), Node.js (.js), and Ruby (.rb)
  • Capture of both stdout and stderr
  • Configurable timeout (default: 60 seconds)
  • Proper error handling and reporting

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.