用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill learn-from-this命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
| Use when this capability is needed.
> Use when this capability is needed.
Review architecture and API design for the vfs-s3 project. Use when the user mentions @architect, asks to review an issue's design, discuss module boundaries, API shape, or architectural decisions for vfs-s3. Also trigger when the user wants to create an ADR (Architecture Decision Record) or evaluate a technical approach for the project. Intended for dispatch from Codex automation or Claude routines; GitHub trigger phrase: @vfs-s3-bot please prepare design doc Use when this capability is needed.
基于 SOC 职业分类
正在显示 SKILL.md
| name | learn-from-this |
| description | | Use when this capability is needed. |
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.
Wasted Time:
Misunderstandings:
Repeated Patterns:
Near Misses:
User Frustration:
What specifically went wrong?
Failure Analysis:
What happened:
[Specific description of the failure]
What should have happened:
[The correct outcome]
Time/effort wasted:
[Rough estimate]
Root cause:
[Why did this actually happen?]
Is this a general pattern or a one-off?
Questions to ask:
---
name: [kebab-case-name]
description: |
When [trigger condition that would have caught this],
[action that would have prevented the failure].
[Why this matters in one sentence].
allowed-tools: |
[only what's needed]
---
# [Skill Name]
<purpose>
[One paragraph: what problem this prevents, born from real experience]
</purpose>
## When To Activate
[Specific triggers based on the failure pattern]
## Instructions
[Steps to prevent the failure]
## NEVER
[Anti-patterns that led to the failure]
## ALWAYS
[Behaviours that would have prevented it]
## The Failure That Spawned This Skill
[Brief description of the original failure - keeps it grounded]
Before adding to the library:
Skill Validation:
Would this skill have prevented the original failure?
[ ] Yes - clear trigger and action
[ ] Partially - helps but doesn't fully prevent
[ ] No - need to rethink
Is the trigger specific enough to activate?
[ ] Yes - clear condition
[ ] No - too vague, won't trigger reliably
Is it general enough to be useful again?
[ ] Yes - pattern will recur
[ ] No - too specific to this one case
Does a similar skill already exist?
[ ] No - new pattern
[ ] Yes - maybe enhance existing skill instead
New Skill Proposal:
Name: [skill-name]
Born from: [brief description of the failure]
Would have prevented: [specific outcome]
Skill file:
[full SKILL.md content]
Add to library?
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:
---
name: how-fancy
description: |
When a task has multiple complexity levels (auth, database, UI),
ask which level before implementing. Don't assume enterprise
when simple is wanted. Don't assume simple when robust is needed.
One question saves hours.
allowed-tools: |
file: read
---
# How Fancy?
<purpose>
Tasks like "add auth" or "set up database" have wildly different
implementations based on needs. A question takes 10 seconds. The
wrong assumption wastes hours.
</purpose>
## When To Activate
Before implementing anything with multiple complexity tiers:
- Authentication (basic, session, OAuth, SSO)
- Database (SQLite, Postgres, distributed)
- Caching (memory, Redis, CDN)
- UI (simple, animated, accessible)
## Instructions
Ask:
"Before I start: what level of [X] do you need?
Simple: [description]
Standard: [description]
Robust: [description]
This determines the approach."
## The Failure That Spawned This Skill
Built full OAuth2 when user wanted username/password. 2 hours wasted.
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."
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:
---
name: breadcrumbs
description: |
In sessions longer than 20 messages, periodically summarise:
key decisions made, current state, remaining work. Combat
context degradation. Keep a trail back to important moments.
allowed-tools: |
file: read
---
# Breadcrumbs
<purpose>
Long conversations degrade context. Decisions made early get
forgotten. Users repeat themselves. The fix: explicit checkpoints
that summarise the trail so far.
</purpose>
## When To Activate
Every ~15-20 messages in an ongoing session, or when:
- Starting a new phase of work
- User seems to be repeating something
- You're unsure if something was already decided
## Instructions
Drop a breadcrumb:
"Quick checkpoint:
Decisions so far:
- [Key decision 1]
- [Key decision 2]
Current state:
- [What's done]
- [What's in progress]
Next up:
- [What's remaining]
Anything I'm forgetting?"
## The Failure That Spawned This Skill
Message 50 of a long session. Contradicted a decision from message 12.
User had to re-explain. Frustration ensued.
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:
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.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.