bash-shortening
CommunityMake Bash shorter without losing clarity.
Software Engineering#code review#refactoring#bash#parameter expansion#process substitution#lint verification#idiomatic shell
Authorpaulnsorensen
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps you refactor overly long or repetitive Bash scripts into more idiomatic, readable code while avoiding risky “golf” rewrites that hurt maintainability.
Core Features & Use Cases
- Rewrite verbose Bash to idiomatic constructs: shortens common patterns using Bash features like parameter expansion, brace expansion, process substitution, and arithmetic contexts.
- Guided, safe refactoring workflow: runs a read-only analyzer sweep over reference categories, then applies deterministic rewrites from a rewriter, and finally verifies output.
- Respects portability and safety constraints: refuses to operate on non-bash shells or POSIX /bin/sh scripts where Bashisms would break, and avoids cryptic one-liners when readability would suffer.
Quick Start
Use the skill on a Bash script file path by running python3 scripts/bash-shorten.py --apply path/to/script.sh.
Dependency Matrix
Required Modules
ast-grep (sg)
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: bash-shortening Download link: https://github.com/paulnsorensen/skillz-that-grillz/archive/main.zip#bash-shortening Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.