/bawa:improve-loop [milestone, e.g. M1]from bawa
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.
Ships in bawa. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.md
Stop after the milestone the user named, or after the current milestone if they named none. Then report.
Open docs/STORIES.md. Take the first todo story in the current
milestone whose dependencies are done. Set it to doing.
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.
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.
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.
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:
UX:
block or docs/GLOSSARY.md.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.
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.
At the end of the loop, report to the user:
Then ./build.ps1 -Open so the user can try the new build.
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.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
winui, csharp, windows-app, story-driven-development, visual-testing
npx claudepluginhub daveebbelaar/bawa --plugin bawa22 skills in this plugin
/agent-cliOptional command line and MCP server for a Windows app, so Claude Code, Codex, and scripts can drive it (list, add, change, search, act) through the running app. Use when the user wants agents to work with their app or its data, asks for a CLI, an MCP server, or automation for the app, or says "Claude should be able to use my app"./app-briefOne-page brief (docs/BRIEF.md) for a new Windows app, written before any code. Use when the user has an app idea, wants to replace an app they pay for, or the research and clone skills are done./app-iconWindows app icon drawn as an SVG (Icon/AppIcon.svg), rendered by tools/make-icon.ps1 into a multi-size AppIcon.ico and AppIcon.png, and reviewed on light and dark taskbar and Start backgrounds, with hand-tuned small sizes. Use when the user wants an app icon, a better icon, or a taskbar or Start icon./bawaBuild any Windows app. Start here to pick the next skill for a native Windows app./build-and-verifyBuild a WinUI 3 app from the command line, install it, and check light and dark window snapshots of every page before calling a change done. Use after any UI code change, when a build fails, or when the user asks to run, screenshot, or check the app./cloneWalk through any existing app (native Windows app with computer use, web app with a browser), screenshot every screen, menu, and dialog, write a screen index, and turn it into user stories. Use when the user wants to clone, rebuild, replace, or copy the design of an app, or says "screenshot every screen".Other plugins' skills for the same job