learn
π―Skillfrom duc01226/easyplatform
Teaches Claude new patterns, preferences, and conventions to remember across coding sessions using explicit learning commands.
Installation
npx skills add https://github.com/duc01226/easyplatform --skill learnSkill Details
Teach Claude a new pattern, preference, or convention explicitly. Use when you want to save a correction, preference, or coding pattern for future sessions. Triggers on keywords like "remember this", "always do", "never do", "learn this pattern", "/learn".
Overview
# Pattern Learning Skill
Explicitly teach Claude patterns, preferences, or conventions to remember across sessions.
Quick Usage
```
/learn always use PlatformValidationResult instead of throwing ValidationException
/learn [wrong] var x = 1 [right] const x = 1 - always prefer const
/learn backend: DTO mapping should be in the DTO class, not in command handlers
```
Teaching Formats
Format 1: Natural Language
```
/learn always use IGrowthRootRepository instead of generic IPlatformRootRepository
```
Detected patterns: "always use X instead of Y", "prefer X over Y", "never do X"
Format 2: Explicit Wrong/Right
```
/learn [wrong] throw new ValidationException("Invalid") [right] return PlatformValidationResult.Invalid("Invalid")
```
Format 3: Category-Specific
```
/learn backend: always add [ComputedEntityProperty] with empty setter
/learn frontend: extend AppBaseComponent instead of raw Component
/learn workflow: always use TodoWrite before multi-step tasks
```
How It Works
- Detection:
pattern-learner.cjshook detects teaching input - Extraction: Extracts wrong/right pair, keywords, context
- Storage: Saves to
.claude/learned-patterns/{category}/{slug}.yaml - Injection: Future sessions auto-inject relevant patterns (max 5, ~400 tokens)
Pattern Categories
| Category | Use For |
| ---------- | ---------------------------------------------- |
| backend | C#, .NET, API, Entity, Repository patterns |
| frontend | Angular, TypeScript, Component, Store patterns |
| workflow | Development process, git, planning patterns |
| general | Cross-cutting concerns |
Confidence System
- Explicit teaching: starts at 80%
- Implicit corrections: starts at 40%
- Increases on: user confirmation, pattern followed
- Decreases on: pattern conflicts, 30 days unused (decay)
- Below 20%: auto-archived
Conflicts with docs/claude/*.md are blocked to prevent inconsistencies.
Storage
```
.claude/learned-patterns/
βββ index.yaml # Pattern lookup index
βββ backend/ # Backend patterns
βββ frontend/ # Frontend patterns
βββ workflow/ # Workflow patterns
βββ general/ # General patterns
βββ archive/ # Archived patterns
```
Related
For lifecycle management (list, view, archive, boost, penalize): use /learned-patterns skill.
IMPORTANT Task Planning Notes
- Always plan and break many small todo tasks
- Always add a final review todo task to review the works done at the end to find any fix or enhancement needed
More from this repository10
Generates comprehensive test plans, test cases, and coverage analysis to support QA engineers in systematic software testing and quality assurance.
Helps Product Owners prioritize ideas, manage backlogs, and communicate product vision through structured decision-making frameworks.
pdf-to-markdown skill from duc01226/easyplatform
Generates comprehensive enterprise module documentation with a 26-section structure, creating detailed specs and folder hierarchy for business features.
Generates Angular reactive forms with advanced validation, async validators, dependent validation, and FormArrays using platform-specific design patterns.
Manages Claude's learned patterns by listing, viewing, archiving, and dynamically adjusting pattern confidence levels.
Optimizes system performance by triaging and routing to specific strategies for database, frontend, API, jobs, and cross-service bottlenecks.
Rapidly build accessible React UI with shadcn/ui components, Radix primitives, and Tailwind CSS utility styling for modern web applications.
Analyzes implementation plans by extracting features, assessing change impacts, mapping specifications, and preparing comprehensive technical and business impact reports.
Develops comprehensive backend components for .NET microservices using EasyPlatform's CQRS, domain-driven design, and modular architecture patterns.