Self improvement loop

From ashermahonin/agentic-skills · View interactive version

Self improvement loop is an AI agent skill from the GitHub repository ashermahonin/agentic-skills. Repair a measured failure in agent routing, instructions, tool contracts, context, memory, or evaluation, then verify the repair and resume the original task. Use after a reproducible failed check, route mismatch, tool misuse, regression, or specific user correction. Do not activate from vague dissa

How to use this skill

Skill file

Self-improvement loop

Purpose

Correct a specific weakness in the system around the model. This event loop changes prompts, skills, routing, tools, memory, or evaluations; it does not train model weights.

Failure evidence

  1. Read references/improvement-loop.md.
  2. Save the resume point in the original task.
  3. Record the triggering event, expected behavior, available logs or checks, and smallest reproduction.
  4. Classify the failure: route, context, documentation, tool contract, prompt, memory, evaluation, permission, handoff, or implementation.
  5. Decide whether the fault belongs to the product or the agent system. Route ordinary code defects to implementation.
  6. Define one measurable improvement target and a stop condition.

Repair cycle

  1. Reproduce the failure and identify the first wrong decision supported by evidence.
  2. Compare the smallest plausible repairs when the cause is uncertain. Verify current external behavior before changing a technical contract.
  3. Change the narrowest durable surface: trigger description, route, procedure, reference, tool schema, context policy, memory rule, or evaluator.
  4. Re-run the reproduction and one nearby non-regression case.
  5. Add a behavioral regression check when it can catch the same failure class without matching preferred wording.
  6. Write a short project-memory note only when the lesson is likely to help a future task. Use the active equivalent of 53-agent-learning-log.md.
  7. Resume the original task from the saved point.

Event loop rules

Permission boundary

Improvement record

Resume criteria

Handoff

Report the failure class, changed artifact, before/after evidence, regression protection, remaining risk, and exact point where the original task resumes.

References

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.