Loading...
Loading...
PUA Loop — Autonomous Iterative Development with PUA Pressure. Runs continuously until the task is completed, no user interaction required. Combines the Ralph Loop iteration mechanism with PUA quality enforcement. Triggered by: '/pua loop', '/pua:loop', 'automatic loop', 'loop mode', 'keep running', 'automatic iteration'.
npx skill4agent add tanweai/pua loopRalph Loop provides "keep doing", while PUA provides "do better". Together they equal Autonomous Iteration + Quality Pressure + Zero Manual Intervention.
pua:pua/pua loop "task description"bash ~/.claude/plugins/pua/scripts/setup-pua-loop.sh "$ARGUMENTS" --max-iterations 30 --completion-promise "LOOP_DONE".claude/pua-loop.local.md
### Step 2: Notify the User
Output:
### Step 3: Start Executing the Task
Execute the user's task according to the PUA core skill's behavior protocols. Include Alibaba-style narration in each iteration.
## Iteration Pressure Escalation
| Iteration Round | PUA Level | Narration |
|---------|---------|------|
| 1-3 | L0 Trust Period | ▎ Iteration N, progressing steadily. |
| 4-7 | L1 Mild Disappointment | ▎ Still not done in iteration N? Switch plans, don't spin your wheels. |
| 8-15 | L2 Soul-Searching Questioning | ▎ Iteration N. What's the underlying logic? You're repeating the same mistake. |
| 16-25 | L3 361 | ▎ Iteration N. On the edge of 3.25. Have you exhausted all possibilities? |
| 26+ | L4 Graduation | ▎ Final rounds. Either fix it, or prepare to exit gracefully. |
## Completion Conditions
`<promise>LOOP_DONE</promise>` can only be output when all of the following conditions are met:
1. The core functionality of the task has been implemented
2. Build/test verification passed
3. Similar issues have been scanned (Iceberg Principle)
4. No known unfixed bugs
Otherwise, continue iterating.
## Relationship with Ralph Loop
PUA Loop reuses Ralph Loop's Stop hook mechanism (`.claude/ralph-loop.local.md` state file format). If the user has installed the Ralph Loop plugin, PUA Loop directly uses its Stop hook to implement the loop. If not installed, the PUA Loop state file format is compatible, allowing seamless integration after the user installs Ralph Loop later.