Bash
🧿 Minimal but effective AI agent skill definitions in 100 lines or less.
npx -y skills add kimtth/agent-skill-100-lines-or-less --skill bashAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when: write or review robust shell scripts that fail fast and handle paths and input safely.
SKILL.md
1.0 KB, as published. Nobody here has run it
Goal: shell scripts that are safe, portable, and fail loudly.
Use for:
- automation, CI steps, and glue scripts
- reviewing fragile or unsafe shell code
- hardening scripts against edge cases
Workflow:
- Start with set -euo pipefail for strict failure.
- Quote every variable expansion: "$var", "${arr[@]}".
- Check for required commands and inputs up front.
- Use functions and local variables for structure.
- Prefer printf over echo for predictable output.
- Verify with shellcheck and a dry run.
Idioms:
- "${var:-default}" for fallbacks
- [[ ... ]] over [ ... ] for tests
- trap for cleanup on exit
- mktemp for temporary files
Rules:
- always quote expansions to survive spaces and globs
- set -euo pipefail unless you have a reason not to
- validate inputs before destructive actions
- run shellcheck; treat its findings as real bugs