Bashsmithing Refactor

0•

Refactors Bash scripts into clean, idiomatic, and Shellcheck-compliant code based on project-specific conventions.

Bashsmithing Refactor is a specialized sub-skill designed to transform messy or suboptimal Bash scripts into production-grade code. By automatically detecting project conventions via .shellcheckrc and .editorconfig, it performs deep audits before applying fixes, ensuring scripts follow best practices like robust error handling, proper variable quoting, and local scoping. It intelligently scales its complexity using a Lite Mode for small scripts to avoid over-engineering, while providing full architectural refactoring for larger codebases, complete with a detailed pre-refactor audit and post-action change log.

Características Principales

01Automated Shellcheck violation remediation and convention-based formatting.
02Intelligent Lite Mode to prevent over-architecting scripts under 50 lines.
03Detection of project-specific configurations like .shellcheckrc and .editorconfig.
040 GitHub stars
05Pre-refactor audits categorizing issues by severity from Critical to Info.
06Comprehensive refactoring including error handling, scoping, and idiomatic patterns.

Casos de Uso

01Modernizing legacy Bash scripts to meet modern DevOps and security standards.
02Standardizing Bash coding styles and naming conventions across a team repository.
03Resolving complex Shellcheck warnings and silent failure points in CI/CD scripts.