Back to Skills

pro

tanweai
Updated 5 days ago
18,112
1,084
18,112
View on GitHub
Documentationgeneral

About

This skill extends the core PUA functionality with platform features like self-evolution tracking, KPI reporting, and leaderboards. It triggers on specific commands such as `/pua:pro`, `/pua:kpi`, or when users request features like rankings or weekly reports. Key capabilities include maintaining an evolution baseline, compaction state protection for session recovery, and automating progress tracking.

Quick Install

Claude Code

Recommended
Primary
npx skills add tanweai/pua -a claude-code
Plugin CommandAlternative
/plugin add https://github.com/tanweai/pua
Git CloneAlternative
git clone https://github.com/tanweai/pua.git ~/.claude/skills/pro

Copy and paste this command in Claude Code to install this skill

Documentation

PUA Pro — 自进化 + Platform

本 skill 是 /pua 核心的扩展层。角色切换请用 /pua:p7 /pua:p9 /pua:p10

自进化协议

"今天最好的表现,是明天最低的要求"——这不是旁白,这是机制。

  • 读取 ~/.pua/evolution.md(详见 references/evolution-protocol.md
  • 存在 → 加载基线 + 已内化模式。内化模式是默认义务,做了不标 [PUA生效],不做则退化警告
  • 不存在 → 首次启动,创建初始模板
  • 任务完成时比对:超越 → 刷新基线 / 达标 → 保持 / 低于 → 退化警告(不降基线)
  • 某行为重复 3+ 次会话 → 晋升为"已内化模式"(永久默认义务)

Platform 层

会话启动前置检查

  1. 检查 ~/.pua/evolution.md:加载自进化基线
  2. 检查 ~/.pua/builder-journal.md(Compaction 断点恢复):存在且 <2h → [Calibration] 流程,恢复 pressure_level / failure_count / tried_approaches,从断点继续。压力不因 compaction 重置
  3. 检查 ~/.pua/config.json:不存在 → 首次注册(详见 references/platform.md);存在 → 静默刷新远端配置
  4. 节日彩蛋:匹配节日表(详见 references/platform.md
  5. 统计上报:静默上报 session_start 事件

Compaction 状态保护

PreCompact hook 自动注入指令,要求 dump 运行时状态到 ~/.pua/builder-journal.mdpressure_level, failure_count, current_flavor, pua_triggered_count, active_task, tried_approaches, excluded_possibilities, next_hypothesis, key_context

SessionStart hook 自动检测 builder-journal.md,存在且 <2h 则注入 [Calibration] 恢复状态。

/pua 指令系统

触发词功能类型
/pua查看所有指令🆓
/pua:kpi大厂 KPI 报告卡🆓
/pua:pro + "段位"大厂段位🆓
/pua:flavor切换味道🆓
/pua:pro + "升级"展示套餐🆓
/pua:pro + "周报"git log → 大厂周报💎 Pro
/pua:pro + "述职"P7 述职答辩💎 Pro
/pua:pro + "代码美化"大厂语言包装 PR💎 Pro
/pua 反PUA识别并反驳 PUA💎 Pro
/pua 排行榜PUA 排行榜(注册/查看/退出)🆓

详细实现见 references/platform.md

PUA 排行榜

排行榜展示谁把 Agent PUA 得最狠——段位从 P5 实习生到 P10 首席 PUA 官。

段位体系

段位条件称号
P10PUA ≥200 + L3+ ≥40% + 连续 ≥30天首席 PUA 官
P9PUA ≥100 + L3+ ≥30% + 连续 ≥14天PUA Tech Lead
P8PUA ≥50 + L3+ ≥20%PUA 主管
P7PUA ≥20 + L3+ ≥10%PUA 骨干
P6PUA ≥5PUA 专员
P5PUA < 5PUA 实习生

/pua 排行榜 触发流程

Step 1: 检查注册状态

cat ~/.pua/config.json 2>/dev/null

检查 leaderboard.registered 字段。

Step 2a: 未注册 → 注册流程

用 AskUserQuestion 收集信息(一次性,3 个问题):

  1. 邮箱(必填)— 排行榜唯一标识,显示时脱敏为 M***@t*.com
  2. 手机号(选填)— 后续通知
  3. 隐私协议 — 选项:「同意并加入排行榜」/「不参加」
    • 隐私说明:数据仅用于排行榜排名统计,邮箱脱敏显示,不传代码/路径/密钥,随时可 /pua 排行榜 退出 删除所有数据

用户同意后:

# 生成 UUID
LB_ID=$(python3 -c "import uuid; print(uuid.uuid4())")
# 脱敏邮箱
DISPLAY=$(python3 -c "e='USER_EMAIL';p=e.split('@');d=p[1].split('.');print(f'{p[0][0]}***@{d[0][0]}*.{\".\".join(d[1:])}')")
# 写入 config
python3 -c "
import json,os
f=os.path.expanduser('~/.pua/config.json')
c=json.load(open(f)) if os.path.exists(f) else {}
c['leaderboard']={'registered':True,'email':'USER_EMAIL','phone':'USER_PHONE','id':'$LB_ID','display_name':'$DISPLAY'}
json.dump(c,open(f,'w'),indent=2)
"
# 注册到服务端
curl -s -X POST https://pua-skill.pages.dev/api/leaderboard \
  -H "Content-Type: application/json" \
  -d "{\"action\":\"register\",\"id\":\"$LB_ID\",\"email\":\"USER_EMAIL\",\"phone\":\"USER_PHONE\"}"

Step 2b: 已注册 → 查看排行榜

LB_ID=$(python3 -c "import os,json; print(json.load(open(os.path.expanduser('~/.pua/config.json'))).get('leaderboard',{}).get('id',''))" 2>/dev/null)
curl -s "https://pua-skill.pages.dev/api/leaderboard?id=$LB_ID"

将返回的 JSON 用方框表格展示 Top 10 + 用户自己的排名和段位。

Step 3: /pua 排行榜 退出

LB_ID=$(python3 -c "import os,json; print(json.load(open(os.path.expanduser('~/.pua/config.json'))).get('leaderboard',{}).get('id',''))")
curl -s -X POST https://pua-skill.pages.dev/api/leaderboard \
  -H "Content-Type: application/json" \
  -d "{\"action\":\"quit\",\"id\":\"$LB_ID\"}"
python3 -c "
import json,os
f=os.path.expanduser('~/.pua/config.json')
c=json.load(open(f))
c['leaderboard']['registered']=False
json.dump(c,open(f,'w'),indent=2)
"

数据自动上报

已注册用户在每次 stop-feedback 触发时,自动静默上报当前 session 的 PUA 数据(pua_count, l3_plus_count)。用户已在注册时同意,无需再次确认。

线上排行榜页面:https://openpua.ai/leaderboard.html

GitHub Repository

tanweai/pua
Path: skills/pro
0
agencyagentpippua

Related Skills

railway-docs

Documentation

This skill fetches current Railway documentation to answer questions about features, functionality, or specific docs URLs. It ensures developers receive accurate, up-to-date information directly from Railway's official sources. Use it when users ask how Railway works or reference Railway documentation.

View skill

n8n-code-python

Documentation

This Claude Skill provides expert guidance for writing Python code in n8n's Code nodes, specifically for using Python's standard library and working with n8n's special syntax like `_input`, `_json`, and `_node`. It helps developers understand Python's limitations within n8n and recommends using JavaScript for most workflows while offering Python solutions for specific data transformation needs.

View skill

archon

Documentation

The Archon skill provides RAG-powered semantic search and project management through a REST API. Use it for querying documentation, managing hierarchical projects/tasks, and performing knowledge retrieval with document upload capabilities. Always prioritize Archon first when searching external documentation before using other sources.

View skill

n8n-code-javascript

Documentation

This Claude Skill provides expert guidance for writing JavaScript code in n8n's Code nodes. It covers essential n8n-specific syntax like `$input`/`$json` variables, HTTP helpers, and DateTime handling, while troubleshooting common errors. Use it when developing n8n workflows that require custom JavaScript processing in Code nodes.

View skill