slm-show-patterns

Show what SuperLocalMemory has learned about your preferences, workflow patterns, and project context. Use when the user asks "what have you learned about me?" or wants to see their coding identity patterns. Shows tech preferences, workflow sequences, and engagement health.

84 stars

Best use case

slm-show-patterns is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Show what SuperLocalMemory has learned about your preferences, workflow patterns, and project context. Use when the user asks "what have you learned about me?" or wants to see their coding identity patterns. Shows tech preferences, workflow sequences, and engagement health.

Teams using slm-show-patterns should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/slm-show-patterns/SKILL.md --create-dirs "https://raw.githubusercontent.com/qualixar/superlocalmemory/main/ide/skills/slm-show-patterns/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/slm-show-patterns/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How slm-show-patterns Compares

Feature / Agentslm-show-patternsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Show what SuperLocalMemory has learned about your preferences, workflow patterns, and project context. Use when the user asks "what have you learned about me?" or wants to see their coding identity patterns. Shows tech preferences, workflow sequences, and engagement health.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# SuperLocalMemory: Show Patterns

Show what SuperLocalMemory has learned about your preferences, workflow, and coding identity.

## Usage

```bash
slm patterns list [threshold]
slm learning status
slm engagement
```

## Example Output

### Learned Patterns
```bash
$ slm patterns list 0.5
```

**Output:**
```
Learned Patterns (confidence >= 0.5)
=====================================

TECH PREFERENCES (cross-project):
  #1  preferred_framework: React        confidence: 0.92  (seen in 3 profiles)
  #2  preferred_language: Python         confidence: 0.88  (seen in 2 profiles)
  #3  preferred_backend: FastAPI         confidence: 0.85  (seen in 2 profiles)
  #4  testing_style: pytest              confidence: 0.78  (seen in 1 profile)
  #5  preferred_db: PostgreSQL           confidence: 0.71  (seen in 2 profiles)

WORKFLOW PATTERNS:
  #6  morning_sequence: recall -> code -> remember    frequency: 34
  #7  debug_sequence: recall -> recall -> remember    frequency: 18
  #8  review_sequence: list -> recall -> remember     frequency: 12

PROJECT CONTEXT:
  #9  active_project: superlocalmemory    last_seen: 2 hours ago
  #10 active_project: client-dashboard      last_seen: 1 day ago

Total: 10 patterns (7 high confidence)
```

### Learning Status
```bash
$ slm learning status
```

**Output:**
```
SuperLocalMemory V3 -- Learning System Status
==================================================
LightGBM:  installed (4.5.0)
SciPy:     installed (1.14.1)
ML Ranking:  available
Full Learning: available

Feedback signals: 247
Unique queries:   89
Patterns learned: 34 (12 high confidence)
Workflow patterns: 8
Sources tracked:  4
Models trained:   2
Learning DB size: 128 KB
```

### Engagement Metrics
```bash
$ slm engagement
```

**Output:**
```
SuperLocalMemory -- Engagement Health
======================================
Status: HEALTHY

This Week:
  Memories saved:    12
  Recalls performed: 28
  Memories marked useful: 8
  Feedback ratio:    28.6%

Trends:
  Recall frequency:  increasing (up 15% from last week)
  Save frequency:    stable
  Useful feedback:   increasing (up 40% from last week)

Streaks:
  Current daily streak: 5 days
  Longest streak:       14 days
```

## What the Patterns Mean

### Tech Preferences
Cross-project patterns that transfer between profiles. These represent your coding identity -- which frameworks, languages, and tools you consistently choose.

**How they are learned:**
- Extracted from memory content (mentions of frameworks, tools)
- Weighted by recency and frequency
- Confidence increases when the same preference appears across multiple profiles

**How they help:**
- When you `recall`, results matching your preferred stack rank higher
- Your AI tools can reference these to tailor suggestions

### Workflow Patterns
Sequences of actions you repeat. The system learns your work rhythm.

**Examples:**
- `recall -> code -> remember` = "Research, build, document" workflow
- `recall -> recall -> remember` = "Deep investigation" workflow

**How they help:**
- System predicts what you will need next
- Can pre-load relevant context based on your current workflow stage

### Engagement Health
Overall system usage metrics (fully local, zero telemetry).

**Healthy indicators:**
- Regular daily usage (streaks)
- Balanced save/recall ratio
- Increasing useful feedback

**Warning signs:**
- No recalls for 7+ days = stale memories
- No saves for 7+ days = not capturing knowledge
- Zero feedback = system cannot learn your preferences

## Correcting Patterns

If the system learned something wrong, correct it:

```bash
# See all patterns
slm patterns list

# Correct pattern #3 from "FastAPI" to "Django"
slm patterns correct 3 Django
```

The correction increases confidence to 1.0 and records the change history.

## Options

| Command | Description | Use Case |
|---------|-------------|----------|
| `slm patterns list` | All patterns (no threshold) | See everything learned |
| `slm patterns list 0.7` | High confidence only | See reliable patterns |
| `slm patterns correct <id> <value>` | Fix a wrong pattern | Override incorrect learning |
| `slm learning status` | System health | Check deps and stats |
| `slm learning retrain` | Force model retrain | After bulk feedback |
| `slm learning reset` | Delete all learning data | Fresh start (memories preserved) |
| `slm engagement` | Usage metrics | Track your engagement health |

## Use Cases

### 1. "What Have You Learned About Me?"
```bash
slm patterns list
# Shows all preferences, workflows, and project context
```

### 2. Pre-Session Context Loading
```bash
slm patterns context
# Returns structured context for AI tools to consume
```

### 3. Onboarding a New AI Tool
```bash
slm learning status
# Verify learning is active, then use your existing memories
# New tool benefits from all previously learned patterns
```

### 4. Weekly Review
```bash
slm engagement
# Check if you are using your memory system effectively
```

## Requirements

- SuperLocalMemory V3.7+
- Optional: `lightgbm` and `scipy` for ML-powered ranking
- Works without optional deps (uses rule-based ranking as fallback)

## Notes

- **Privacy:** All learning is local. Zero telemetry, zero cloud calls.
- **Separate storage:** Learning data lives in `learning.db`, separate from `memory.db`.
- **Non-destructive:** `slm learning reset` only deletes learning data, never memories.
- **Graceful degradation:** If learning deps are missing, core features work normally.

## Related Commands

- `slm recall` - Search memories (results ranked by learned patterns)
- `slm useful <id>` - Mark memory as useful (feedback for learning)
- `slm status` - Overall system status
- `slm patterns update` - Re-learn patterns from existing memories

---

**Created by:** [Varun Pratap Bhardwaj](https://github.com/varun369) (Solution Architect)
**Project:** SuperLocalMemory V3
**License:** AGPL-3.0 (see [LICENSE](../../LICENSE))
**Repository:** https://github.com/qualixar/superlocalmemory

*Open source doesn't mean removing credit. Attribution must be preserved per AGPL-3.0 terms.*

Related Skills

slm-switch-profile

84
from qualixar/superlocalmemory

Switch between memory profiles for context isolation and management. Use when the user wants to change profile context, separate work/personal memories, or manage multiple independent memory spaces. Each profile has its own database, graph, and patterns.

slm-status

84
from qualixar/superlocalmemory

Check SuperLocalMemory system status, health, and statistics. Use when the user wants to know memory count, graph stats, patterns learned, database health, or system diagnostics. Shows comprehensive system health dashboard.

slm-remember

84
from qualixar/superlocalmemory

Save content to SuperLocalMemory with intelligent indexing and knowledge graph integration. Use when the user wants to remember information, save context, store coding decisions, or persist knowledge for future sessions. Automatically indexes, graphs, and learns patterns.

slm-recall

84
from qualixar/superlocalmemory

Search and retrieve memories using semantic similarity, knowledge graph relationships, and full-text search. Use when the user asks to recall information, search memories, find past decisions, or query stored knowledge. Returns ranked results with relevance scores.

slm-list-recent

84
from qualixar/superlocalmemory

List most recent memories in chronological order. Use when the user wants to see what was recently saved, review recent conversations, check what they worked on today, or browse memory history. Shows memories sorted by creation time (newest first).

slm-build-graph

84
from qualixar/superlocalmemory

Build or rebuild the knowledge graph from existing memories using TF-IDF entity extraction and Leiden clustering. Use when search results seem poor, after bulk imports, or to optimize performance. Automatically discovers relationships between memories and creates topic clusters.

superlocalmemory

84
from qualixar/superlocalmemory

AI agent memory with mathematical foundations. Store, recall, search, and manage memories locally with zero cloud dependency.

healthcare-emr-patterns

144923
from affaan-m/everything-claude-code

EMR/EHR development patterns for healthcare applications. Clinical safety, encounter workflows, prescription generation, clinical decision support integration, and accessibility-first UI for medical data entry.

HealthcareClaude

healthcare-cdss-patterns

144923
from affaan-m/everything-claude-code

Clinical Decision Support System (CDSS) development patterns. Drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), alert severity classification, and integration into EMR workflows.

HealthcareClaude

swiftui-patterns

144923
from affaan-m/everything-claude-code

SwiftUI 架构模式,使用 @Observable 进行状态管理,视图组合,导航,性能优化,以及现代 iOS/macOS UI 最佳实践。

DevelopmentClaude

pytorch-patterns

144923
from affaan-m/everything-claude-code

PyTorch深度学习模式与最佳实践,用于构建稳健、高效且可复现的训练流程、模型架构和数据加载。

Development ToolsClaude

perl-patterns

144923
from affaan-m/everything-claude-code

现代 Perl 5.36+ 的惯用法、最佳实践和约定,用于构建稳健、可维护的 Perl 应用程序。

DevelopmentClaude