learned-patterns
π―Skillfrom duc01226/easyplatform
Manages Claude's learned patterns by listing, viewing, archiving, and dynamically adjusting pattern confidence levels.
Installation
npx skills add https://github.com/duc01226/easyplatform --skill learned-patternsSkill Details
Manage learned patterns - list, view, archive, boost or penalize confidence. Use when you want to see what patterns Claude has learned, review pattern effectiveness, or manage the pattern library.
Overview
# Learned Patterns Management
Manage the auto-learning pattern library. View, list, archive, and adjust confidence.
Quick Commands
```
/learned-patterns # List all active patterns
/learned-patterns list [category] # List patterns (optionally filtered)
/learned-patterns list --low|--high # Filter by confidence
/learned-patterns view
/learned-patterns archive
/learned-patterns boost
/learned-patterns penalize
/learned-patterns stats # Show pattern statistics
```
Script Execution
| Action | Script |
| -------------- | ------------------------------------------------------------------------------------------- |
| List | node .claude/skills/learned-patterns/scripts/list-patterns.cjs [category] [--low\|--high] |
| View | node .claude/skills/learned-patterns/scripts/view-pattern.cjs |
| Archive | node .claude/skills/learned-patterns/scripts/archive-pattern.cjs |
| Boost/Penalize | node .claude/skills/learned-patterns/scripts/adjust-confidence.cjs |
| Stats | node .claude/skills/learned-patterns/scripts/pattern-stats.cjs |
Pattern Lifecycle
```
DETECTION (UserPromptSubmit)
βββ Confidence: 40% (implicit) or 80% (explicit /learn)
CONFIRMATION
βββ User confirms β saved | User rejects β discarded
INJECTION (SessionStart/PreToolUse)
βββ Relevant patterns injected (max 5, ~400 tokens)
FEEDBACK LOOP
βββ Followed β +5% | Ignored β -10%
DECAY & PRUNING
βββ 30 days unused β decay | Below 20% β auto-archived
```
Confidence Thresholds
| Range | Behavior |
| ------- | ----------------------------- |
| 80-100% | Always injected when relevant |
| 50-79% | Injected with context match |
| 30-49% | Injected only on strong match |
| 20-29% | Candidate for review |
| < 20% | Auto-archived |
Pattern Schema
```yaml
id: pat_abc123
category: backend
type: anti-pattern | best-practice | preference | convention
trigger:
keywords: [validation, exception]
file_patterns: ["*CommandHandler.cs"]
content:
wrong: "throw new ValidationException()"
right: "return PlatformValidationResult.Invalid()"
rationale: "Framework uses result pattern, not exceptions"
metadata:
source: explicit-teaching | user-correction
confidence: 0.75
first_seen: 2025-01-10
occurrences: 3
confirmations: 2
conflicts: 0
```
Troubleshooting
- Not injecting: Check confidence, file pattern match, archived status
- Too many injecting: Archive irrelevant patterns, review
--lowconfidence list - Conflicts with docs: Pattern auto-blocked; update docs or archive pattern
Related
/learn- Teach a new pattern/code-patterns- View static code patterns documentation
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.
Teaches Claude new patterns, preferences, and conventions to remember across coding sessions using explicit learning commands.
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.
readme-improvement skill from duc01226/easyplatform
Generates Angular reactive forms with advanced validation, async validators, dependent validation, and FormArrays using platform-specific design patterns.
Optimizes system performance by triaging and routing to specific strategies for database, frontend, API, jobs, and cross-service bottlenecks.
Analyzes implementation plans by extracting features, assessing change impacts, mapping specifications, and preparing comprehensive technical and business impact reports.
Rapidly build accessible React UI with shadcn/ui components, Radix primitives, and Tailwind CSS utility styling for modern web applications.