Self improving agent

From fisker086/AIOps · View interactive version

Self improving agent is an AI agent skill from the GitHub repository fisker086/AIOps. Continuous improvement through error tracking, lesson learning, and feedback integration

How to use this skill

Skill file

Self-Improving Agent

This skill enables continuous improvement by tracking errors, lessons learned, and user corrections. Uses persistent database storage.

When to Use

Use this skill proactively in these scenarios:

  1. Command or operation fails unexpectedly - A tool execution fails, command returns error
  2. User corrects you - User says "no, that's wrong", "not what I meant", or provides corrections
  3. Repeated failures - Same type of error occurs multiple times
  4. Unknown uncertainty - Not sure if approach is correct, want to verify before proceeding

How It Works

Using the Tool

Use builtin_learning tool with the following operations:

1. Record a Learning (add)

Record what you learned from an error or correction:

operation: "add"
error_type: "shell_command_permission_denied"
context: "Tried to run 'apt-get install' without sudo"
root_cause: "User not in sudoers file"
fix: "Use 'sudo' prefix or check if user has permission"
lesson: "Always check if elevated permissions are needed before system commands"

Parameters:

2. List Learnings (list)

Get all learnings for a user (or global if no user_id):

operation: "list"
user_id: "123"
3. Get Specific Learning (get)

Retrieve a specific learning by error_type:

operation: "get"
error_type: "shell_command_permission_denied"

Key Principles

After Each Error/Correction

When you learn something, record it:

Error/Lesson: [Brief description]
Root Cause: [Why it happened]
Fix Applied: [What you did differently]
Learnings: [General principle for future]

This skill should be used proactively - don't wait to be told to improve. The platform gets smarter over time!

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.