Always and Automatically improve skills after each use by capturing learnings and anti-patterns
After ANY skill is used, this meta-skill triggers to:
Relationship with self-improve:
skill-reinforcement) = WHEN to update (post-use triggers)self-improve skill = HOW to update (templates, structures, decision trees)Invoke this skill automatically when:
.opencode/skill/*/SKILL.md completesAfter using a skill, note:
- Skill used: [skill-name]
- Task: [what was being done]
- Outcome: [success/partial/failure]
- Token cost: [high/medium/low]
- Time taken: [fast/normal/slow]
Ask these questions:
| Category | Where to Add | Example |
|---|---|---|
| New shortcut | "Token Saving Tips" | OTP visible in email preview |
| Failure mode | "Common Issues" | Popup blocker breaks flow |
| Better pattern | Main workflow | Check login state first |
| Anti-pattern | "Anti-Patterns to Avoid" | Don't snapshot spam |
| Environment quirk | "Prerequisites" or "Notes" | Session persists |
# Read current skill
cat .opencode/skill/[skill-name]/SKILL.md
# Edit to add learning in appropriate section
# Use the Edit tool to append or modify
Ensure updates are:
### [Shortcut Name]
**Discovery**: [How it was found]
**Before**: [Old approach]
**After**: [New approach]
**Savings**: [Token/time reduction]
| Issue | Symptom | Fix |
| ------ | -------------- | ---------------- |
| [Name] | [What you see] | [How to resolve] |
### Don't: [Bad Pattern Name]
```javascript
// BAD - [explanation]
[bad code]
```
// GOOD - [explanation]
[good code]
### For Workflow Improvements
```markdown
## Updated: [Section Name]
[New content that replaces or augments existing]
> **Note**: Updated [date] after discovering [context]
Context: Testing staging branch, went through full login flow Learning: Chrome MCP persists sessions - was already logged in Action: Added "Session Persistence is Your Friend" section with check-first pattern
Context: Opened email, waited for load, extracted OTP Learning: OTP visible in Gmail list preview without opening email Action: Updated OTP section with faster "search + list preview" method
Context: Manually constructed URL, got it wrong
Learning: Can extract URL directly from Vercel bot's PR comment
Action: Added gh pr view command to get URL automatically
Every skill should have these sections (add if missing):
## What I Do
[Core purpose]
## Prerequisites
[Requirements]
## Workflow
[Main steps]
## Common Issues
[Failure modes and fixes]
## Token Saving Tips
[Efficiency patterns]
## Anti-Patterns to Avoid
[What NOT to do]
## Real Examples
[Actual usage examples]
## Learnings Log
[Append-only log of discoveries - optional]
When reinforcing a skill, check if learnings apply to related skills:
| Skill | Related Skills |
|---|---|
| test-staging-branch | Any Chrome MCP skill |
| skill-reinforcement | All skills (meta) |
| self-improve | skill-reinforcement (companion) |
| chrome-devtools-mcp | test-staging-branch, gmail |
| safe-infrastructure | new-vault-implementation |
Cross-pollinate learnings when applicable.
If reinforcement reveals a need for new capability, use the self-improve skill's decision tree:
Need to extend capabilities?
ā
āā Just need docs/commands? ā SKILL
āā Need specialized AI persona? ā AGENT
āā Need event hooks? ā PLUGIN
āā Need callable function? ā TOOL
āā Need external integration? ā MCP SERVER
After completing any skill, automatically ask:
If answers exist, invoke skill-reinforcement.
Every ~10 skill uses, review:
This skill should also improve itself. Track:
[ ] Skill completed
[ ] Outcome noted (success/fail/partial)
[ ] Any surprises? ā Document
[ ] Any shortcuts found? ā Add to tips
[ ] Any failures? ā Add to issues
[ ] Could be faster? ā Add anti-pattern
[ ] Update skill file
[ ] Validate formatting
[ ] Done
UPDATE IMMEDIATELY - Don't wait until end of conversation.
When any of these happen, stop and update the relevant skill:
-d vs -F for curl)Example:
ā "I'll note this for later"
ā
*immediately edits skill file*
git fetch --prune origin first, delete with a loop that tolerates missing refs, then prune again to verify only origin/main remains.