dsh-bash-scripting
开发工具 活跃维护

dsh-bash-scripting

satan9394/dsh-bash-scripting

内置set -euo pipefail配置、参数校验、错误处理机制,可快速为Bash脚本添加错误捕获、输入校验与安全防护能力,降低脚本运行风险,适配自动化脚本开发场景。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
5 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:satan9394/dsh-bash-scripting
git clone https://github.com/satan9394/dsh-bash-scripting.git
git clone git@github.com:satan9394/dsh-bash-scripting.git
README.md main

dsh-bash-scripting

Bash 脚本防御模式:set -euo pipefail、参数校验、错误处理、可调试性、
安全注意、结构与风格。

wshobson/agents(38k★ MIT)
的 shell-scripting/bash-defensive-patterns 技能启发,改编为 DSH
中文原创精简版。

安装

dsh plugin --profile web add dsh-bash-scripting
# 或本地开发:dsh plugin --profile web add link:E:\DeepSeek_Harness\workspace\2026_08_15\plugins\dsh-bash-scripting
# 重启 dsh web 生效

使用

对 agent 说"写个 shell 脚本 / 帮我加固这个脚本",
bash-scripting 技能按防御基线 → 校验 → 错误处理 → 调试 → 安全输出。

结构

dsh-bash-scripting/
├── index.js           # 注册 skills/ 到 ctx.skills
├── cordis.patch.yml   # bundle patch 层
├── package.json       # dsh.bundle manifest
└── skills/bash-scripting/SKILL.md

License

MIT。原创精简改编,灵感来自 wshobson/agents(MIT)。