reflection — reflection for developers reflection, community, reflection for developers, ide skills, reflection and Git integration, reflection for code lesson capture, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Code Review Agents seeking to enhance knowledge retention through systematic reflection and documentation in CLAUDE.md Reflection is a process of reviewing entire conversation history and code diffs to capture key lessons and decisions in CLAUDE.md.

Features

Reviews entire conversation history for lesson capture
Utilizes code diffs as supplementary context
Integrates with Git to review current branch and changes
Runs commands like `git branch --show-current` and `git diff --stat HEAD`
Captures lessons in CLAUDE.md for future reference
Supports efficient code review and knowledge retention

# Core Topics

straubt1 straubt1
[91]
[16]
Updated: 3/7/2026

Agent Capability Analysis

The reflection skill by straubt1 is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for reflection for developers, reflection and Git integration, reflection for code lesson capture.

Ideal Agent Persona

Ideal for Code Review Agents seeking to enhance knowledge retention through systematic reflection and documentation in CLAUDE.md

Core Value

Empowers agents to systematically review conversation histories and code diffs, capturing key lessons in CLAUDE.md for future reference, thereby enhancing collaborative development and reducing repetitive mistakes through Git state analysis and documentation

Capabilities Granted for reflection

Reviewing conversation histories for lesson identification
Capturing code review insights in CLAUDE.md
Analyzing Git state for supplementary context

! Prerequisites & Limits

  • Requires access to conversation history and code diffs
  • CLAUDE.md integration necessary
  • Git state analysis capabilities needed
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

reflection

Install reflection, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Reflection

The goal is to identify lessons from this session that should be permanently captured in CLAUDE.md — so future sessions benefit without repeating the same mistakes, clarifications, or decisions.

Review the entire conversation history — every message, correction, and preference — as the primary source. Code diffs are supplementary.

Current Git State (supplementary context)

  • Branch: !git branch --show-current
  • Changes since last commit: !git diff --stat HEAD
  • Staged changes: !git diff --stat --cached

Process

  1. Read the full conversation from top to bottom. Pay attention to:

    • Questions the user had to answer that should have been obvious from CLAUDE.md
    • Corrections the user made to your approach or output
    • Preferences or constraints the user stated (even casually)
    • Things you got wrong on the first attempt and had to revise
    • Decisions made about architecture, naming, tooling, or workflow
    • Anything the user explicitly said to always/never do
  2. Review the diffs (supplementary) — Read modified files for context on what was built and why, but do not let this overshadow lessons from the conversation itself.

  3. Identify lessons in these categories:

    • Patterns & conventions — Things that worked well and should be encoded as rules
    • Gotchas & pitfalls — Things that caused confusion, required retries, or were non-obvious
    • Architecture decisions — Choices made that future sessions should know about
    • Workflow & communication preferences — How the user prefers to work, communicate, or receive output
    • Outdated/wrong memory — Anything in CLAUDE.md or MEMORY.md that turned out to be incorrect or missing
  4. Read the current CLAUDE.md to avoid duplicating what's already there and to find gaps.

  5. Propose edits to CLAUDE.md — For each lesson worth keeping, suggest the specific text to add, change, or remove, and where it belongs.

  6. If no lessons are found, explicitly state: "No CLAUDE.md updates needed from this session." This confirms the session was considered.

  7. Do not apply edits automatically. Present proposals to the user and wait for approval.

  8. After applying approved edits, print a brief summary in chat of what changed.

Output Format

When lessons are found:

## Reflection

### [Category]
**Lesson**: <what was learned>
**Proposed CLAUDE.md change**: <exact text, with target section>

---
(one block per lesson)

When no lessons are found:

## Reflection

No CLAUDE.md updates needed from this session. The following were considered but already covered or not worth persisting:
- <item> — already in CLAUDE.md / too session-specific / etc.

After applying approved changes:

## CLAUDE.md updated

- Added: "<description>" under ## Section
- Modified: "<what changed>" in ## Section
- Removed: "<what was removed>"

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is reflection?

Ideal for Code Review Agents seeking to enhance knowledge retention through systematic reflection and documentation in CLAUDE.md Reflection is a process of reviewing entire conversation history and code diffs to capture key lessons and decisions in CLAUDE.md.

How do I install reflection?

Run the command: npx killer-skills add straubt1/tfx. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for reflection?

Key use cases include: Reviewing conversation histories for lesson identification, Capturing code review insights in CLAUDE.md, Analyzing Git state for supplementary context.

Which IDEs are compatible with reflection?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for reflection?

Requires access to conversation history and code diffs. CLAUDE.md integration necessary. Git state analysis capabilities needed.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add straubt1/tfx. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use reflection immediately in the current project.

Related Skills

Looking for an alternative to reflection or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI