code-runner

Executes code snippets in over 30 programming languages via command line.

1|1|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/ultraviollettnympho/transit-ticket --skill code-runner-ultraviollettnympho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-runner
Source: https://github.com/ultraviollettnympho/transit-ticket/tree/main/.github/skills/code-runner
Command: npx skills add https://github.com/ultraviollettnympho/transit-ticket --skill code-runner-ultraviollettnympho

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 files and commands to test code snippets, letting you execute and verify code in dozens of languages directly from the terminal. ## Core Features & Use Cases - Multi-Language Execution: Run code in 30+ languages including JavaScript, Python, Java, C, C++, Go, Rust, Ruby, and PHP through a single unified script. - 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. - Use Case: When verifying an algorithm, pipe a Python snippet into the runner and instantly see the output or error without creating a project file. ## Quick Start Run this Python code snippet and show me the output: print(sum(range(100))).

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 from the terminal?

Pipe the code via stdin to the run-code.cjs script with the language identifier, for example: echo "print('hi')" | node scripts/run-code.cjs python. The script writes the code to a temp file, executes it, 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, and PowerShell. Each language requires its interpreter or compiler installed and available in PATH.

Can I run compiled languages like Java, C, or Rust with this tool?

Yes, the runner compiles C with gcc, C++ with g++, Rust with rustc, and Java with javac before executing the binary. For Java, it extracts the public class name automatically so the filename matches the class.

Why does the code runner report command not found errors?

This error means the required interpreter or compiler is not installed or not in the system PATH. Install the missing runtime, such as Node.js for JavaScript or Python for .py files, then retry the execution.

What happens when code execution takes too long?

The runner enforces a default 30-second timeout and terminates the process if exceeded, reporting an execution timed out error. You can override the limit with the --timeout flag followed by milliseconds.