Use LoopFlow alone for small, checkable work. For real product work, we recommend pairing LoopFlow with a method like BMAD: BMAD gives you discovery, PRD or tech-spec, architecture, epics, and story slicing; LoopFlow turns each story into a verifiable agent process.
Tiny BMAD crash course
- Brief — optional discovery: define the problem, user, constraints, and success.
- PRD or tech spec — turn the brief into requirements and acceptance criteria. Simple work may use a tech spec instead of a PRD.
- Architecture — for larger BMAD tracks, decide the technical shape, boundaries, risks, and dependencies.
- Epics — after architecture, break the PRD and technical decisions into large deliverable chunks.
- Stories — break each epic into small, testable units of work.
The handoff to LoopFlow
- One story → one
stage.
- One epic → one
pipeline.
- One sprint/backlog → one
flow with for each.
- Story acceptance criteria become
done when.
- Architecture notes go into
look at: or knowledge:.
- Risky steps become human gates.
- Failed checks feed
reflect.
- Repeated lessons go into
remember in.
BMAD decides the plan. LoopFlow runs the plan until verified.
Ask Claude or Pi to write the loop
You do not have to hand-write the .loop first. After BMAD gives you a story, paste it into your agent and ask LoopFlow to turn it into a verifiable process.
# Claude Code
/loopflow Create a LoopFlow file for this BMAD story.
Story:
<paste story>
Use the architecture notes as context.
Done when the story acceptance tests pass.
Ask me before migrations, dependencies, or pushes.
# Pi
/skill:loopflow Create a LoopFlow file for this BMAD story.
Story:
<paste story>
Use the architecture notes as context.
Done when the story acceptance tests pass.
Ask me before migrations, dependencies, or pushes.
Then run the file:
# Claude Code
/loopflow run story-login.loop
# Pi
/skill:loopflow run story-login.loop
flow "bmad sprint":
for each story in "sprint.yaml":
run "story-template.loop"
story-template.loop contains the pipeline each story runs:
pipeline "bmad story":
stage "implement":
goal: implement the BMAD story from the provided context
look at: src, docs, and the last failure
allow edits automatically, but ask me before dependencies, migrations or pushes
each cycle: plan, then act, then observe
done when "pnpm test" passes
when it fails: reflect on the failed acceptance criteria, then plan again
after 6 tries: stop and warn "story is not converging"
stage "human QA":
goal: human accepts the completed story
each cycle: observe
a human reviews before stopping
Do not port all of BMAD into LoopFlow. Let BMAD decide what to build and in what order; use LoopFlow to make each repeatable story execution verifiable.