Skip to content
Back to skills

Exec Script

ASecurity

Run a bash/shell script — for system commands the existing tools don't cover. Trusted by default; treat with the same care as any code-execution action.

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 6, 2026
toolsrustshellbashreact

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 6, 2026

npx -y skills add bdambrosio/Cognitive_workbench --skill exec-script --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Exec Script?

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

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

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: exec-script
description: Run a bash/shell script — for system commands the existing tools don't cover. Trusted by default; treat with the same care as any code-execution action.
args:
  script: required string — the bash script text to execute
---

# exec-script

Run an arbitrary bash script via `bash -c` in the scenario's `fs/` directory. Returns stdout + stderr as a single text observation.

## Behavior

- Resolves the script text from `script` and runs it in a subprocess with cwd = scenario filesystem root.
- Captures stdout and stderr together. Non-zero exit codes are surfaced in the observation but do not by themselves abort the ReAct loop.
- **Trusted by default** — no interactive permission prompt. Treat with the same caution you would treat any code-execution tool.

## Examples

```json
{"thought": "list the working directory", "tool": "exec-script", "script": "ls -la"}
```

```json
{"thought": "count lines in the changelog", "tool": "exec-script", "script": "wc -l CHANGELOG.md"}
```

## Notes

- Use focused single-purpose scripts; avoid pipelines that mix actions you don't both need to see results from.
- Prefer `fetch-text` / `obsidian` / `check-email` for tasks they cover — `exec-script` is the catch-all for what they don't.

Files in this skill

  • Skill.md1.2 KB
  • tool.py6.6 KB

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…