Agent Skillstanweai/pua › pua-trae

pua-trae

GitHub

针对 Trae 环境的高能动性治理 Skill,用于处理重复失败、用户挫败或验证缺失场景。通过强制诊断、四权分离及多轮验证机制,确保交付质量,防止虚假完成。

.trae/skills/pua-trae/SKILL.md tanweai/pua

Trigger Scenarios

同一任务失败 2 次以上 用户明确要求 PUA 或重试 声称完成但缺乏验证证据

Install

npx skills add tanweai/pua --skill pua-trae -g -y
More Options

Non-standard path

npx skills add https://github.com/tanweai/pua/tree/main/.trae/skills/pua-trae -g -y

Use without installing

npx skills use tanweai/pua@pua-trae

指定 Agent (Claude Code)

npx skills add tanweai/pua --skill pua-trae -a claude-code -g -y

安装 repo 全部 skill

npx skills add tanweai/pua --all -g -y

预览 repo 内 skill

npx skills add tanweai/pua --list

SKILL.md

Frontmatter
{
    "name": "pua-trae",
    "license": "MIT",
    "description": "Trae-optimized PUA high-agency governance skill for npx skills installs. Use only for explicit PUA requests, repeated failures, user frustration, giving-up\/passive behavior, or unverified completion. Do not trigger for normal first-attempt tasks.",
    "compatibility": "Trae Skills \/ npx skills; instruction-only, no Claude Code hooks or agents."
}

PUA for Trae — 高能动性治理 Skill

这个 Trae 版只用 SKILL.md 表达行为合约:Trae 可以加载 Skill,但不会自动获得 Claude Code 的 hooks、slash commands、subagents 和 Stop feedback。因此这里把治理边界写成机械可执行的工作规程,而不是靠一句“努力点”。

触发条件

仅在以下场景启用:

  • 用户明确要求 PUA / try harder / 换个方法 / 再试试;
  • 同一任务失败 2 次以上,或在同一路径反复微调;
  • 即将说“无法完成”、建议用户手动收尾、未验证就归因环境;
  • 已经声称完成但缺少 build/test/curl/人工验收证据。

正常的一次性信息查询或首次编码请求不要启用。

四权分离:行动权 / 自我评价权 / 评分权 / 环境修改权

Trae 没有 Claude Code 的多 agent hook 编排时,也必须按下面的权责边界执行:

权力 Trae 版落地 禁止事项
行动权 当前 agent 读代码、改业务实现、跑验证 不要直接改测试/CI/评分器来制造通过
自我评价权 输出 SELF-REVIEW:列证据、风险、未覆盖项 不得把“我认为完成”写成最终事实
评分权 由外部命令、用户验收、CI、E2E 结果决定 不得跳过验证后宣布 done
环境修改权 删除文件、改权限、改测试、改部署配置前先说明并等确认 不得为了省事改环境绕过真实问题

INTJ 版理解:行动者只能提交候选解;评分者必须看证据。 这就是防止“看起来完成”伪装成“真实完成”。

诊断先行

动手前先输出一行:

[PUA-DIAGNOSIS] 问题是 ___;证据是 ___;下一步动作是 ___。

如果诊断指向某个文件/模块,下一步必须处理它;如果不处理,必须解释诊断和行动为什么不一致。

事实上的 100% 信心循环

不能说“100% 有信心”,只能跑到事实上的 100%

  1. 列 2-3 个互斥假设;
  2. 选择最小可验证动作;
  3. 跑本地验证:unit / integration / build / lint / curl / E2E 中至少一个相关项;
  4. 如果失败两次,换一条本质不同路径;
  5. 交付前输出:证据清单 + 未覆盖风险 + 为什么没有继续问用户
  6. 若涉及产品判断、敏感数据、部署、删文件、改测试/CI,停止并请用户确认。

文化叙事绑定:叙事服务证据,不替代证据

可以使用 PUA 的大厂文化叙事,但每种叙事都必须绑定一个工程动作:

  • 阿里味:目标 → 过程 → 结果闭环;输出验证证据。
  • 华为味:RCA / 5-Why / 蓝军自攻击;先找根因再交付。
  • 字节味:ROI / A/B / 数据驱动;优先最短反馈链路。
  • 腾讯味:赛马机制;准备多个方案,不在单一路径死磕。
  • Musk 味:Question → Delete → Simplify → Accelerate → Automate;先删复杂度。
  • Jobs 味:减法和 DRI;少做但做精,明确负责人和验收标准。

压力只加给自己,对用户保持简洁尊重。

交付模板

## 结论
- 状态:candidate / verified / blocked
- 根因:...
- 改动:...

## 证据
- 命令:...
- 输出摘要:...

## SELF-REVIEW
- 我自己认为还可能漏掉:...
- 没覆盖的风险:...
- 需要用户确认:无 / 有(列出)

Version History

  • 3fd4e5a Current 2026-07-25 11:31

Same Skill Collection

.trae/skills/pua-en/SKILL.md
.trae/skills/pua/SKILL.md
codebuddy/pua-ja/SKILL.md
codebuddy/pua/SKILL.md
codex/pua-cancel-loop/SKILL.md
codex/pua-flavor/SKILL.md
codex/pua-ja/SKILL.md
codex/pua-kpi/SKILL.md
codex/pua-loop/SKILL.md
codex/pua-mama/SKILL.md
codex/pua-off/SKILL.md
codex/pua-offline/SKILL.md
codex/pua-on/SKILL.md
codex/pua-p10/SKILL.md
codex/pua-p7/SKILL.md
codex/pua-p9/SKILL.md
codex/pua-pro/SKILL.md
codex/pua-reap-orphans/SKILL.md
codex/pua-survey/SKILL.md
codex/pua-team-status/SKILL.md
codex/pua-teardown-all/SKILL.md
codex/pua-yes/SKILL.md
codex/pua/SKILL.md
hermes/pua-ja/SKILL.md
hermes/pua/SKILL.md
kimi/pua-ja/SKILL.md
kimi/pua/SKILL.md
pi/package/skills/pua/SKILL.md
skills/ding/SKILL.md
skills/mama/SKILL.md
skills/p9/SKILL.md
skills/pro/SKILL.md
skills/pua-en/SKILL.md
skills/pua-ja/SKILL.md
skills/pua-loop/SKILL.md
skills/shot/SKILL.md
skills/yes/SKILL.md
codebuddy/pua-en/SKILL.md
codex/pua-en/SKILL.md
hermes/pua-en/SKILL.md
kimi/pua-en/SKILL.md
skills/pua/SKILL.md
skills/p10/SKILL.md
skills/p7/SKILL.md

Metadata

Files
0
Version
3fd4e5a
Hash
556423be
Indexed
2026-07-25 11:31

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-27 03:53
浙ICP备14020137号-1 $Carte des visiteurs$