🪞
AI EngineeringTypeScript

Reflection Injection

by jmagly

Reflection Injection is an AI Engineering skill for Claude Code, published by jmagly in aiwg.

209 stars32 forkson jmagly/aiwgAdded 2026/09/04+1% in starsRepository updated 2026/09/03
agentic-codingai-frameworkanthropicautonomous-agentsclaude-codecodexcopilotcursordeveloper-toolsfine-tuningmulti-agentmulti-platformorchestrationprompt-engineeringsdlctraining-datawarpworkflow-automation
Install in seconds
Install Reflection Injection
Copy Reflection Injection into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/agent-loop/skills/reflection-injection ~/.claude/skills/reflection-injection

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/jmagly/aiwg.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
agentic/code/addons/agent-loop/skills/reflection-injection/SKILL.md in jmagly/aiwg
Installs to
~/.claude/skills/reflection-injection
Collection
One of 25 skills cataloged from this repository
Category
AI Engineering2970 skills

What Reflection Injection does

Reflection Injection loads relevant past reflections into an agent's context at the start of an iteration or retry. Use it to carry forward lessons from prior failures and avoid repeating mistakes.

Reflection Injection is cataloged under AI Engineering on DirSkills. Reflection Injection comes from a repository tagged agentic-coding, ai-framework, anthropic, autonomous-agents and claude-code.

Documentation

README

reflection-injection

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

Triggers

Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):

  • "inject reflection" → explicit reflection injection shorthand
  • "add metacognition" → metacognitive step insertion

Purpose

This skill implements the Reflexion episodic memory injection pattern. Before each iteration, it loads relevant past reflections and injects them into the agent's context, enabling learning from past mistakes without repeating them.

Behavior

When triggered, this skill:

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Reflection Injection

  • What else does jmagly publish alongside Reflection Injection?

    Reflection Injection is one of 25 skills that DirSkills catalogs from jmagly/aiwg, the repository it ships in. Its siblings there include Agent Loop, Agent Loop and Agent Loop External. Each one is a separate skill with its own page in this directory, installs the same way Reflection Injection does, and is maintained by jmagly in that same repository. The rest of the collection is listed on the jmagly/aiwg page.

  • How does Reflection Injection compare to other AI Engineering skills?

    Reflection Injection ranks #2733 by stars among the 2970 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Reflection Injection against them. Open each page to compare what they document and how they install.