Skip to content
Back to skills

Clip Prompt Zeroshot

ASecurity

Build prompt-ensemble zero-shot classifiers from normalized image and text embeddings in the CLIP style.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
ai-agentspython

Works with

  • cli

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill clip_prompt_zeroshot --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clip Prompt Zeroshot?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clip Prompt Zeroshot
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-clip-prompt-zeroshot/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-clip-prompt-zeroshot)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: clip_prompt_zeroshot
description: Build prompt-ensemble zero-shot classifiers from normalized image and text embeddings in the CLIP style.
---

# CLIP Prompt Zero-Shot

Use this skill when a task must classify image embeddings by comparing them with text embeddings of rendered class prompts. It preserves the paper's zero-shot transfer mechanism without requiring target-task supervised training.

## Inputs
- Image embeddings to classify.
- Class names and prompt templates.
- A deterministic prompt embedding mapping or model adapter.

## Outputs
- Class scores, probabilities, and top predictions.
- Prompt ensemble diagnostics showing which prompt vectors contributed to each class vector.

## Workflow
1. Render prompts from class names and templates.
2. Obtain or supply one embedding per rendered prompt.
3. Normalize prompt embeddings and average them per class, then normalize the class vector.
4. Compare normalized image embeddings to class text vectors and select the highest score.

## Validation
Run `python tests/test_prompt_zeroshot.py` or validate with the Distiller skill validator.

## Limitations
The skill does not download pretrained models. In reduced recovery, prompt embeddings may be deterministic fixtures if declared as proxy evidence.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.