Bash Hygiene

Review, create, and validate Bash scripts when shell work needs strict mode, quoting safety, portability, or interpreter-compatible behavior.

9 stars 4 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add jscraik/Agent-Skills --skill bash-hygiene
Manual install
git clone --depth 1 https://github.com/jscraik/Agent-Skills.git /tmp/Agent-Skills
mkdir -p ~/.claude/skills
cp -r /tmp/Agent-Skills/Skills/agent-ops/bash-hygiene ~/.claude/skills/bash-hygiene

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Bash Hygiene

## Philosophy
- Keep the skill focused on the decision and workflow the user actually requested.
- Preserve important context through progressive disclosure instead of trimming it away.
- Prefer repo-local contracts, wrappers, and validation before generic advice.

## When To Use
- A Bash script or hook is being created or edited.
- Shell failures involve word splitting, globbing, strict mode, or interpreter mismatch.
- The user wants a safety review before committing shell changes.

## Avoid
- General Python, Node, or Makefile work with no shell script surface.
- Replacing repo wrappers with ad hoc shell snippets.
- Executing destructive shell commands without explicit user intent.

## Inputs
- script path
- target shell
- runtime environment
- expected behavior
- validation command

## Outputs
- findings or patch
- quoting and portability notes
- validation commands
- residual risks
- blockers
- Schema-bound outputs include schema_version.

## Workflow
- Start with 2-3 focused surfaces before expanding scope.
- Identify the target shell and repo wrapper expectations.
- Check strict mode, quoting, arrays, traps, paths, and temporary files.
- Prefer argument arrays and explicit paths over string-built commands.
- Run shellcheck or the nearest repo validation when available.
- Report exact failures and safe fixes.

## Constraints
Read the full skill on GitHub

Details

Skill name
bash-hygiene
Path
Skills/agent-ops/bash-hygiene/SKILL.md
License
Apache-2.0
Repo updated
16 November 2026

FAQ

What does the Bash Hygiene skill do?

Review, create, and validate Bash scripts when shell work needs strict mode, quoting safety, portability, or interpreter-compatible behavior.

How do I install the Bash Hygiene skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add jscraik/Agent-Skills --skill bash-hygiene. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Bash Hygiene popular?

It lives in jscraik/Agent-Skills, which has 9 GitHub stars and 4 forks.

Related skills

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.