learn

Installation
SKILL.md

Learn Error Pattern Skill

Parse a user-provided "error -> solution" pair, classify it, store it in the cross-session learning database at high confidence, and confirm back. One pattern per invocation. All database operations go through the learning-db.py CLI.

Instructions

Step 1: Parse Input

Extract two fields from the user's input:

  • error_pattern: The error message or symptom text
  • solution: The fix or resolution text

Accepted input formats:

  • /learn "error pattern" -> "solution"
  • /learn "error pattern" => "solution"
  • Freeform: "teach that X means Y" or "remember: when X, do Y"

Both fields must be non-empty. If either is missing, ask the user for the missing part before proceeding. If the error pattern is vague (e.g., "it broke") or the solution is non-actionable (e.g., "fix it"), ask the user to provide the specific error message and concrete fix steps — vague patterns fail to match future errors and waste database space.

Related skills
Installs
8
GitHub Stars
366
First Seen
Mar 23, 2026