dotfiles/dot_claude/skills/shell-audit/SKILL.md
Audit and refactor shell scripts for consistency, safety, and modern best practices. Use when adding, modifying, or reviewing shell scripts.
npx skillsauth add smithbr/dotfiles shell-auditInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
~/.claude/rules/06-shell.md for the established standards.Run through each item for every script in scope.
#!/usr/bin/env bash (or #!/usr/bin/env sh for POSIX scripts)set -euo pipefail is present immediately after shebang/comments#!/bin/bash -e)echo for user-facing output when logging helpers existcase "$OSTYPE" with darwin*/linux* patternsuname -s for OS detection (use uname -m only for architecture)$OS_NAME)"${var}"[[ ]] — no [ ] in bash scriptscommand -v — no whichprintf — no echo -e%b format specifier, not embedded in format stringsname() { style — no function keywordlocal declarations for all function-scoped variablesbash -n <file> passes (syntax check)shellcheck <file> passes with no warnings/errors.sh files, executable_* files, and shebanged scripts in the project.bash -n and shellcheck on all changed files.sh scripts (e.g. upstream forks): Only audit for safety flags (set -eu) and quoting. Do not convert to bash conventions.[[ usage but skip shebang/safety flag checks.testing
Audit agent skills for compliance with the AgentSkills specification. Use when adding, modifying, or reviewing skills in the skills directory.
development
Reviews code for security issues including injection vulnerabilities, auth flaws, and secrets in code.
testing
Stage and commit changes with a concise message. Use when the user asks to commit.
tools
--- name: charm-ux description: Redesign shell script UX using Charmbracelet tools (gum, glow, etc). Use when the user asks to improve, redesign, or add interactive UX to a shell script, or mentions Charmbracelet/gum/glow. allowed-tools: Read Grep Glob Bash Edit Write WebFetch compatibility: Requires gum (brew install gum). Optional: glow (brew install glow). --- # Charmbracelet UX Redesign for Shell Scripts ## When to Use - When the user asks to redesign or improve UX of a shell script - Whe