Reflection

From straubt1/tfx · View interactive version

Reflection is an AI agent skill from the GitHub repository straubt1/tfx. This skill should be used when the user says "reflection", "reflect on the changes", "reflect on this session", or asks to capture lessons learned from the current conversation.

How to use this skill

Skill file

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)

Process

  1. Read the full conversation from top to bottom. Pay attention to:
  1. 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.
  1. Identify lessons in these categories:
  1. Read the current CLAUDE.md to avoid duplicating what's already there and to find gaps.
  1. Propose edits to CLAUDE.md — For each lesson worth keeping, suggest the specific text to add, change, or remove, and where it belongs.
  1. If no lessons are found, explicitly state: "No CLAUDE.md updates needed from this session." This confirms the session was considered.
  1. Do not apply edits automatically. Present proposals to the user and wait for approval.
  1. 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>"
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.