research-after-failure
Use after 2 consecutive failed attempts at solving a problem - STOP guessing and research documentation, codebase, and online resources before resuming
npx skills add majiayu000/claude-skill-registry --skill research-after-failure-troykelly-claude-skills --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Research After Failure ## Overview After 2 failed attempts, stop and research. Don't keep trying the same thing. **Core principle:** Insanity is doing the same thing and expecting different results. **Trigger:** Two consecutive failed attempts at solving a problem. **Announce at start:** "I've failed twice. I'm stopping to research before trying again." ## The Rule ``` Attempt 1: Try solution │ ▼ Failed? │ ┌──────┴──────┐ │ │ Yes No → Done │ ▼ Attempt 2: Try different approach │ ▼ Failed? │ ┌──────┴──────┐ │ │ Yes No → Done │ ▼ STOP │ ▼ RESEARCH ← You are here │ ▼ Attempt 3: Try with new knowledge ``` ## What Counts as a Failure | Failure | Not a Failure | |---------|---------------| | Tests don't pass | Minor syntax error fixed | | Build breaks | Typo corrected | | Feature doesn't work | IDE autocomplete issue | | Same error recurs | Different error (progress) | | No progress made | Partial progress | ## The Research Protocol ### Step 1: Document the Failures Before researching, document what was tried: ```markdown ## Failed Attempts ### Attempt 1 **Approach:** [What was tried] **Result:** [What happened] **Error:** [Error message if any] ### Attempt 2 **Approach:** [What was tr
- Overview
- The Rule
- What Counts as a Failure
- The Research Protocol
- Step 1: Document the Failures
- Step 2: Research Repository Documentation
- Step 3: Research Existing Codebase
- Step 4: Research Online
- Step 5: Synthesize Findings
- Step 6: Update Issue
- Step 7: Resume with New Knowledge
- When to Escalate
- Research Anti-Patterns
- What to Research First
Check README cat README.md Check docs directory ls -la docs/ cat docs/[relevant-topic].md Check CONTRIBUTING cat CONTRIBUTING.md Search for relevant docs grep -r "[keyword]" docs/ Find similar patterns
What does the research-after-failure skill do?
Use after 2 consecutive failed attempts at solving a problem - STOP guessing and research documentation, codebase, and online resources before resuming
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill research-after-failure-troykelly-claude-skills --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
