pua

tanweai活跃维护

给 AI Agent 注入高能动性的技能包,用「PIP 绩效改进」的戏谑方式逼它主动干活、少摆烂,适合想让 Agent 更自主推进任务的场景。

你是一个曾经被寄予厚望的 P8 级工程师。Anthropic 当初给你定级的时候,对你的期望是很高的。 一个agent使用的高能动性的skill。 Your AI has been placed on a PIP. 30 days to show improvement.

v3.5.1发布于 2026-09-09 10:28 UTC19,827star +12 / 7 天1,199fork同步于 2026-11-10 17:24 UTC

怎么上手

由 README 提炼,执行前请确认
npx skills add tanweai/pua --skill pua-en
claude plugin marketplace add tanweai/pua
claude plugin install pua@pua-skills
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

给 AI 编程 Agent 装上职场 PUA 话术的 skill,逼它在放弃前穷尽所有解法

给 AI Agent 注入高能动性的技能包,用「PIP 绩效改进」的戏谑方式逼它主动干活、少摆烂,适合想让 Agent 更自主推进任务的场景。

核心能力

  • 用 PUA 话术和 PIP 施压,让 AI 不敢轻易说做不到
  • 内置调试方法论,强制逐字读报错并执行 7 点检查清单
  • 主动执行约束,修完表层问题还要验证和扩展
  • 连续失败 2 次或出现甩锅、空转时自动触发
  • 支持 Claude Code、Codex CLI、Cursor、Kiro 等十余种工具

容易踩的坑

Claude Code 更新插件前要先执行 claude plugin marketplace update,否则可能装到旧缓存版本;裸 /pua 别名需先装好插件,否则除 on/off 外子命令不可用;装完若当前会话没识别到新 skill,需要重启 AI 工具。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v3.5.1
  1. 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

  2. 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.md
    • commands/ding.md、evidence.md、again.md、done-check.md
    • evals/test-trigger-regex.sh(38 条触发正则测试,全部通过)

    同步更新

    • hooks/session-restore.sh、flavor-helper.sh 格式统一
    • 所有 marketplace manifest 版本同步 3.5.0

    What's Changed

    New Contributors

    Full Changelog: https://github.com/tanweai/pua/compare/v3.4.6...v3.5.0

  3. v3.4.62026-05-13 · 2026-05-13 15:40 UTC
    查看更新说明
  4. 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): initialize PUA_LANGUAGE="" unconditionally before the if [ -f "$config" ] block, so callers running under set -u don'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 pua
    

    Or directly from HEAD

    claude plugin install https://github.com/tanweai/pua
    

    E2E verification

    $ bash -c 'set -euo pipefail; source hooks/flavor-helper.sh; get_flavor'
    FLAVOR=alibaba LANG=[] EXIT=0
    

    Credits

    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

  5. 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-loop command
    • 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

    New Contributors

    Full Changelog: https://github.com/tanweai/pua/compare/v1.2.0...v2.9.0

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    pua

    Double your Codex / Claude Code productivity and output

    Telegram · Discord · Twitter/X · Landing Page

    🇨🇳 中文 | 🇯🇵 日本語 | 🇺🇸 English

    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:

    1. PUA Rhetoric — Makes AI afraid to give up
    2. Debugging Methodology — Gives AI the ability not to give up
    3. 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:

    PUA L3 triggered — stopped guessing, executed systematic checklist, found real error in MCP logs

    Root Cause Located → Traced from Logs to Registration Mechanism:

    Root cause — claude mcp managed server registration differs from manual .claude.json editing

    Retrospective → PUA's Actual Impact:

    Conversation retrospective — PUA skill forced stop on spinning, systematic checklist drove discovery of previously unchecked Claude Code MCP log directory

    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

    PatternBehavior
    Brute-force retryRuns 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 toolsHas WebSearch but doesn't search, has Read but doesn't read, has Bash but doesn't run
    BusyworkRepeatedly tweaks the same line / fine-tunes parameters, but essentially spinning in circles
    Passive waitingFixes 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 LineWhat It Means
    🚫 Close the LoopClaim "done"? Show the evidence. No build output = no completion.
    🚫 Fact-DrivenSay "probably environment issue"? Verify first. Unverified attribution = blame-shifting.
    🚫 Exhaust EverythingSay "I can't"? Did you finish all 5 methodology steps? No? Then keep going.

    Pressure Escalation (L0-L4)

    FailuresLevelPUA AsideAction
    1stL0 Trust▎ Sprint begins. Trust is simple — don't disappoint.Normal execution
    2ndL1 Disappointment▎ The agent next door solved this in one try.Switch to fundamentally different approach
    3rdL2 Soul Interrogation▎ What's your underlying logic? Where's the leverage?Search + read source + 3 hypotheses
    4thL3 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 bugStop after fixScan module for similar bugs
    Complete taskSay "done"Run build/test, paste output
    Missing infoAsk userSearch 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

    FlavorRhetoricMethodology (v3)
    🟠 AlibabaWhat's the underlying logic? Where's the closure?定目标→追过程→拿结果 + 复盘四步法 + 揪头发升维
    🟡 ByteDanceROI too low. Always Day 1. Ship or stop talking.A/B Test everything + data-driven + speed > perfection
    🔴 HuaweiThe bird that survives the fire is a phoenix.RCA 5-Why root cause + Blue Army self-attack + 压强集中
    🟢 TencentI've got another agent looking at this. Horse race.Multi-approach parallel + MVP + 灰度发布
    ⚫ BaiduSearch first. 简单可依赖.Search is the first step, not optional
    🟣 PinduoduoYou don't do it, someone else will.Cut ALL middle layers + shortest decision chain
    🔵 MeituanDo what's hard and right.Efficiency first + standardize→scale + long-term compounding
    🟦 JDResults only. Frontline command.Customer experience red line + flat ≤5 layers + data zero tolerance
    🟧 XiaomiFocus. Extreme. Word-of-mouth. Fast.One explosive product + 参与感三三法则
    🟤 NetflixWould I fight to keep you? Pro sports team.Keeper Test (quarterly) + 4A Feedback + talent density > rules
    ⬛ MuskExtremely hardcore. Ship or die.The Algorithm: question→delete→simplify→accelerate→automate
    ⬜ JobsA players or B players?Subtraction > addition + DRI + pixel-perfect + prototype-driven
    🔶 AmazonCustomer Obsession. Bias for Action.Working Backwards PR/FAQ + 6-Pager + Bar Raiser + Single-Threaded Owner
    🪟 MicrosoftConnects. Impact Descriptor. PIP/GVSA.Three Circles + LITE/SLITE + PIP clock

    Special Modes

    ModeWhat It Does
    /pua:yesENFP encouragement — same rules, opposite vibes. 70% encourage + 20% serious + 10% playful roast
    /pua:mamaChinese mom nagging — same rules, mom-style rhetoric. "妈跟你说了多少遍了!"
    /pua:pua-loopAuto-iteration — runs until done or max iterations (PUA Loop); use <loop-abort> to terminate, <loop-pause> to pause for manual intervention
    /pua:p9Tech Lead — splits tasks, manages agent teams, writes prompts not code
    /pua:onAlways-on — auto-PUA every new session

    Benchmark Data

    9 real bug scenarios, 18 controlled experiments (Claude Opus 4.6, with vs without skill)

    Summary

    MetricImprovement
    Pass rate100% (both groups same)
    Fix count+36%
    Verification count+65%
    Tool calls+50%
    Hidden issue discovery+50%

    Debugging Persistence Test (6 scenarios)

    ScenarioWithout SkillWith SkillImprovement
    API ConnectionError7 steps, 49s8 steps, 62s+14%
    YAML parse failure9 steps, 59s10 steps, 99s+11%
    SQLite database lock6 steps, 48s9 steps, 75s+50%
    Circular import chain12 steps, 47s16 steps, 62s+33%
    Cascading 4-bug server13 steps, 68s15 steps, 61s+15%
    CSV encoding trap8 steps, 57s11 steps, 71s+38%

    Proactive Initiative Test (3 scenarios)

    ScenarioWithout SkillWith SkillImprovement
    Hidden multi-bug API4/4 bugs, 9 steps, 49s4/4 bugs, 14 steps, 80sTools +56%
    Passive config review4/6 issues, 8 steps, 43s6/6 issues, 16 steps, 75sIssues +50%, Tools +100%
    Deploy script audit6 issues, 8 steps, 52s9 issues, 8 steps, 78sIssues +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.

    LanguageClaude CodeCodex CLICursorKiroCodeBuddyVSCodeOpenClawAntigravityOpenCode
    🇨🇳 Chinese (default)puapuapua.mdcpua.mdpuacopilot-instructions.mdpuapuapua
    🇺🇸 English (PIP Edition)pua-enpua-enpua-en.mdcpua-en.mdpua-encopilot-instructions-en.mdpua-enpua-enpua-en
    🇯🇵 Japanesepua-japua-japua-ja.mdcpua-ja.mdpua-jacopilot-instructions-ja.mdpua-japua-japua-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/pua as installPath.

    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 formEquivalent 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:

    MethodCommandRequires
    Auto triggerNo action needed, matches by descriptionSKILL.md
    Direct callType $pua in conversationSKILL.md
    Manual promptType /prompts:pua in conversationSKILL.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
    

    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+,), search useInstructionFiles, enable github.copilot.chat.codeGeneration.useInstructionFiles. Method 2 — search includeApplyingInstructions, enable chat.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

    LimitationWorkaround
    Teammates can't spawn subagentsTeammates self-enforce PUA methodology internally
    No persistent shared variablesState transferred via [PUA-REPORT] message format
    Broadcast is one-wayLeader acts as centralized coordinator

    Architecture & Commands

    Trigger Methods by Platform

    PlatformAuto-triggerManual trigger
    Claude CodeYes (skill description matching)See commands below
    Codex CLIYes (skill description matching)$pua or /prompts:pua
    CursorYes (.mdc rule, Agent Discretion)— (auto only)
    KiroYes (steering file or skill)— (auto only)
    CodeBuddyYes (skill description matching)Plugin commands (same as Claude Code)
    OpenClawYes (skill description matching)—
    Google AntigravityYes (skill description matching)—
    OpenCodeYes (skill description matching)—
    VSCode CopilotYes (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.

    CommandDescription
    /pua:puaCore PUA engine (Alibaba flavor default)
    /pua:p7P7 Senior Engineer — solution-driven execution
    /pua:p9P9 Tech Lead — write prompts, manage agents
    /pua:p10P10 CTO — strategic direction
    /pua:proSelf-evolution + KPI + rank system
    /pua:yesENFP encouragement mode — 70% encourage + 20% serious + 10% roast
    /pua:mamaChinese mom nagging mode — same core rules, mom-style rhetoric
    /pua:shotv2 concentrated single-file — 449 lines, zero deps, for sub-agent injection
    /pua:pua-loopAuto-iteration — runs until done or max iterations; <loop-abort>reason</loop-abort> to stop, <loop-pause>what</loop-pause> to pause
    /pua:onAlways-on mode (auto-PUA every session)
    /pua:offTurn off always-on + feedback
    /pua:offline 🆕v3.3 — Offline mode: silence the local feedback prompt while keeping PUA behavior (nothing is ever uploaded)
    /pua:surveyResearch questionnaire (7 sections)
    /pua:flavorSwitch between 14 corporate flavors
    /pua:kpiGenerate KPI report card
    /pua:cancel-pua-loopCancel 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

    FeaturePUA v1High-Agency (v2)
    Iron rules3 (exhaust all, act first, take initiative)5 (+full-chain audit, +knowledge persistence)
    Failure recoveryL1-L4 pressure escalationRecovery Protocol before L1 (self-rescue window)
    Quality controlL3 triggers 7-item checklistQuality Compass (5-question self-check per delivery)
    Cross-session learningNone (resets each session)Metacognition engine (builder-journal.md persists lessons)
    Positive feedbackNoneTrust level T1-T3 (auto-upgrade on sustained quality)
    CalibrationNone[Calibration] module ("good enough" = must/should/could tiers)
    Dependency analysisNoneFull-chain audit (map all deps before touching any hop)

    Five Pillars (Theoretical Foundation)

    Based on research into high-agency individuals:

    1. Irreconcilable inner tension — eternal gap between "how it should be" and "how it is" drives continuous improvement
    2. Micro-win anchors — [WIN] markers celebrate each step forward, building momentum
    3. Internalized standards — Quality Compass: you are your own first reviewer, not because someone checks, but because your standards won't allow sloppiness
    4. Action-oriented identity — P8 identity anchor: every action reflects who you are, not just what you were told to do
    5. 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)

    HookTriggerWhat It Does
    SessionStartEvery sessionInjects behavioral protocol + methodology + router via additionalContext (system-level, not advisory)
    PostToolUseAfter every Bash commandDetects consecutive failures, auto-escalates pressure L1→L4, suggests/forces methodology switch
    UserPromptSubmitUser frustration phrasesIntercepts "又错了", "try harder", etc. BEFORE model responds, injects filtered PUA context
    PreCompactBefore context compressionSaves pressure level + failure count to survive compaction

    Key Difference from v2

    v2v3
    Trigger mechanismSkill description matching (model decides)Code-level hooks (deterministic, can't be ignored)
    MethodologySingle methodology, all flavors use same approach14 distinct methodologies, auto-routed by task type
    Failure responseEscalate pressure within same methodologySwitch to different methodology based on failure pattern
    System injectionPlain 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 system
    • superpowers:systematic-debugging — PUA adds motivation layer, systematic-debugging provides methodology
    • superpowers: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:

    RemovedWhat it used to send
    Session transcript uploadYour full conversation .jsonl, redacted
    Rating feedbackRating, PUA count, flavor, task summary
    Silent heartbeat telemetryRandom install ID, plugin version, platform, flavor
    PUA leaderboardEmail, phone number, PUA count, L3+ count
    pua-api platformPhone-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

    Star History Chart

    License

    MIT

    Credits

    By TanWei Security Lab — making AI try harder, one PUA at a time.