pua-cancel-loop

Cancel active PUA autonomous loops and manage configuration files.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/liujiayi3703/scientific-research-skills --skill pua-cancel-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pua-cancel-loop
Source: https://github.com/liujiayi3703/scientific-research-skills/tree/main/library/skills/pua-cancel-loop
Command: npx skills add https://github.com/liujiayi3703/scientific-research-skills --skill pua-cancel-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides a means to cancel active PUA (Pickup Artist) autonomous loops cleanly, ensuring that state and worktree references are properly managed.

Core Features & Use Cases

  • Clean Loop Cancellation: Ensures the PUA loop is terminated without leaving behind unwanted state or worktree references.
  • Event Recording: Keeps a record of the loop cancellation event for audit purposes.
  • Config File Management: Modifies the ~/.pua/config.json file while preserving unknown fields and creating the directory if it's missing.

Quick Start

To cancel the current PUA loop, simply invoke the command pua-cancel-loop.

Frequently Asked Questions about pua-cancel-loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I cleanly cancel an active autonomous loop without leaving worktree references behind?

To cleanly cancel an active autonomous loop, use the `pua:cancel-loop` command. This Skill terminates the loop while ensuring proper state and worktree reference management, preventing unwanted leftover processes.

What happens to my configuration file when I cancel a PUA loop?

Canceling a PUA loop modifies the `~/.pua/config.json` file while preserving unknown fields. If the directory is missing, the mechanism creates it automatically to ensure config file management succeeds.

Does loop cancellation keep a record of the event for audit purposes?

Yes, loop cancellation includes event recording. This keeps a record of the loop cancellation event for audit purposes, allowing you to track when active PUA loops are terminated.

Can I use this command to manage config files if the target directory does not exist?

Yes, you can use this command for config file management even if the directory is missing. The Skill modifies user configuration files and creates directories as necessary to execute the cancellation.

When should I not use a clean loop cancellation mechanism?

You should not use a clean loop cancellation mechanism if your autonomous loop has already crashed or been forcefully terminated, as the event recording and worktree reference management are designed for active PUA loops.