Skip to main content
prompt GP ChatGPT

run_command · wangzan101, entries — Claude Code prompt for shell commands

This Claude Code prompt runs shell commands in a Linux sandbox. Commands use /bin/sh -lc with /workspace as the working directory.

Apache-2.0 ★ 9,488 updated 2026-11-16

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/run_command.md
Open on GitHub

What run_command does

run_command executes a shell command in a Linux sandbox and returns its output and exit code. The ok field is true only when the command exits with code 0 and does not time out.

The sandbox uses Alpine and runs commands through /bin/sh -lc from /workspace. Starting with the next call, file tools become available for reading, writing, searching, sharing files, and running bundled scripts.

For Claude Code, save the prompt as .claude/commands/run_command.md.

What it helps with

  • run a shell command in a Linux sandbox
  • retrieve a command's output and exit code
  • access file tools after running a command

Example prompts for the agent

  • Run pwd in the sandbox.
  • Execute ls -la and return the output.
  • Find files named package.json.

How to install run_command

Manually: put the files in place

.claude/commands/run_command.md

Questions about run_command

How do I install run_command in Claude Code?

Save the prompt to .claude/commands/run_command.md.

What does run_command do?

It runs a shell command in a Linux sandbox and returns the output with the exit code. The ok field is true only for exit code 0 when the command does not time out.

Where does run_command execute commands?

Commands run in an Alpine Linux sandbox through /bin/sh -lc, using /workspace as the working directory.

Source text

run_command.md · Apache-2.0
Run a shell command in the Linux sandbox (Alpine, /bin/sh -lc) with /workspace as the working directory. Returns exitCode and the output; ok is true only when the exit code is 0 and it did not time out. From your next call on you also get the file tools (read_file, write_file, search_files, share_file, run_bundled_script).

© wangzan101 · Apache-2.0 · wangzan101/Mika

Similar prompts

All prompts for DevOps and infrastructure →

run_command by other authors comes first.

run_command wangzan101 This Claude Code prompt runs shell commands in a Linux sandbox. It can also route calls to the current task’s phone tools through mika phone. GP ChatGPT ★ 9,488repo stars cloud-run-basics official google The cloud-run-basics skill helps an agent manage Cloud Run services, jobs, and worker pools when a project needs HTTP deployment, scheduled work, or pull-based background processing. CX Codex +1 17,532installs dx-devops-test-suite-run forcedotcom dx-devops-test-suite-run triggers DevOps Center test suites on Salesforce pipeline stages and polls execution until finished. Useful for pre-promotion gates and re-running checks after code coverage fixes. CX Codex +1 5,000installs nx-run-tasks nrwl nx-run-tasks tells the agent how to run build, test, lint and serve targets in an Nx workspace. Useful when a monorepo has more projects than you can track. CX Codex +1 4,100installs run-acceptance-tests hashicorp run-acceptance-tests is a skill for Claude Code and Codex that runs and debugs Terraform provider acceptance tests, configures environment variables, and checks that tests validate logic rather than cached results. CX Codex +1 3,900installs platform-apex-anonymous-run forcedotcom platform-apex-anonymous-run executes anonymous Apex against a connected Salesforce org via the CLI, captures debug logs, and reports runtime or compile errors. CX Codex +1 3,400installs Cron Expression Parser — Explain & Next Run Times axel-belfort Cron Expression Parser is a Claude Code MCP server that validates and explains cron expressions. It also returns upcoming run times for a chosen timezone. CX Codex +1 3,230installs

From the same set132

The whole set →
skill_read skill_read — a prompt for Claude Code and ChatGPT that retrieves a skill’s full text by name. It can return the main text or an attachment listed in the skill’s files. GP ChatGPT ★ 9,488repo stars screenshot The screenshot Claude Code prompt captures the current screen as an image. Save it to a new PNG path under /workspace, then call share_file to deliver it. GP ChatGPT ★ 9,488repo stars knowledge_read The knowledge_read prompt for Claude Code and ChatGPT reads information about apps and websites. It opens an attachment or looks up a resource that has not been opened yet. GP ChatGPT ★ 9,488repo stars phone_find The phone_find Claude Code prompt scrolls a mobile app and searches its accessibility tree for text, a resource ID, or a role. It stops if the app changes or the content no longer moves. GP ChatGPT ★ 9,488repo stars view_image The view_image Claude Code prompt answers questions about an image using only visible details. It describes the scene and transcribes legible text. GP ChatGPT ★ 9,488repo stars list_elements The list_elements Claude Code prompt turns the current screen into a text list instead of a screenshot. Each item gets a reference for later actions. GP ChatGPT ★ 9,488repo stars mika_open_file The mika_open_file Claude Code prompt opens workspace files in Mika’s built-in viewer. Show a report, screenshot, or downloaded document. GP ChatGPT ★ 9,488repo stars view_image The view_image Claude Code prompt sends an image to a vision model and reports its contents. It runs when a task requires reading text from an image or understanding what the image depicts. GP ChatGPT ★ 9,488repo stars

Project sponsors

Companies that keep this analytics open