Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Yrzhe/claude-skills --skill persona-simgit clone --depth 1 https://github.com/Yrzhe/claude-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/yrzhe/claude-skills/persona-sim)<a href="https://agentmods.dev/skills/yrzhe/claude-skills/persona-sim"><img src="https://agentmods.dev/badge/skills/yrzhe/claude-skills/persona-sim/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/yrzhe/claude-skills/persona-sim"><img src="https://agentmods.dev/badge/skills/yrzhe/claude-skills/persona-sim.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00117 | $0.02546 |
| Opus 5.5 | $0.00047 | $0.01018 |
| Sonnet 5.5 | $0.00023 | $0.00509 |
| Haiku 4.5 | $0.00012 | $0.00255 |
Grade A, and why
persona-sim scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Persona Sim
Simulate feedback from census-grounded virtual populations. Five layers, each independently replaceable:
L5 Scenario adapters (product-feedback-sim / vote-predict / social-sandbox) thin wrappers
L4 Simulation engine (sim_engine.py — SGO: panel -> score -> persuadable middle -> anchored gradient)
L3 LLM router (llm_router.py — config-driven; default Haiku 4.5 + prompt cache; Sonnet for gradient)
L2 Persona sampler (sampler.py — unified sample_personas(n, filters, source, mode))
L1 Persona store (~/.claude/data/personas/ + manifest.json)
First-time setup (not optional)
Dependencies and config live outside the skill under ~/.claude/data/personas/ so sharing the skill never leaks keys. See SETUP.md for the full walk-through. Short version:
mkdir -p ~/.claude/data/personas
cp ~/.claude/skills/persona-sim/data/config.example.json ~/.claude/data/personas/config.json
cp ~/.claude/skills/persona-sim/data/manifest.json ~/.claude/data/personas/manifest.json
# Edit config.json — set `provider` and fill api_key / base_url for your chosen block
python3 -m venv ~/.claude/data/personas/.venv
~/.claude/data/personas/.venv/bin/pip install -r ~/.claude/skills/persona-sim/requirements.txt
Always invoke with the venv interpreter:
~/.claude/data/personas/.venv/bin/python <script>
When to use
- "Score this copy/feature with 100 virtual target users" →
sim_engine.panel_score() - "Find the persuadable middle for this tweet" →
sim_engine.sgo() - "Predict the US opinion distribution for this policy" →
panel_score()+ segment breakdown - "Which of these two pricing variants wins?" →
sgo()with anchored counterfactual probes
In-code API
from persona_sim import sampler, sim_engine
# Sample 30 targeted personas (streaming — no local download needed)
panel = sampler.sample_personas(
n=30,
filters={"occupation_isco": "software", "age": (22, 55)}, # see filter semantics below
source="nemotron_usa",
mode="stream",
)
# Single-version scoring
result = sim_engine.panel_score(panel, target="Copy or product description here")
# -> {"n", "results", "aggregate": {"histogram", "median", "iqr", "entropy",
# "multi_modal", "disagreement_flag", "by_gender", "by_age", "by_region"},
# "warning": "Simulation only..."}
# SGO gradient — rank candidates by how much they shift the persuadable middle
ranked = sim_engine.sgo(
panel,
target="original version",
candidates=["variant A", "variant B"],
goal="maximize paid conversions",
)
# -> {"base", "persuadable_middle", "ranking": [{"candidate", "avg_score_lift", ...}]}
What ships with it
16 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- data/config.example.json 1.3 KB
- data/manifest.json 5.9 KB
- eval/__init__.py 0 B runs code
- eval/anes_demo_corr.json 4.5 KB
- eval/bfi44.json 7.0 KB
- eval/gss_20q.json 9.6 KB
- eval/run_eval.py 19 KB runs code
- prompts/persona_system.md 850 B
- prompts/sgo_gradient.md 231 B
- references/chinese_pipeline.md 3.0 KB
- references/datasets.md 1.8 KB
- references/methodology.md 2.9 KB
- requirements.txt 55 B
- scripts/smoke_test.py 1.6 KB runs code
- scripts/smoke_test2.py 2.4 KB runs code
- SETUP.md 1.1 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 201 lines · 117 tokens per session scan A 02dce59ea484
persona-sim is a skill published in the GitHub repository Yrzhe/claude-skills (66 stars, last pushed 1mo ago), licensed MIT. It adds 117 tokens to every session and 2,546 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
persona-sim compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| persona-simYrzhe/claude-skills | Skill | 66 | 1mo ago | MIT | A | 117 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | today | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 332k | 5d ago | MIT | A | 21 | Claude Code |