Loading...
Loading...
[Tooling & Meta] 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.
npx skill4agent add duc01226/easyplatform learned-patternsnode scripts/list-patterns.cjs [category] [--low|--high]node scripts/view-pattern.cjs <id>node scripts/adjust-confidence.cjs <id> boost|penalizenode scripts/archive-pattern.cjs <id> [reason]node scripts/pattern-stats.cjs/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 <id> # View pattern details
/learned-patterns archive <id> # Archive a pattern
/learned-patterns boost <id> # Increase confidence (+10%)
/learned-patterns penalize <id> # Decrease confidence (-15%)
/learned-patterns stats # Show pattern statistics| Action | Script |
|---|---|
| List | |
| View | |
| Archive | |
| Boost/Penalize | |
| Stats | |
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| 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 |
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--low/learn/code-patterns