Skip to content
Back to skills

Script Example

ASecurity

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

  • 43 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 30, 2026
developmentpythongorubyphpshellbashnode

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ComeOnOliver/skillshub --skill script-example --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Script Example?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Script Example
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/comeonoliver-script-example/badge)](https://www.skillsdirectory.com/skills/comeonoliver-script-example)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: script-example
description: Example skill demonstrating script execution capabilities. Use when you need to demonstrate how to execute shell, Python, or PHP scripts from within a skill.
license: MIT
metadata:
  author: Guikingone
  version: "1.0"
---

# 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:

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

To execute a script with arguments:

```php
$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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…