Shell 脚本严格规范检查
lint-shell
在代码被接受之前应用严格的 shell 脚本工程规则。
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 65
- Forks
- 0
01 前言 Front Matter
- name
- lint-shell
- description
- Apply strict shell-script engineering rules before code is accepted.
03 SKILL.md 正文
Procedure
-
Identify the
.sh/.bashfiles touched or under review. -
Apply the shell policy in
rules/14-shell.mdc(agent-surface source; it may be rendered to the current host) together with the repository's configured linters and formatters: no unquoted variables, missingset -euo pipefail, or unchecked commands. If a constraint cannot be met, stop and name the blocker. -
Run the toolchain gate from
rules/14-shell.mdcon each touched script:bash -n script.sh shellcheck -x script.sh shfmt -d script.sh -
Report each script in the format below.
Output
## <script-path>
Verdict: <BLOCKER | MAJOR | MINOR | CLEAN>
Findings:
- [severity] line N: description
Fix:
- concrete action per finding
Verification:
- bash -n: PASS/FAIL
- shellcheck: PASS/FAIL (error count)
- shfmt -d: PASS/FAIL
04 同仓库更多 Skills
工作流运行时验证
workflow-runtime
在将 CLI、扩展、提供程序或模型分配给工作流角色之前,先验证技能或工作流的发现能力、完全自主的工具执行能力,以及任务形态的具体化。
工作流成果审查
workflow-reviewer
依据 BOSS 规格说明和证据,审查批量实现的输出。
工作流故障修复
workflow-rescue
通过一次果断的行动解决反复出现的工作流失败。
多智能体工作流编排
workflow-orchestrator
运行风险自适应的开发、评审、多智能体和发布工作流,具备运行时预检、有限重试、存活检查、写入隔离以及有证据支撑的交接能力。
工作流失败仲裁
workflow-judger
仲裁反复出现的任务失败,并决定是合并、返工还是升级处理。
工作流状态验证
workflow-doctor
在任何角色对活动工作流状态执行操作之前,先对其进行验证。