首页/ AI 技能 / @skilllib/skill-2014279388542480386
Skill站外收录 @skilllib/skill-2014279388542480386

shell-scripts

支持 Shell 脚本的开发与维护全流程,涵盖代码编辑、格式化、静态检查、可执行权限设置、规范性校验及合规性审查,确保脚本符合安全、可读与可维护的最佳实践标准。

0.0 (0) 150 次安装 原作者 编程导航
收录于 2026-01-22
软件开发 AI 技能

Skills.MD

# Shell Scripts Workflow Workflow for shell script changes. ## Prerequisites - **Use `git-workflow` Skill** for branch, commit, and PR workflow. - **Refer to `.claude/rules/shell-script.md`** for detailed best practices (SSOT). ## Applicable Files | Path | Description | |------|-------------| | `scripts/` | All shell scripts | | `*.sh` | Shell scripts anywhere | ## Workflow ### 1. Make Changes Edit shell scripts following the rules in `.claude/rules/shell-script.md`. ### 2. Verify (from rules/shell-script.md) ```bash make shfmt shellcheck scripts/{script}.sh # if installed ``` ### 3. Self-Review Checklist - [ ] Script is executable (`chmod +x`) - [ ] Has shebang line (`#!/usr/bin/env bash`) - [ ] Uses strict mode (`set -euo pipefail`) - [ ] Variables are quoted - [ ] All comments and messages are in English ## Related - `.claude/rules/shell-script.md` - Shell rules (SSOT) - `git-workflow` - Branch, commit, PR workflow

评论 0

还没有评论,来抢沙发。