Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jamestorrevillas/dev-skills --skill self-healing-mindsetgit clone --depth 1 https://github.com/jamestorrevillas/dev-skillsWrote 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.
[](https://agentmods.dev/skills/jamestorrevillas/dev-skills/self-healing-mindset)<a href="https://agentmods.dev/skills/jamestorrevillas/dev-skills/self-healing-mindset"><img src="https://agentmods.dev/badge/skills/jamestorrevillas/dev-skills/self-healing-mindset/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.
<a href="https://agentmods.dev/skills/jamestorrevillas/dev-skills/self-healing-mindset"><img src="https://agentmods.dev/badge/skills/jamestorrevillas/dev-skills/self-healing-mindset.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00101 | $0.01900 |
| Opus 5.5 | $0.00040 | $0.00760 |
| Sonnet 5.5 | $0.00020 | $0.00380 |
| Haiku 4.5 | $0.00010 | $0.00190 |
Grade A, and why
self-healing-mindset scanned grade A with 1 finding 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 3mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
const response = await fetch(url, { How it starts
The opening of the file, as written. The whole thing — 258 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Self-Healing Mindset
Core Philosophy
"Everything will eventually fail over time." — Werner Vogels, Amazon CTO
Self-healing is not a feature you add — it's a design philosophy you start with. The question is never "will this fail?" but "when this fails, what happens next?"
The shift: From reactive firefighting → proactive resilience engineering.
The same mindset applies at every level: code, systems, AI agents, and your own development practice.
The Detect–Decide–Act Loop
Every self-healing system follows this pattern:
DETECT → Monitor signals (health checks, error rates, latency, business KPIs)
DECIDE → Select recovery strategy (retry, fallback, scale, restart, degrade)
ACT → Execute recovery (automatically or with human confirmation)
VERIFY → Confirm recovery succeeded
LEARN → Update the healing logic based on what worked
```text
This loop runs continuously. Design every system component with this loop in mind.
---
## Resilience Patterns in Code
### Retry with Exponential Backoff
For transient failures (network timeouts, rate limits):
```typescript
async function withRetry<T>(
fn: () => Promise<T>,
maxAttempts = 3,
baseDelayMs = 1000
): Promise<T> {
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
try {
return await fn()
} catch (error) {
if (attempt === maxAttempts) throw error
const delay = baseDelayMs * Math.pow(2, attempt - 1)
await sleep(delay + Math.random() * 100) // jitter
}
}
throw new Error('Max retries exceeded')
}
Circuit Breaker
Prevents cascading failures when a dependency is down:
CLOSED (normal) → failures exceed threshold → OPEN (blocking calls)
OPEN → after timeout → HALF-OPEN (test one call)
HALF-OPEN → success → CLOSED | failure → OPEN
```text
Use: Resilience4j (Java), Polly (.NET), opossum (Node.js), tenacity (Python)
### Bulkhead
Isolate failures to prevent them spreading:
- Separate thread pools per service dependency
- Database connection pools per tenant
- Resource limits per endpoint
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.
- 3mo ago First seen · 258 lines · 0 tokens per session scan A 1cdabf53d2ec
self-healing-mindset is a skill published in the GitHub repository jamestorrevillas/dev-skills (4 stars, last pushed 8mo ago), licensed MIT. It adds 101 tokens to every session and 1,900 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
self-healing-mindset compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| self-healing-mindsetjamestorrevillas/dev-skills | Skill | 4 | 8mo ago | MIT | A | 101 | Claude Code, Codex |
| qt-qml-profilerTheQtCompanyRnD/agent-skills | Skill | 577 | 6d ago | none | A | 111 | Claude Code |
| debug-behaviorHenriqueCotta/ownership-driven-ai-customization-architecture | Skill | 6 | 7mo ago | MIT | A | 16 | Claude Code, Codex |
| oracle-sql-diagnosisgabrielrovesti/ai-agent-skills | Skill | 1 | 1mo ago | none | A | 42 | Claude Code, Codex |
| springboot-ticket-diagnosisgabrielrovesti/ai-agent-skills | Skill | 1 | 1mo ago | none | A | 38 | Claude Code, Codex |
| release-itwondelai/skills | Skill | 2.8k | 8d ago | MIT | A | 131 | Claude Code, Codex |
| om-auto-fix-issueopen-mercato/skills | Skill | 284 | yesterday | MIT | A | 124 | Claude Code, Codex |