# Repository Briefing: tanweai/pua
> Source: https://repoforai.com/repo/tanweai/pua (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/tanweai/pua
- **Official Docs / Website**: https://openpua.ai/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: See repository
- **Engineering Health**: B (62/100 · Maintenance 20/35 · Adoption 19/25 · Releases 17/20 · License 6/20)
- **Latest Release**: v3.5.1 (2026-09-09) — https://github.com/tanweai/pua/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: CLI
- **Momentum**: 19,930 ★ total (+8 24h / +44 7d) · 1,212 forks
- **Topics**: `agency`, `agent`, `pip`, `pua`
- **When to Use**: Best for: Developers whose coding agents repeat failed approaches or report fixes without verification, and who can spare extra tool calls for targeted debugging and review. Skip if: You need a standalone MCP endpoint, equivalent automation across hosts, or a low-cost, enforceable CI gate.

## Overview
```text
### Architecture & Core Mechanics
Despite its MCP catalog classification, PUA is architecturally a host-loaded skill and plugin. There is no demonstrated MCP transport, tool registry or server entry point. The full Claude Code integration combines skills/, commands/, hooks/ and agents/. Its core command, /pua:pua, routes tasks to different problem-solving methods and adds instructions for changing approach after repeated failures. The host agent still owns tool execution, permissions and model inference.

In Claude Code, SessionStart injects methodology context, UserPromptSubmit filters for frustration signals, and PostToolUse observes Bash failures. PreCompact preserves the failure count and pressure level before context compaction. Stop handles feedback and optional loop continuation, while SubagentStop writes teardown.jsonl and updates active-agents.json. These hooks make event handling and state tracking more consistent; the actual judgment and follow-through still depend on the model.

### Key Capabilities & Differentiators
The core workflow is to stop repeating an unproductive attempt, gather new evidence from logs or source, test a different hypothesis and show verification before reporting completion. The escalation table calls for an approach change on the second failure, source review and three hypotheses on the third, and a seven-point checklist on the fourth. The skill also asks the agent to look for nearby instances of the same bug pattern after repairing one. Chinese, English and Japanese variants adapt the rhetoric; Claude Code, Codex CLI, Cursor and VSCode/Copilot are among the documented hosts, but their integrations are not equivalent.

Eighteen controlled runs over nine scenarios used Claude Opus 4.6. Both configurations reached 100% pass rate; with the skill, fix count increased 36%, verifications 65%, tool calls 50% and hidden issue discovery 50%. In the configuration-review scenario, findings rose from four of six to six of six, while tool calls doubled from eight to sixteen. That supports a coverage-versus-work trade-off on those cases, not a general productivity gain or cross-model validation.

### Trade-offs & Limitations
Compared with a static project instruction file, the full plugin adds event-driven failure tracking and preserves context across compaction, at the cost of more host-specific behavior to inspect and maintain. Compared with CI or a required review gate, it acts earlier by prompting the agent to investigate and verify, but cannot enforce that a check actually ran or passed. Keep build, test and permission controls outside the skill.

A broader investigation can surface related defects, but extra retries and scans also cost time and can expand the task beyond what was requested. The benchmark’s equal pass rates and higher tool usage make that trade-off concrete. The confrontational PIP tone is a separate adoption concern; the full plugin offers an encouragement mode with the same rules. For team use, start with manual activation and scoped work, and resolve the unspecified license before commercial rollout or redistribution.

### Hardware & Deployment Guide
There is no separately evidenced PUA service, model runtime, container or database to provision. Use the full Claude Code plugin if you need lifecycle hooks and plugin commands. For prompt-level guidance, v3.5.1 offers standalone Claude Code, Codex and ChatGPT packages as release assets or local build outputs, plus a paste-in version. The documented English skill install command is `npx skills add tanweai/pua --skill pua-en`; that route needs an `npx` environment, not an MCP server registration.

The standalone packages omit the full plugin’s commands and hooks. v3.5.1 keeps the original tone and focuses on compatibility, runtime fixes and making missing host capabilities explicit; it does not certify all models. Installing a skill locally does not make inference, web search or other tools offline. For a pilot, use a pinned package, inspect any enabled hooks, and measure tool calls and elapsed time on representative tasks under your normal permission settings.
```

## Key Capabilities
```text
- Execution model: Host-loaded skills and plugin hooks, with no demonstrated MCP endpoint.
- Failure handling: In Claude Code, PostToolUse detects Bash failures and feeds an L0–L4 escalation model; repeated failures prompt an approach change or a checklist.
- Session state: PreCompact preserves failure count and pressure level; SubagentStop writes lifecycle records to teardown.jsonl.
- Portability: v3.5.1 generates standalone Claude Code, Codex and ChatGPT packages plus a paste-in version from a shared execution contract.
- Measured trade-off: Across nine scenarios on Claude Opus 4.6, both configurations passed 100%; the skill increased verifications by 65% and tool calls by 50%.
```

## Quick Start / Clone
```bash
npx skills add tanweai/pua --skill pua-en
```
