bash-patch-safe

Community

Safely patch Bash scripts without breaking them

AuthorWike-CHI
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Modifying Bash scripts with patch tools or manual edits can unintentionally remove function definitions, break function calls, or disrupt the order of definitions, leading to runtime errors that are hard to detect.

Core Features & Use Cases

  • Detect duplicate function definitions after a patch.
  • Verify that the script exits immediately when invoked with the --help option.
  • Perform syntax validation using bash -n.
  • Ensure essential calls such as parse_args "$@" and main "$@" are present in the correct order.
  • Use case: after applying a patch to a deployment automation script, run this skill to confirm the script still operates safely.

Quick Start

Use the bash-patch-safe skill to validate 'script.sh' after a patch.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: bash-patch-safe
Download link: https://github.com/Wike-CHI/acquisition-agent/archive/main.zip#bash-patch-safe

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.