skills/bash-optimize/SKILL.md
Use this skill to refactor an existing shell script for clarity, performance, and maintainability without changing its behavior. Use it when the user says a script is "messy," "hard to read," "slow," or asks to "clean up" or "improve" a .sh file. Covers removing unnecessary subshells, simplifying conditionals, improving variable quoting, and applying best practices. Do not use for validation-only tasks — use bash-check for that.
npx skillsauth add cuozg/oh-my-skills bash-optimizeInstall 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.
Refactor an existing shell script to improve readability, reduce complexity, and apply best practices — behavior must not change.
set -euo pipefail or proper quotingset -euo pipefail, replace anti-patternsset -euo pipefail at the top unless the script explicitly requires lenient error handling$(cat file) with < file redirection where appropriate[[ ]] over [ ] for conditionals in bash scriptsOptimized script (inline replacement) plus a report listing each change, the problem it solved, and the pattern applied.
tools
Generate Unity raster image assets through Unity MCP: game sprites, item art, backgrounds, UI icons, portraits, concept images, transparent cutouts, image edits, upscales, background removal, and Unity scene or Game View screenshots. Use when a Unity project needs image files imported under Assets or screenshots captured from the editor. Do not use for meshes, audio, animation, materials, gameplay code, UI Toolkit layout, or generic non-Unity image generation.
tools
Create Unity technical solution documents from user requirements, feature ideas, bug goals, specs, or codebase problems. Use when the user asks for a technical approach, architecture, implementation strategy, solution options, feasibility analysis, system design, or "how should we build/fix this" for Unity runtime, Editor, tools, assets, data, UI, WebGL, SDKs, or production pipelines.
tools
Orchestrate Unity Editor via MCP (Model Context Protocol) tools and resources. Use when working with Unity projects through MCP for Unity - creating/modifying GameObjects, editing scripts, managing scenes, running tests, or any Unity Editor automation. Provides best practices, tool schemas, and workflow patterns for effective Unity-MCP integration.
development
Convert a spec document into an implementation TODO list in the same spec folder. U se when the user says goal-todo, todo from spec, generate tasks from spec, turn this spec into todos, create implementation checklist, extract tasks, or asks to read a Docs/Specs design doc and produce what must be implemented. Includes UI/UX review and codebase investigation before writing the checklist. Do not use for implementing the tasks, creating new goal files, writing test cases, or verifying completed work.