shell

Execute shell commands with history, process control, and output search.

15|5|Updated Jul 1, 2025
One-click install
npx skills add https://github.com/swissarmyhammer/swissarmyhammer --skill shell-swissarmyhammer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shell
Source: https://github.com/swissarmyhammer/swissarmyhammer/tree/main/builtin/skills/shell
Command: npx skills add https://github.com/swissarmyhammer/swissarmyhammer --skill shell-swissarmyhammer

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a robust and feature-rich environment for executing shell commands, offering advantages over standard shell tools.

Core Features & Use Cases

  • Command Execution: Run any shell command with options for timeouts and output line limits.
  • History Management: Persistent command history with semantic and regex search capabilities.
  • Process Control: Monitor and terminate running processes.
  • Use Case: Debugging a complex build process by executing build commands, searching logs for specific errors, and inspecting process status.

Quick Start

Use the shell skill to execute the 'ls -la' command in the current directory.

Frequently Asked Questions about shell

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

FAQPage Schema
How do I execute shell commands with persistent history and output searching?

You can execute shell commands with persistent history and output searching by using a shell execution environment that records command history and supports semantic and regex search. This enables running commands, reviewing past executions, and searching through output logs.

What is the best way to debug a complex build process using command execution?

The best way to debug a complex build process is by executing build commands, searching logs for specific errors with regex, and inspecting process status. This approach enables monitoring and terminating running processes to isolate failures.

Can I set timeouts and output line limits when running shell commands for automation?

Yes, you can set timeouts and output line limits when running shell commands for automation. This ensures deterministic task execution for build, test, and deployment workflows by preventing runaway processes and excessive log output.

Does this shell command execution tool support process management?

Yes, this shell command execution tool supports process management. You can monitor running processes and terminate them directly, which is essential for handling stuck build tasks or deployment workflows requiring manual intervention.

How do I search through previous shell command history?

You can search through previous shell command history using semantic and regex search capabilities. This enables quickly finding past commands and their outputs by matching specific error patterns or semantic meanings in the logs.