GitHub - overflowy/bash-script-tools: A web-based bash script formatter and linter with AI-powered autofix.

1 min read Original article ↗

Bash Script Tools

A web-based bash script formatter and linter with AI-powered autofix.

Bash.Script.Tools.mp4

Features

  • Format: Format bash scripts using shfmt
  • Lint: Check scripts with shellcheck
  • Autofix: Apply shellcheck's automatic fixes
  • Autofix (AI): Fix shellcheck issues using AI (Groq)

Requirements

Usage

# Basic usage
./bash-script-tools

# With AI autofix (optional)
export GROQ_API_KEY="your-api-key"
./bash-script-tools

# Custom configuration
export PORT=8085
export GROQ_MODEL_ID="openai/gpt-oss-120b"
export SHFMT_PATH="/custom/path/to/shfmt"
export SHELLCHECK_PATH="/custom/path/to/shellcheck"
./bash-script-tools

Open http://localhost:8085 in your browser.

License

MIT