Golangidioms:为 AI Agent 固化 Go 惯用法与代码风格
Golangidioms(@user_3c6cb52e/golang-idioms-lr-ao90)是 SkillHub 上的社区 Go 开发 Skill,v1.0.0,无需 API Key。通过 SKILL.md 固化错误处理(%w 包装、哨兵错误、errors.Is)、接口设计(小接口、Accept interfaces return structs)等惯用法,适配 Claude Code、Codex、Cursor 等客户端。本文说明定位、已核实功能、skillhub install 安装路径与典型对话用法,并提示包内并发章节可能被截断。
Read Moredsh-tool-error-hints: 给失败的工具结果追加可执行的提示
DSH智能体插件dsh-tool-error-hints旨在解决弱模型在工具失败时反复猜测错误路径的问题。该插件在工具执行失败后,追加可执行的上下文提示,包括提供存在路径、命令探测建议、权限说明及命令修正等。安装简单,遵循只读、不覆盖及异常全吞的设计约束,通过日志确认加载,有效辅助模型修正错误。
Read Moredsh-error-explainer: DSH Structured Error Stack Trace Parsing
The DSH plugin dsh-error-explainer is designed to address the challenge of analyzing error logs in multilingual environments. As a plugin for DeepSeek Harness, maintained by developer MkaliezZ, its core functionality is to structurally parse and extract metadata from unstructured stack traces in Python, Node.js, Rust, and Java, providing compact evidence for model inference. This plugin does not perform root-cause diagnosis or automatic repair; it serves solely as a data preprocessing tool. Installation requires obtaining the source code manually, and users should comply with the MIT License.
Read Moredsh-subagent-error-details: Forward Subagent Failure Details
This plugin aims to address information loss when background subagents fail in DeepSeek Harness (DSH). When a subagent fails due to API rate limits (e.g., 429 errors), the core typically displays only a generic notification. The plugin listens to the `subagent/end` event, reads the specific failure details from the session store, and routes the actual error cause (e.g., `RATE_LIMIT: 429`) back to the parent agent, ensuring accuracy in debugging and monitoring.
Read MoreDeepSeek Harness Plugin: dsh-error-handling (Error-Handling Patterns)
`satan9394/dsh-error-handling` is a workflow plugin for DeepSeek Harness (DSH), designed to address exception-handling pain points in agent development. It provides a pattern-based error-management mechanism featuring layered strategies, typed classifications, graceful degradation, observability, and recovery capabilities, which can effectively prevent workflow interruptions or infinite loops. The plugin currently has no official installation command and must be obtained from a community directory or GitHub. Before installation, pay attention to permission and license requirements.
Read MoreIntroduction to Exception Handling: Using try-except Structure to Make Your Program More Robust
Python exceptions are unexpected errors during program execution (e.g., division by zero, input errors), which can cause crashes if unhandled. The `try-except` structure enables graceful exception handling and enhances program robustness. The `try` block wraps code that may fail (e.g., input processing, file reading), while `except` blocks handle specific exception types (e.g., `ValueError`, `ZeroDivisionError`). Multiple `except` clauses should be ordered by exception specificity to prevent broader exceptions from intercepting more specific ones. In practice, for division calculations, the `try` block attempts integer input and quotient calculation, with `except` catching non-integer inputs or division by zero and providing clear prompts. The `else` block executes success logic when no exceptions occur in `try`, and the `finally` block always runs (e.g., closing files to prevent resource leaks). Best practices include using specific exception types, providing clear error messages, combining `else`/`finally` appropriately, and avoiding over-catching (e.g., empty `except` clauses or directly catching `Exception`).
Read More