A Claude Code plugin providing bash scripting patterns, defensive programming, Unix command chaining, and shell script structure.
# Add the marketplace
/plugin marketplace add thanksmors
# Install the plugin
/plugin install cheatcodes@thanksmorsThen restart Claude Code.
The bash skill activates automatically when you work with bash scripts.
Triggers when:
- Writing or editing bash scripts
- Asking about shell commands
- Needing defensive programming patterns
- Debugging bash script issues
Covers:
| Category | Topics |
|---|---|
| Defensive Patterns | set -euo pipefail, quoting, [[ ]] vs [ ], parameter expansion |
| Script Structure | Template, getopts parsing, traps, cleanup |
| Unix Philosophy | Command chaining, pipes, xargs, process substitution |
| Essential Commands | find, grep, sed, awk, cut, sort, curl |
| Common Patterns | Retry logic, temp files, dry-run, confirmation prompts |
| Testing | Bats framework, ShellCheck integration |
"write a bash script that takes a filename and prints its line count"
"how do I parse command line flags in bash?"
"my grep command is failing with set -e"
"add error handling to this bash script"
cheatcodes/
├── .claude-plugin/
│ └── plugin.json # Plugin manifest
├── skills/
│ └── bash/
│ └── SKILL.md # Bash skill
└── README.md
MIT