nuwa-skill
alchaincyf
你想蒸馏的下一个员工,何必是同事。蒸馏任何人的思维方式——心智模型、决策启发式、表达DNA。Distill how anyone thinks.
kevinshi3200/persona-auditor
Persona Auditor — audit AI-generated code from a real user's perspective. Digital personas exhaustively traverse every user journey, then god's-eye attribution collapses bugs into a few root causes for precise fixing. Agent skill (Claude Code / Codex / Cursor / DSH).
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:kevinshi3200/persona-auditor
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Find the bugs real users hit that you'd only discover through costly trial-and-error — or never notice at all — and collapse them into a handful of root causes, so your agent fixes precisely instead of patching blindly.
从真实用户视角审计 AI 代码,找出你反复试验才能发现、甚至永远发现不了的错误,归因成少数根因,一次修对。
AI writes code that runs fine and is internally consistent — but the moment a real user walks the journey, it falls apart:
Persona Auditor first reads the code to map the project's full structure (every page / command / scenario), then dispatches two layers of digital personas: mechanical walkers that exhaustively traverse every user path on paper and record only code-verifiable facts (where it broke, at which file:line, in how many steps), plus an intent observer that weighs which breaks a human would most likely care about. Finally it steps back to a god's-eye view and attributes dozens of symptoms to a few root causes, each with a falsifiable way to verify the fix.
audit → report (root cause + location) → you confirm → agent fixes → verify the symptom disappears
| Strength | What it means for you |
|---|---|
| 🎭 Real-user perspective | Walks journeys as people would — facts recorded by mechanical walkers, human weight added by an intent observer |
| 🗺️ Whole-project map first | Reads code to list every page / command / scenario before dispatching — no blind path-picking |
| 👁️ Finds what you'd never notice | Hunts "self-consistent but experience-wrong" gaps, not just runtime bugs |
| 🎯 God's-eye attribution | Counterfactual reasoning collapses dozens of symptoms into a few root causes — each falsifiable |
| 🧮 Exhaustive, not sampled | Equivalence classes + boundary values + orthogonal arrays guarantee no missed combination, with a provable coverage count |
| ⚖️ Facts vs opinions, separated | Walkers record only falsifiable facts; opinions are tagged as hypotheses, never findings |
| 🎲 Deterministic & reproducible | A bounded set of personas — same input, same output, no chaotic surprises |
| 🔄 Fix loop, not a report | Ends in precise fixing + verification, not "audit done, good luck" |
| 🧹 Release hygiene + defensive pollution (exclusive) | Catches AI's signature diseases: secrets / PII / trial-and-error traces written into code, and guardrail notes (⚠️ warnings, "don't ship" self-reminders) leaked into public artifacts |
| 🔍 Wheel-reinvention audit (exclusive) | Flags hand-rolled modules that a mature open-source library already beats |
| ⚖️ Adapts to the project | Lite / Standard / Deep — a landing page doesn't get a heavyweight audit |
| 🔌 Plugs into your loop | One-shot, incremental-after-each-change, or a gate before commit/release |
persona × function × operation × state × timing matrix is traversed, with coverage quantified and provable.file:line, in N steps); the intent observer adds human-weighted hypotheses, explicitly tagged — never conflated with findings.Seven dimensions — plus tech-stack unification — dozens of checks, one table to show the coverage:
| Dimension | What it detects |
|---|---|
| 🧠 Logic & state | logic contradictions, dead branches, deadlock, infinite loops, state pollution, stale state, missing preconditions, variables accidentally overwritten, checks skipped, race conditions |
| 👤 User experience | the "self-consistent but experience-wrong" gap, cognitive overload, feature fragmentation, missing feedback, "says vs does" mismatch, discoverability, recoverability, trust building, mental-model mismatch, abandonment points |
| 🔒 Security | SQL injection, XSS, SSRF, IDOR, privilege escalation, command injection, path traversal, arbitrary file read, races, prompt injection, jailbreak (34 classes) |
| 🤖 AI-smell & maintainability | naming emptiness, comment clichés, over-abstraction, swallowed exceptions, TODO graveyard, over-engineering, reinvented wheels, outdated tech, worse-than-mature-OSS |
| 📋 Compliance & release | software-copyright compliance, store-review gating, missing EULA/copyright notices, secret leakage, real PII leakage, internal info / trial-and-error traces leaked, defensive-content pollution (corrections / warnings / self-reminders in public artifacts) |
| ⚡ Concurrency & stress | multi-task concurrency, races, timeouts, interruption, duplicate submission, rapid switching, multi-subagent conflicts |
| 🔗 Cross-scenario | cross-scenario contamination, precise switching, memory/state recall correctness, cross-module routing |
| 🧩 Tech-stack unification | adapter-convergence failure: one concern solved by N parallel adapters / 1 live + 1 dead / write-only capability registry / ghost enum value / two names or two units for one fact / partial-use heavy borrow |
Checks are triggered on demand, not dumped on you. The audit first asks "who is it for, where does it ship" and skips what doesn't apply — no store review for something not shipping, no mobile App Store review for a desktop app.
file:line, in N steps, and whether it's an intended gate or an accidental break); an intent observer adds human-weighted hypotheses.# skills ecosystem (Claude Code / Codex / Cursor / other agents)
npx skills add kevinshi3200/persona-auditor
# or manual: copy SKILL.md into your agent's skills directory
# e.g. ~/.agents/skills/persona-auditor/SKILL.md
Then trigger it in natural language:
"Audit this project with Persona Auditor." "审计这个项目" / "找 bug" / "推演" / "验收" / "出包前检查"
What you get: a report whose conclusion is a few root causes + impact-ranked fix directions — each with file:line and a falsifiable verification method — not dozens of symptoms laid flat.
| Code review | E2E / click testing | Chaotic multi-agent | Persona Auditor | |
|---|---|---|---|---|
| Perspective | code logic | machine operations | emergent agents | real users |
| Finds | code quality | runtime bugs | unpredictable | "self-consistent but experience-wrong" gaps + bugs you'd never notice |
| Root cause | single point | single point | unclear | god's-eye counterfactual attribution (a few root causes) |
| Coverage | sampled | one path at a time | chaotic | exhaustive, provable coverage |
| Cost | cheap, shallow | expensive | unpredictable | cheap + global + reproducible |
Will it drown me in findings? No. Checks are triggered on demand based on your release scenario, and the final report converges to a few root causes ranked by impact, not a wall of symptoms.
Is it deterministic, or another chaotic multi-agent simulation? Deterministic. Code and state machines are deterministic, so it uses a bounded set of personas (≤10, one per persona combo) — reproducible and predictable.
Does it change my code? Not during the audit. After you confirm the report, the same agent fixes precisely per the report and verifies the symptom disappears.
Does it do a heavy audit on a tiny project? No. It picks a depth tier — 🟢 Lite for a landing page / personal tool, 🟡 Standard for most projects, 🔴 Deep for store shipping / sensitive data / agent systems — and only runs what the project needs.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: persona。