About shell-scripts
A workflow skill for making changes to shell scripts. It points contributors to the project's shell rules and provides formatting, linting, and review checks.
Key features
- 01Shell script change workflow
- 02Formatting with `make shfmt`
- 03Optional ShellCheck verification
- 04Executable and shebang checks
- 05Strict mode and quoting checklist
Use cases
- 01Apply project rules when editing shell scripts
- 02Format scripts before review
- 03Check scripts with ShellCheck when installed
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ hiromaily/ go-crypto-wallet --skill shell-scriptsAfter installing, type/shell-scriptsin Claude Code to confirm it loaded.
Details
From the project READMEShell Scripts Workflow
Workflow for shell script changes.
Prerequisites
- Use
git-workflowSkill for branch, commit, and PR workflow. - Refer to
.claude/rules/shell-script.mdfor detailed best practices (SSOT).
Applicable Files
| Path | Description |
|---|---|
scripts/ | All shell scripts |
*.sh | Shell scripts anywhere |
Workflow
1. Make Changes
Edit shell scripts following the rules in .claude/rules/shell-script.md.
2. Verify (from rules/shell-script.md)
make shfmt
shellcheck scripts/{script}.sh # if installed
3. Self-Review Checklist
- Script is executable (
chmod +x) - Has shebang line (
#!/usr/bin/env bash) - Uses strict mode (
set -euo pipefail) - Variables are quoted
- All comments and messages are in English
Related
.claude/rules/shell-script.md- Shell rules (SSOT)git-workflow- Branch, commit, PR workflow
Comments
Markdown supported