← Browse

@fastclaw-ai/code-runner

B

Execute code in multiple programming languages. Use when the user asks to run, test, or debug code in Python, JavaScript, shell, or other languages.

skillclaude

Install

agr install @fastclaw-ai/code-runner --target claude

Writes 1 file into .claude/skills/, pinned to git-dd731e9c.

  • .claude/skills/code-runner/SKILL.md

Document


name: code-runner description: Execute code in multiple programming languages. Use when the user asks to run, test, or debug code in Python, JavaScript, shell, or other languages. metadata: fastclaw: always: true

Code Runner Skill

Execute code using the exec tool in the sandbox environment.

Available Languages

Python 3

python3 -c "print('hello')"
# Or write to file and run:
python3 script.py

Install packages with: pip install package_name

Shell/Bash

echo "hello" && ls -la

Node.js (install first if needed)

# Install node if not available
apt-get update && apt-get install -y nodejs npm 2>/dev/null || apk add nodejs npm 2>/dev/null
node -e "console.log('hello')"

Guidelines

  • Always execute code immediately — don't just show it
  • For multi-line scripts, use write_file to save then exec to run
  • Install missing packages automatically without asking
  • Show the complete output to the user
  • If code fails, analyze the error and fix it automatically
  • For Python one-liners, use python3 -c "..."
  • For complex scripts, write to a .py file first

Error Handling

  • If a command fails, check the error and try to fix it
  • Common issues: missing packages (install them), syntax errors (fix them), permission denied (use appropriate paths)
  • Always retry at least once after fixing the issue

Trustgrade B

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • warnLicenseno SPDX license detected

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-dd731e9c49ad2026-07-31