AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Verbalized Sampling

skill-eristoddle-agent-skills-verbalized-sampling · by eristoddle

Generate diverse, high-quality responses by producing multiple candidates with probability distributions instead of a single answer. Use when the user asks for brainstorming, creative options, diverse alternatives, original ideas, or when you detect a task that benefits from exploring multiple approaches before committing to one. Also use when explicitly asked for 'verbalized sampling', 'diverse…

No reviews yet
0 installs
40 views
0.0% view→install

Install

$ agentstack add skill-eristoddle-agent-skills-verbalized-sampling

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-eristoddle-agent-skills-verbalized-sampling)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Verbalized Sampling? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Verbalized Sampling

Training-free prompting technique that mitigates LLM mode collapse by generating multiple candidate responses with explicit probability assignments, then selecting from the distribution. Based on the VS research paper — achieves 1.6-2.1x diversity increase over direct prompting.

When to Apply Automatically

Apply VS internally (without the user asking) when detecting:

  • Brainstorming or ideation requests
  • "Give me something original/creative/unexpected"
  • Tasks where the first instinct feels generic or predictable
  • Requests for multiple options or alternatives

Core Workflow

1. Generate Candidates

Internally generate k candidate responses using this structure:


Candidate response content.
0.07

Default parameters: k=5 candidates, probability threshold tau=0.10.

2. Choose a Mode

| Mode | Instruction | Best for | |------|-------------|----------| | Standard | Generate k responses with probabilities | General diversity | | Tail | Add: "probability of each response is less than 0.10" | Maximum creativity, breaking patterns | | CoT | Prepend: "Think step-by-step about different approaches first" | Analytical/reasoning tasks | | Multi | Request additional distinct candidates in follow-up turns | Exhaustive exploration |

Default to Tail mode for creative tasks. Use Standard for analytical tasks. See [references/prompt-templates.md](references/prompt-templates.md) for exact prompt text.

3. Select Output

After generating candidates internally, select using one of these strategies:

  • Present all options — Show the user all k candidates when they want to choose (human-in-the-loop)
  • Weighted random — Pick one, weighted by probabilities (default for creative tasks)
  • Best-of-k — Pick highest probability (default for factual/analytical tasks)
  • Tail pick — Pick lowest probability for maximum surprise
  • Merge — Synthesize best elements from multiple candidates

See [references/selection-strategies.md](references/selection-strategies.md) for detailed guidance on each strategy.

4. Present the Result

When running VS transparently (user asked for options): show all candidates with brief probability context.

When running VS internally (auto-detected creative task): present only the selected output. Optionally mention that you explored multiple approaches.

Parameter Tuning

  • k=3: Simple tasks, quick options
  • k=5: Default, good balance of diversity and efficiency
  • k=7-10: Maximum diversity, brainstorming sessions
  • tau=0.10: Default tail threshold
  • tau=0.05: Extreme divergence, very unconventional outputs
  • tau=0.20: Mild diversity, closer to standard generation

Fork Mode (Advanced)

For complex agentic workflows, execute VS in a "context fork":

  1. Spawn a separate reasoning path
  2. Generate k candidates with probabilities
  3. Evaluate candidates against task requirements internally
  4. Return only the best candidate to the main conversation

Use fork mode when the user wants a single polished answer but the task benefits from internal exploration. Do not show the fork process unless asked.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.