# Improve loop

> Improve loop is an open-source agent skill for developer tools. Runs an unattended build, screenshot-compare and fix loop over a macOS app backlog. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/daveebbelaar/bama/tree/main/skills/ship/improve-loop
- **Repository:** https://github.com/daveebbelaar/bama
- **GitHub stars:** 2,009
- **License:** MIT
- **Skill name:** improve-loop
- **Collection:** https://github.com/daveebbelaar/bama
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Improve loop drives a macOS app build from a story backlog kept in docs/STORIES.md. It takes the first ready story in a milestone, plans the change, codes it in SwiftUI, builds the app, captures snapshots of the touched pages, and compares them against reference screenshots. Mismatches are fixed over up to three rounds before the story is marked blocked and the loop moves on.

The skill expects a project with its own helper skills and scripts, including a build.sh script, a seed-data environment flag for snapshot mode, and docs files such as STORIES.md, GLOSSARY.md and FIXLOG.md. It asks the agent to commit each story separately so changes can be reverted one at a time, and to record bug fixes with a symptom, cause and rule. It finishes with a report of completed and blocked stories and a build opened for the user.

The skill is written for running without supervision, so it stresses setting a clear stopping point, starting from a committed working tree, and keeping the user's real database out of the loop.

## When your agent uses it

> Autonomous loop that works through docs/STORIES.md one story at a time for a macOS app, building, snapshotting, comparing against reference screenshots, fixing, and committing, until a milestone is done. Use when the user says "keep going", "work through the backlog", "make it match the reference", or wants an unattended improvement loop.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/daveebbelaar/bama/tree/HEAD/skills/ship/improve-loop)
- [License: MIT](https://github.com/daveebbelaar/bama/tree/HEAD/skills/ship/improve-loop)

## Features

- **Story-by-story loop:** Picks the next ready story in a milestone, marks it in progress, and works it through to done or blocked.
- **Snapshot comparison:** Captures app pages and checks them against reference screenshots, ordering differences from behavior down to color.
- **Bounded fix rounds:** Allows up to three fix and recompare rounds per story before flagging it for the user.
- **Per-story commits:** Commits each completed story separately, with the story status updated in the same commit.
- **Bug fix log:** Records symptom, cause, fix and a rule for each bug fix in a FIXLOG file.
- **Milestone check-in:** Runs an architecture review at milestone end and applies only top-rated recommendations unattended.

## Good for

- Work through the next milestone of a macOS app backlog overnight
- Make a SwiftUI screen match a reference screenshot
- Fix a batch of todo stories and commit each one separately
- Produce a report of finished and blocked stories after a build run

## Install

### Claude Code

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

```sh
/plugin marketplace add daveebbelaar/bama
/plugin install bama@bama
```

Or copy only this skill to `~/.claude/skills/improve-loop`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/daveebbelaar/bama.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/improve-loop &&
cp -R "$tmp/skills/ship/improve-loop" ~/.claude/skills/improve-loop &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/daveebbelaar/bama.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/improve-loop &&
cp -R "$tmp/skills/ship/improve-loop" ~/.agents/skills/improve-loop &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/daveebbelaar/bama.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/improve-loop &&
cp -R "$tmp/skills/ship/improve-loop" ~/.cursor/skills/improve-loop &&
rm -rf "$tmp"
```

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

### Gemini CLI

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

```sh
gemini skills install https://github.com/daveebbelaar/bama.git --path skills/ship/improve-loop
```

Or copy the folder to `~/.gemini/skills/improve-loop` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/daveebbelaar/bama.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/improve-loop &&
cp -R "$tmp/skills/ship/improve-loop" ~/.copilot/skills/improve-loop &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/daveebbelaar/bama.git
```

Then copy `bama/skills/ship/improve-loop` into your agent's skills folder as `improve-loop`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It expects a macOS app repository with docs/STORIES.md, a build.sh script, and helper skills such as build-and-verify, swift-swiftui and mac-design. Reference screenshots are optional; without them it compares against acceptance lines and mac-design rules.

### When does Improve loop trigger?

When the user says things like keep going, work through the backlog, make it match the reference, or asks for an unattended improvement loop.

### What does Improve loop change in a project?

It edits Swift code and snapshot setup, updates story status in docs/STORIES.md, adds entries to docs/FIXLOG.md, and makes git commits for each story.

### How does Improve loop handle stories that do not match the reference?

After three fix rounds it sets the story back to todo with a note on what is blocking it, moves on, and lists it as blocked in the final report.

### How do I install Improve loop in Claude Code?

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

### Does Improve 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 Improve 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 Improve loop?

The closest alternatives to Improve loop are Build and verify, Improve architecture, Clone, Swe loop and Test mac app.

## Where this comes from

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

## Alternatives

- [Build and verify](https://ai-powered.com/skills/build-and-verify): Build and verify is an open-source agent skill for developer tools.
- [Improve architecture](https://ai-powered.com/skills/improve-architecture): Improve architecture is an open-source agent skill for developer tools.
- [Clone](https://ai-powered.com/skills/clone-daveebbelaar): Clone is an open-source agent skill for developer tools.
- [Swe loop](https://ai-powered.com/skills/swe-loop): Swe loop is an open-source agent skill for developer tools.
- [Test mac app](https://ai-powered.com/skills/test-mac-app): Test mac app is an open-source agent skill for developer tools.
- [Performance](https://ai-powered.com/skills/performance-daveebbelaar): Performance is an open-source agent skill for developer tools.
- [Optimize loop](https://ai-powered.com/skills/optimize-loop): Optimize loop is an open-source agent skill for developer tools.
- [Layout grid](https://ai-powered.com/skills/layout-grid): Layout grid is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/improve-loop
