dev-error-handling SKILL.md skillA
dev-error-handling from joaoguirunas/team-os is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add joaoguirunas/team-os/dev-error-handling@v1.1Pins v1.1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- joaoguirunas/team-os
- Path
.claude/skills/dev-error-handling/SKILL.md- Versions recorded
- 2
- Latest version
- v1.1, committed Sep 26, 2026
- First version recorded
- Apr 23, 2026
- Size
- 6,392 bytes
- Repository stars
- 5
- License
- MIT
Padrões de resilência e error handling para software complexo — retry, circuit breaker, timeouts, error boundaries, logging estruturado.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Error Handling & Resilience — Software Complexo
## Princípio fundamental
**Falha é inevitável. Design para falha, não apenas para sucesso.**
Todo código que interage com: banco de dados, APIs externas, filesystem, serviços de terceiros — deve ter error handling explícito.
## Retry com Exponential Backoff
```typescript
async function withRetry<T>(
fn: () => Promise<T>,
options: { maxAttempts?: number; baseDelay?: number } = {}
): Promise<T> {
const { maxAttempts = 3, baseDelay = 300 } = options
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
try {
return await fn()
} catch (error) {
if (attempt === maxAttempts) throw error
// Não fazer retry em erros 4xx (erro do cliente, não transitório)
if (error.status >= 400 && error.status < 500) throw error
const delay = baseDelay * Math.pow(2, attempt - 1) // 300ms, 600ms, 1200ms
const jitter = Math.random() * 100
await sleep(delay + jitter)
}
}
}
// Uso
const user = await withRetry(() => externalApi.getUser(id), { maxAttempts: 3 })
```
## Timeout Explícito
```typescript
async function withTimeout<T>(promise: Promise<T>, ms: number): Promise<T> {
…Read the whole file at its exact version.
How to install
mdr add joaoguirunas/team-os/dev-error-handling@sha256:1483e52a64dc943cThe line at the top of this page pins the label v1.1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_bepul2xvrux23p3h)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Apr 23, 2026 and Sep 26, 2026, about one every 156 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.1 latest | 2026-09-26 | 8a9bf22 | 6,392 B | A | view · diff |
| v1.1 | 2026-04-23 | b70017d | 6,390 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6392 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
joaoguirunas/team-os · 5 stars · license MIT · pushed 2026-10-14 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_bepul2xvrux23p3h GET https://markdownregistry.com/api/v1/resolve?ref=joaoguirunas/team-os/dev-error-handling GET https://markdownregistry.com/api/v1/blob/1483e52a64dc943c1cf99f224bb40c3bd7f147f7d1813f592cac094fa229e133
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.