Learning
/Learning
Analyze PAI's internal learning signals for behavioral improvements and Algorithm upgrades. USE WHEN mine reflections, mine ratings, algorithm upgrade, improve the algorithm, what have we learned, internal improvements, reflection insights, behavioral patterns, learning analysis, learning synthesis, close the loop.
- Author
- virtualian ↗
- Repository
- pai ↗
- Licence
- MIT
- Last repository change
- 09.06.2026
Assessment and security
- Files in this package
- 6
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 1
No signals detected. Repository changed on 09.06.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: Tools/MineRatings.ts
What it does and when to use it
Analyze PAI's internal learning signals for behavioral improvements and Algorithm upgrades. USE WHEN mine reflections, mine ratings, algorithm upgrade, improve the algorithm, what have we learned, internal improvements, reflection insights, behavioral patterns, learning analysis, learning synthesis, close the loop.
Original author description
Analyze PAI's internal learning signals for behavioral improvements and Algorithm upgrades. USE WHEN mine reflections, mine ratings, algorithm upgrade, improve the algorithm, what have we learned, internal improvements, reflection insights, behavioral patterns, learning analysis, learning synthesis, close the loop.
How it works
- Customization
- Voice Notification
- Workflow Routing
- Data Sources
- Tool Reference
- Examples
- Cross-Skill Integration
SKILL.md preview
---
name: Learning
description: Analyze PAI's internal learning signals for behavioral improvements and Algorithm upgrades. USE WHEN mine reflections, mine ratings, algorithm upgrade, improve the algorithm, what have we learned, internal improvements, reflection insights, behavioral patterns, learning analysis, learning synthesis, close the loop.
---
## Customization
**Before executing, check for user customizations at:**
`~/.claude/PAI/USER/SKILLCUSTOMIZATIONS/Learning/`
If this directory exists, load and apply any PREFERENCES.md, configurations,
or resources found there. These override default behavior. If the directory
does not exist, proceed with skill defaults.
## Voice Notification
**When executing a workflow, do BOTH:**
1. **Send voice notification**:
```bash
curl -s -X POST http://localhost:8888/notify \
-H "Content-Type: application/json" \
-d '{"message": "Running the WORKFLOWNAME workflow in the Learning skill to ACTION"}' \
> /dev/null 2>&1 &
```
2. **Output text notification**:
```
Running the **WorkflowName** workflow in the **Learning** skill to ACTION...
```
# Learning Skill
**Purpose:** Analyze PAI's accumulated learning signals (algorithm reflections,
user ratings) to identify behavioral patterns, propose Algorithm improvements,
and close the learning loop.
**Architecture:**
```
Capture Layer (hooks) Analysis Layer (this skill)
RatingCapture.hook.ts MineReflections workflow ← LEAF (reads JSONL)
WorkCompletionLearning.hook.ts MineRatings workflow ← LEAF (calls MineRatings.ts CLI)
LoadContext.hook.ts Synthesize workflow ← calls MineReflections + MineRatings.ts
learning-readback.ts AlgorithmUpgrade workflow ← calls MineReflections + maps to spec
| |
v v
MEMORY/LEARNING/ Actionable patterns,
(ratings.jsonl, Algorithm upgrade proposals,
reflections.jsonl) STOP/DO MORE rules
```
## Workflow Routing
| Workflow | Trigger | File |
|----------|---------|------|
| **MineReflections** | "mine reflections", "check reflections", "what have we learned", "internal improvements", "reflection insights" | `Workflows/MineReflections.md` |
| **MineRatings** | "mine ratings", "analyze ratings", "behavioral patterns", "what to stop", "what to do more" | `Workflows/MineRatings.md` |
| **AlgorithmUpgrade** | "algorithm upgrade", "upgrade algorithm", "improve the algorithm", "algorithm improvements", "fix the algorithm" | `Workflows/AlgorithmUpgrade.md` |
| **Synthesize** | "learning synthesis", "internal signals", "close the loop", "full learning analysis" | `Workflows/Synthesize.md` |
**Default workflow:** If user says "mine" or "learning" without specifics,
run the **Synthesize** workflow.
## Data Sources
| Source | Location (runtime) | Writer | Content |
|--------|----------|--------|---------|
| Algorithm reflections | `~/.claude/MEMORY/LEARNING/REFLECTIONS/algorithm-reflections.jsonl` | Algorithm LEARN phase | Q1/Q2/Q3 reflections per session |
| User ratings | `~/.claude/MEMORY/LEARNING/SIGNALS/ratings.jsonl` | RatingCapture.hook.ts | Explicit + implicit ratings with sentiment |
| HWM state | `~/.claude/MEMORY/LEARNING/SIGNALS/mine-ratings-hwm.json` | MineRatings.ts | Last-processed timestamp for incremental analysis |
## Tool Reference
| Tool | Purpose |
|------|---------|
| `Tools/MineRatings.ts` | Behavioral pattern analysis from ratings (CLI tool) |
## Examples
**Example 1: Mine reflections for patterns**
```
User: "mine reflections"
-> Invokes MineReflections workflow
-> Reads algorithm-reflections.jsonl
-> Clusters Q2 themes, weights by sentiment/budget
-> Outputs upgrade candidates with evidence
```
**Example 2: Behavioral analysis from ratings**
```
User: "mine ratings"
-> Invokes MineRatings workflow
-> Runs Tools/MineRatings.ts
-> Groups by session, identifies STOP/DO MORE patterns
-> Outputs behavioral recommendations
```
**Example 3: Full learning synthesis**
```
User: "close the learning loop"
-> Invokes Synthesize workflow
-> Runs MineReflections + MineRatings in parallel
-> Cross-references reflection themes with rating patterns
-> Outputs combined Internal Signals report
```
## Cross-Skill Integration
The **PAIUpgrade** skill's Upgrade workflow calls the **Synthesize** workflow
as Thread 3 to include internal signals alongside external discoveries:
```
PAIUpgrade Upgrade workflow:
Thread 1: User Context (own agents)
Thread 2: Source Collection (own agents)
Thread 3: Internal Signals (calls Learning/Synthesize)
```
Files in this package (6)
- SKILL.md 5 KB
- Tools/MineRatings.ts 12 KB
- Workflows/AlgorithmUpgrade.md 8 KB
- Workflows/MineRatings.md 2 KB
- Workflows/MineReflections.md 5 KB
- Workflows/Synthesize.md 5 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · virtualian/pai | 90 | MIT |
| DaraBoth/skilljmskill | 100 | MIT |
| ScotterMonk/AgentAutoFlow | 100 | CC0-1.0 |
| virtualian/pai | 95 | MIT |
| t8jwscc7qy-sketch/foma-skills | 90 | Apache-2.0 |
| clawic/skills | 90 | MIT |
Database snapshot: 13.11.2026 · package version 3efab832eb36 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95learn
Closed-loop behavioural improvement — mine signals, synthesise patterns, propose changes, review, apply. USE WHEN learn, learn check, learn review, learn apply, mine reflections, mine ratings, algorithm upgrade, improve the algorithm, what have we learned, internal improvements,… - 95PAIUpgrade
Extract system improvements from content AND monitor external sources (Anthropic ecosystem, YouTube). USE WHEN upgrade, improve system, system upgrade, analyze for improvements, check Anthropic, Anthropic changes, new Claude features, check YouTube, new videos, algorithm… - 100algorithm-update
Run a maintainer algorithm-update session — synthesize the collected Q2 ("smarter algorithm") reflections, cluster the recurring ideas, and fold approved changes into ALGORITHM.md. Use when the session reminder shows "Algorithm Review Due", or when asked to review/update the… - 100pai-skill-transfer
USE WHEN transferring a PAI skill to a standard Claude Code plugin, porting skills between environments, strip PAI specifics, adapt PAI skill for marketplace, extract skill from PAI. Guides the transformation of PAI-embedded skills into standalone plugin-compatible skills —… - 95PAISetup
Install, upgrade, and configure Daniel Miessler's Personal AI Infrastructure (PAI) memory system with guided identity customization. USE WHEN PAI setup, PAI install, install PAI, setup PAI, upgrade PAI, update PAI, personal AI infrastructure, memory system setup, identity files,… - 100agent-learning-from-user-corrections
Use this skill when processing user corrections, analyzing underlying misconceptions, and updating behavioral patterns gracefully.",