Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

reflect

БесплатноБез исполняемых скриптовНе проверен

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

DNYoussefот DNYoussef★ 34 звезды на GitHub

Об этом скилле

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
Полный SKILL.md на GitHub

Установить reflect в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Glob
Grep
Task
TodoWrite

Вложенные файлы

README.mdexamples/reflection-output.md

FAQ

Что делает скилл reflect?

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.

Как установить скилл reflect?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл reflect запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить reflect с