Execute code snippets in 40+ programming languages including JavaScript, Python, PHP, Ruby, Go, TypeScript, and more. Ideal for quick testing, prototyping, and multi-language development workflows.
Execute code snippets across 40+ programming languages directly within your AI coding environment. This skill provides instant code execution capabilities for rapid testing, prototyping, and multi-language development.
JavaScript, PHP, Python, Perl, Perl 6, Ruby, Go, Lua, Groovy, PowerShell, BAT/CMD, BASH/SH, F# Script, C# Script, VBScript, TypeScript, CoffeeScript, Scala, Swift, Julia, Crystal, OCaml Script, R, AppleScript, Elixir, Clojure, Racket, Scheme, AutoHotkey, AutoIt, Kotlin Script, Dart, Haskell, Nim, Lisp, Kit, V, SCSS, and Sass.
The interpreter or compiler for the programming language you want to execute must be installed and available in your system's PATH environment variable.
When a user requests code execution or testing across multiple languages:
1. **Identify the Language**: Determine the programming language from the user's request or code snippet.
2. **Verify Prerequisites**: Remind the user that the language's interpreter/compiler must be in their PATH.
3. **Use the run-code Tool**: Call the `run-code` tool with:
- `language`: The programming language name (e.g., "javascript", "python", "ruby")
- `code`: The complete code snippet to execute
4. **Present Results**: Display the execution output, including stdout, stderr, and exit codes.
5. **Handle Errors**: If execution fails, check:
- Is the language interpreter installed?
- Is the code syntax valid?
- Are there runtime errors in the code?
**User**: "Run this JavaScript code: console.log(5+6)"
**Agent Action**: Use `run-code` tool with language="javascript" and code="console.log(5+6)"
**User**: "How many CPUs does my machine have? Use code to find out."
**Agent Action**: Use `run-code` tool with appropriate system query code (Node.js: `require('os').cpus().length`, Python: `import os; print(os.cpu_count())`)
**User**: "Test this Python function quickly"
**Agent Action**: Use `run-code` tool with language="python" and the provided code.
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/code-runner-mcp-server/raw