一键导入
bash-bats-loop
Use when maintaining Bash code and the next move should be a fast Bats regression loop that narrows failures before editing more code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when maintaining Bash code and the next move should be a fast Bats regression loop that narrows failures before editing more code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when a Bash maintenance task needs coordinated testing, linting, and benchmarking instead of treating those loops as separate afterthoughts.
Use when Bash maintenance work needs a deliberate plan for which untested behaviors to cover next, especially after failures or shared-module edits.
Use when Bash performance work should be measured with repeatable hyperfine benchmarks instead of intuition or one-off timing.
Use when Bash maintenance work should be driven by ShellCheck findings, especially when warnings need prioritization and safe fixes.
| name | bash-bats-loop |
| description | Use when maintaining Bash code and the next move should be a fast Bats regression loop that narrows failures before editing more code. |
Use this skill when the task is about Bash regressions, missing tests, flaky test behavior, or confidence after script changes.
Typical triggers:
bats or bats-core.bash test/test-all.sh, make test, or a documented Bats wrapper.bats invocation, list likely target files before running broad suites.Testing heuristics:
test/test-all.sh, use it before declaring the work finished because it may stage files or environment expected by the suite.