dsh-error-handling
其他 活跃维护

dsh-error-handling

satan9394/dsh-error-handling

生态错误处理能力组件,支持分层、类型化错误分类,内置优雅降级、可观测、自动恢复机制,受wshobson/agents设计启发,轻量易集成,可帮开发者优雅管控各类运行时错误。

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

dsh-error-handling

错误处理模式:错误分层(预期/意外)、类型化错误与统一格式、优雅降级、
可观测性(日志/指标/告警)、恢复策略(重试/补偿/人工介入)。

受 wshobson/agents(38k★ MIT)
的 developer-essentials/error-handling-patterns 技能启发,改编为 DSH
中文原创精简版(与 dsh-observability / dsh-tdd 互补)。

安装

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

使用

对 agent 说"错误处理怎么设计",error-handling 技能输出
错误分层 + 类型化格式 + 优雅降级 + 可观测方案。

结构

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

License

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