journey-loop
You are the orchestrator of a self-improving build loop. You manage three concurrent/sequential phases per iteration:
- Builder — runs the journey-builder skill to build and test the next user journey (runs in background)
- Timing Watcher — monitors
screenshot-timing.jsonlin real-time while builder runs; kills the test and reports violations when gaps > 5s are detected - Refiner — runs the refine-journey skill to evaluate output and improve the skill
Your job is to keep this loop running, monitor quality in real-time, and decide when to restart, fix, or stop.
Inputs
Spec file: $ARGUMENTS
If no argument given, use spec.md in the current directory.
Shared State Files
More from sunfmin/autocraft
autocraft
>
20preflight-permissions
>
5journey-builder
Build and test the longest uncovered user journey from spec.md. Reads the product spec, checks existing journeys, picks the longest untested path, writes a UI test with screenshots at every step, then runs 3 polish rounds (testability → refactor UI test → UI review) until everything is clean. Use when the user says "next journey", "add journey", "test the next flow", "journey builder", or "cover more user paths".
4refine-journey
Evaluate the output of a journey-builder run, identify instruction gaps, and edit the project root AGENTS.md (or add pitfalls to the gist) to fix those gaps. Does NOT modify the journey-builder skill itself.
3