code-runner

Executes code snippets in over 30 programming languages via a Node.js runner script.

Updated Jun 14, 2026
One-click install
npx skills add https://github.com/ironkid90-s/lucky5-v7 --skill code-runner-ironkid90-s
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-runner
Source: https://github.com/ironkid90-s/lucky5-v7/tree/main/.github/skills/code-runner
Command: npx skills add https://github.com/ironkid90-s/lucky5-v7 --skill code-runner-ironkid90-s

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? It removes the friction of manually setting up interpreters, compilers, and temp files when you need to quickly execute or verify a code snippet in any of 30+ programming languages. ## Core Features & Use Cases - Multi-language execution: Run code in JavaScript, Python, Java, C, C++, Go, Rust, Ruby, PHP, and many more through a single unified command. - Compiled language support: Automatically compiles and runs C, C++, Rust, and Java code, including Java class-name extraction. - Stdin-based input: Accepts code via stdin to avoid shell escaping issues with quotes and special characters, ideal for AI agents. - Use Case: You want to verify that a Python factorial function returns the expected result. Pipe the code to the runner script and instantly see the output or error details. ## Quick Start Ask the AI to run your code snippet by saying something like: run this Python code print(math.factorial(10)) using the code-runner skill.

Frequently Asked Questions about code-runner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a code snippet in multiple programming languages?

Pipe your code via stdin to the run-code.cjs script with the language ID, for example: echo "print('hi')" | node scripts/run-code.cjs python. The script writes the code to a temp file, executes it with the right interpreter or compiler, and returns stdout and stderr.

What programming languages does the code runner support?

It supports over 30 languages including JavaScript, TypeScript, Python, Java, C, C++, Go, Rust, Ruby, PHP, Perl, Lua, R, Swift, Kotlin, Scala, Haskell, Elixir, Bash, PowerShell, and more. Each language requires its interpreter or compiler installed and available on PATH.

Can I run compiled languages like C, C++, Rust, or Java?

Yes. The script compiles C with gcc, C++ with g++, and Rust with rustc before running the binary. For Java, it extracts the public class name, compiles with javac, and runs with java using the matching classpath.

Why does the code runner report command not found errors?

This happens when the language interpreter or compiler is not installed or not on the system PATH. Install the required runtime, such as Node.js, Python, Go, or a JDK, and verify it is accessible from your terminal.

What happens if my code runs too long or has an infinite loop?

Execution is terminated after a default 30-second timeout, and the script reports a timeout error. You can override the limit by passing a custom value with the --timeout flag in milliseconds.

Is it safe to run arbitrary code with this skill?

Running arbitrary code carries risk, so review code before execution, especially anything accessing the file system, network, or system commands. For untrusted code, run it inside a sandboxed environment.