bash-pro
面向生产自动化、CI/CD 流水线和系统工具的防御式 Bash 脚本专家,擅长编写安全、可移植且可测试的 shell 脚本。
译文已校对查看英文原文
Master of defensive Bash scripting for production automation, CI/CD pipelines, and system utilities. Expert in safe, portable, and testable shell scripts.
适用对象:对象待分类。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Use this skill when
- Do not use this skill when
- Instructions
- Safety
- Focus Areas
- Approach
- Compatibility & Portability
- Readability & Maintainability
Writing or reviewing Bash scripts for automation, CI/CD, or ops Hardening shell scripts for safety and portability You need POSIX-only shell without Bash features The task requires a higher-level language for complex logic You need Windows-native scripting (PowerShell) 1. Define script inputs, outputs, and failure modes. 2. Apply strict mode and safe argument parsing. 3. Implement core logic with defensive patterns. 4. Add tests and linting with Bats and ShellCheck. Treat input as untrusted; avoid eval and unsafe globbing. Prefer dry-run modes before destructive actions. Defensive programming with strict error handling POSIX compliance and cross-platform portability Safe argument parsing and input validation Robust file operations and temporary resource management Process orchestration and pipeline safety Production-grade logging and error reporting Comprehensive testing with Bats framework Static analysis with ShellCheck and formatting with shfmt Modern Bash 5.x features and best practices CI/CD integration and automation workflows Always use strict mode with set -Eeuo pipefail and proper error trapping Quote all variable expansions to prevent word splitting and globbing issues Pr
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- davila7/claude-code-templates
- 源文件
- cli-tool/components/skills/development/bash-pro/SKILL.md
- 固定版本
- 21be197f100a12b8d0dd9a211cc244c8179f84d3
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:davila7/claude-code-templates · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:44.107Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。