reflection

Installation
SKILL.md

Reflection

Reflection (also known as Self-Correction or Self-Refinement) gives an agent the ability to look at its work and ask, "Is this correct?" or "Can this be better?". Instead of accepting the first draft, the agent acts as its own critic, identifying flaws and generating an improved version. This significantly boosts performance on reasoning and coding tasks.

When to Use

  • Quality Control: When high accuracy is required (e.g., generating code, writing legal text).
  • Compliance: To ensure the output follows specific formatting or policy constraints.
  • Iterative Improvement: When "good enough" isn't enough, and polish is needed.
  • Hallucination Check: Asking the model to verify facts against its own knowledge or retrieved context.

Use Cases

  • Code Repair: Creating code -> Running it -> Reading the error -> Fixing the code.
  • Writing Polish: Drafting an email -> Critiquing tone and clarity -> Rewriting.
  • Safety Check: Generating a response -> Checking for policy violations -> Regenerating if unsafe.

Implementation Pattern

Related skills

More from lauraflorentin/skills-marketplace

Installs
18
First Seen
Feb 11, 2026