Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
Christopher Boone avatar

Check Zsh Scripts

  • 2 repo stars
  • Updated July 24, 2026
  • cboone/agent-harness-plugins

Check zsh scripts with shellcheck, shfmt, shellharden, zsh -n, zcompile, warn_create_global/warn_nested_var, and checkbashisms.

About

Check-zsh-scripts evaluates zsh scripts with a battery of tools: shellcheck, shfmt, shellharden, zsh -n, zcompile, setopt warn_create_global and warn_nested_var, and checkbashisms. It catches syntax errors, portability bugs, and unsafe patterns, then guides fixes. A code-quality checker for shell-heavy projects.

  • shellcheck and shfmt
  • shellharden hardening
  • zsh -n and zcompile checks
  • warn_create_global / checkbashisms

Check Zsh Scripts by the numbers

  • Data as of Jul 25, 2026 (Skillselion catalog sync)
/plugin marketplace add cboone/agent-harness-plugins
/plugin install check-zsh-scripts@agent-harness-plugins

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars2
Last updatedJuly 24, 2026
Repositorycboone/agent-harness-plugins

What it does

Check zsh scripts with shellcheck, shfmt, shellharden, zsh -n, zcompile, warn_create_global/warn_nested_var, and checkbashisms.

README.md

Check Zsh Scripts

Check and evaluate zsh scripts using multiple static analysis, syntax checking, and formatting tools.

Type: Skill Trigger: /check-zsh-scripts (also activates automatically)

Installation

See the marketplace install instructions.

What It Does

Runs seven complementary tools against zsh scripts in a recommended order: syntax checking (zsh -n), compilation (zcompile), static analysis (shellcheck), bashism detection (checkbashisms), safety suggestions (shellharden), variable scope warnings (setopt warn_create_global warn_nested_var), and formatting (shfmt). Reports findings with false-positive filtering for tools that have limited zsh support. Offers auto-formatting via shfmt where applicable.

Requirements

  • shellcheck. Install via Homebrew: brew install shellcheck
  • shfmt. Install via Homebrew: brew install shfmt
  • shellharden. Install via Homebrew: brew install shellharden (or cargo install --locked --version 4.3.1 shellharden)
  • checkbashisms. Install via Homebrew: brew install devscripts
  • zsh and zcompile are typically pre-installed on macOS and most Linux distributions.

Usage

Invoke manually with /check-zsh-scripts, or the skill activates automatically when working with zsh files (.zsh, .zshrc, .zshenv, .zprofile, .zlogin, .zlogout).

Recommended Permissions

This skill runs shell commands that trigger permission prompts. To allow them automatically, add these rules to your .claude/settings.json (project-wide) or ~/.claude/settings.json (global):

{
  "permissions": {
    "allow": ["Bash(zsh -n *)", "Bash(zsh -c *)", "Bash(shellcheck *)", "Bash(checkbashisms *)", "Bash(shfmt *)", "Bash(shellharden *)", "Bash(rm -f *.zwc)"]
  }
}

If you already have a permissions.allow array, merge these entries into it. Review and adjust the rules to match your security preferences.

Examples

  • "Check my zsh scripts"
  • "Lint the zshrc file"
  • "Validate this zsh code"
  • "Run zsh checks on these files"
  • Editing a .zsh file (auto-activates)

See Also

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.