
Improve loop
Runs an unattended build, screenshot-compare and fix loop over a macOS app backlog
Improve loop is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 2K
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Improve loop
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.
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 2 files (5 KB) on GitHub on 1 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 bama plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add daveebbelaar/bama
/plugin install bama@bamaOr copy only this skill to ~/.claude/skills/improve-loop:
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.
Copy the skill folder to ~/.agents/skills/improve-loop to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/improve-loop to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/daveebbelaar/bama.git --path skills/ship/improve-loopOr copy the folder to ~/.gemini/skills/improve-loop yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/improve-loop:
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.
Get the folder:
git clone --depth 1 https://github.com/daveebbelaar/bama.gitThen 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.
What it does
- 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
Improve loop 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.
More from daveebbelaar/bama

Gives a macOS app a CLI and optional MCP server so agents can drive it
- Open source
- 2K GitHub stars
- Developer tools

Runs a架构 check-in on a growing Swift app and refactors it in proven steps
- Open source
- 2K GitHub stars
- Developer tools

Guides a native macOS app through system entry points and their required permissions
- Open source
- 2K GitHub stars
- Developer tools

Measure and speed up a macOS app's hangs, stutter, memory and energy use
- Open source
- 2K GitHub stars
- Developer tools

Swift 6 and SwiftUI rules for macOS apps: concurrency, state, SwiftData and fixes
- Open source
- 2K GitHub stars
- Developer tools

Guides an agent to build a Liquid Glass macOS app icon as an Icon Composer file
- Open source
- 2K GitHub stars
- Design and media


