a5c-ai/babysitter / library/specializations/ai-agents-conversational/skills/few-shot-example-gen
few-shot-example-gen
VerifiedFew-shot example generation and optimization for improved LLM performance
SKILL.md
View on GitHub---
name: few-shot-example-gen
description: Few-shot example generation and optimization for improved LLM performance
allowed-tools:
- Read
- Write
- Edit
- Bash
- Glob
- Grep
graph:
domains: [domain:software-engineering]
specializations: [specialization:ai-agents-conversational]
skillAreas: [skill-area:prompt-engineering, skill-area:prompt-instruction-tuning-agents]
roles: [role:ml-engineer, role:backend-engineer]
workflows: [workflow:ml-model-lifecycle, workflow:feature-development]
---
# Few-Shot Example Generation Skill
## Capabilities
- Generate diverse few-shot examples
- Implement example selection strategies
- Optimize example ordering for performance
- Create dynamic example retrieval
- Design example formats for specific tasks
- Implement example quality validation
## Target Processes
- prompt-engineering-workflow
- intent-classification-system
## Implementation Details
### Example Selection Strategies
1. **Semantic Similarity**: Select similar examples
2. **MMR Selection**: Diverse example selection
3. **N-Gram Overlap**: Lexical similarity
4. **Random Sampling**: Baseline selection
5. **Length-Based**: Control example sizes
### Configuration Options
- Number of examples
- Selection algorithm
- Example format (input/output structure)
- Max token limits
- Example store backend
### Best Practices
- Cover edge cases in examples
- Balance example diversity
- Optimize example ordering
- Test with varied inputs
- Monitor token usage
### Dependencies
- langchain
- sentence-transformers (for semantic selection)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |