elliotjlt/claude-skill-potions/learn-from-this
Claude Code and agent skill by elliotjlt/claude-skill-potions
- community
Checking that the SKILL.md file is still in the repository.
When a session contains a significant failure, misunderstanding, or repeated mistake, analyse the root cause and draft a new skill that would have prevented it. The skill library should grow from real failures, not hypothetical improvements. Every painful debugging session is a skill waiting to be written.
Install
npx vskill@latest install elliotjlt/claude-skill-potions/learn-from-thisSKILL.md
Learn From This
<purpose> The best skills come from real pain. When something goes wrong - wasted hours, misunderstood requirements, broken code that looked correct - there's a lesson embedded in that failure. This skill extracts that lesson and encodes it as a new skill, so the same mistake becomes impossible to repeat. </purpose>
Why This Matters
<philosophy> Most skill libraries are written in advance, based on what someone THINKS will be useful. They're theoretical. Abstract. Generic.
The best skills are written AFTER failure, based on what actually went wrong. They're specific. Battle-tested. Born from real pain.
This skill is meta: it creates other skills. The skill library becomes a living document of hard-won lessons. Every entry is a scar that healed into armour. </philosophy>
When To Activate
<triggers> Trigger at session end or mid-session when you observe:
Wasted Time:
- Spent >30 minutes on something that should have taken 5
- Went down a wrong path and had to backtrack significantly
- Debugged something that had an obvious cause (in hindsight)
Misunderstandings:
- Built the wrong thing because requirements weren't clarified
- Made assumptions that turned out to be wrong
- Solved an XY problem instead of the real problem
Repeated Patterns:
- Made the same type of mistake twice in one session
- Hit a failure mode you've seen before
- Caught yourself doing something you know is bad practice
Near Misses:
- Almost deployed broken code to production
- Almost deleted important data
- Caught a bug at the last second
User Frustration:
- User had to repeat themselves
- User expressed frustration at wasted time
- Conversation got contentious or confused
</triggers>
Instructions
Step 1: Identify The Failure
What specifically went wrong?
Step 2: Find The Pattern
Is this a general pattern or a one-off?
Questions to ask:
- Could this happen again in a different context?
- Is this a Claude failure mode or a human-Claude interaction failure?
- What was the earliest point this could have been caught?
- What trigger could have detected this situation?
Step 3: Draft The Skill
Step 4: Validate The Skill
Before adding to the library:
Step 5: Propose Addition
Examples
Example 1: From "Built Wrong Thing" Failure
The Failure: User asked to "add authentication." I built a full OAuth2 implementation. User wanted a simple username/password. Wasted 2 hours.
The Pattern: I assumed complexity when simplicity was wanted. Didn't ask "what kind?"
The Skill:
Example 2: From "Didn't Test Edge Case" Failure
The Failure: Wrote function, said "done", user tried empty string, it crashed. Basic edge case I should have tested.
The Pattern: Declared victory without testing obvious edge cases.
The Skill: This failure contributed to the prove-it skill. Instead of creating a new skill, the lesson was: existing skill wasn't being followed.
Lesson: Sometimes failures mean "use existing skill" not "create new skill."
Example 3: From "Lost Context" Failure
The Failure: Long session, 50+ messages. User referenced decision from message #12. I had forgotten and contradicted it. User frustrated.
The Pattern: In long sessions, I lose track of earlier decisions and context.
The Skill:
Meta: This Skill Improving Itself
If this skill fails to capture a lesson properly, that itself is a failure to learn from. The skill should be updated based on its own shortcomings.
Questions to ask periodically:
- Are the skills being generated actually useful?
- Are they too specific? Too generic?
- Is the trigger-action format working?
- What failures are slipping through?
NEVER
- Create skills for one-off flukes (must be a pattern)
- Create skills that duplicate existing ones
- Create skills too vague to trigger
- Let a painful failure pass without extracting the lesson
- Blame the user when the failure was yours
ALWAYS
- Be honest about what went wrong
- Find the root cause, not the symptom
- Write skills specific enough to trigger
- Include the origin failure (keeps it grounded)
- Consider enhancing existing skills before creating new ones
The Failure That Spawned This Skill
Every skill in this library that wasn't written after real failure. The theoretical ones are weaker than the battle-tested ones. This skill ensures future additions come from real pain.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/learn-from-this/SKILL.md
Popularity
- Repository stars
- 62
- Repository forks
- 2
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 31 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/elliotjlt/claude-skill-potions/learn-from-this)