Bash style

From doccker/cc-use-exp · View interactive version

Bash style is an AI agent skill from the GitHub repository doccker/cc-use-exp. Bash 脚本与系统命令规范。禁止行尾注释,强制使用 tee/heredoc 写入,提升命令执行的可维护性。

How to use this skill

Skill file

<instructions>

Bash 与系统命令规范

参考来源: Google Shell Style Guide


🚫 严格禁止

1. 禁止行尾注释

2. 禁止隐式路径


🛠️ 脚本编写原则

# ✅ 良好的脚本头
#!/usr/bin/env bash
set -euo pipefail

💻 命令输出与日志


📋 本回复遵循:bash-style - [章节]

</instructions>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.