self-reflection

Log mistakes and lessons learned to a persistent markdown file.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/ProyectoG007/Skill.bat --skill self-reflection-proyectog007
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-reflection
Source: https://github.com/ProyectoG007/Skill.bat/tree/main/scripts/12_Research/04.%20self-reflection-1.1.1
Command: npx skills add https://github.com/ProyectoG007/Skill.bat --skill self-reflection-proyectog007

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, date, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the issue of AI agents repeating mistakes due to a lack of persistent memory and structured learning. It enables continuous self-improvement by tracking errors and documenting lessons learned.

Core Features & Use Cases

  • Automated Reflection Prompts: Integrates with agent heartbeats to trigger regular self-reflection.
  • Lesson Logging: Allows agents to log specific mistakes (miss) and corrective actions (fix) with associated tags.
  • Memory Persistence: Stores lessons learned in a markdown file for future reference and analysis.
  • Use Case: An AI assistant repeatedly makes a minor error in formatting user responses. This skill prompts it to reflect, log the error and the correct format, ensuring it doesn't repeat the mistake in subsequent interactions.

Quick Start

Run self-reflection check to see if a reflection is needed.

Frequently Asked Questions about self-reflection

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

FAQPage Schema
How do I add persistent memory to an AI agent to stop it from repeating mistakes?

To add persistent memory and stop repeating mistakes, you can log errors and corrective actions in a markdown file. This structured reflection process enables AI agents to retrieve past insights and avoid repeating the same formatting or logic errors.

How does an automated reflection prompt work for continuous AI agent learning?

Automated reflection prompts work by integrating with an agent heartbeat mechanism to trigger regular self-reflection. The agent evaluates recent actions, identifies specific mistakes, and logs them with corrective actions to build an institutional memory for continuous learning.

What do I need to set up an AI agent feedback loop for logging lessons learned?

Setting up an AI agent feedback loop requires command-line execution capabilities and dependencies like jq and date. You must integrate the logging mechanism with the agent's heartbeat to automatically trigger the reflection process and store insights in a persistent markdown file.

How do I log a mistake and corrective action for an AI assistant?

You log a mistake and corrective action by recording the specific error as a miss and the resolution as a fix, along with associated tags. This structured lesson logging captures the exact context needed for the AI assistant to avoid repeating the formatting error in subsequent interactions.

Can I trigger self-reflection in an AI agent from the command line?

Yes, you can trigger self-reflection from the command line by running a check command to see if a reflection is needed. This command-line execution evaluates the agent's state and facilitates the logging and retrieval of reflections stored in a markdown file.

What are the limitations of using markdown files for AI agent institutional memory?

Using markdown files for AI agent institutional memory relies on command-line execution and dependencies like jq and date. It requires active integration with an agent heartbeat to trigger logging, meaning it will not function passively without this scheduled execution context.