reflection-injection

Inject relevant past reflections into agent context before retrying tasks.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/robit-man/transcribe-cli --skill reflection-injection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reflection-injection
Source: https://github.com/robit-man/transcribe-cli/tree/main/.claude/skills/reflection-injection
Command: npx skills add https://github.com/robit-man/transcribe-cli --skill reflection-injection

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill prevents agents from repeating past errors by automatically injecting relevant lessons learned from previous iterations or failures into the current context.

Core Features & Use Cases

  • Episodic Memory Injection: Loads and filters past reflections based on task or error similarity.
  • Contextual Enhancement: Formats and prepends relevant reflections to the agent's context for improved decision-making.
  • Usage Tracking: Monitors the effectiveness of injected reflections to refine future learning.
  • Use Case: When an agent retries a failed coding task, this skill ensures it considers why it failed before, applying those lessons to the new attempt.

Quick Start

Automatically inject relevant past reflections into the agent context when starting new iterations or retrying after failures.

Frequently Asked Questions about reflection-injection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent an agent from repeating past mistakes during retries?

To prevent an agent from repeating past mistakes, you inject relevant past reflections into its context. This automatically loads filtered lessons learned from previous failures and prepends them to the current iteration for improved decision-making.

How does episodic memory injection work for agent context?

Episodic memory injection works by loading reflection history from specified directories and filtering it based on task or error similarity. Relevant lessons are formatted using a provided template and injected into the agent context before new iterations.

What is the best way to apply lessons learned from previous agent failures?

The best way to apply lessons learned from previous agent failures is to automatically filter past reflections by error type and inject them into the current task context. This ensures the agent considers why it failed before attempting the new task.

Can I track the success rate of injected reflections in my agent workflow?

You can track the success rate of injected reflections using built-in usage tracking. It monitors the effectiveness of injected reflections to refine future learning and ensure only the most relevant past lessons are applied.

Do I need to manually format past reflections before adding them to agent context?

You do not need to manually format past reflections before adding them to agent context. The system automatically formats relevant reflections using a provided template and tracks their usage when starting new iterations or retrying after failures.