dsh-error-handling
Skill0 starsChanged 31 days agoMITView on GitHub
Apply error-handling principles when designing or reviewing failures, recovery, retries, background tasks, and user-visible error reports.
3 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- qufei1993/skills-hubtheir own version, first seen Nov 1, 2026
- See-Sol-Lab/DeepSeekGUIedited, first seen Oct 25, 2026
- deepseek-ai/deepseek-harnessedited, first seen Oct 13, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- deepseek-ai/deepseek-harness★ 282k22% same
- See-Sol-Lab/DeepSeekGUI★ 27499% same
Wrote their own version · 1
- qufei1993/skills-hub★ 1.9ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository60 other files it gives its agents.
- skills/universal/vercel-composition-patterns/AGENTS.mdAGENTS.md
- skills/universal/vercel-react-best-practices/AGENTS.mdAGENTS.md
- frontend-designSkill
- internal-commsSkill
- mcp-builderSkill
- skill-creatorSkill
- theme-factorySkill
- webapp-testingSkill
- dsh-find-simplificationsSkill
- dsh-trim-cot-leakageSkill
- record-browser-gifSkill
- glm-master-skillSkill
- glmocr-sdkSkill
- glmv-doc-based-writingSkill
- glmv-prd-to-appSkill
- glmv-prompt-genSkill
- glmv-resume-screenSkill
- glmv-web-replicationSkill
- cli-creatorSkill
- define-goalSkill
- gh-address-commentsSkill
- gh-fix-ciSkill
- jupyter-notebookSkill
- linearSkill
- migrate-to-codexSkill
- openai-docsSkill
- playwrightSkill
- security-best-practicesSkill
- security-ownership-mapSkill
- security-threat-modelSkill
- vercel-deploySkill
- amocrm-followupSkill
- avito-repliesSkill
- bitrix24-leadsSkill
- ozon-questionsSkill
- ru-legal-docsSkill
- tkbk-setupSkill
- tz-from-chatSkill
- wb-reviewsSkill
- yandex-market-stockSkill
- yookassa-sbpSkill
- api-and-interface-designSkill
- brainstormingSkill
- code-review-and-qualitySkill
- debugging-and-error-recoverySkill
- documentation-and-adrsSkill
- executing-plansSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- requesting-code-reviewSkill
- security-and-hardeningSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- vercel-composition-patternsSkill
- vercel-react-best-practicesSkill
- verification-before-completionSkill
- web-design-guidelinesSkill
- writing-guidelinesSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Every final report needs a readable summary, affected operation, and safe next action.
- Distinctive: line 32
Verify resulting state and visible outcomes, not merely that an exception was caught.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
Catch, recover, or stop
For each failure, define handling and reporting owners, containment, and guarantees in the owning API documentation: valid invariants, absent/partial/committed/unknown effects, and cleanup responsibility. Background work retains these obligations.
Catching limits exception propagation, not mutations. Only the affected state's owner can establish safe continuation. Otherwise stop dependent work, discard invalid state or instances, or escalate. Logging alone is not recovery. Retries require safe repetition, cancellation, and an explicit owner; finite operations need budgets, while continuing supervision needs lifecycle ownership and observable degradation.
Localized, actionable, visible reports
Every final report needs a readable summary, affected operation, and safe next action. Localize through the receiving application's locale mechanism where one exists; other diagnostics use their existing output language. Keep sensitive internal details out of user-facing text.
Untrusted state or unknown outcomes must be visible through UI or default-enabled, accessible logs: report the impact, uncertainty, system disposition, and safe next step. Persistent invalid state needs persistent visibility. Never claim success, rollback, or safe retry without guarantees. Reporting failures need an independent fallback.
Verify resulting state and visible outcomes, not merely that an exception was caught.
Foundations
Meyer's Object-Oriented Software Construction (1997): contracts and invariants; Sutter's Exceptional C++ (1999): exception safety guarantees; Armstrong's thesis (2003): isolation and supervision.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

