improve-loop

improve-loop is a skill for Claude Code, Codex from daveebbelaar/bama. It costs 75 tokens per session (1,166 once invoked), scanned A, original, MIT.

An automated work loop for completing one app story at a time: plan, code, build, capture screenshots, compare, fix, commit, and update the backlog. A commit is a saved checkpoint in Git, the system commonly used to track code changes.

In plain words
What is it for?
Use it to work through a macOS app backlog, match reference screenshots, and commit completed stories in sequence.
Why use it?
It removes repeated manual coordination between the backlog, implementation, visual checks, and saved code changes. It also stops at a named milestone or the current milestone.

Skill for Claude CodeCodex

Written for Claude Code and Codex: argument-hint in frontmatter, but also agents/openai.yaml present.

Part of the bama plugin — 21 skills shipped together

Good fit Use it to work through a macOS app backlog, match reference screenshots, and commit completed stories in sequence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daveebbelaar/bama/improve-loop
About the project

BAMA is a set of agent skills for researching, copying, designing, building, optimizing, and testing native macOS applications with Swift and SwiftUI. It helps developers turn an existing app or an idea into a Mac app while using local data and avoiding the Xcode graphical interface. The catalogue entries are BAMA’s skills, instruction, and plugin for guiding that workflow.

daveebbelaar/bama · 2,007 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add daveebbelaar/bama --skill improve-loop
Clone the repo
git clone --depth 1 https://github.com/daveebbelaar/bama

Made for: Claude Code, Codex.

Or install bama, the plugin that ships this one along with the rest of its 21 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for improve-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/daveebbelaar/bama/improve-loop/github.svg)](https://agentmods.dev/skills/daveebbelaar/bama/improve-loop)
Your own site
<a href="https://agentmods.dev/skills/daveebbelaar/bama/improve-loop"><img src="https://agentmods.dev/badge/skills/daveebbelaar/bama/improve-loop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for improve-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/daveebbelaar/bama/improve-loop"><img src="https://agentmods.dev/badge/skills/daveebbelaar/bama/improve-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,166 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 26 Oct 2026
  • Snyk pass 26 Oct 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.01166
Opus 5.5 $0.00030 $0.00466
Sonnet 5.5 $0.00015 $0.00233
Haiku 4.5 $0.00007 $0.00117

Measured 15d ago against content hash 3edae75dafd3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

improve-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ship/improve-loop/SKILL.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Improve loop

One pass through the loop takes one story from todo to done:

pick story -> plan -> code -> ./build.sh -> snapshot -> compare -> fix -> commit -> update STORIES.md

Stop after the milestone the user named, or after the current milestone if they named none. Then report.

1. Pick

Open docs/STORIES.md. Take the first todo story in the current milestone whose dependencies are done. Set it to doing.

2. Plan

If the story adds a screen, an action, or words and has no UX: block yet, call the Skill tool with ux-design first.

Write two to five lines in your head or in the commit body: which files change, which model fields are new, which menu command and shortcut it adds, which snapshot page shows it. If the story needs a new SwiftData field, give it a default value so existing databases keep loading.

3. Code

Follow the swift-swiftui and mac-design skills, the story's UX: block, and design/DESIGN-SYSTEM.md if the app has one. System hooks follow os-integrations. Keep each view file under about 300 lines. Put new pages in the SidebarItem enum so snapshot mode visits them.

4. Build and snapshot

Follow the build-and-verify skill. If the story has logic, add a test or a self-test step (test-mac-app skill). Use seed data (APP_SEED=1) so pages show real content.

5. Compare

Open your snapshot and the story's reference screenshot side by side with the Read tool. Write down the differences that matter, in this order:

  1. Missing or wrong behavior from the acceptance criteria.
  2. Words and flow: names, surface, and states that differ from the UX: block or docs/GLOSSARY.md.
  3. Layout: wrong column, wrong order, missing element, and every FAIL from the grid checks.
  4. Hierarchy: what is biggest, boldest, first.
  5. Spacing and alignment.
  6. Color and details.

The goal is the same structure and behavior, built from Apple's own controls. It is not a pixel copy. When the reference uses a web-style custom control and macOS has a native one (a toolbar, a sidebar, a context menu, a date picker), use the native one.

Read the full file on GitHub · 121 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago First seen · 121 lines · 75 tokens per session scan A 3edae75dafd3

Subscribe to this mod's changes

improve-loop is a skill published in the GitHub repository daveebbelaar/bama (2,007 stars, last pushed 25d ago), licensed MIT. It adds 75 tokens to every session and 1,166 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

improve-loop compared with skills from other repositories

improve-loop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
improve-loopdaveebbelaar/bamaSkill2.0k25d agoMITA75Claude Code, Codex
branch-and-worktree-workflowcbrock84/headcountSkill2.6ktodayMITA70Claude Code
precommitsd0xdev/sd0x-harnessSkill1965d agoMITA15Claude Code
next-stepsd0xdev/sd0x-harnessSkill1965d agoMITA63Claude Code
precommit-fastsd0xdev/sd0x-harnessSkill1965d agoMITA15Claude Code
unslop-commitMohamedAbdallah-14/unslopSkill2017d agoMITA139Claude Code
releasegtapps/hermitdSkill87todayMITA104Claude Code, Codex