/persona-sim:product-feedback-simfrom persona-sim
Simulates a panel of target users to score product/copy/pricing/feature candidates, rank A/B variants, and compute semantic gradients before shipping.
Ships in persona-sim. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Thin scenario wrapper around persona-sim. Runs SGO on a product/copy candidate against a target user panel.
import sys
sys.path.insert(0, str(__import__('pathlib').Path.home() / '.claude/skills/persona-sim'))
from lib import sampler, sim_engine
# 1. Define target audience
panel = sampler.sample_personas(
n=30, # 30-50 is cost-effective
filters={"occupation_isco": "software", "age": (25, 50)}, # substring match on occupation
source="nemotron_usa",
mode="stream",
)
# 2. Single-version feedback (fast)
base = sim_engine.panel_score(
panel,
target="<your product/copy/feature description>",
goal="<what you want to maximize, e.g. paid conversions>",
)
# → aggregate.histogram / median / iqr / disagreement_flag / by_age / by_gender
# 3. A/B (or N-way) gradient ranking — uses anchored counterfactuals on persuadable middle
ranked = sim_engine.sgo(
panel,
target="<original version>",
candidates=["variant A", "variant B", "variant C"],
goal="<same goal>",
)
# → ranking: [{"candidate", "avg_score_lift", "n_probed"}, ...] sorted descending
panel_score only when you want to understand a single version (no alternatives yet).sgo ONLY when there's a persuadable middle (score 4-7). If base median is ≤3 or ≥8, SGO has no signal — iterate on the base version first.disagreement_flag to the user — high-variance results are signal, not noise.result["warning"] when showing output.If the user says "我的产品用户是 X":
| User type | Filter expression |
|---|---|
| 软件开发者 | {"occupation_isco": "software"} |
| 企业决策者 | {"occupation_isco": "manager", "age": (35, 60)} |
| Gen Z | {"age": (18, 27)} |
| 大城市高收入 | {"region": ["NY","CA","MA","WA"], "age": (28, 50)} |
| 老年人医疗产品 | {"age": (65, 100), "adults_only": False}(覆盖默认的成人限制无需) |
Ambiguous user type → use no occupation filter, let distribution surface the signal.
Haiku 4.5 via Colorist at ~$0.003/call. A 30-person panel + 3-candidate SGO = 30 + (persuadable × 3) ≈ 50-100 calls ≈ $0.15-0.30 per full run.
~/.claude/skills/persona-sim/SKILL.md for the underlying API and rulesvote-predict for policy/voting, social-sandbox for social experimentsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/persona-simSimulate feedback from statistically grounded virtual human populations. Use when the user wants to get product or copy feedback from a panel of diverse personas, predict group opinions or voting behavior, run social-experiment sandboxes, or compute a semantic gradient (SGO) for A/B ranking. Also triggers on mentions of Nemotron-Personas, PersonaHub, synthetic population, generative agents, silicon sample, LLM survey simulation, persuadable middle, SGO, social sandbox, 用虚拟人群测试, 模拟民意, 投票预测模拟./social-sandboxRun a what-if social experiment — inject a policy, event, or information shock and observe how a simulated population responds. Use for hypothesis generation (not ground truth) on questions like "what if minimum wage doubled", "how would users react if we added feature X", "which demographics push back first". Triggers on 社会实验, 沙盒模拟, what-if, 如果 X 发生了会怎样, 反事实模拟, counterfactual experiment./vote-predictPredict how a target population would vote, respond to a policy, or react to a political message. Use when the user wants a distribution (not a winner-take-all answer) across demographic segments, with calibration disclaimers. Triggers on 投票预测, 民意模拟, policy response, 政策反应, 选举模拟, 民意分布, 某群体怎么看.npx claudepluginhub yrzhe/claude-skills --plugin persona-simOther plugins' skills for the same job