/cc-skills-meta:reflectfrom cc-skills-meta
Analyzes conversation transcripts to extract user corrections, patterns, and preferences, then proposes skill improvements. Use this skill when users provide corrections, express preferences about code style, or when patterns emerge from successful approaches. Can be triggered manually with /reflect or automatically at session end when enabled.
Ships in cc-skills-meta. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
This skill enables Claude Code to learn from conversations by analyzing corrections, approvals, and patterns, then proposing updates to relevant skills. It implements a "correct once, never again" learning system.
Three modes:
/reflect [skill-name] anytimePre-Mortem Analysis: Detects conversation issues (vague requirements, contradictions, missing error handling) before they become problems. Runs automatically during reflection.
Kill Criteria Enforcement (Task #2295): On each run, checks sessions.json for pre-mortem sessions older than 30 days that lack validation timestamps. Displays pending sessions with age and emits advisory about sunk-cost risk. Critically, also extracts HIGH/MEDIUM items from those sessions' p3.md files as critique_lesson signals — Domain 7a — and stores them to CKS alongside skill-correction lessons.
Reflection should also capture reusable contract-failure lessons such as:
Trigger analysis of the current conversation:
/reflect [skill-name]
Always-on: Runs automatically at session end via scripts/hook-stop.sh.
Early exit if no learning signals found. Runs in background (non-blocking).
Lock file prevents concurrent runs. Logged to ~/.claude/reflect-hook.log.
Accumulated signals from multiple sessions can be reviewed together:
/reflect (no transcript - reads accumulated signals)
HIGH - Explicit corrections:
MEDIUM - Approvals and implicit learning:
LOW - Observations:
When a failure involved producer/consumer mismatch, reflection should record both:
Before proposing skill updates, /reflect should run a short internal reflection-upgrade check:
These are internal self-check prompts. They are not default user-facing questions and should only surface to the user when /reflect is genuinely blocked and cannot proceed safely without clarification.
/reflect should use three internal helper passes:
emerge: identify latent patterns across corrections, approvals, and repeated failures that have not yet been articulated clearlygraduate: promote repeated reflection lessons into durable updates such as validator, hook, test, or workflow changestrace: reconstruct how a correction or preference evolved across the conversation when the final lesson depends on sequence, reversal, or context shiftUse emerge when several signals look related but the underlying lesson is still fuzzy.
Use graduate when a lesson has enough recurrence and evidence to justify promotion into durable enforcement.
Use trace when a proposed change depends on what changed over time rather than on a single isolated correction.
Reference: P:/.claude/skills/__lib/sdlc_internal_modes.md
/reflect may suggest:
/arch if the repeated lesson is architectural contract ambiguity/planning if the repeated lesson is missing contract matrix or readiness shape/verify if the repeated lesson is lack of proof or producer-only verification/reflect captures lessons; it does not rewrite active implementation work by itself.
scripts/reflect.py - Main orchestration logic (queue checking, pre-mortem, CKS storage, history scanning)scripts/extract_signals.py - Pattern detection engine (regex + semantic, 4-phase)scripts/update_skill.py - Safe skill file updates with backupsscripts/present_review.py - Interactive review interfacescripts/semantic_detector.py - AI-powered semantic pattern detectionscripts/workflow_assumptions.py - Root cause pattern detection (external tool verification, exit conditions)scripts/tool_error_extractor.py - Tool error pattern detectionscripts/implicit_patterns.py - Retry patterns, tool discovery, pattern emergence detectionscripts/semantic_validator.py - AI validation of regex-detected signalsscripts/learning_ledger.py - SQLite ledger for cross-repo trackingscripts/scope_analyzer.py - Project vs global learning scopescripts/promote_learning.py - Promotion to global CLAUDE.mdscripts/multi_target_sync.py - Multi-repository synchronizationscripts/meta_learning.py - Cross-repository pattern aggregationscripts/premortem.py - Pre-mortem conversation checks (7 checks, phase detection)See references/meta-patterns.md for self-verification pattern details and examples.
scripts/show_queue.py - Display pending learnings in review table (sorted by confidence)scripts/accumulate_signals.py - Multi-session signal accumulationscripts/skill_discovery.py - Skill finder and matcherscripts/validate_pattern_coverage.py - Pattern coverage validationscripts/hook-stop.sh / hook-stop.ps1 / hook-stop.bat - Stop hook integration (always-on mode)scripts/toggle-on.sh - Enable auto-reflectionscripts/toggle-off.sh - Disable auto-reflectionscripts/toggle-status.sh - Show statusscripts/cks_schema_mapper.py - CKS finding type classificationscripts/cks_auto_save.py - Auto-save module with graceful failureSee references/cli-options.md for extract_signals.py flags, environment variables, and production monitoring details.
CRITICAL: All reflection reports MUST follow the exact format in references/output-template.md.
references/output-template.mdEach action MUST cite evidence (file:line or Finding ID). This matches GTO skill's evidence-based format.
See references/cks-integration.md for finding types (PATTERN/REFACTOR/DEBT/DOC/OPT), metadata schema, category mapping, and auto-save workflow.
references/output-template.md: Exact output format for all reflection reports (MANDATORY)references/signal-patterns.md: Detailed pattern library for signal detectionreferences/cli-options.md: CLI flags, environment variables, production monitoringreferences/cks-integration.md: CKS schema, finding types, category mapping, auto-save workflowreferences/meta-patterns.md: Self-verification pattern and examplesDIRECT_IMPORT_EVALUATION_skill.md (opens in a new tab)PREMORTEM_TEST_RESULTS_skill.md (opens in a new tab)README.md (opens in a new tab)USER_GUIDE.md (opens in a new tab)WORKFLOW_ASSUMPTIONS_INTEGRATION_skill.md (opens in a new tab)commands/reflect-meta.md (opens in a new tab)commands/reflect-promote.md (opens in a new tab)commands/reflect-stats.md (opens in a new tab)docs_skill_backup/docs/pattern_refinement_workflow.md (opens in a new tab)docs_skill_backup/pattern_refinement_workflow.md (opens in a new tab)hooks.json (opens in a new tab)plan_skill.md (opens in a new tab)references/cks-integration.md (opens in a new tab)references/cli-options.md (opens in a new tab)references/meta-patterns.md (opens in a new tab)references/output-template.md (opens in a new tab)references/signal-patterns.md (opens in a new tab)scripts/__init__.py (opens in a new tab)scripts/cks_auto_save.py (opens in a new tab)scripts/cks_schema_mapper.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (enduser123/cc-skills-meta) — no native marketplace selected
npx claudepluginhub p/enduser123-cc-skills-meta51 skills in this plugin
/behaveStructured behavioral analysis for LLM performance debugging — hypothesis testing for session patterns (loops, context degradation, decision inefficiency, cognitive overload, attention drift)/cksConstitutional Knowledge System - unified command for search, add, and session extraction/concept-mapperUnified concept mapping for learning, system architecture, and text analysis. Creates Mermaid diagrams for mind maps, concept maps, system diagrams, and knowledge structures. Use for studying, documentation, architecture visualization, or converting articles/text into visual maps./config-auditAudit Claude Code configuration artifacts (hooks, skills, CLAUDE.md, agents) for over-engineering, redundancy, and token waste. Uses model routing (haiku for research, sonnet for analysis) with decision memory./constitutional-patternsStandards for constitutional compliance and pattern enforcement./constraintsShow active project constraints from CLAUDE.md