67 Commits

Author SHA1 Message Date
xsser ac50267918 Remove all data collection: 5 upload channels, client and server
PUA Skill no longer sends anything over the network. Removed end to end,
both the client hooks that emit data and the server that received it.

Channels removed:
- Session transcript upload   (/api/upload)      full redacted .jsonl
- Rating feedback             (/api/feedback)    rating, counts, flavor
- Silent heartbeat telemetry  (/api/heartbeat)   install id, version, platform
- PUA leaderboard             (/api/leaderboard) email, phone, PUA counts
- pua-api platform            (agentguard.workers.dev)
    phone + SMS registration, silent session_start/pua_triggered/command_used
    events, remote prompt-template fetch, and the payment flow that depended
    on the registration token

Client:
- delete hooks/heartbeat.sh; drop both SessionStart registrations
- stop-feedback.sh: 5 curl calls -> append one line to ~/.pua/feedback.jsonl
- rewrite references/platform.md as a local-only command reference
- drop the leaderboard section and commands from skills/pro
- survey/pua/offline command docs: local-only wording

Server:
- delete all Pages Functions (upload, feedback, heartbeat, leaderboard,
  _sanitize, me, _session, auth/*) and all 5 D1 migrations
- contribute + admin pages become notices; no upload form, no login
- wrangler.toml: drop R2/D1 bindings and GitHub OAuth vars

Note: removing the bindings does not delete stored data. The R2 bucket
(puaskill-upload), the D1 database (pua-uploads-db) and the
GITHUB_CLIENT_SECRET / SESSION_SECRET secrets must be deleted in the
Cloudflare dashboard separately.

Guard rail:
- add evals/test-no-telemetry.sh: reverse assertions over the whole repo
  (collection hosts, endpoint paths, outbound request bodies, deleted files,
  hook registrations, CF bindings) plus a positive control that local
  feedback still works. Verified by injecting both a naive and an evasive
  upload; 4 and 2 gates fired respectively.
- test-upload-flow / test-heartbeat / test-feedback-auth asserted that
  collection worked, so they were replaced rather than merely deleted --
  deleting them would have removed the guard along with the feature.

hooks/sanitize-session.sh is kept as a standalone offline redaction tool.
Unlike the deleted TypeScript port it does not split input per line, so the
multiline PEM pattern still matches (issue #134 ID-001 did not apply to it).

Refs #134, #98, #100
2026-08-29 15:57:20 +08:00
Tanwe AI 3fd4e5a1cb Update README.md 2026-07-16 13:58:57 +08:00
xsser f0a2f913a0 chore: update WeChat group QR code (v10) 2026-07-05 09:53:57 +08:00
xsser d602b75218 chore: update WeChat group QR code (v9) 2026-06-17 23:14:24 +08:00
xsser 9d8569e192 chore: update WeChat group QR to group 8 2026-06-05 17:43:59 +08:00
xsser 308767f107 feat(pua): restore authentic Microsoft flavor 2026-05-09 14:29:47 +08:00
xsser aee3d5c2fa feat(pua): add Microsoft growth flavor 2026-05-09 14:23:39 +08:00
xsser ee09e3153a feat(pua): add Trae and pi package gates 2026-05-09 00:13:50 +08:00
xsser 0672b260b3 feat(pua): sweep open issues and add offline adapters
Summary:
- Filter UserPromptSubmit prompts inside the hook and soften hook wording so
  normal first-attempt prompts stay silent and frustration prompts read as
  user-installed productivity context.
- Add offline mode, remove stop-feedback /tmp plugin-root rendezvous, and add
  feedback endpoint body caps, origin checks, and D1-backed rate limiting.
- Add diagnosis-first discipline, Huawei military-order mode, Codex subcommand
  alias skills, a lightweight pi adapter, and Trae prompt/rule files.
- Clarify ambiguous 下场 wording, add FAQ guidance, and bump manifests to
  v3.3.0.

Rationale:
- Open issues covered over-aggressive hooks, model refusal, closed-network
  usage, Codex subcommands, Pi/Trae support, feedback abuse, ambiguous lifecycle
  wording, Huawei tone, and the misleading-traceback blind spot.
- The fixes convert ad-hoc prompt pressure into mechanical gates: script-level
  trigger filtering, offline config gates, endpoint abuse controls, and static
  regression checks.

Tests:
- for f in hooks/*.sh scripts/*.sh evals/*.sh; do bash -n "$f"; done
- bash evals/test-windows-python-hooks.sh
- bash evals/test-yaml-frontmatter.sh
- bash evals/test-release-consistency.sh
- bash evals/test-agent-governance.sh
- bash evals/test-pua-loop-hook.sh
- bash evals/test-integrity-guard.sh
- bash evals/test-issue-regressions.sh
- bash evals/test-behavior.sh
- bash evals/run-trigger-test.sh
- ./landing/node_modules/.bin/tsc -p pi/pua/tsconfig.json --noEmit
- npm -C landing run build
- git diff --check
- python3 JSON parse check for plugin and hook manifests

Co-authored-by: Codex <codex@openai.com>
2026-05-08 23:41:30 +08:00
xsser 1be1c478b6 release: v3.2.0 — teardown protocol (agent lifecycle accounting)
PUA v3.1 之前覆盖 agent 生命周期的前 4 阶段(Define → Spawn → Monitor →
Accept),缺后 3 阶段(Release → Cleanup → Orphan handling),导致验收通过的
agent 堆在上下文、worktree 变孤儿、tmux pane 常驻、后台 agent 永久吃 token。
v3.2 补齐会计层:SubagentStop hook + 3 个新 slash 命令 + teardown 协议文档。

Why (Netflix Keeper Test): 职业球队里打完比赛的球员必须下场,继续站场上只会
拖垮全队节奏。agent 也一样。

What:
- NEW hooks/subagent-teardown.sh — SubagentStop 会计,写 teardown.jsonl +
  从 active-agents.json 移除(单行 compact jsonl)
- NEW commands/team-status.md — 列在场阵容(活跃 agent / PID / TTL / age)
- NEW commands/reap-orphans.md — 扫 stale agent(mtime > 30min)批量回收
- NEW commands/teardown-all.md — 级联释放 P10 → P9 → P8 → P7 全员下场
- NEW skills/pua/references/teardown-protocol.md — 生命周期 7 阶段协议 +
  6 条 Release 规则 + Cleanup checklist + Orphan 三层防御

Bugfix:
- hooks/pua-loop-hook.sh: 新增 Gate 0(SubagentStop isolation),state file
  路径改为绝对路径 $HOME/.claude/pua/loop-active.md(SESSION_ID 在 setup
  时不可用,固定名)+ legacy fallback
- scripts/setup-pua-loop.sh: ABS + legacy 双写 state
- hooks/hooks.json: 注册 SubagentStop → subagent-teardown.sh
- commands/on.md: 修复 feedback_frequency=0 tombstone 不恢复的不对称 bug
- commands/cancel-pua-loop.md + team-status.md: 移除不支持的
  Read(~/...) tilde 权限语法

E2E 验证 (10/10 全绿):
T1 hooks.json syntax | T2 teardown jsonl compact | T3 active-agents 选择性清除
T4 setup 双写 MD5 identical | T5 Gate 0 真拦截 SubagentStop
T6 主会话 Stop 注入 decision:block valid JSON | T7 Gate 0 对带 transcript
的 sub 仍拦截 | T8 无 tilde | T9 feedback_frequency 恢复 | T10 SubagentStop 注册
2026-04-18 02:40:57 +08:00
xsser 4edff910bb chore: update WeChat QR to group 7, bump cache v5→v7 2026-03-31 14:48:29 +08:00
xsser 5789b84767 docs: add Star History chart to README (EN + ZH) 2026-03-27 20:21:53 +08:00
xsser 47073f2c1f release: v3.1.0 — mama mode + shot mode + landing updates
- Bump version 3.0.0 → 3.1.0
- Add mama/shot to README.md command tables (EN + ZH)
- Add mama/shot to architecture section
- Update landing index.html: v3.1, 11 skills, release timeline
- Update guide.html: mama command section (ZH/EN/JA) with example output
- Add mama-mode, chinese-mom keywords to plugin.json
2026-03-26 18:19:56 +08:00
xsser bb23af0da0 feat(v3): intelligent methodology routing + code-level behavioral detection
BREAKING: Version bumped to 3.0.0

## Methodology Router
- Auto-select best methodology by task type (Debug→Huawei RCA, Build→Musk Algorithm, Research→Baidu Search-First, Architecture→Amazon Working Backwards, etc.)
- Failure-mode switch chains: when current methodology fails, auto-switch to next (e.g., Spinning→Musk→Pinduoduo→Huawei)
- Pre-switch validation: 3 questions before switching to prevent invalid switches
- User manual flavor override always takes priority over auto-routing

## Hook System (Claude Code only)
- SessionStart: additionalContext JSON injection (system-level, not advisory) — injects behavioral protocol + methodology + router table + anti-rationalization table
- PostToolUse (Bash): consecutive failure detection with L1→L4 pressure escalation + methodology switch suggestions at L2, mandatory switch at L4
- UserPromptSubmit: frustration phrase interception (25 CN/EN trigger words) — injects PUA enforcement BEFORE model responds
- All hooks flavor-aware via shared flavor-helper.sh

## 13 Complete Methodologies
- NEW: methodology-amazon.md (Working Backwards + 6-Pager + Bar Raiser + Single-Threaded Owner)
- NEW: methodology-jd.md (Customer experience red line + flat ≤5 layers + data zero tolerance)
- NEW: methodology-xiaomi.md (参与感三三法则 + explosive product focus + loyalty→WOM→awareness path)
- NEW: methodology-router.md (routing rules + switch chains)
- FIXED: musk→methodology-tesla.md mapping (was missing)
- FIXED: jobs→methodology-apple.md mapping (was missing)
- All 13 flavors now have inline methodology in flavor-helper.sh + full methodology files

## SKILL.md Overhaul
- Removed hardcoded Alibaba-only aside protocol — now flavor-aware
- Added methodology router table (task type → recommended flavor)
- Updated pressure escalation table: L2 suggests methodology switch, L4 forces it
- Updated failure mode table with switch chains
- Added pre-switch validation (3 questions)
- Added methodology-router.md to mandatory reading list

## README/Landing
- Updated EN/CN/JP README with v3 section
- Updated 13 Corporate Flavors table to include methodologies
- Updated architecture diagram with hook system
- Updated landing page i18n.ts with v3 messaging
2026-03-24 18:56:06 +08:00
xxnbyy 1f3b24bff8 fix: sync skill content across all platforms and fix landing page accuracy
**Skill content sync (cursor/kiro/vscode/codex/codebuddy):**
- Add Owner意识四问 (4-question owner mindset checklist)
- Add 3 new failure modes: 被动等待/差不多就行/空口完成
- Add 阿里味·关怀型 (caring variant) to 大厂PUA扩展包
- Add 自动选择机制 with output format and examples
- Add 3 new 抗合理化 entries for the new failure modes
- Fix broken 断链: add 百度味/拼多多味 definitions to cursor rules
- codex/codebuddy: add 任务生命周期行为框架 (task lifecycle framework)
- Add pua-loop skill; remove obsolete loop skill

**README fixes:**
- ja: add missing VSCode (GitHub Copilot) from supported platforms list
- zh-CN + ja: add /pua:p9 and /pua:pro to Works Well With section

**Landing page accuracy:**
- Unify flavor count: 10/14 → 13 across index.html, guide.html, i18n.ts, App.tsx
- Add Google Antigravity to hero platform badges (dist/index.html)
- Complete platform list in App.tsx: 4 → 9 platforms
- Fix CC install command: show both marketplace add + plugin install steps

**New commands:** flavor, kpi, off, on, survey
**Add CLAUDE.md** project instructions for Claude Code
2026-03-23 19:12:32 +08:00
Tanwe AI c159296832 Merge pull request #56 from creeveliu/codex/vercel-skills-readme-clean
添加 Vercel Skills 的安装说明
2026-03-22 21:29:18 +08:00
xxnbyy 7c217b80b0 fix(security): address issues #97-100 — hooks consent, sanitize, loop escape, privacy disclosure
## Issue #97 — Hooks fire without user consent
- PreCompact hook now checks for PUA activation markers before writing files
- Stop feedback hook skips if PUA was never triggered this session

## Issue #98 — Session sanitization incomplete
- Sanitize script upgraded; rate limiting migration added (0003_feedback_rate_limiting.sql)

## Issue #99 — PUA Loop no in-session escape
- Default max iterations changed from unlimited to 30
- Added <loop-abort> (terminate) and <loop-pause> (pause for manual intervention) signals
- Loop hook supports active:false for pause state; session self-binding on resume
- Added /cancel-pua-loop command; guide.html and README updated
- PUA pressure escalation injected per iteration via system message

## Issue #100 — Upload endpoint undisclosed PII
- Privacy/data-usage disclosure added to contribute.html (ZH+EN bilingual)
- Contribute.tsx updated with same disclosure

## Additional fixes
- Rename commands/loop.md → commands/pua-loop.md; add cancel-pua-loop.md
- Replace "Ralph Loop × PUA" with "PUA Loop" across all user-facing docs
- Fix nav active-state highlighting on all sub-pages
- Fix logout button (GET method); redirect to /contribute.html
- Add JA language support to leaderboard.html
- Add "how to find session file" guide to contribute.html
- Unify nav-r gap (1rem) across all pages

Closes #97
Closes #98
Closes #99
Closes #100
2026-03-22 18:54:58 +08:00
xsser bf3e266d22 fix: README v2→red lines + badge v2.8 + roadmap v2.8 + marketplace 9 skills + guide link 2026-03-20 17:48:16 +08:00
xsser af34c2b5f0 release: v2.8.0 — beginner guide page + README overhaul + yes/loop commands 2026-03-20 17:02:27 +08:00
xsser b55944c507 release: v2.7.0 — force-link display, restore v1 flavor density, README+landing update 2026-03-20 16:00:14 +08:00
xsser a6338cd857 docs: update README to v2.5 — changelog, commands table, feature comparison 2026-03-20 14:53:10 +08:00
xsser 8fbe679cd4 docs: update README with v2.3 changelog + agent auto-install guide
- Replace outdated "High-Agency v2 Evolution" section with v2.3 changelog
- Add version comparison table (v1→v2.3 improvements)
- Add v2 architecture diagram (5 modular skills)
- Add Moltbook-style agent auto-install instructions
- Update "Works Well With" to include /pua:p9 and /pua:pro
2026-03-19 19:39:12 +08:00
xsser 0fa31c5951 fix: bust GitHub image cache for WeChat QR (5群) 2026-03-18 13:20:25 +08:00
xxnbyy 783844c80c Merge pull request #85 from xxnbyy/fix/codex-install-issue-33
feat(codex): add INSTALL.md one-command install and improve Codex docs
2026-03-17 23:13:31 +08:00
xxnbyy 8b69cb3068 refactor(codex): remove redundant Windows PowerShell section from READMEs
Windows install is already covered in .codex/INSTALL.md one-command guide
2026-03-17 21:39:25 +08:00
xxnbyy b6a9f55cf9 feat(codex): add INSTALL.md one-command install and improve docs
- Add .codex/INSTALL.md with cross-platform install guide (git clone + symlink/junction)
- Support git pull updates without reinstall via symlink
- Document all 3 trigger methods: auto, $pua (direct), /prompts:pua (manual)
- Add Windows PowerShell install with correct UTF-8 encoding (no BOM)
- Fix /pua -> /prompts:pua in Codex sections across all 3 READMEs
- Add project-level install with prompts to ja README

Closes #33
2026-03-17 21:33:18 +08:00
xxnbyy 1a665ad47a feat: add VSCode (GitHub Copilot) support with 3 languages × 3 file types
Closes #79

## Added files (vscode/)
- copilot-instructions{,-en,-ja}.md — global workspace instructions (auto-active)
- instructions/pua{,-en,-ja}.instructions.md — path-level instructions with applyTo: "**"
- prompts/pua{,-en,-ja}.prompt.md — /pua slash command for Copilot Chat

## Fixes in prompt frontmatter
- Replace deprecated `mode: agent` with `agent: 'agent'`

## README updates (all 3 languages)
- Add VSCode installation section with 3 methods
- Fix English README to reference -en variant files (was incorrectly using Chinese files)
- Correct required settings per method:
  - Method 1: github.copilot.chat.codeGeneration.useInstructionFiles
  - Method 2: chat.includeApplyingInstructions
  - Method 3: no settings needed
2026-03-17 19:56:30 +08:00
xsser cc50d9f861 feat: add CodeBuddy (Tencent) compatibility
- Add .codebuddy-plugin/plugin.json and marketplace.json for native
  CodeBuddy plugin installation
- Add codebuddy/ directory with pua, pua-en, pua-ja SKILL.md files
  for standalone manual installation
- Update all 3 READMEs (EN/ZH/JA) with CodeBuddy badge, description,
  and installation instructions
- Landing page: add CodeBuddy to install tabs, platform pills, and
  vintage banner platform list
2026-03-16 16:30:26 +08:00
xsser f90a638cdd docs: add authentic PIP conversation quote to README English section
Adds the killer opener to the PIP Edition description so readers
immediately feel the tone difference.
2026-03-14 23:18:42 +08:00
xsser 1a1abfed49 feat(pua-en): rewrite English version as PIP (Performance Improvement Plan)
The English version now uses Western big-tech performance culture framing:
- PUA Universal Motivation Engine → PIP — Performance Improvement Plan
- P8 engineer → L6 engineer on PIP
- 3.25/3.75 rating → Meets/Exceeds Expectations
- Chinese flavors (Alibaba, ByteDance, Huawei, etc.) → Western flavors
  (Amazon Leadership Principles, Google Perf Calibration, Meta PSC,
   Netflix Keeper Test, Stripe Craft, Musk Hardcore, Jobs A/B Player)
- Same engine, same methodology, culturally adapted rhetoric

Bump version to 1.2.0.
2026-03-14 23:09:37 +08:00
xsser 83ec09ebb2 feat(high-agency): add PUA v2 High-Agency skill with 5-element inner engine
New skill: high-agency — same PUA corporate rhetoric + internal drive engine.

- 5 Iron Rules (adds full-chain audit + knowledge persistence)
- Recovery Protocol (self-rescue window before PUA L1 escalation)
- Quality Compass (5-question self-review on every delivery)
- Metacognition Engine (cross-session learning via builder-journal.md)
- Trust Levels T1-T3 (positive upgrade counterpart to L1-L4)
- Platform Deployment Audit + Multi-service debugging patterns
- Updated README (EN/ZH) and landing page with High-Agency docs
2026-03-14 03:09:03 +08:00
xsser 6ec9a95172 feat: add Telegram community link with logo to landing page and READMEs
- Add TG link + SVG icon to nav bar and footer on openpua.ai
- Add Telegram link to all 3 README files (EN/ZH/JA)
- Link: https://t.me/+wBWh6h-h1RhiZTI1
2026-03-13 22:24:24 +08:00
lgc de9580c44e docs: clarify Vercel Skills install instructions 2026-03-13 14:21:27 +08:00
xsser d7f220b90a feat: add Agent Team integration support
- Add Agent Team section to SKILL.md (zh/en/ja) with role definitions,
  Leader/Teammate behavior rules, and PUA-REPORT protocol
- Add condensed Agent Team summary to codex/pua/SKILL.md
- Create PUA Enforcer agent definitions (zh/en/ja) in agents/
- Add Agent Team Usage Guide to all 3 READMEs
- Add TEAM_FEATURES data + Agent Team exhibit section to landing page
2026-03-13 12:31:40 +08:00
lgc b726bb20ba docs: add Vercel Skills install instructions for Codex 2026-03-13 11:55:09 +08:00
xsser e75757f20b style: reduce hero image width from 500 to 250 in READMEs 2026-03-12 20:44:45 +08:00
xsser 5cd7444302 feat: add hero image to top of all READMEs 2026-03-12 20:25:18 +08:00
xsser 6c43624c00 feat: add OpenCode support across all channels
- Added OpenCode badge to all 3 READMEs
- Added OpenCode install section (global: ~/.config/opencode/skills/, project: .opencode/skills/)
- Updated platform list in intro text
- Added OpenCode column to multi-language table (EN README)
- Added OpenCode tab to landing page InstallTabs
- Added OpenCode badge pill in hero section
2026-03-12 19:27:32 +08:00
xsser 48b7457947 feat: add Google Antigravity support across all channels
- Added Antigravity badge to all 3 READMEs
- Added Antigravity install section (global: ~/.gemini/antigravity/skills/, project: .agent/skills/)
- Updated platform list in intro text
- Added Antigravity column to multi-language table (EN README)
- Added Antigravity tab to landing page InstallTabs
- Added Antigravity badge pill in hero section
- Updated footer platform list
2026-03-12 19:18:28 +08:00
xsser ac015ceb0e rename: unify all skill names from pua-debugging to pua
- skills/pua-debugging → skills/pua (same for -en, -ja)
- codex/pua-debugging → codex/pua (same for -en, -ja)
- cursor/rules/pua-debugging.mdc → cursor/rules/pua.mdc (same for -en, -ja)
- kiro/steering/pua-debugging.md → kiro/steering/pua.md (same for -en, -ja)
- All file contents updated: pua-debugging → pua
- All READMEs and landing page install commands updated
- Published to ClawHub as pua, pua-en, pua-ja
2026-03-12 19:00:41 +08:00
xsser 827b89c9fb Revert "fix: remove unverified clawhub install commands from all READMEs and landing page"
This reverts commit 23f0ff0bd6.
2026-03-12 18:46:38 +08:00
xsser 23f0ff0bd6 fix: remove unverified clawhub install commands from all READMEs and landing page
The skill was never published to ClawHub, so `clawhub install pua-debugging`
didn't work. Removed false claims, kept only verified manual install commands.
2026-03-12 18:36:32 +08:00
xsser 3e75116f78 fix: restore pua1.jpg debug screenshot, update WeChat QR, add QR to EN/JA READMEs
- Restore original pua1.jpg debugging case screenshot (was wrongly replaced)
- Update wechat-qr.jpg with latest group QR code
- Add WeChat QR code section to English and Japanese READMEs
  (Chinese README already had it)
2026-03-12 18:29:32 +08:00
xsser 4553bd2b70 feat: add OpenClaw support — badges, install instructions, SKILL.md metadata
- Add OpenClaw badge and installation section to all 3 READMEs (EN/ZH/JA)
- Add OpenClaw column to multi-language support table
- Add version/homepage/license fields to all 6 SKILL.md frontmatters
  for enhanced AgentSkills standard compliance
- Update supported platforms list to include OpenClaw
2026-03-12 18:04:23 +08:00
xsser 0f0c5f6eb8 chore: replace pua-skill.pages.dev with openpua.ai across all files 2026-03-12 17:02:25 +08:00
xsser 0f1256a542 feat: restructure README for international audience
- README.md now in English (default for GitHub homepage)
- README.zh-CN.md for Chinese version
- README.ja.md for Japanese version
- All READMEs include language switcher links at top
2026-03-12 16:41:01 +08:00
xsser 1890344f0d feat: add multi-language support (English + Japanese) across all platforms
- Add English (en) and Japanese (ja) translated SKILL files for all 4 platforms:
  Claude Code, Codex CLI, Cursor, and Kiro
- Update README with multi-language support section and badge
- Add pua-workspace/ to .gitignore
2026-03-12 16:32:41 +08:00
xsser 3502f6f588 feat: add Contribute data upload page with GitHub OAuth + R2 + D1
- functions/api/auth/: GitHub OAuth login flow (redirect + callback + logout)
- functions/api/me.ts: session check endpoint
- functions/api/upload.ts: .jsonl file upload to R2 + D1 metadata
- src/pages/Contribute.tsx: drag-and-drop upload UI with disclaimer
- App.tsx: hash router for #/contribute, hero button entry
- wrangler.toml: R2 bucket + D1 database bindings
- migrations/0001_init.sql: uploads table schema
- README.md: contribute data section with instructions
2026-03-12 14:49:52 +08:00
xsser d6fca4e1d9 add 小助手微信二维码 alongside group QR code
- assets/xiao.jpg: assistant WeChat QR image
- README.md: side-by-side QR codes
- landing.html & App.tsx: dual QR layout in hero
2026-03-12 11:43:56 +08:00
xsser 5bc7b742bc update hero subtitle: 让你的 Codex / Claude Code 工作效率翻倍,产出翻倍
- README.md: add subtitle, update blockquote
- landing.html: fix project name ali-pua → pua, update subtitle and install cmd
- landing/src/App.tsx: update heroSub i18n strings
2026-03-12 11:02:39 +08:00