.opencode/commands/learn.md
Extract patterns, learnings, and reusable insights from the current session: $ARGUMENTS
Analyze the conversation and code changes to extract:
Pattern: [Name]
If patterns are significant, suggest updates to:
skills/coding-standards/SKILL.mdskills/[domain]/SKILL.mdrules/[category].md{
"trigger": "[situation that triggers this learning]",
"action": "[what to do]",
"confidence": 0.7,
"source": "session-extraction",
"timestamp": "[ISO timestamp]"
}
TIP: Run /learn periodically during long sessions to capture insights before context compaction.