Skip to content
Skill

Self correcting loop

Runs fix-check-fix cycles on ABAP code until syntax, ATC, tests and activation pass

Self correcting loop is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
14
Last commit
License
MIT
Listing updated

Similar skills

About Self correcting loop

This skill guides an agent through repeated repair of ABAP code that has syntax errors, ATC findings, failing unit tests or activation problems. Each pass runs the full check suite, isolates the first failing check, traces its root cause and applies one targeted change before checking again. Every attempt is recorded in a fix history so the agent can spot circular fixes where correcting one issue breaks another.

The workflow is bounded: after ten iterations the agent stops and escalates to the user with the accumulated history rather than looping indefinitely. The skill also forbids shortcuts such as suppressing ATC findings or deleting failing tests, so a passing result means the code was actually corrected. Completion requires a clean run of every check and an activated set of objects in dependency order.

The skill expects an ABAP development environment with syntax checking, ATC, unit test execution and object activation available to the agent. It is designed to be invoked from a pipeline such as autopilot or from code generation and review skills, and it hands control back to the caller once the checks are green.

When your agent uses it

Use when generated or modified ABAP code has syntax errors, ATC findings, test failures, or activation issues. Runs an iterative fix-check-fix loop until the code is clean, tested, and activated. Equivalent to a persistent development TDD cycle.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (6 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the sap-superpowers plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add vigneshbarani24/sap-superpowers
/plugin install sap-superpowers@sap-superpowers

Or copy only this skill to ~/.claude/skills/self-correcting-loop:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vigneshbarani24/sap-superpowers.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/self-correcting-loop &&
cp -R "$tmp/skills/development/self-correcting-loop" ~/.claude/skills/self-correcting-loop &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/self-correcting-loop inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/self-correcting-loop to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vigneshbarani24/sap-superpowers.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/self-correcting-loop &&
cp -R "$tmp/skills/development/self-correcting-loop" ~/.agents/skills/self-correcting-loop &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/self-correcting-loop inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/self-correcting-loop to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vigneshbarani24/sap-superpowers.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/self-correcting-loop &&
cp -R "$tmp/skills/development/self-correcting-loop" ~/.cursor/skills/self-correcting-loop &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/self-correcting-loop inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/vigneshbarani24/sap-superpowers.git --path skills/development/self-correcting-loop

Or copy the folder to ~/.gemini/skills/self-correcting-loop yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/self-correcting-loop:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vigneshbarani24/sap-superpowers.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/self-correcting-loop &&
cp -R "$tmp/skills/development/self-correcting-loop" ~/.copilot/skills/self-correcting-loop &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/self-correcting-loop inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/vigneshbarani24/sap-superpowers.git

Then copy sap-superpowers/skills/development/self-correcting-loop into your agent's skills folder as self-correcting-loop. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Iterative fix loop
Repeats verify and repair cycles, re-running all checks after each single change.
Check suite coverage
Covers syntax checks, ATC findings, unit tests and object activation.
ATC priority handling
Requires P1 and P2 ATC findings to be resolved while documenting P3 findings.
Fix history logging
Records each error, root cause, change and result to prevent circular fixes.
Iteration limit
Stops after ten attempts and escalates to the user with the fix history.
No gate weakening
Prohibits suppressing findings or deleting tests to make checks pass.

Good for

  • Fix syntax errors in a newly generated ABAP class
  • Resolve ATC findings on modified ABAP code
  • Repair failing ABAP unit tests after a logic change
  • Get a set of ABAP objects to activate cleanly
  • Document the fix history for a repeated ABAP repair attempt

Self correcting loop FAQ

What does the skill need to start?

Before the loop begins, the code must be compilable or the first error identified, the check suite must be defined, and the fix history log must be initialized.

What happens if the errors are not fixed after several attempts?

After ten iterations the agent stops and escalates to the user with the fix history instead of continuing.

Can the skill suppress ATC findings or delete failing tests?

No. The skill requires fixing the code for ATC findings and fixing the logic for failing tests rather than suppressing or removing them.

Which ATC findings must be resolved?

P1 and P2 findings must be resolved, while P3 findings are documented but not blocking.

How do I install Self correcting loop in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/self-correcting-loop to use it in all your projects, or to .claude/skills/self-correcting-loop in one project. Or install the sap-superpowers plugin, which includes it: /plugin marketplace add vigneshbarani24/sap-superpowers, then /plugin install sap-superpowers@sap-superpowers.

Does Self correcting loop run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Self correcting loop?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Self correcting loop?

The closest alternatives to Self correcting loop are Correct, Skill improver, Agent introspection debugging, Vibe quality loop and Principle fix root causes.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from vigneshbarani24/sap-superpowers

  1. Category folder grouping nine SAP consulting sub-skills in SAP Superpowers

    • Open source
    • 14 GitHub stars
    • Enterprise it
  2. Structured SAP solution ideation with SAP standard checks, feasibility and prioritization

    • Open source
    • 14 GitHub stars
    • Developer tools
  3. Guides an agent through SAP change management: stakeholders, readiness, comms, training

    • Open source
    • 14 GitHub stars
    • Productivity
  4. Runs a structured Socratic interview to turn vague SAP project ideas into complete

    • Open source
    • 14 GitHub stars
    • Developer tools
  5. Produces range-based SAP effort estimates with work breakdown, risk buffers and timelines

    • Open source
    • 14 GitHub stars
    • Productivity
  6. Classifies SAP business requirements as fit, gap or partial fit for an Explore phase

    • Open source
    • 14 GitHub stars
    • Productivity