The scope loop plans new work before anyone builds it. This page shows what it can plan, what to give it, and what you get at the end.
Before you start
A folder set up with
/ua:setup.In Codex, type
$ua:scope-loop. In Copilot CLI, ask in words.
What it does
Start with a rough idea. The scope loop turns it into a clear written plan. Then it breaks the plan into tickets you can build one by one.
The plan is called a PRD, a product requirements document. It lists what to build and how to prove that each part works.
Why plan first? Big work goes wrong when the goal is not clear. The scope loop asks the questions early, so the build has fewer surprises.
Note: The scope loop plans. It does not build pages, objects or automations. You build each ticket later with the build loop.
What it can plan
It is about | What it plans |
|---|---|
A new web app or code app, or the whole of one | The data, the roles, the menus, the look, and a job for each page |
A new mobile app, or the whole of one | The data, the roles, the menus, the look, and a job for each screen |
One feature of an app that already exists | A PRD for that one feature |
An AI agent, new or to extend | Its job, its users, sample conversations, tools, knowledge and rules |
An automation or a set of them | What starts it, its steps, its rules and what happens when it fails |
Note: A new web app is planned as a code app, unless you say "no-code". A code app needs Bun on your computer.
See What you need.
What you can give it
An idea in your own words.
Call notes from a talk with a client.
A draft PRD you already have.
Figma frames or screenshots.
A ticket. It reads the description, every comment, and every screenshot.
An app to extend. Name the app and say what to add.
If it cannot tell what your idea is for, it asks you. It never guesses.
Examples
/ua:scope-loop Customers want to track their orders online
/ua:scope-loop <ticket>
/ua:scope-loop An AI agent that answers questions about leave rules
You can also say it in words: "write a PRD for this idea".
How it works
Step 1: It reads your ask
It works out what the idea is for. That can be a web app, a mobile app, one feature, an AI agent or an automation.
Step 2: It picks the right steps
It tells you in one line which kind of plan it is running, and why.
Step 3: It writes the PRD in rounds
It writes a draft and asks you a few questions each round. A second agent that did not write it reviews it.
Step 4: You approve the PRD
For an app, an AI agent or an automation, each version is saved on your solution. Your team reads the same PRD.
Step 5: It makes the tickets
It breaks the work into tickets, in the order to build them. Each ticket is a file in the run folder. Nothing is sent to a tracker: you file them where your team keeps its work. Then give it the ticket keys, so each ticket names the real ones it waits for. A single feature gets its PRD only.
Step 6: It sets up an empty start
For a new app or AI agent, it makes an empty one after you say yes.
What you get at the end
A PRD. For an app, an AI agent or an automation, it is the version you approved.
Each must-have and should-have line is in exactly one ticket.
The tickets, as files for you to file in your tracker.
For a new app or AI agent, an empty one is ready to build in.
For one feature of an existing app, you get the PRD only. Nothing on your tenant changes.
Tip: When the plan is approved, start each ticket with the build loop: /ua:build-loop <ticket>.
Next steps
Build loop: Build the tickets the plan made.
Test loop: Write test cases from your PRD.
What a loop is: See how all 5 loops work.