deepseek-harness: Skill for Claude Code

.agents/skills/dsh-error-handling/SKILL.md

dsh-error-handling is a skill for Claude Code, Codex from deepseek-ai/deepseek-harness. It costs 38 tokens per session (1,976 once invoked), scanned A, original, MIT.

A set of guidelines for designing and reviewing how software handles failures. It covers error types, recovery, retries, background work, cleanup, and user-visible reports.

In plain words
What is it for?
It helps define failure ownership, safe recovery, retry limits, cancellation, containment, and useful error reporting.
Why use it?
It helps prevent errors from being hidden or treated as successful work when the system's state is uncertain or unsafe.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is deepseek-ai/deepseek-harness's own configuration. It tells Claude Code and Codex how to work on deepseek-harness itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything deepseek-harness configures →

About the project

DeepSeek Harness is an open-source framework for building and running AI agents, organized so that its functionality is provided through plugins. Developers use it to launch agent workflows through a local web interface or from source, while the catalogue add-ons extend the harness as plugins.

deepseek-ai/deepseek-harness · 288,790 stars · on GitHub · deepseek.com

Reuse

Borrowing it

Nothing to install: this file belongs to deepseek-ai/deepseek-harness. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/deepseek-ai/deepseek-harness/master/.agents/skills/dsh-error-handling/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/deepseek-ai/deepseek-harness

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dsh-error-handling

README.md
[![agentmods](https://agentmods.dev/badge/skills/deepseek-ai/deepseek-harness/dsh-error-handling/github.svg)](https://agentmods.dev/skills/deepseek-ai/deepseek-harness/dsh-error-handling)
Your own site
<a href="https://agentmods.dev/skills/deepseek-ai/deepseek-harness/dsh-error-handling"><img src="https://agentmods.dev/badge/skills/deepseek-ai/deepseek-harness/dsh-error-handling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dsh-error-handling

Your own site · 80×15
<a href="https://agentmods.dev/skills/deepseek-ai/deepseek-harness/dsh-error-handling"><img src="https://agentmods.dev/badge/skills/deepseek-ai/deepseek-harness/dsh-error-handling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,976 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.01976
Opus 5.5 $0.00015 $0.00790
Sonnet 5.5 $0.00008 $0.00395
Haiku 4.5 $0.00004 $0.00198

Measured 16d ago against content hash 0663f5d34580, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dsh-error-handling scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/dsh-error-handling/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DeepSeek Harness Error Handling

Define failures, their owners, and what remains safe after failure.

Typed, structured failures

Expected failures need declared types, stable discriminants, and handling-relevant details. Reuse package error conventions, preserve causes, and separate machine identity from display text. Never route handling by parsing messages. Unexpected defects such as assertNever may remain plain Error; containment must never turn them into success.

An error class that carries a machine code extends HarnessError from dsh-error (also re-exported by dsh-llm), directly or through its package's error class, never bare Error. Prefer one error class per owning package or domain over a class per failure; a separate class is justified when callers catch it by type or it carries its own structured fields, such as ToolArgsError.violations. name is the class name, except for cancellation (below), and code values are stable UPPER_SNAKE_CASE strings, usually prefixed by the domain and declared as a union or constants beside the class. A code names the failure class its consumers act on, not the call site; add a code rather than reuse one whose meaning differs. The error class and code guide defines class choice, naming, the standard conditions, declaration, foreign-error conversion, and compatibility.

Convert foreign failures where the dependency is owned. Node errno, SDK, protocol, native, worker, and cross-realm errors become the owning package's error with the original as cause; a foreign numeric or vendor code belongs in the message, not in code. Preserve structure across layers: never re-wrap a HarnessError in a plain Error, store only its message for a later rethrow, or drop its name and code while redacting text. A process or worker boundary transports name and code and reconstructs the error.

Tool failures

The tool registry keeps error.name and error.code on tool/result when the producer supplies them: a HarnessError thrown by the tool body, a pre-execute deny, guard denial, or post-execute block with info (including the registry's approval denials, ApprovalError with APPROVAL_REJECTED, APPROVAL_CANCELLED, or APPROVAL_UNAVAILABLE), the registry's own cancellation result (AbortError with ABORTED or ABORTED_BEFORE_DISPATCH, also applied to a signal reason or an Error named AbortError that the body or a tools/execute wrapper throws after cancellation), or a tools/execute wrapper result such as the timeout policy's TOOL_TIMEOUT. Any other thrown value, and a guard denial or block without info, persist only text that retry policy, UI, and analytics cannot route on. Every expected failure reachable from a tool body therefore throws a HarnessError, normally the owning domain's subclass:

Read the full file on GitHub · 90 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · +42 lines 0663f5d34580
  2. 18d ago Changed · +17 lines · +8 tokens per session f48da246d885
  3. 1mo ago First seen · 31 lines · 30 tokens per session scan A fcde7e278056

Subscribe to this mod's changes

dsh-error-handling is a skill published in the GitHub repository deepseek-ai/deepseek-harness (288,790 stars, last pushed 2d ago), licensed MIT. It adds 38 tokens to every session and 1,976 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-10.

Related

dsh-error-handling compared with skills from other repositories

dsh-error-handling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dsh-error-handlingdeepseek-ai/deepseek-harnessSkill289k2d agoMITA38Claude Code, Codex
diagnosing-bugsgongyijie85/mattpocock-skills-dshSkill3312d agoMITA40Claude Code, Codex
doctoromagents/omagentsSkill3612d agoMITA56Codex
refactoromagents/omagentsSkill3612d agoMITA55Codex
ast-grepomagents/omagentsSkill3612d agoMITA55Codex
remove-ai-slopsomagents/omagentsSkill3612d agoMITA53Codex
remove-deadcodeomagents/omagentsSkill3612d agoMITA55Codex