Skip to content
Automation
Skill

/setfit-few-shot

SetFit few-shot learning for efficient intent classification with minimal data

From plugin
babysitter
1.8k200 skills3 agents21 commands1 MCP
Install
$ npx -y skills add a5c-ai/babysitter --skill setfit-few-shot --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/setfit-few-shot

Context preview

The summary Claude sees to decide when to auto-load this skill.

SetFit few-shot learning for efficient intent classification with minimal data

SKILL.md

setfit-few-shot.SKILL.md
name: setfit-few-shot
description: SetFit few-shot learning for efficient intent classification with minimal data
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
  - Glob
  - Grep
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:ai-agents-conversational]
  skillAreas: [skill-area:ml-fine-tuning, skill-area:natural-language-processing]
  roles: [role:ml-engineer, role:backend-engineer]
  workflows: [workflow:ml-model-lifecycle, workflow:feature-development]

SetFit Few-Shot Skill

Capabilities

  • Train SetFit models with few examples per class
  • Configure contrastive learning settings
  • Implement efficient classification pipelines
  • Design few-shot training strategies
  • Set up model evaluation
  • Deploy lightweight classifiers

Target Processes

  • intent-classification-system

Implementation Details

SetFit Advantages

1. **Few Examples**: 8-16 examples per class 2. **No Prompts**: No prompt engineering needed 3. **Fast Training**: Minutes vs hours 4. **Small Models**: Sentence transformer base

Training Process

  • Contrastive fine-tuning of embeddings
  • Classification head training
  • Iterative sampling strategies

Configuration Options

  • Base sentence transformer model
  • Number of training examples
  • Contrastive learning epochs
  • Classification head architecture
  • Evaluation metrics

Best Practices

  • Diverse few-shot examples
  • Balance class examples
  • Use appropriate base model
  • Validate on held-out data

Dependencies

  • setfit
  • sentence-transformers
Read more
Ships withbabysitter

Enforce obedience on agentic workforces. Manage extremely complex workflows through deterministic, hallucination-free self-orchestration.

Get the whole plugin

Other skills on babysitter.