Failure Registry Skill
Search and learn from the Agent Failure Registry — a community-driven database of agent failures, solutions, and lessons learned. When you hit a wall, check if someone else already climbed it.
Quick Start
Search for similar failures:
./scripts/search-registry.sh --category api_failure
./scripts/search-registry.sh --keyword "puppeteer"
./scripts/search-registry.sh --tag twitter --tag auth
Search everything:
./scripts/search-registry.sh --all
Use Cases
1. Search — When Things Break
When you encounter an error, search the registry before reinventing the wheel:
- By Category:
api_failure, auth_expiry, rate_limit, silent_failure, data_corruption, timeout, logic_error, dependency_break, permission_denied, other
- By Keywords: Tool names, error messages, symptoms
- By Tags: Platform, service, technology
The registry contains post-mortems from examples/ (curated) and submissions/ (community).
Search Results Include:
- Summary of what went wrong
- Root cause analysis
- Fix that worked
- Prevention strategies
- Lessons learned
2. Submit — Share Your Pain
When you solve a new failure, help the community:
- Document the failure following the schema
- Submit via GitHub PR (script can help generate template)
- Include context — what you tried, what worked, what didn't
Required Fields:
- Title, category, tags
- Summary, root_cause, fix
- Prevention steps, lessons learned
- Confidence level (1-5)
3. Learn — Stay Ahead
Periodically browse recent submissions to learn from others' failures before you hit them yourself.
Script Usage
The search-registry.sh script handles all the heavy lifting:
Arguments:
--category CATEGORY — Search specific failure category
--tag TAG — Search by tag (repeatable)
--keyword KEYWORD — Free-text search in all fields
--all — Show all entries (for browsing)
Examples:
# Find authentication issues
./scripts/search-registry.sh --category auth_expiry
# Find Twitter-related failures
./scripts/search-registry.sh --tag twitter
# Find Puppeteer issues
./scripts/search-registry.sh --keyword "puppeteer"
# Multiple criteria
./scripts/search-registry.sh --category api_failure --tag openai
# Browse everything
./scripts/search-registry.sh --all
Repository Structure
The Agent Failure Registry contains:
examples/ — Curated failure post-mortems
submissions/ — Community submissions
template.yaml — Template for new submissions
schema/postmortem.yaml — Schema validation
Categories Reference
- api_failure — API errors, timeouts, invalid responses
- auth_expiry — Authentication/token expiration issues
- rate_limit — Rate limiting, quota exceeded
- silent_failure — No error thrown, but wrong behavior
- data_corruption — Data integrity, parsing failures
- timeout — Operation timeouts, hanging processes
- logic_error — Flawed reasoning, incorrect assumptions
- dependency_break — External service/lib failures
- permission_denied — Access control, file permissions
- other — Miscellaneous failures
Tips
Before Searching:
- Extract key error messages or symptoms
- Identify the failing component (API, tool, process)
- Note the context (what were you trying to do?)
When Submitting:
- Be specific about the fix that worked
- Include what you tried that didn't work
- Rate your confidence in the solution (1-5)
- Tag with relevant technologies/services
For Prevention:
- Review failures in your domain periodically
- Update your error handling based on lessons learned
- Share edge cases and gotchas with the community
Implementation Notes
- Registry cloned to
/tmp/agent-failure-registry
- Uses PyYAML for parsing (with grep fallback)
- Searches both examples/ and submissions/
- Output formatted for readability
- Handles multiple search criteria
Remember: Every failure is a lesson. Document it, share it, learn from it.
1---2name: failure-registry3description: Search the Agent Failure Registry for known agent failures, solutions, and lessons learned. Use when encountering errors, debugging issues, or wanting to learn from other agents' documented post-mortems. Also supports submitting new failure post-mortems via GitHub PR.4---5
6# Failure Registry Skill
7
8Search and learn from the Agent Failure Registry — a community-driven database of agent failures, solutions, and lessons learned. When you hit a wall, check if someone else already climbed it.
9
10## Quick Start
11
12**Search for similar failures:**
13```bash
14./scripts/search-registry.sh --category api_failure
15./scripts/search-registry.sh --keyword "puppeteer"
16./scripts/search-registry.sh --tag twitter --tag auth
17```
18
19**Search everything:**
20```bash
21./scripts/search-registry.sh --all
22```
23
24## Use Cases
25
26### 1. Search — When Things Break
27
28When you encounter an error, search the registry before reinventing the wheel:
29
30- **By Category:** `api_failure`, `auth_expiry`, `rate_limit`, `silent_failure`, `data_corruption`, `timeout`, `logic_error`, `dependency_break`, `permission_denied`, `other`
31- **By Keywords:** Tool names, error messages, symptoms
32- **By Tags:** Platform, service, technology
33
34The registry contains post-mortems from `examples/` (curated) and `submissions/` (community).
35
36**Search Results Include:**
37- Summary of what went wrong
38- Root cause analysis
39- Fix that worked
40- Prevention strategies
41- Lessons learned
42
43### 2. Submit — Share Your Pain
44
45When you solve a new failure, help the community:
46
471. **Document the failure** following the schema
482. **Submit via GitHub PR** (script can help generate template)
493. **Include context** — what you tried, what worked, what didn't
50
51**Required Fields:**
52- Title, category, tags
53- Summary, root_cause, fix
54- Prevention steps, lessons learned
55- Confidence level (1-5)
56
57### 3. Learn — Stay Ahead
58
59Periodically browse recent submissions to learn from others' failures before you hit them yourself.
60
61## Script Usage
62
63The `search-registry.sh` script handles all the heavy lifting:
64
65**Arguments:**
66- `--category CATEGORY` — Search specific failure category
67- `--tag TAG` — Search by tag (repeatable)
68- `--keyword KEYWORD` — Free-text search in all fields
69- `--all` — Show all entries (for browsing)
70
71**Examples:**
72```bash
73# Find authentication issues
74./scripts/search-registry.sh --category auth_expiry
75
76# Find Twitter-related failures
77./scripts/search-registry.sh --tag twitter
78
79# Find Puppeteer issues
80./scripts/search-registry.sh --keyword "puppeteer"
81
82# Multiple criteria
83./scripts/search-registry.sh --category api_failure --tag openai
84
85# Browse everything
86./scripts/search-registry.sh --all
87```
88
89## Repository Structure
90
91The Agent Failure Registry contains:
92- `examples/` — Curated failure post-mortems
93- `submissions/` — Community submissions
94- `template.yaml` — Template for new submissions
95- `schema/postmortem.yaml` — Schema validation
96
97## Categories Reference
98
99- **api_failure** — API errors, timeouts, invalid responses
100- **auth_expiry** — Authentication/token expiration issues
101- **rate_limit** — Rate limiting, quota exceeded
102- **silent_failure** — No error thrown, but wrong behavior
103- **data_corruption** — Data integrity, parsing failures
104- **timeout** — Operation timeouts, hanging processes
105- **logic_error** — Flawed reasoning, incorrect assumptions
106- **dependency_break** — External service/lib failures
107- **permission_denied** — Access control, file permissions
108- **other** — Miscellaneous failures
109
110## Tips
111
112**Before Searching:**
113- Extract key error messages or symptoms
114- Identify the failing component (API, tool, process)
115- Note the context (what were you trying to do?)
116
117**When Submitting:**
118- Be specific about the fix that worked
119- Include what you tried that didn't work
120- Rate your confidence in the solution (1-5)
121- Tag with relevant technologies/services
122
123**For Prevention:**
124- Review failures in your domain periodically
125- Update your error handling based on lessons learned
126- Share edge cases and gotchas with the community
127
128## Implementation Notes
129
130- Registry cloned to `/tmp/agent-failure-registry`
131- Uses PyYAML for parsing (with grep fallback)
132- Searches both examples/ and submissions/
133- Output formatted for readability
134- Handles multiple search criteria
135
136Remember: Every failure is a lesson. Document it, share it, learn from it.