Reflect

From rjmurillo/ai-agents · View interactive version

Reflect is an AI agent skill from the GitHub repository rjmurillo/ai-agents. CRITICAL learning capture. Extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes and preserve what works. Use PROACTIVELY after user corrections ("no", "wrong"), after praise ("perfect", "exactly"), when discovering edge cases, or when skills are heavily used. Wi

How to use this skill

Skill file

Reflect Skill

Critical learning capture system that prevents repeating mistakes and preserves successful patterns across sessions.

Analyze the current conversation and propose improvements to skill-based memories based on what worked, what didn't, and edge cases discovered. Every correction is a learning opportunity - invoke proactively to build institutional knowledge.


Triggers

| Trigger Phrase | Operation |

|----------------|-----------|

| reflect on this session | Extract learnings from conversation |

| learn from this mistake | Capture correction patterns |

| capture what we learned | Document session insights |

| improve skill {name} | Target specific skill memory |

| what did we learn | Review and store patterns |

Three priority tiers drive invocation timing: HIGH (corrections and immediate

fixes, invoke immediately), MEDIUM (praise, preferences, edge cases, and

questions, invoke when the table threshold is met), LOW (repeated patterns and

session-end consolidation). Invoke proactively, not only on explicit request.

See references/triggers.md for the full priority-tiered

trigger tables, the original trigger phrases, and the proactive-invocation

reminder.


When to Use

Use this skill when:

Use retrospective instead when:


Process

Phase 1: Identify the Target Skill

Identify the skill used in the conversation. Find its observations through

memory-search or the memory skill's recall procedure. Use the project

scope. Propose a descriptive sidecar name when no record exists.

Phase 2: Analyze the Conversation

Scan the conversation for learning signals at three confidence levels: HIGH

(corrections), MEDIUM (success patterns, edge cases), and LOW (preferences).

Only propose changes when the confidence threshold is met (>=1 HIGH, >=2 MED,

or >=3 LOW signals).

See references/phase2-signal-detection.md

for the full detection patterns per confidence level and the threshold table.

Phase 3: Propose Learnings

Present findings in a confidence-labeled summary ([HIGH]/[MED]/[LOW] with the

source quote for each), then await user approval (Y/n/edit). **Always

show changes before applying.**

Phase 4: Persist Learnings to Memory

After approval, use the memory write procedure. Update the existing record

with dated observations and source citations. For Markdown, use the established

project corpus or the default repository notes directory.

See references/phase3-4-propose-persist.md

for the proposal display format, user-response handling, persistence strategy,

memory format, and the Phase 4 auto-citation capture.


Decision Tree, Examples, and Anti-Patterns

See references/decision-tree-and-examples.md

for the full invocation decision tree, worked examples (correction, success

pattern, edge case), per-domain use cases (code review, API design, testing,

documentation), and the anti-patterns table.


Integration, Design Decisions, and Commit Convention

See references/integration-and-design.md

for integration with the session protocol and memory skill; the

design-decision rationale (sidecar naming, the project store,

relationship to curating-memories); extension points; and the commit

convention for skill observation updates.


Verification

| Action | Verification |

|--------|--------------|

| Analysis complete | Signals categorized by confidence |

| User approved | Explicit Y or approval statement |

| Memory updated | Approved observations exist in the selected project store |

| Changes preserved | Existing content not lost |

| Repository files | Follow the project's version control policy |


Related

| Skill | Relationship |

|-------|--------------|

| memory | Skill memories are part of Tier 1 |

| curating-memories | For maintaining/pruning skill memories |

| retrospective | Full session retrospective (this is mini version) |

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.