Vote Predict

Predict 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, 政策反应, 选举模拟, 民意分布, 某群体怎么看.

65 stars 6 forksFrontend & Design Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add Yrzhe/claude-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add Yrzhe/claude-skills --skill vote-predict
Manual install
git clone --depth 1 https://github.com/Yrzhe/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/plugins/persona-sim/skills/vote-predict ~/.claude/skills/vote-predict

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Vote Predict

Thin scenario wrapper for opinion/vote simulation. Unlike product-feedback which scores 1-10, vote-predict uses **categorical choices** and **post-stratification** so the distribution maps to population-level prediction.

## Recipe

```python
import sys, json
sys.path.insert(0, str(__import__('pathlib').Path.home() / '.claude/skills/persona-sim'))
from lib import sampler, ipf, aggregator
from lib.sim_engine import SYSTEM_PROMPT, _persona_card
from lib.llm_router import generate

# 1. Sample a large panel (census-matched after IPF)
panel = sampler.sample_personas(n=100, source="nemotron_usa", mode="stream")

# 2. Compute IPF weights to match target population marginals
weights = ipf.ipf_weights(
    panel,
    targets={
        "age": {"<25": 0.12, "25-39": 0.26, "40-59": 0.33, "60+": 0.29},  # US adult
        "gender": {"male": 0.49, "female": 0.51},
    },
    bucketers={"gender": lambda x: x.strip().lower() if isinstance(x, str) else None},
)

# 3. Ask each persona the question
def ask(persona, question, options):
    task = (f"{question}\nChoose ONE of: {options}.\n"
            f'Respond JSON: {{"vote": "<choice>"}}')
    resp = generate(system=SYSTEM_PROMPT, persona_card=_persona_card(persona),
                    task=task, tier="default", max_tokens=100)
    # parse JSON (see eval/run_eval._parse_json_answer)
    ...

# 4. Aggregate with weights
# Option-wise: weighted_share[option] = sum(weights[i] for i where vote[i]==option) / sum(weights)
```
Read the full skill on GitHub

Details

Skill name
vote-predict
Path
plugins/persona-sim/skills/vote-predict/SKILL.md
License
MIT
Repo updated
27 October 2026

FAQ

What does the Vote Predict skill do?

Predict 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, 政策反应, 选举模拟, 民意分布, 某群体怎么看.

How do I install the Vote Predict skill?

Claude Code plugin: /plugin marketplace add Yrzhe/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Vote Predict popular?

It lives in Yrzhe/claude-skills, which has 65 GitHub stars and 6 forks.

Related skills

Adaptive Compaction

65

Yrzhe/claude-skills

Adaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without chang

AI, LLMs & Agents

Agentlog

65

Yrzhe/claude-skills

Load when the user wants to view, sync, or analyze multi-agent activity across multiple devices — Claude Code / Codex / Cursor / Maestri / browser-use sessions captured to a shared GitHub-synced pool, OR wants a distilled per-project context document so a fresh agent in a different tool can pick up where another left off. Triggers on "agentlog X" commands, "what did I do today across all my agents", "show me my pool", "sync the pool", "拉一下另一台机器上的 agent 记录", "看看 vps 上跑的", "跨设备 agent log", "跨工具上下文", "switch from Codex to Claude Code", "AGENTS.md / CLAUDE.md", "项目状态文档", "agent context". Do NOT lo

AI, LLMs & Agents

Akshare a Shares

65

Yrzhe/claude-skills

针对中国A股的行情与数据查询(基于本地 akshare 源代码与API映射)。当用户请求获取A股实时行情、历史K线(日/周/月)、分钟级分时(1/5/15/30/60)、复权数据(前复权/后复权)、股东户数(含详情)、以及巨潮资讯公告披露结果时使用本Skill。默认优先使用东方财富(EM)接口;如用户指定新浪(Sina)来源或需要特定接口,则按映射调用对应函数。可使用内置脚本输出CSV/JSON,或内联Python调用。

Software Development

Game Accessibility Specialist

57

AlterLab-IEU/AlterLab_GameForge

Accessibility Specialist (Kael Oduya). Designs motor, visual, auditory and cognitive accommodations, runs accessibility audits, scopes the European Accessibility Act, CVAA and Game Accessibility Guidelines, and maps fixes to Godot, Unity, Unreal or web. Use for "accessibility audit", "EAA", "colorblind", "subtitles", "remapping". Not for general UX flows (use game-ux-designer).

Frontend & DesignIn 1 list

Social Sandbox

65

Yrzhe/claude-skills

Run 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.

Frontend & Design

Game UX Designer

57

AlterLab-IEU/AlterLab_GameForge

UX Designer (Mira Osei). Designs game UI and player experience: HUD and menu hierarchy, onboarding and tutorials, controller, touch and keyboard navigation, feedback, instant-play web UX and usability tests. Use for "HUD", "onboarding", "tutorial", "menu flow", "UI spec", "usability test". Not for accessibility audits or compliance (use game-accessibility-specialist).

Frontend & DesignIn 1 list

Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.