Skip to content
alyn
qufei1993

Dsh Error Handling skill

实现或审查错误传播、部分成功、结果未知、恢复、重试、取消或失败反馈时使用,明确状态保证和错误处理责任。

$npx skills add qufei1993/skills-hub --skill dsh-error-handling
View this skill on GitHubqufei1993/skills-hub/skills/dsh-error-handling/SKILL.md
Pack stars
1,869
Pack installs
28
Alyn Score
47/99
Updated
10 days ago
License
MIT
– views – installs via Alyn

Install Dsh Error Handling

Pick your agent. Every command is ready to paste.

$npx skills add qufei1993/skills-hub --skill dsh-error-handling

The open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads dsh-error-handling when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the dsh-error-handling skill”. In Codex, type $dsh-error-handling.

The skill itself

SKILL.md

FolderGitHub

明确失败行为及处理责任

阅读项目上下文、生命周期和验证证据。沿用项目现有的错误约定。

  1. 追踪操作的公开入口、状态负责方、外部副作用和最终报告。建立简短对应关系:触发条件 → 错误分类 → 状态保证 → 处理者 → 用户可见结果。区分响应失败与操作失败。
  2. 用稳定标识区分已知业务错误;保留意外错误的原因,不把所有异常都转成成功默认值或同一个通用业务错误码。
  3. 明确失败后状态属于未变化、部分完成、已提交还是结果未知。只有状态负责方能证明恢复和继续执行的前提;无法证明时停止依赖该状态的后续工作。写入结果不明确时,使用真实服务支持的核对或幂等机制,不能仅根据异常文字无条件重试。
  4. 确保取消、回调错误和清理失败到达适当的处理位置。避免重复报告;保留足够的处理线索,不泄露秘密。
  5. 通过真实调用方验证副作用发生前后的失败,包括“已经提交但响应丢失”。分别断言可观察状态和报告内容;支持恢复时,覆盖恢复成功和恢复失败。

完成时说明明确的状态保证、负责的处理者和实际测试的失败场景。服务行为约定不足以建立保证时,如实报告结果未知。

Tips for Dsh Error Handling

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • It bundles reference files. The agent reads them only when needed, so they cost no context until then.
  • • It is part of a pack with 12 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Dsh Error Handling

What does the Dsh Error Handling skill do?

实现或审查错误传播、部分成功、结果未知、恢复、重试、取消或失败反馈时使用,明确状态保证和错误处理责任。

How do I install Dsh Error Handling?

Run "npx skills add qufei1993/skills-hub --skill dsh-error-handling" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Dsh Error Handling work in Cursor and Codex?

Yes. Dsh Error Handling uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

Is Dsh Error Handling free?

Dsh Error Handling is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.

Who made Dsh Error Handling?

Dsh Error Handling is published by qufei1993 in the qufei1993/skills-hub repository, together with 11 other skills.

Similar skills. From other creators.