explaingit

xuansenpa1/skillrevise

Analysis updated 2026-05-18

50PDDLAudience · researcherComplexity · 4/5LicenseSetup · moderate

TLDR

A research framework that improves AI-agent skills by diagnosing failed execution traces and revising the skill based on real evidence rather than rewriting from scratch.

Mindmap

mindmap
  root((SkillRevise))
    Revision Loop
      Diagnose Failure
      Principle Memory
      Revision Operator
      Re-test Skill
    Benchmarks
      Planning Tasks
      Software Engineering
      Skill Learning
    Setup
      Python Package
      CLI
      OpenAI Provider
    Findings
      Beats No Skill
      Beats Single Draft
      Transfers Across Models

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically revise an AI-written reusable skill based on where it actually failed during execution.

USE CASE 2

Run the try-diagnose-revise-test loop on planning, software engineering, or general skill-learning benchmarks.

USE CASE 3

Reuse a growing memory of past failure fixes so the system does not repeat the same mistakes.

USE CASE 4

Compare a revised skill's performance against a no-skill baseline or a single-draft skill.

What is it built with?

PythonPDDLOpenAI API

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires an OpenAI API key and benchmark data bundles to reproduce the paper's experiments.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

SkillRevise is the code release accompanying a research paper about making AI agents better at reusable tasks. The core problem it addresses is this: when you ask an AI language model to write a "skill" (a reusable procedure for completing some category of task), the first draft is often imperfect. SkillRevise is a framework that watches the AI try to use that skill, identifies where it goes wrong, and then revises the skill based on what actually happened during execution rather than just asking the AI to try again from scratch. The revision process has three parts. First, a diagnosis step examines the execution trace (the record of what the AI did and where it failed) and produces a description of what went wrong. Second, a principle memory stores reusable lessons from past failures so the system does not have to rediscover the same fixes repeatedly. Third, a revision operator rewrites the skill with specific anchors tied to the execution evidence, producing a new candidate. That candidate is then actually run on the task again, and only kept if it performs better than what came before. This try-diagnose-revise-test loop can repeat up to a fixed number of rounds. The paper evaluates the system across three benchmarks covering planning tasks, software engineering tasks, and general skill-learning scenarios. Across all three, SkillRevise with three rounds of revision beats both running with no skill at all and running with a skill that was only written once without revision. The improvements hold when skills written for one AI model are transferred to a different model. The repository includes the Python package, a command-line interface, the benchmark data bundles used in the experiments, and documentation for running your own evaluations. You connect it to an AI provider (the examples use OpenAI) through environment variables, then point it at a task manifest file and specify how many revision rounds to allow. The primary language in the repository is PDDL, a planning description language used by some of the benchmarks. The framework itself is in Python.

Copy-paste prompts

Prompt 1
Explain how SkillRevise diagnoses a failed execution trace and turns it into a specific fix for a reusable skill.
Prompt 2
Walk me through the try-diagnose-revise-test loop and how it decides whether to keep a revised skill.
Prompt 3
Help me set up SkillRevise with the OpenAI API and point it at one of the included benchmark task manifests.
Prompt 4
How does the principle memory in SkillRevise store lessons from past failures so they can be reused later?
Prompt 5
Show me how to run SkillRevise for three rounds of revision on a planning benchmark and compare it to no revision.

Frequently asked questions

What is skillrevise?

A research framework that improves AI-agent skills by diagnosing failed execution traces and revising the skill based on real evidence rather than rewriting from scratch.

What language is skillrevise written in?

Mainly PDDL. The stack also includes Python, PDDL, OpenAI API.

What license does skillrevise use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is skillrevise to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is skillrevise for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.