improve-loop
Skill17 starsChanged 11 days agoMITView on GitHub
Autonomous loop that works through docs/STORIES.md one story at a time for a Windows 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.
5 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- Stijnus/dsh-rev-engedited, first seen Nov 8, 2026
- daveebbelaar/bamaedited, first seen Nov 1, 2026
- maxvyshniakov/improve-looptheir own version, first seen Oct 13, 2026
- zircote/improvertheir own version, first seen Oct 11, 2026
- skipstery/improve-looptheir own version, first seen Jul 13, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- daveebbelaar/bama★ 1.7k84% same
- Stijnus/dsh-rev-eng★ 182% same
Wrote their own version · 3
- maxvyshniakov/improve-loop★ 0same name
- skipstery/improve-loop★ 0same name
- zircote/improver★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- agent-cliSkill
- csharp-winuiSkill
- improve-architectureSkill
- os-integrationsSkill
- performanceSkill
- app-iconSkill
- design-from-appSkill
- design-kitSkill
- design-systemSkill
- layout-gridSkill
- ux-designSkill
- windows-designSkill
- cloneSkill
- researchSkill
- user-storiesSkill
- build-and-verifySkill
- distributeSkill
- test-windows-appSkill
- app-briefSkill
- bawaSkill
- new-windows-appSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 2 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Stop after the milestone the user named, or after the current milestone if they named none.
- Very specific: line 25
If the story adds a screen, an action, or words and has no UX: block yet, call the Skill tool with ux-design first.
- Distinctive: line 28
Write two to five lines in your head or in the commit body: which files change, which model fields are new, which command and shortcut it …
- Very specific: line 35
Follow the csharp-winui and windows-design skills, the story's UX: block, and design/DESIGN-SYSTEM.md if the app has one.
- Very specific: line 43
Follow the build-and-verify skill.
- Very specific: line 68
No reference screenshot (no app was cloned)?
- Very specific: line 103
When the last story of a milestone is done, call the Skill tool with improve-architecture before you start the next milestone.
- Very specific: line 108
When a story fixes a bug, add an entry to docs/FIXLOG.md: symptom, cause, fix, and a last line Rule: <what to always or never do>.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Improve loop
One pass through the loop takes one story from todo to done:
pick story -> plan -> code -> ./build.ps1 -> self-test -> snapshot -> compare -> fix -> commit -> update STORIES.mdStop 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 command and shortcut it adds,
which snapshot page shows it. If the story needs a new database column,
add a migration step with a DEFAULT, so existing databases keep loading.
3. Code
Follow the csharp-winui and windows-design skills, the story's UX:
block, and design/DESIGN-SYSTEM.md if the app has one. System hooks
follow os-integrations. Keep each page file under about 300 lines of
XAML and 300 of code-behind. Put new pages in the SidebarPage enum so
snapshot mode visits them.
4. Build, test, and snapshot
Follow the build-and-verify skill. If the story has logic, add a unit
test or a self-test step first (test-windows-app skill) and watch it
fail. 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:
- Missing or wrong behavior from the acceptance criteria, and wrong data (an empty state over seeded data).
- Words and flow: names, surface, and states that differ from the
UX:block ordocs/GLOSSARY.md. - Layout: wrong column, wrong order, missing element, and every FAIL from the grid checks.
- Hierarchy: what is biggest, boldest, first.
- Spacing and alignment.
- Color and details.
The goal is the same structure and behavior, built from WinUI's own controls. It is not a pixel copy. When the reference uses a web-style custom control and WinUI has a native one (a NavigationView, a CommandBar, a MenuFlyout, a CalendarDatePicker, an InfoBar), use the native one.
No reference screenshot (no app was cloned)? Compare against the story's
acceptance lines and the windows-design rules instead.
Snapshot only the pages a story touches (tools/snap.ps1 -Pages ...), and
the full set at the end of each milestone.
Fix, rebuild, and compare again. Three rounds per story at most. If it
still does not match, set the story to todo again with a note that says
what is blocking, and move on.
6. Commit and record
git add -A
git commit -m "Complete tasks with Ctrl+Enter"Set the story to done in docs/STORIES.md and commit that with the
code. One story per commit, so any story can be reverted on its own. M1
may land as one commit when its stories share one skeleton (model, pages,
list, persistence); from M2 on, one story per commit.
7. Report
At the end of the loop, report to the user:
- Stories done, with one line each and the snapshot paths that show them.
- Stories blocked, and why.
- Anything the user should try by hand (global shortcuts, drag and drop).
- The next story in line.
Then ./build.ps1 -Open so the user can try the new build.
Milestone check-in
When the last story of a milestone is done, call the Skill tool with
improve-architecture before you start the next milestone. Unattended,
do its top recommendation only if it is Strong, and leave the rest in
the review file for the user.
When a story fixes a bug, add an entry to docs/FIXLOG.md: symptom,
cause, fix, and a last line Rule: <what to always or never do>. The fix
log outlives squashed history, and the check-in reads it.
Running it unattended
The loop works with no one watching, because every step checks itself: the build, the self-test, the snapshots, the acceptance criteria. To let it run longer, start it with a clear limit ("finish M2, then stop"), make sure the tree is committed before you start, and never let it touch the user's real database. Keep the PC unlocked and awake: a locked screen renders blank snapshots. Each story is a separate commit, so the user can review the history in the morning and revert anything they do not like.
To build several features at once (a suite, or independent stories in
different folders), give each agent its own git worktree and build with
tools/dev.ps1: ../../start/new-windows-app/suite.md.
Done when every story in the milestone is done or named in the report as
blocked with a reason, each done story has its own commit, and the user
has the report.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

