bash-command-safety

Detect semicolon-after-subshell syntax errors in Bash commands.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/CodeTonight-SA/claude-optim --skill bash-command-safety
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bash-command-safety
Source: https://github.com/CodeTonight-SA/claude-optim/tree/main/skills/bash-command-safety
Command: npx skills add https://github.com/CodeTonight-SA/claude-optim --skill bash-command-safety

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Incorrect use of semicolons after command substitutions in Bash (especially within eval contexts) can lead to parse errors and script failures. This skill identifies and prevents such syntax mistakes, ensuring robust Bash command execution.

Core Features & Use Cases

  • Syntax Error Detection: Monitors for the semicolon-after-subshell pattern that causes parse errors.
  • Remediation Suggestion: Provides alternative, safe approaches to structure Bash commands.
  • Pre-Execution Validation: Implements checks to prevent the execution of Bash commands with this specific syntax flaw.
  • Use Case: You're writing or reviewing a Bash script that uses command substitution, and you want to ensure it's free from common parsing errors.

Quick Start

"Review this Bash script for any semicolon-after-subshell parse errors." "Ensure my Bash commands are safe from common syntax mistakes."