| name | learn-pattern |
| description | Extract reusable patterns from the current session and store as Tekio adaptations or memories |
| layer | utility |
| category | learning |
| triggers | ["learn from this","extract pattern","remember this pattern","save what we learned","learn","what did we learn"] |
| inputs | [{"context":"Current session context or specific interaction to learn from"},{"scope":"Project scope for pattern storage"}] |
| outputs | [{"patterns":"Extracted patterns with confidence scores"},{"storage":"Where patterns were saved (Tekio adaptation or memory)"}] |
| linksTo | ["debug","fix","refactor","sequential-thinking"] |
| linkedFrom | ["cook","audit","team"] |
| preferredNextSkills | ["verify","quality-gate"] |
| fallbackSkills | ["sequential-thinking"] |
| riskLevel | low |
| memoryReadPolicy | full |
| memoryWritePolicy | full |
| sideEffects | ["Creates Tekio adaptations in database","Creates memory entries in database"] |
Learn Pattern
Purpose
Extract reusable engineering patterns from the current session and persist them
for future sessions. Unlike Tekio wheel-turns (which learn from failures), this
skill proactively captures successes, techniques, and insights mid-session.
Use this when:
- You just solved a non-trivial problem worth remembering
- A debugging technique worked well and should be reusable
- You discovered a project-specific pattern or convention
- A workaround was found for a known limitation
- A new architectural decision was made
Key Concepts
Pattern Types
| Type | Description | Storage | Example |
|---|
| Error Resolution | How a specific error was fixed | Tekio (defensive) | "TS2322 in Neon queries → cast with as Record<string, unknown>[]" |
| Debugging Technique | Systematic approach that worked | Memory (solution) | "Galaxy canvas memory leak → useMemo for filtered data + useRef for animation" |
| Project Convention | Discovered project patterns | Memory (pattern) | "All API routes use getDb() singleton, never inline neon import" |
| Architectural Decision | Design choices with rationale | Memory (decision) | "Chose pgvector + pg_trgm hybrid over pure vector search for memory recall" |
| Workaround | Known limitation with mitigation | Tekio (auxiliary) | "Bash set -u + empty arrays → use ${arr[@]+\"${arr[@]}\"} safe expansion" |
| Performance Insight | Optimization that worked | Memory (insight) | "Promise.all for independent DB queries cut response time 60%" |
Confidence Scoring
Each extracted pattern gets a confidence score:
| Score | Meaning | Criteria |
|---|
| 0.9-1.0 | Proven | Verified by tests, applied 3+ times |
|