Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

reflect

FreeNo executable scriptsNot checked

Extract learnings from session corrections and patterns, update skill files with persistent memory. Implements Loop 1.5 - per-session micro-learning between…

DNYoussefby DNYoussef★ 34 GitHub stars

About this skill

L1 Improvement

  • Created as new skill following Skill Forge v3.2 required sections
  • Implements Loop 1.5 (Session Reflection) to fill gap between Loop 1 (Execution) and Loop 3 (Meta-Loop)
  • Integrates with Memory MCP, Skill Forge, and Ralph Wiggum stop hooks


LIBRARY-FIRST PROTOCOL (MANDATORY)

Before writing ANY code, you MUST check:

Step 1: Library Catalog

  • Location: .claude/library/catalog.json
  • If match >70%: REUSE or ADAPT

Step 2: Patterns Guide

  • Location: .claude/docs/inventories/LIBRARY-PATTERNS-GUIDE.md
  • If pattern exists: FOLLOW documented approach

Step 3: Existing Projects

  • Location: D:\Projects\*
  • If found: EXTRACT and adapt

Decision Matrix

Match Action
Library >90% REUSE directly
Library 70-90% ADAPT minimally
Pattern exists FOLLOW pattern
In project EXTRACT
No match BUILD (add to library after)

TIER 1: CRITICAL SECTIONS

Overview

The Reflect skill solves a fundamental limitation of LLMs: they don't learn from session to session. Every conversation starts from zero, causing the same mistakes to recur and forcing users to repeat corrections endlessly.

Philosophy: Corrections are signals. Approvals are confirmations. Both should be captured, classified, and persisted into skill files where they become permanent knowledge that survives across sessions.

Methodology: 7-phase extraction and update pipeline that:

  1. Detects learning signals in conversation
  2. Maps them to invoked skills
  3. Classifies confidence levels (VERIX-aligned)
  4. Proposes skill file updates
  5. Applies changes via Skill Forge patterns
  6. Stores in Memory MCP for Meta-Loop aggregation
  7. Commits to Git for version tracking

Value Proposition: Correct once, never again. Transform ephemeral session corrections into persistent skill improvements that compound over time.

Core Principles

The Reflect skill operates on 5 core principles:

Principle 1: Signals Over Commands

Corrections are the strongest learning signals. When a user says "No, use X instead", this is more valuable than explicit instructions because it reveals a gap between expectation and delivery.

In practice:

  • Parse conversation for correction patterns (negation + alternative)
  • Weight corrections higher than approvals
  • Track correction frequency per skill

Principle 2: Evidence-Based Confidence

All learnings must have VERIX-aligned confidence ceilings. Don't overclaim certainty from limited evidence.

In practice:

  • HIGH (0.90): Explicit "always/never" rules from user
  • MEDIUM (0.75): Patterns confirmed across 2+ occurrences
  • LOW (0.55): Single observations requiring review

Principle 3: Skill File as Memory

Store learnings in SKILL.md, not in embeddings. Skill files are human-readable, version-controlled, and immediately effective.

In practice:

  • Add LEARNED PATTERNS section to skill files
  • Increment x-version on each update
  • Track x-last-reflection timestamp

Principle 4: Safe by Default

Preview all changes before applying. HIGH confidence changes require explicit approval; automation only for MEDIUM/LOW.

In practice:

  • Show diff preview before any edit
  • Require Y/N for HIGH confidence learnings
  • Enable auto-apply only when reflect-on is active

Principle 5: Feed the Meta-Loop

Session learnings aggregate into system optimization. Micro-learning feeds macro-optimization.

In practice:

  • Store all learnings in Memory MCP
  • Tag with WHO/WHEN/PROJECT/WHY
  • Meta-Loop queries and aggregates every 3 days

When to Use

Use Reflect when:

  • You've corrected Claude's output during a session
  • A skill produced good results you want to reinforce
  • You notice recurring mistakes across sessions
  • You want to capture style or preference cues
  • Session is ending and you want to preserve learnings
  • You see explicit rules emerge ("always X", "never Y")

Do NOT use Reflect when:

  • Conversation is trivial (< 5 exchanges)
  • No skills were invoked in session
  • User explicitly says "don't remember this"
  • Target is the eval-harness (FORBIDDEN - stays frozen)
  • Changes would bypass existing safety gates

Main Workflow

Phase 1: Signal Detection

Purpose: Scan conversation for learning signals Agent: intent-parser (from registry)

Input Contract:

inputs:
  conversation_context: string  # Full session transcript
  invoked_skills: list[string]  # Skills used in session

Process:

  1. Parse conversation for signal patterns
  2. Classify each signal by type and strength
  3. Extract the learning content

Signal Types:

Type Pattern Confidence
Correction "No, use X", "That's wrong", "Actually..." HIGH (0.90)
Explicit Rule "Always do X", "Never do Y" HIGH (0.90)
Approval "Perfect", "Yes, exactly", "That's right" MEDIUM (0.75)
Rejection User rejected proposed solution MEDIUM (0.75)
S
Full SKILL.md on GitHub

Install reflect in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

Read
Write
Edit
Bash
Glob
Grep
Task
TodoWrite

Bundled files

README.mdexamples/reflection-output.md

FAQ

What does the reflect skill do?

Extract learnings from session corrections and patterns, update skill files with persistent memory. Implements Loop 1.5 - per-session micro-learning between execution and meta-optimization.

How do I install the reflect skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the reflect skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare reflect with