Install
$ agentstack add skill-eristoddle-agent-skills-verbalized-sampling ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →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":
- Spawn a separate reasoning path
- Generate k candidates with probabilities
- Evaluate candidates against task requirements internally
- 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.
- Author: eristoddle
- Source: eristoddle/agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.