implement-agent-reflection

Construct an Evaluator-Generator loop for iterative LLM output refinement.

1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/EnigmaWU/MyCodeAgentSkills --skill implement-agent-reflection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement-agent-reflection
Source: https://github.com/EnigmaWU/MyCodeAgentSkills/tree/main/implement-agent-reflection
Command: npx skills add https://github.com/EnigmaWU/MyCodeAgentSkills --skill implement-agent-reflection

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enables agents to design self-correcting loops for LLM-based tasks, ensuring high-quality outputs by forcing critical self-reflection before finalizing the result.

Core Features & Use Cases

  • Self-Correcting Loops: Establishes an Evaluator-Generator pattern that critiques initial outputs and iteratively refines them.
  • High-Quality Outputs: Prevents subtle flaws in single-shot LLM outputs through structured reflection.
  • Use Case: Ideal for scenarios like code review or prompt engineering, where ensuring a high standard of output is critical.

Quick Start

Use the implement-agent-reflection skill to refine an output: trigger-reflection-on-output <your-output>.

Frequently Asked Questions about implement-agent-reflection

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

FAQPage Schema
How do I set up a self-correcting loop for LLM-based tasks?

To set up a self-correcting loop for LLM-based tasks, use an Evaluator-Generator pattern that critiques initial outputs and iteratively refines them. This structured reflection process prevents subtle flaws in single-shot generations.

What is agent reflection and how does it improve output quality?

Agent reflection is a technique that enhances output quality by forcing critical self-reflection before finalizing results. It uses an evaluator-generator loop to explicitly critique and refine initial LLM outputs iteratively.

How do I trigger agent reflection on an existing LLM output?

To trigger agent reflection on an existing LLM output, use the command `trigger-reflection-on-output <your-output>`. This initiates the evaluator-generator loop to critique and refine the provided content.

When do I need self-correcting loops for high-fidelity LLM outputs?

You need self-correcting loops for high-fidelity LLM outputs in scenarios like code review or prompt engineering. These tasks require ensuring a high standard of output by preventing subtle flaws through structured reflection.

Does the evaluator-generator approach work for single-shot LLM outputs?

Yes, the evaluator-generator approach works by taking single-shot LLM outputs and applying an iterative self-critique loop. It refines the initial generation through explicit reflection to achieve high-quality results.