skills/bash-script/SKILL.md
Use when writing a Bash script. Covers the template, conventions, and required patterns.
npx skillsauth add LandonSchropp/agent-toolkit bash-scriptInstall 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.
Start from the template at assets/template.sh. Copy it exactly and fill in the specific logic.
<name>.sh with kebab-case (e.g., extract-pr-number.sh)chmod +x)--flag-name (kebab-case). Only use positional args for very simple cases.directory, not dir)0 for success, 1 for errorsset -euo pipefail at the top of every scriptprint_help() function for help output--help flag must be the first case in argument parsingError: and go to stderr (>&2)"$variable")Error: The option <option> is invalid.For colored terminal output, see references/colored-echo.md.
tools
Use when working with a stack of GitHub pull requests — creating branches, keeping the stack in sync, or merging in order. Covers Git Town setup, PR targeting, rebasing, and landing the stack.
tools
Use when writing or modifying tests in a Bun project
tools
Use when publishing or releasing a new version of an npm/pnpm/yarn/bun package to the registry. Covers package-manager detection, semver bump selection, tagging, pushing, scoped-package access, authentication, and one-time passwords (OTP).
tools
Use when a finished worktree's branch has been reviewed and committed and needs to land. Rebases onto the latest default branch, then either fast-forwards it into the default branch (personal direct-to-main repos) or pushes it for a pull request (shared feature-branch repos).