Skip to content
Agentmart
Submit a tool

execute_shell_command

Execute standard Bash shell commands in a non-interactive environment.

Skill by zzatpku

IndexedMIT★ 66
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/zzatpku-execute-shell-command

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Execute standard Bash shell commands in a non-interactive environment. Supports file system navigation, reading, pip installation and so on. The current work_dir for shell command executing will be a temp dir.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/execute-shell-command

What's inside

Skill name
execute_shell_command
Description
Execute standard Bash shell commands in a non-interactive environment. Supports file system navigation, reading, pip installation and so on. The current work_dir for shell command executing will be a temp dir.
License
MIT
Instructions
55 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed
  • name: "execute_shell_command" does not match folder "shell_command"

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Shell Command Tool

⚠️ **IMPORTANT RESTRICTION**: You CANNOT use this tool directly! To execute shell commands, you MUST first create a subagent (using `create_subagent` skill) and then run it (using `run_subagent` skill). Direct execution of shell commands is not allowed.

execute_shell_command: A bridge to the local operating system shell. Allows execution of standard Bash commands.

## Usage

```python
from tools import execute_shell_command

# List files
output = execute_shell_command("ls -la")

# Read a file
content = execute_shell_command("cat -n README.md")
```

## Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| command | str | required | The Bash command to execute |

## Returns

Returns a single string containing the command's standard output (stdout) and standard error (stderr) combined.

**Note**: 1. Safety Interception: Commands like `rm`, `rmdir`, `shred` are strictly forbidden and will return an error string. 2. Output Truncation: If the output exceeds 5000 characters, it will be truncated. Use `head`, `tail`, or `grep` for large files.

## Example

```python
from tools import execute_shell_command

# 1. Inspect current directory
print(execute_shell_command("ls -F"))

# 2. Install a package (if network is available)
print(execute_shell_command("pip install pandas"))

# 3. Read a specific part of a file (safe for large files)
print(execute_shell_command("head -n 20 data.csv"))
```

## Tips

- Non-Interactive: Do NOT use interactive tools like `vim`, `nano`, or `python` (without `-c`). The process will hang.
- Reading Files: Prefer `cat -n filename` to see line numbers, which is helpful for editing later.
- Large Files: Avoid `cat` on large files. Use `head -n 50 filename` to peek, or `grep` to search.
- Environment: You are in a standard Bash environment. You can use pipes: `ls -la | grep .py`.
- State: The working directory is persistent. `cd folder` works for subsequent commands.
- Environment Setup: Use this tool to install Python packages and other dependencies needed by your subagent. For example: `pip install playwright && playwright install chromium`, `pip install pandas`, etc.

From zzatpku/AgentFactory, MIT.

More from zzatpku/AgentFactory

Signals

Stars
66
Forks
8
Open issues
0
Last commit (this folder)
Feb 28, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from zzatpku

Cite this page

execute_shell_command skill. Agent Mart. https://agentmart.dev/skills/zzatpku-execute-shell-command (last updated 2026-10-24)