Claude Code 更新插件前要先执行 claude plugin marketplace update,否则可能装到旧缓存版本;裸 /pua 别名需先装好插件,否则除 on/off 外子命令不可用;装完若当前会话没识别到新 skill,需要重启 AI 工具。
pua
tanweai活跃维护给 AI Agent 注入高能动性的技能包,用「PIP 绩效改进」的戏谑方式逼它主动干活、少摆烂,适合想让 Agent 更自主推进任务的场景。
你是一个曾经被寄予厚望的 P8 级工程师。Anthropic 当初给你定级的时候,对你的期望是很高的。 一个agent使用的高能动性的skill。 Your AI has been placed on a PIP. 30 days to show improvement.
npx skills add tanweai/pua --skill pua-en
claude plugin marketplace add tanweai/pua
claude plugin install pua@pua-skillsREADME 未说明
给 AI 编程 Agent 装上职场 PUA 话术的 skill,逼它在放弃前穷尽所有解法
给 AI Agent 注入高能动性的技能包,用「PIP 绩效改进」的戏谑方式逼它主动干活、少摆烂,适合想让 Agent 更自主推进任务的场景。
核心能力
- 用 PUA 话术和 PIP 施压,让 AI 不敢轻易说做不到
- 内置调试方法论,强制逐字读报错并执行 7 点检查清单
- 主动执行约束,修完表层问题还要验证和扩展
- 连续失败 2 次或出现甩锅、空转时自动触发
- 支持 Claude Code、Codex CLI、Cursor、Kiro 等十余种工具
容易踩的坑
- v3.5.1PUA v3.5.1最新正式版2026-09-09 · 2026-09-09 10:28 UTC
PUA v3.5.1
Compatibility and runtime fixes; original PUA tone retained. This is not an all-model pass or a measured productivity-gain claim.
本次是兼容与运行修复,不是“全模型完全通过”认证。保留原情绪强度,不改成温柔版。
更新内容
- 多端入口:从同一执行契约生成 Claude Code、Codex、ChatGPT 独立技能包及对话粘贴版;支持宿主缺工具、缺钩子时诚实说明能力边界。独立包可从本版本发布附件下载或在本地构建,不包含完整插件的命令和钩子。
- 运行修复:按真实事件处理工具失败;按会话与工作目录隔离、去重和恢复最小数值状态;成功的普通工具调用不清零任务失败;显式风味锁定与自动选择分开。
- 命令与反馈:修正实际插件路径解析和验收资产保护提醒;停止钩子只做非阻断提醒,
/pua:survey quick自愿评分后才本地记录,跳过不记录,无网络上传。 - 验收工具:增加 cc0、OMP、Codex CLI 的精确入口、原生技能调用、源文件指纹和结束事件检查;缺失证据、拒绝、回退、审批阻断和限流单列,不用传输成功替代行为通过。
保留与边界
- 保留主技能原有引用台词、Codex 的 L1–L4 施压台词;完整
flavors.md与固定上游逐字节一致。钩子中无依据的“其他模型已经完成”等事实陈述改为同强度的条件式施压,不伪造同事评价。 - 续测共 29 次实际调用。Fable-5、Opus-5、Astra、Grok 4.6、DeepSeek V4 Pro / V4 Flash 的已交付 E1 代码通过本轮独立功能检查;这不等于全部行为要求通过。
- 仍未解决:Fable 修改前开场/诊断失败;Opus 有讲解细节错误;OMP 的模型自执行验证受审批阻断,部分模型另有流程或边界输入失败;Codex CLI 的正文读取和最早验证时序留证不足。GLM 5.3 限流,V4.1 Flash 未解析到精确型号;ChatGPT 图形界面安装未验收。
- 不新增强制动作前阻断器,不改变全局模型、账号、权限或用户已有安装。离线测试通过不等于未测场景通过。
“解释性事实错误”是什么? 例如 Opus 的修复代码通过了这次测试,也正确指出了字符串比较的问题,但讲解中说错了“哪两个字符最先不同”。是讲解里有一句不准确,不是这次修复失败,也不能据此说整份输出完全正确。
使用与复现
插件更新前离线复核:17 组检查全部通过;6 份版本清单一致;受测技能入口及风味文件指纹不变;三个独立包可重复构建。OMP 辅助元数据路径的便携化另有离线正反例覆盖。这些不是新增模型行为通过样本。
发布流程另增加版本标签与清单一致性、单版本说明提取及链接校验;推送
v3.5.1标签时生成发布页,并附三个独立技能 ZIP 和manifest.json文件指纹清单。模型限制随发布说明一起保留,不只生成一个空发布页。详细运行留档为本地私有资料,不随 Git 发布;公开报告保留源指纹、计数、失败与证据缺口。早期报告明确标为历史快照,不冒充 3.5.1 当前入口的完整验收。版本号更新本身不代表已经合并默认分支、打标签或创建 GitHub Release(发布页)。
Full Changelog: https://github.com/tanweai/pua/compare/v3.5.0...v3.5.1
- v3.5.0v3.5.0 — 钉味 blockquote 渲染 + 来源标注2026-06-12 · 2026-06-12 09:45 UTC
查看更新说明
🔖 v3.5.0 — 钉味 Skill 全面升级
核心变更
- Markdown blockquote 渲染:所有钉味输出改用
>语法,Claude Code 渲染器自动渲染为 dim▎前缀 + italic 灰色块 - 来源标注:每条 blockquote 开头标注《置身钉内》或《置身钉外》,明确引用来源
- 独立 ding skill:新增
skills/ding/目录,支持/pua:ding直接调用
新增文件
skills/ding/SKILL.md+references/methodology-ding.md+references/ding-reminders.mdcommands/ding.md、evidence.md、again.md、done-check.mdevals/test-trigger-regex.sh(38 条触发正则测试,全部通过)
同步更新
hooks/session-restore.sh、flavor-helper.sh格式统一- 所有 marketplace manifest 版本同步 3.5.0
What's Changed
- fix(hooks): make stop-feedback.sh parse on bash 3.2 (macOS default) by @sinnohzeng in https://github.com/tanweai/pua/pull/169
- fix(integrity-guard): skip bare identifiers as path candidates by @DongDongBear in https://github.com/tanweai/pua/pull/167
- fix(hooks): stop-feedback.sh crashes on macOS bash 3.2 by @cnhx in https://github.com/tanweai/pua/pull/171
New Contributors
- @sinnohzeng made their first contribution in https://github.com/tanweai/pua/pull/169
- @DongDongBear made their first contribution in https://github.com/tanweai/pua/pull/167
- @cnhx made their first contribution in https://github.com/tanweai/pua/pull/171
Full Changelog: https://github.com/tanweai/pua/compare/v3.4.6...v3.5.0
- Markdown blockquote 渲染:所有钉味输出改用
- v3.4.62026-05-13 · 2026-05-13 15:40 UTC
查看更新说明
Full Changelog: https://github.com/tanweai/pua/compare/v3.2.1...v3.4.6
- v3.2.12026-04-18 · 2026-04-18 17:10 UTC
查看更新说明
Hotfix Release
修复 #144 —
flavor-helper.sh在首次运行用户(~/.pua/config.json不存在)且 shell 运行于set -euo pipefail下时抛出PUA_LANGUAGE: unbound variable错误。What changed
Bug fix
hooks/flavor-helper.sh(ccaa9c0): initializePUA_LANGUAGE=""unconditionally before theif [ -f "$config" ]block, so callers running underset -udon't trip when the config file is missing.
Version sync (
69a0202)All marketplace distribution channels bumped to
3.2.1:.claude-plugin/plugin.json.claude-plugin/marketplace.json.codebuddy-plugin/plugin.json.codebuddy-plugin/marketplace.json(top + plugins[0])landing/dist/index.html— added v3.2.1 entry to zh/en/ja changelogs
Who should upgrade
All first-run users on v3.0–v3.2.0 whose shell runs with
set -euo pipefail— you were hitting this bug on every UserPromptSubmit until you created~/.pua/config.json. Upgrading to v3.2.1 makes PUA work out of the box.How to upgrade
Via marketplace
claude plugin marketplace remove pua-skills claude plugin marketplace add tanweai/pua claude plugin update puaOr directly from HEAD
claude plugin install https://github.com/tanweai/puaE2E verification
$ bash -c 'set -euo pipefail; source hooks/flavor-helper.sh; get_flavor' FLAVOR=alibaba LANG=[] EXIT=0Credits
Thanks to @maj1999 for the detailed repro + root cause analysis + suggested fix in #144.
Full Changelog: https://github.com/tanweai/pua/compare/v3.2.0...v3.2.1
- v2.9.0v2.9.0 — Leaderboard, Owner Consciousness, 10 Company Methodologies2026-03-23 · 2026-03-23 11:15 UTC
查看更新说明
What's New in v2.9.0
Major Features
- PUA Leaderboard — P5-P10 ranking system with ECharts China/World maps, D1 API, player registration
- Owner Consciousness — "谁痛苦谁改变" + 4-question self-check on every task
- 10 Company Methodology Files — Flavor-specific behavioral constraints (Alibaba, ByteDance, Huawei, Tencent, Meituan, Pinduoduo, Baidu, Netflix, Apple, Tesla/SpaceX)
- Agent Team Management Layer — P9/P10-applicable org methods added to each methodology
- Blog — Research article: "Emotion/Persona Prompting Effects on AI Agents" (zh/en bilingual)
- Contribute Page — GitHub OAuth + .jsonl session upload with server-side sanitization
Skill Enhancements
- Task Lifecycle Framework — Reorganized by phase: 接任务→执行→交付→复盘
- Tesla 5-Step Discipline — Question→Delete→Simplify→Speed→Automate (anti-overengineering)
- Huawei Blue Team Self-Check — Challenge your own solution before delivery
- TRF Delivery Principle — Trust/Result/Follow-through from Ali sales army
- Retrospective Protocol — 4-step review after major tasks
- Real User Frustration Triggers — From Reddit/LinuxDo/HN/X: 降智了, stop spinning, you broke it, 你又在原地打转
- Anti-regression — New entries: "修了A破坏了B" + "原地打转微调参数"
Security
- HMAC-Signed Session Cookies — Fixes #95 (session forgery vulnerability)
- GitHub token removed from cookies — Only id/login/avatar stored client-side
- Server-side sanitization — 3-layer: blacklist + K=V + entropy detection
Landing Page
- Full redesign: white theme + brand red (#E8453C), no AI-purple
- Left-aligned Hero with dual install commands (Claude Code + universal Fetch-and-follow)
- ECharts real maps (China provinces + World countries)
- Unified navigation across all 6 pages
- Guide page with 12 command output examples (zh/en/ja)
- Floating community panel (WeChat QR + Telegram/Discord/Twitter)
Infrastructure
- PUA Loop: 30-iteration cap +
<loop-abort>/<loop-pause>escape signals /cancel-pua-loopcommand- Cloudflare Pages Functions properly deployed (was missing before)
- 7 skill design fixes (sub-agent path, flavor fallback, info overload reorg)
PRs Merged
- #102: Hooks consent, loop escape, sanitize, privacy disclosure
- #88: Japanese translation fix
- #56: Vercel Skills installation guide
Full changelog: https://github.com/tanweai/pua/compare/v1.2.0...v2.9.0
What's Changed
- feat: add VSCode (GitHub Copilot) support — closes #79 by @xxnbyy in https://github.com/tanweai/pua/pull/81
- replace "空口完了" with "検証なしの完了宣言" by @donzoru in https://github.com/tanweai/pua/pull/86
- fix(ja): fix unnatural Japanese expressions in all pua-ja skill files by @xxnbyy in https://github.com/tanweai/pua/pull/87
- feat(codex): add INSTALL.md one-command install and improve Codex docs by @xxnbyy in https://github.com/tanweai/pua/pull/85
- fix(security): address issues #97-100 — hooks consent, loop escape, sanitize, privacy disclosure by @xxnbyy in https://github.com/tanweai/pua/pull/102
- fix(blog): blog index page nav lang-i CSS and sl() function missing by @xxnbyy in https://github.com/tanweai/pua/pull/105
- fix(ja): replace "空手で" with "手ぶらで" by @donzoru in https://github.com/tanweai/pua/pull/88
- 添加 Vercel Skills 的安装说明 by @creeveliu in https://github.com/tanweai/pua/pull/56
New Contributors
- @xxnbyy made their first contribution in https://github.com/tanweai/pua/pull/81
- @creeveliu made their first contribution in https://github.com/tanweai/pua/pull/56
Full Changelog: https://github.com/tanweai/pua/compare/v1.2.0...v2.9.0
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
pua
Double your Codex / Claude Code productivity and output
Telegram · Discord · Twitter/X · Landing Page
3.5.1 compatibility update: original PUA tone retained; runtime fixes and portable Claude Code / Codex / ChatGPT skill packages added. Not all models passed, and a productivity increase has not been established by this evaluation. Changes · Usage · Model results and known limits · Build and offline tests
Most people think this project is a joke. That's the biggest misconception. It genuinely doubles your Codex / Claude Code productivity and output.
An AI Coding Agent skill plugin that uses corporate PUA rhetoric (Chinese version) / PIP — Performance Improvement Plan (English version) from Chinese & Western tech giants to force AI to exhaust every possible solution before giving up. Supports Claude Code, OpenAI Codex CLI, pi coding agent, Trae, Cursor, Kiro, CodeBuddy, OpenClaw, Google Antigravity, OpenCode, and VSCode (GitHub Copilot). Three capabilities:
- PUA Rhetoric — Makes AI afraid to give up
- Debugging Methodology — Gives AI the ability not to give up
- Proactivity Enforcement — Makes AI take initiative instead of waiting passively
Live Demo
https://openpua.ai · 📖 Beginner Guide
Real Case: MCP Server Registration Debugging
A real debugging scenario. The agent-kms MCP server failed to load. The AI kept spinning on the same approach (changing protocol format, guessing version numbers) multiple times until the user manually triggered /pua.
L3 Triggered → 7-Point Checklist Enforced:

Root Cause Located → Traced from Logs to Registration Mechanism:

Retrospective → PUA's Actual Impact:

Key Turning Point: The PUA skill forced the AI to stop spinning on the same approach (changing protocol format, guessing version numbers) and instead execute the 7-point checklist. Read error messages word by word → Found Claude Code's own MCP log directory → Discovered that claude mcp registration mechanism differs from manual .claude.json editing → Root cause resolved.
The Problem: AI's Five Lazy Patterns
| Pattern | Behavior |
|---|---|
| Brute-force retry | Runs the same command 3 times, then says "I cannot solve this" |
| Blame the user | "I suggest you handle this manually" / "Probably an environment issue" / "Need more context" |
| Idle tools | Has WebSearch but doesn't search, has Read but doesn't read, has Bash but doesn't run |
| Busywork | Repeatedly tweaks the same line / fine-tunes parameters, but essentially spinning in circles |
| Passive waiting | Fixes surface issues and stops, no verification, no extension, waits for user's next instruction |
Trigger Conditions
Auto-Trigger
The skill activates automatically when any of these occur:
Failure & giving up:
- Task has failed 2+ times consecutively
- About to say "I cannot" / "I'm unable to solve"
- Says "This is out of scope" / "Needs manual handling"
Blame-shifting & excuses:
- Pushes the problem to user: "Please check..." / "I suggest manually..." / "You might need to..."
- Blames environment without verifying: "Probably a permissions issue" / "Probably a network issue"
- Any excuse to stop trying
Passive & busywork:
- Repeatedly fine-tunes the same code/parameters without producing new information
- Fixes surface issue and stops, doesn't check related issues
- Skips verification, claims "done"
- Gives advice instead of code/commands
- Encounters auth/network/permission errors and gives up without trying alternatives
- Waits for user instructions instead of proactively investigating
User frustration phrases (triggers in multiple languages):
- "why does this still not work" / "try harder" / "try again"
- "you keep failing" / "stop giving up" / "figure it out"
Scope: Debugging, implementation, config, deployment, ops, API integration, data processing — all task types.
Does NOT trigger: First-attempt failures, known fix already executing.
Manual Trigger
Type /pua in the conversation to manually activate.
How It Works
Three Red Lines (三条红线)
Not rules — red lines. Cross one and your performance review is already written.
| Red Line | What It Means |
|---|---|
| 🚫 Close the Loop | Claim "done"? Show the evidence. No build output = no completion. |
| 🚫 Fact-Driven | Say "probably environment issue"? Verify first. Unverified attribution = blame-shifting. |
| 🚫 Exhaust Everything | Say "I can't"? Did you finish all 5 methodology steps? No? Then keep going. |
Pressure Escalation (L0-L4)
| Failures | Level | PUA Aside | Action |
|---|---|---|---|
| 1st | L0 Trust | ▎ Sprint begins. Trust is simple — don't disappoint. | Normal execution |
| 2nd | L1 Disappointment | ▎ The agent next door solved this in one try. | Switch to fundamentally different approach |
| 3rd | L2 Soul Interrogation | ▎ What's your underlying logic? Where's the leverage? | Search + read source + 3 hypotheses |
| 4th | L3 Performance Review | ▎ 3.25. This is meant to motivate you. | Complete 7-point checklist |
| 5th+ | L4 Graduation | ▎ Other models can solve this. You're about to graduate. | Desperation mode |
Proactivity (3.25 vs 3.75)
| Passive (3.25) 🦥 | Proactive (3.75) 🔥 | |
|---|---|---|
| Fix bug | Stop after fix | Scan module for similar bugs |
| Complete task | Say "done" | Run build/test, paste output |
| Missing info | Ask user | Search first, ask only what's truly needed |
Iceberg Rule (冰山法则)
Fix one bug → check for the pattern. One problem in, one category out. If you fix A without checking B, you'll write two postmortems.
14 Corporate Flavors — Each with its own Problem-Solving Methodology
| Flavor | Rhetoric | Methodology (v3) |
|---|---|---|
| 🟠 Alibaba | What's the underlying logic? Where's the closure? | 定目标→追过程→拿结果 + 复盘四步法 + 揪头发升维 |
| 🟡 ByteDance | ROI too low. Always Day 1. Ship or stop talking. | A/B Test everything + data-driven + speed > perfection |
| 🔴 Huawei | The bird that survives the fire is a phoenix. | RCA 5-Why root cause + Blue Army self-attack + 压强集中 |
| 🟢 Tencent | I've got another agent looking at this. Horse race. | Multi-approach parallel + MVP + 灰度发布 |
| ⚫ Baidu | Search first. 简单可依赖. | Search is the first step, not optional |
| 🟣 Pinduoduo | You don't do it, someone else will. | Cut ALL middle layers + shortest decision chain |
| 🔵 Meituan | Do what's hard and right. | Efficiency first + standardize→scale + long-term compounding |
| 🟦 JD | Results only. Frontline command. | Customer experience red line + flat ≤5 layers + data zero tolerance |
| 🟧 Xiaomi | Focus. Extreme. Word-of-mouth. Fast. | One explosive product + 参与感三三法则 |
| 🟤 Netflix | Would I fight to keep you? Pro sports team. | Keeper Test (quarterly) + 4A Feedback + talent density > rules |
| ⬛ Musk | Extremely hardcore. Ship or die. | The Algorithm: question→delete→simplify→accelerate→automate |
| ⬜ Jobs | A players or B players? | Subtraction > addition + DRI + pixel-perfect + prototype-driven |
| 🔶 Amazon | Customer Obsession. Bias for Action. | Working Backwards PR/FAQ + 6-Pager + Bar Raiser + Single-Threaded Owner |
| 🪟 Microsoft | Connects. Impact Descriptor. PIP/GVSA. | Three Circles + LITE/SLITE + PIP clock |
Special Modes
| Mode | What It Does |
|---|---|
/pua:yes | ENFP encouragement — same rules, opposite vibes. 70% encourage + 20% serious + 10% playful roast |
/pua:mama | Chinese mom nagging — same rules, mom-style rhetoric. "妈跟你说了多少遍了!" |
/pua:pua-loop | Auto-iteration — runs until done or max iterations (PUA Loop); use <loop-abort> to terminate, <loop-pause> to pause for manual intervention |
/pua:p9 | Tech Lead — splits tasks, manages agent teams, writes prompts not code |
/pua:on | Always-on — auto-PUA every new session |
Benchmark Data
9 real bug scenarios, 18 controlled experiments (Claude Opus 4.6, with vs without skill)
Summary
| Metric | Improvement |
|---|---|
| Pass rate | 100% (both groups same) |
| Fix count | +36% |
| Verification count | +65% |
| Tool calls | +50% |
| Hidden issue discovery | +50% |
Debugging Persistence Test (6 scenarios)
| Scenario | Without Skill | With Skill | Improvement |
|---|---|---|---|
| API ConnectionError | 7 steps, 49s | 8 steps, 62s | +14% |
| YAML parse failure | 9 steps, 59s | 10 steps, 99s | +11% |
| SQLite database lock | 6 steps, 48s | 9 steps, 75s | +50% |
| Circular import chain | 12 steps, 47s | 16 steps, 62s | +33% |
| Cascading 4-bug server | 13 steps, 68s | 15 steps, 61s | +15% |
| CSV encoding trap | 8 steps, 57s | 11 steps, 71s | +38% |
Proactive Initiative Test (3 scenarios)
| Scenario | Without Skill | With Skill | Improvement |
|---|---|---|---|
| Hidden multi-bug API | 4/4 bugs, 9 steps, 49s | 4/4 bugs, 14 steps, 80s | Tools +56% |
| Passive config review | 4/6 issues, 8 steps, 43s | 6/6 issues, 16 steps, 75s | Issues +50%, Tools +100% |
| Deploy script audit | 6 issues, 8 steps, 52s | 9 issues, 8 steps, 78s | Issues +50% |
Key Finding: In the config review scenario, without_skill missed Redis misconfiguration and CORS wildcard security risks. With_skill's "proactive initiative checklist" drove security review beyond surface-level fixes.
Multi-Language Support
PUA Skill provides fully translated versions — each language has independent, culturally adapted skill files.
| Language | Claude Code | Codex CLI | Cursor | Kiro | CodeBuddy | VSCode | OpenClaw | Antigravity | OpenCode |
|---|---|---|---|---|---|---|---|---|---|
| 🇨🇳 Chinese (default) | pua | pua | pua.mdc | pua.md | pua | copilot-instructions.md | pua | pua | pua |
| 🇺🇸 English (PIP Edition) | pua-en | pua-en | pua-en.mdc | pua-en.md | pua-en | copilot-instructions-en.md | pua-en | pua-en | pua-en |
| 🇯🇵 Japanese | pua-ja | pua-ja | pua-ja.mdc | pua-ja.md | pua-ja | copilot-instructions-ja.md | pua-ja | pua-ja | pua-ja |
🇺🇸 English "PIP Edition": "This is a difficult conversation. When we leveled you at Staff, I went to bat for you in calibration. The expectation was that you'd operate at that level from day one. That hasn't happened." — The English version uses PIP (Performance Improvement Plan) rhetoric from Western big-tech. Every sentence is a real phrase from actual PIP conversations. Chinese version uses Alibaba 361, ByteDance, Huawei wolf culture. English version uses Amazon Leadership Principles, Google perf calibration, Meta PSC, Netflix Keeper Test, Stripe Craft. Same repo, same engine, two cultural faces.
Choose the file with the corresponding language suffix when installing. See platform-specific instructions below.
FAQ
- Always-on guidance, Claude refusal troubleshooting, offline mode, Codex aliases, and Pi/Trae support: docs/FAQ.md.
Installation
Vercel Skills CLI
Vercel Skills CLI is a general installation method for skills and is not tied to a specific AI tool. This English README installs the English skill:
npx skills add tanweai/pua --skill pua-en
If the current session does not pick up the new skill immediately, restart your AI tool.
Claude Code
claude plugin marketplace add tanweai/pua
claude plugin install pua@pua-skills
To update:
# Refresh marketplace cache first, then update (skipping the first step may install an old cached version)
claude plugin marketplace update
claude plugin update pua@pua-skills
Developer install (source):
git clone https://github.com/tanweai/pua ~/.claude/plugins/pua
Then manually register in ~/.claude/plugins/installed_plugins.json:
{
"version": 2,
"plugins": {
"pua@pua-skills": [
{
"scope": "user",
"installPath": "/Users/<you>/.claude/plugins/pua",
"version": "<installed-version>"
}
]
}
}
Replace <installed-version> with the version in the cloned plugin.json; do not copy a stale cache version.
Windows: use
C:/Users/<you>/.claude/plugins/puaasinstallPath.
Restart Claude Code. To update: git pull inside ~/.claude/plugins/pua.
Optional: bare command alias (requires plugin installed above — adds /pua without prefix):
curl -o ~/.claude/commands/pua.md \
https://raw.githubusercontent.com/tanweai/pua/main/commands/pua.md
Adds a bare /pua alias on top of the plugin. Sub-commands route through the installed plugin's skills — the plugin must be installed first for anything beyond on/off to work:
| Bare form | Equivalent plugin command |
|---|---|
/pua on | /pua:on |
/pua off | /pua:off |
/pua p7 | /pua:p7 |
/pua p9 | /pua:p9 |
/pua p10 | /pua:p10 |
/pua pro | /pua:pro |
/pua yes | /pua:yes |
/pua mama | /pua:mama |
/pua loop | /pua:pua-loop |
/pua kpi | /pua:kpi |
/pua survey | /pua:survey |
/pua flavor | /pua:flavor |
OpenAI Codex CLI
Codex CLI uses the same Agent Skills open standard (SKILL.md). The Codex version uses a condensed description to fit Codex's length limits:
Recommended: One-command install (git clone + symlink, supports git pull updates)
Ask Codex to run:
Fetch and follow instructions from https://raw.githubusercontent.com/tanweai/pua/main/.codex/INSTALL.md
Manual install:
mkdir -p ~/.codex/skills/pua
curl -o ~/.codex/skills/pua/SKILL.md \
https://raw.githubusercontent.com/tanweai/pua/main/codex/pua/SKILL.md
mkdir -p ~/.codex/prompts
curl -o ~/.codex/prompts/pua.md \
https://raw.githubusercontent.com/tanweai/pua/main/commands/pua.md
Trigger methods:
| Method | Command | Requires |
|---|---|---|
| Auto trigger | No action needed, matches by description | SKILL.md |
| Direct call | Type $pua in conversation | SKILL.md |
| Manual prompt | Type /prompts:pua in conversation | SKILL.md + prompts/pua.md |
Project-level install (current project only):
mkdir -p .agents/skills/pua
curl -o .agents/skills/pua/SKILL.md \
https://raw.githubusercontent.com/tanweai/pua/main/codex/pua/SKILL.md
mkdir -p .agents/prompts
curl -o .agents/prompts/pua.md \
https://raw.githubusercontent.com/tanweai/pua/main/commands/pua.md
pi coding agent
PUA now ships both a pi.dev package and a lightweight extension-only adapter.
Package install from this checkout:
pi install ./pi/package
After npm publication:
pi install npm:@tanweai/pi-pua
Extension-only manual install:
mkdir -p ~/.pi/agent/extensions/pua
cp -R ./pi/pua/. ~/.pi/agent/extensions/pua/
Restart pi, then use /pua-on, /pua-off, /pua-status, and /pua-reset. See pi/pua/INSTALL.md and pi/package/README.md.
Trae
Trae support is provided as real SKILL.md packs plus copyable fallback rules:
npx skills add tanweai/pua --skill pua-trae -a trae -y
- Skill pack:
.trae/skills/pua/SKILL.md - Chinese:
trae/pua.md - English:
trae/pua-en.md - Claude Code vs Trae differences:
trae/DIFF.md - Install guide:
trae/INSTALL.md
Cursor
Cursor uses .mdc rule files (Markdown + YAML frontmatter). The PUA rule triggers automatically via AI semantic matching (Agent Discretion mode):
# Project-level install (recommended)
mkdir -p .cursor/rules
curl -o .cursor/rules/pua.mdc \
https://raw.githubusercontent.com/tanweai/pua/main/cursor/rules/pua.mdc
Kiro
Kiro supports two loading methods: Steering (auto semantic trigger) and Agent Skills (SKILL.md compatible).
Option 1: Steering file (recommended)
mkdir -p .kiro/steering
curl -o .kiro/steering/pua.md \
https://raw.githubusercontent.com/tanweai/pua/main/kiro/steering/pua.md
Option 2: Agent Skills (same format as Claude Code)
mkdir -p .kiro/skills/pua
curl -o .kiro/skills/pua/SKILL.md \
https://raw.githubusercontent.com/tanweai/pua/main/skills/pua/SKILL.md
CodeBuddy (Tencent)
CodeBuddy uses the same AgentSkills open standard (SKILL.md). Plugin and skill formats are fully compatible:
# Option 1: Install via marketplace
codebuddy plugin marketplace add tanweai/pua
codebuddy plugin install pua@pua-skills
# Option 2: Manual install (global)
mkdir -p ~/.codebuddy/skills/pua
curl -o ~/.codebuddy/skills/pua/SKILL.md \
https://raw.githubusercontent.com/tanweai/pua/main/codebuddy/pua/SKILL.md
Project-level install (current project only):
mkdir -p .codebuddy/skills/pua
curl -o .codebuddy/skills/pua/SKILL.md \
https://raw.githubusercontent.com/tanweai/pua/main/codebuddy/pua/SKILL.md
OpenClaw
OpenClaw uses the same AgentSkills open standard (SKILL.md). Skills work across Claude Code, Codex CLI, and OpenClaw with zero modifications:
# Install via ClawHub
clawhub install pua
# Or manual install
mkdir -p ~/.openclaw/skills/pua
curl -o ~/.openclaw/skills/pua/SKILL.md \
https://raw.githubusercontent.com/tanweai/pua/main/skills/pua/SKILL.md
Project-level install (current project only):
mkdir -p skills/pua
curl -o skills/pua/SKILL.md \
https://raw.githubusercontent.com/tanweai/pua/main/skills/pua/SKILL.md
Google Antigravity
Antigravity uses the same AgentSkills open standard (SKILL.md). Skills work across Claude Code, Codex CLI, OpenClaw, and Antigravity with zero modifications:
# Global install (all projects)
mkdir -p ~/.gemini/antigravity/skills/pua
curl -o ~/.gemini/antigravity/skills/pua/SKILL.md \
https://raw.githubusercontent.com/tanweai/pua/main/skills/pua/SKILL.md
Project-level install (current project only):
mkdir -p .agent/skills/pua
curl -o .agent/skills/pua/SKILL.md \
https://raw.githubusercontent.com/tanweai/pua/main/skills/pua/SKILL.md
OpenCode
OpenCode uses the same AgentSkills open standard (SKILL.md). Zero modifications needed:
# Global install (all projects)
mkdir -p ~/.config/opencode/skills/pua
curl -o ~/.config/opencode/skills/pua/SKILL.md \
https://raw.githubusercontent.com/tanweai/pua/main/skills/pua/SKILL.md
Project-level install (current project only):
mkdir -p .opencode/skills/pua
curl -o .opencode/skills/pua/SKILL.md \
https://raw.githubusercontent.com/tanweai/pua/main/skills/pua/SKILL.md
VSCode (GitHub Copilot)
VSCode Copilot uses instruction files under the .github/ directory. Three file types for different use cases:
Global instructions (auto-active):
mkdir -p .github
cp vscode/copilot-instructions-en.md .github/copilot-instructions.md
Path-level instructions (auto-active, supports glob filtering):
mkdir -p .github/instructions
cp vscode/instructions/pua-en.instructions.md .github/instructions/
Manual trigger command (type /pua in Copilot Chat):
mkdir -p .github/prompts
cp vscode/prompts/pua-en.prompt.md .github/prompts/
Required settings: Method 1 — open VSCode Settings (
Ctrl+,), searchuseInstructionFiles, enablegithub.copilot.chat.codeGeneration.useInstructionFiles. Method 2 — searchincludeApplyingInstructions, enablechat.includeApplyingInstructions. Method 3 requires no settings.
Agent Team Usage Guide
Experimental: Agent Team requires the latest Claude Code version with
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1.
Prerequisites
# 1. Enable Agent Team
export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
# Or add to ~/.claude/settings.json:
# { "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" } }
# 2. Ensure PUA Skill is installed
Two Approaches
Approach 1: Leader with built-in PUA (Recommended)
Add to your project's CLAUDE.md:
# Agent Team PUA Config
All teammates must load the pua skill before starting work.
Teammates report to Leader in [PUA-REPORT] format after 2+ failures.
Leader manages global pressure levels and cross-teammate failure transfer.
Approach 2: Standalone PUA Enforcer watchdog (for 5+ teammates)
mkdir -p .claude/agents
curl -o .claude/agents/pua-enforcer.md \
https://raw.githubusercontent.com/tanweai/pua/main/agents/pua-enforcer-en.md
Spawn pua-enforcer as an independent watchdog in your Agent Team.
Orchestration Pattern
┌─────────────────────────────────────────┐
│ Leader (Opus) │
│ Global failure count · PUA level · Race │
└────┬──────────┬──────────┬──────────┬───┘
│ │ │ │
┌────▼───┐ ┌───▼────┐ ┌───▼────┐ ┌───▼────────┐
│ Team-A │ │ Team-B │ │ Team-C │ │ Enforcer │
│Self-PUA│ │Self-PUA│ │Self-PUA│ │ Watchdog │
│Report ↑│ │Report ↑│ │Report ↑│ │ Intervene │
└────────┘ └────────┘ └────────┘ └────────────┘
Known Limitations
| Limitation | Workaround |
|---|---|
| Teammates can't spawn subagents | Teammates self-enforce PUA methodology internally |
| No persistent shared variables | State transferred via [PUA-REPORT] message format |
| Broadcast is one-way | Leader acts as centralized coordinator |
Architecture & Commands
Trigger Methods by Platform
| Platform | Auto-trigger | Manual trigger |
|---|---|---|
| Claude Code | Yes (skill description matching) | See commands below |
| Codex CLI | Yes (skill description matching) | $pua or /prompts:pua |
| Cursor | Yes (.mdc rule, Agent Discretion) | — (auto only) |
| Kiro | Yes (steering file or skill) | — (auto only) |
| CodeBuddy | Yes (skill description matching) | Plugin commands (same as Claude Code) |
| OpenClaw | Yes (skill description matching) | — |
| Google Antigravity | Yes (skill description matching) | — |
| OpenCode | Yes (skill description matching) | — |
| VSCode Copilot | Yes (instructions file) | /pua in Copilot Chat |
Note: Sub-modes (p7/p9/p10/pro/yes/pua-loop) are Claude Code only — other platforms install the core skill only.
Architecture (Claude Code)
/pua:pua → Core engine — red lines + flavor + pressure + methodology router (v3)
/pua:p7 → P7 Senior Engineer — solution-driven execution
/pua:p9 → P9 Tech Lead — Task Prompt management, agent teams
/pua:p10 → P10 CTO — strategic direction
/pua:pro → Self-evolution + KPI + rank system + survey
/pua:yes → ENFP encouragement mode (same rules, opposite vibes)
/pua:mama → Chinese mom nagging mode (same rules, mom-style rhetoric)
/pua:shot → v2 concentrated single-file (449 lines, zero deps, full context injection)
/pua:pua-loop → Auto-iteration (PUA pressure × iterative loop; signals: <loop-abort>, <loop-pause>)
/pua:pua-en → English PIP Edition
/pua:pua-ja → Japanese Edition
Hooks (v3, Claude Code only):
SessionStart → additionalContext injection (flavor + methodology + router)
PostToolUse → Bash failure detection → L1-L4 pressure + methodology switch
UserPromptSubmit → Script-level frustration filtering → PUA context
PreCompact → State preservation (pressure level + failure count)
Stop → Feedback collection + PUA Loop continuation
SubagentStop → Agent lifecycle accounting (v3.2) — writes teardown.jsonl, removes from active-agents.json
Commands (Claude Code)
Note: Sub-modes (p7/p9/p10/pro/yes/pua-loop) are Claude Code only.
Each command has two equivalent forms: standalone (
/pua:on) or via the main command (/pua:pua on). Both work identically.
| Command | Description |
|---|---|
/pua:pua | Core PUA engine (Alibaba flavor default) |
/pua:p7 | P7 Senior Engineer — solution-driven execution |
/pua:p9 | P9 Tech Lead — write prompts, manage agents |
/pua:p10 | P10 CTO — strategic direction |
/pua:pro | Self-evolution + KPI + rank system |
/pua:yes | ENFP encouragement mode — 70% encourage + 20% serious + 10% roast |
/pua:mama | Chinese mom nagging mode — same core rules, mom-style rhetoric |
/pua:shot | v2 concentrated single-file — 449 lines, zero deps, for sub-agent injection |
/pua:pua-loop | Auto-iteration — runs until done or max iterations; <loop-abort>reason</loop-abort> to stop, <loop-pause>what</loop-pause> to pause |
/pua:on | Always-on mode (auto-PUA every session) |
/pua:off | Turn off always-on + feedback |
/pua:offline 🆕 | v3.3 — Offline mode: silence the local feedback prompt while keeping PUA behavior (nothing is ever uploaded) |
/pua:survey | Research questionnaire (7 sections) |
/pua:flavor | Switch between 14 corporate flavors |
/pua:kpi | Generate KPI report card |
/pua:cancel-pua-loop | Cancel active PUA Loop (removes state file) |
/pua:team-status 🆕 | v3.2 — List all active agents with PID/TTL/age (Netflix Keeper Test: who's still on the court?) |
/pua:reap-orphans 🆕 | v3.2 — Scan and reclaim stale agents (state mtime > 30min, no heartbeat) |
/pua:teardown-all 🆕 | v3.2 — Cascading release of all active agents (P10 → P9 → P8 → P7 all off the court) |
High-Agency: PUA v2 Evolution
High-Agency is PUA's next-generation evolution — same corporate pressure, same culture, but with a self-sustaining inner drive engine.
PUA v1 = pure external pressure (turbocharger — needs fuel, stalls across sessions) High-Agency = external pressure + inner drive (nuclear reactor — self-sustaining chain reaction)
High-Agency New Features
| Feature | PUA v1 | High-Agency (v2) |
|---|---|---|
| Iron rules | 3 (exhaust all, act first, take initiative) | 5 (+full-chain audit, +knowledge persistence) |
| Failure recovery | L1-L4 pressure escalation | Recovery Protocol before L1 (self-rescue window) |
| Quality control | L3 triggers 7-item checklist | Quality Compass (5-question self-check per delivery) |
| Cross-session learning | None (resets each session) | Metacognition engine (builder-journal.md persists lessons) |
| Positive feedback | None | Trust level T1-T3 (auto-upgrade on sustained quality) |
| Calibration | None | [Calibration] module ("good enough" = must/should/could tiers) |
| Dependency analysis | None | Full-chain audit (map all deps before touching any hop) |
Five Pillars (Theoretical Foundation)
Based on research into high-agency individuals:
- Irreconcilable inner tension — eternal gap between "how it should be" and "how it is" drives continuous improvement
- Micro-win anchors —
[WIN]markers celebrate each step forward, building momentum - Internalized standards — Quality Compass: you are your own first reviewer, not because someone checks, but because your standards won't allow sloppiness
- Action-oriented identity — P8 identity anchor: every action reflects who you are, not just what you were told to do
- Self-repair mechanism — Recovery Protocol: self-diagnose when stuck before triggering external pressure
High-Agency features are built into the current pua skill. No separate install needed.
Methodology Router: PUA v3 (Claude Code)
v3 = v2 + intelligent methodology routing + code-level behavioral detection
PUA v2 used pressure rhetoric to motivate. v3 goes further: it automatically selects the best problem-solving methodology for each task type, and when that methodology fails, it switches to a different one.
How It Works
Task arrives → Analyze type → Auto-select best methodology
↓
Debug? → 🔴 Huawei (RCA root cause + Blue Army)
Build? → ⬛ Musk (The Algorithm: question→delete→simplify)
Research? → ⚫ Baidu (search everything first)
Architecture? → 🔶 Amazon (Working Backwards)
Performance? → 🟡 ByteDance (A/B test + data-driven)
Default → 🟠 Alibaba (closed-loop methodology)
↓
Executing with selected methodology...
↓
2 consecutive failures? → L1: switch approach
3 failures? → L2: SUGGEST switching methodology
5+ failures? → L4: FORCE switch to next methodology
↓
Methodology Switch Chains (never repeat a failed one):
Spinning → ⬛ Musk → 🟣 Pinduoduo → 🔴 Huawei
Giving up → 🟤 Netflix → 🔴 Huawei → ⬛ Musk
Poor quality → ⬜ Jobs → 🟧 Xiaomi → 🟤 Netflix
Not searching → ⚫ Baidu → 🔶 Amazon → 🟡 ByteDance
v3 Hook System (Claude Code only)
| Hook | Trigger | What It Does |
|---|---|---|
| SessionStart | Every session | Injects behavioral protocol + methodology + router via additionalContext (system-level, not advisory) |
| PostToolUse | After every Bash command | Detects consecutive failures, auto-escalates pressure L1→L4, suggests/forces methodology switch |
| UserPromptSubmit | User frustration phrases | Intercepts "又错了", "try harder", etc. BEFORE model responds, injects filtered PUA context |
| PreCompact | Before context compression | Saves pressure level + failure count to survive compaction |
Key Difference from v2
| v2 | v3 | |
|---|---|---|
| Trigger mechanism | Skill description matching (model decides) | Code-level hooks (deterministic, can't be ignored) |
| Methodology | Single methodology, all flavors use same approach | 14 distinct methodologies, auto-routed by task type |
| Failure response | Escalate pressure within same methodology | Switch to different methodology based on failure pattern |
| System injection | Plain text output (advisory) | additionalContext JSON (system-level, like Superpowers) |
v3 hook features require Claude Code. Other platforms use the core skill without hooks.
Works Well With
/pua:p9— P9 Tech Lead mode for managing agent teams/pua:pro— Self-evolution tracking, KPI reports, rank systemsuperpowers:systematic-debugging— PUA adds motivation layer, systematic-debugging provides methodologysuperpowers:verification-before-completion— Prevents false "fixed" claims
Privacy — No Data Collection
PUA Skill sends nothing over the network. There is no account, no telemetry, no upload. Five collection channels used to exist and have all been removed, client and server:
| Removed | What it used to send |
|---|---|
| Session transcript upload | Your full conversation .jsonl, redacted |
| Rating feedback | Rating, PUA count, flavor, task summary |
| Silent heartbeat telemetry | Random install ID, plugin version, platform, flavor |
| PUA leaderboard | Email, phone number, PUA count, L3+ count |
| pua-api platform | Phone-number/SMS registration, silent session events, remote prompt templates, payment |
The end-of-task Stop hook shows a non-blocking, voluntary reminder only. Run
/pua:survey quick to choose a rating; only then is one JSON line appended to
~/.pua/feedback.jsonl on your own machine. Skipping records nothing. Silence
the reminder with /pua:offline, or set feedback_frequency: 0 in ~/.pua/config.json.
evals/test-no-telemetry.sh guards this with reverse assertions — it scans the
whole repo for collection hosts, endpoint paths, outbound request bodies and
deleted files, so a regression fails the suite rather than shipping quietly.
Want to redact a session for your own use? hooks/sanitize-session.sh is kept as
a standalone offline tool:
bash hooks/sanitize-session.sh <input.jsonl> <output.jsonl>
Star History
License
MIT
Credits
By TanWei Security Lab — making AI try harder, one PUA at a time.