tanweai avatar

Pua Loop

This is an autonomous iteration system that runs until an external verification command passes, not just until Claude says it's done. You give it a task and a verify command (like `npm test` or `curl`), and it loops indefinitely, tracking every attempt in a JSONL file so it won't repeat failed approaches. The hook runs your verify command independently after Claude claims completion. If verification fails, the loop continues with the rejection fed back in. After 3-4 rejections it forces reassessment, after more it makes you question the problem itself. It's basically autoresearch's oracle isolation pattern applied to general development work. You'd use this when you want unattended iteration on something with a clear pass/fail test, and you're comfortable letting it run overnight.

skills.sh installs
1.8K
GitHub stars
19.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add tanweai/pua --skill pua-loop --agent claude-code

Installs into .claude/skills of the current project.

Files

pua-loop

This is a Codex CLI alias for the Claude Code /pua:loop command.

Load and follow the pua-loop skill/protocol. Set up or run iterative verification loops with explicit verify commands and stop conditions.

When this alias changes ~/.pua/config.json, preserve unknown fields and create ~/.pua/ if missing. Do not claim completion without command/output evidence.

Sponsors

Details

Repository
github.com/tanweai/pua
Category
Code Review & Quality
First seen
Apr 16, 2026

More from tanweai/pua

All 13
1nvidia avatarmcore-linting-and-formattingnvidia/skillsLinting and formatting for Megatron-LM. Covers running autoformat.sh, tools (ruff, black, isort, pylint, mypy), and code style rules.1.8Kskills.sh installs
2mohitmishra786 avatarcmakemohitmishra786/low-level-dev-skillsCMake build system skill for C/C++ projects. Use when writing or refactoring CMakeLists.txt, configuring out-of-source builds, selecting generators (Ninja, Make1.8Kskills.sh installs
3k-dense-ai avatarexa-searchk-dense-ai/scientific-agent-skillsWeb toolkit powered by Exa, tuned for scientific and technical content. Use this skill when the user needs to search the web or fetch/extract URL content. Cover1.8Kskills.sh installs
4capawesome-team avatarionic-angularcapawesome-team/skillsGuides the agent through Angular-specific patterns for Ionic app development. Covers project structure, standalone vs NgModule architecture detection, Angular R1.8Kskills.sh installs
5ar9av avatarcopilot-history-ingestar9av/obsidian-wikiIngest GitHub Copilot CLI session history into an Obsidian wiki as distilled knowledge pages. Use this skill when the user wants to capture their Copilot CLI se1.8Kskills.sh installs
6github avatarunit-test-vue-piniagithub/awesome-copilotWrite and review unit tests for Vue 3 + TypeScript + Vitest + Pinia codebases. Use when creating or updating tests for components, composables, and stores; mock1.8Kskills.sh installs