Dev & Engineering

pua-cancel-loop: Cancel PUA Loop in Codex

One command to halt an active PUA loop and clean up state and worktree references.

54/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 20k
Last updated
1mo ago
codex-clipua-cancel-looploop-managementstate-cleaning
+1worktree

What does this skill do, and when should you use it?

pua-cancel-loop is a Codex CLI alias for the Claude Code /pua:cancel-loop command, invoked via $pua-cancel-loop. It cancels the active PUA loop by cleaning loop state and worktree references, and records the event. When modifying ~/.pua/config.json, it preserves unknown fields and creates ~/.pua/ if missing. It is one of 45 skills in the repo and does not include other skills' capabilities.

The skill performs: 1) Removes PUA loop state files (e.g., under ~/.pua/); 2) Cleans up any worktree references associated with the loop; 3) Records the cancellation event in ~/.pua/config.json, preserving unknown fields; 4) Creates ~/.pua/ if it does not exist; 5) Requires command/output evidence before claiming completion.

Good fit
  • A user starts a PUA loop in Codex, but it becomes stuck or no longer needed; they type $pua-cancel-loop to stop it.
  • A developer switches between projects and needs to clear lingering loop state to avoid interference.
  • In an automated workflow, a script detects a timeout and invokes this command as a safety mechanism.
  • When a user explicitly requests to stop the loop, this command ensures state is cleaned so future sessions don't mistakenly think the loop is active.

How do you install this skill?

Before you use it
  • The skill modifies ~/.pua/config.json; ensure backup or confirmation mechanism before execution.
  • The repository's contribution upload feature (collecting JSONL session logs) may raise privacy concerns, though not part of this skill, be aware.
  • No rollback or recovery plan is provided for this skill; errors during cleanup could lead to inconsistent state.
Before you start
Your agent needs
  • Shell / CLI
  • Local filesystem

Install the entire tanweai/pua repository. For Codex CLI, use one-command install: ask Codex to run Fetch and follow instructions from https://raw.githubusercontent.com/tanweai/pua/main/.codex/INSTALL.md, or manual: create ~/.codex/skills/pua-cancel-loop/ and copy the content of codex/pua-cancel-loop/SKILL.md to ~/.codex/skills/pua-cancel-loop/SKILL.md. Note: the repo does not provide a separate install command for this specific skill.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/tanweai/pua.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/codex/pua-cancel-loop" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

After installation, type $pua-cancel-loop in a Codex conversation. For example, enter exactly $pua-cancel-loop. The command will execute and provide output indicating success.

What are this skill's strengths and limitations?

Pros
  • Provides a clear cancellation mechanism to prevent loops from running away.
  • Automatically cleans state files and worktree references, keeping the environment tidy.
  • Preserves unknown fields in config, avoiding clobbering.
  • Simple one-command trigger.
Limitations
  • It is only an alias; it relies on Codex's SKILL.md mechanism and has no standalone script.
  • The exact worktree cleaning process is not documented, possibly depending on external tools.
  • As one of many skills, it lacks the full PUA functionality if extracted alone.
  • MIT license but the repo does not specify maintainer support; long-term maintenance is uncertain.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
pua-cancel-loop: Cancel PUA Loop in Codex this page 54 · Use with care ★ 20k 1mo ago —
Codex-Collab: Collaborate with Codex from Claude Code 56 · Use with care ★ 98 6d ago MIT
Codex Plugin Builder ✓ OpenAI · Official 55 · Use with care ★ 128k 3d ago Apache-2.0
Codex Issue Digest ✓ OpenAI · Official 57 · Use with care ★ 128k 3d ago Apache-2.0
Blueprint Plan Generator (blueprint-generate) 52 · Use with care ★ 80 2mo ago MIT

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
54/ 100 5-point scale 2.7 / 5
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
1Trust15 / 25 · 3.0/5

The skill modifies ~/.pua/config.json in the user's home directory, with explicit cleanup intent, no permission scope expansion or data exfiltration mentioned. However, no rollback or backup mechanism is provided, and no explicit user confirmation step is mentioned. The repository contains an upload function for collecting JSONL session logs, but that is not part of this skill path; it hints at potential data flow concerns. Deduction: missing rollback and least-privilege detail.

2Reliability7 / 20 · 1.8/5

The skill file provides clear instructions, but lacks error handling and test coverage. The code path is simple, but no failure feedback or abnormal input handling is documented. Deduction: static review cannot execute, and file content insufficient to prove reliable operation.

3Adaptability10 / 15 · 3.3/5

The skill addresses a clear scenario (canceling PUA loop), but boundary conditions are terse, trigger conditions not detailed. Chinese description, suitable for Chinese users, no network dependencies. Deduction: non-fit range not explicit, trigger precision may be insufficient.

4Convention10 / 15 · 3.3/5

The skill file follows SKILL.md format with name, description, license (MIT), but lacks version info, changelog, and maintenance responsibility. Repository has multi-language README, but the skill itself lacks examples or FAQ. Deduction: incomplete information architecture, missing version and common issues.

5Effectiveness7 / 15 · 2.3/5

The core task is to clean state and cancel loop; from description it should execute correctly, but lacks actual execution evidence or example outputs. As a Codex alias, it provides convenience but marginal value. Deduction: no execution results verified, direct usability of output not confirmed.

6Verifiability5 / 10 · 2.5/5

Repository contains CI workflow and test files (e.g., upload-function.test.ts), but they target other functions, not this skill. Therefore no verifiable tests for this skill. Deduction: key path not covered by reproducible third-party verification.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Aug 07, 2026 Reviewed revision 3fd4e5a1cb7a Review evidence[1][2][3][4]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Is this skill free?
Yes, it is MIT licensed, free to use and modify.
Will it modify my other configurations?
It only touches ~/.pua/config.json, preserving unknown fields, and does not affect other files.
What happens if the loop isn't active?
It will still run, attempt to clean non-existent state, and record the event; no side effects.
Does it support other Claude Code commands?
No, it is a Codex alias only for canceling loops; other commands like /pua:on are not included.

More skills from this repository

All from tanweai/pua

Related skills