Skip to content

Zero-shot vision-language model that classifies images and matches text to images without fine-tuning.

CCM score
53 of 100
skills.sh installs
1.1K
GitHub stars
14.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers zero-shot image classification, image-text similarity, semantic image search, content moderation, and cross-modal retrieval
  • Includes model variants from RN50 to ViT-L/14 with a speed and quality trade-off table, plus batch and vector database integration examples
  • Requires normalized embeddings for cosine similarity and descriptive text labels, since vague labels perform poorly
  • Designed for general-purpose image understanding where broad categories suffice; use BLIP-2, LLaVA, or Segment Anything for captioning, chat, or segmentation

Install

$ npx -y skills add orchestra-research/ai-research-skills --skill clip -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

CLIP - Contrastive Language-Image Pre-Training

OpenAI's model that understands images from natural language.

When to use CLIP

Use when:

  • Zero-shot image classification (no training data needed)
  • Image-text similarity/matching
  • Semantic image search
  • Content moderation (detect NSFW, violence)
  • Visual question answering
  • Cross-modal retrieval (image→text, text→image)

Metrics:

  • 25,300+ GitHub stars
  • Trained on 400M image-text pairs
  • Matches ResNet-50 on ImageNet (zero-shot)
  • MIT License

Use alternatives instead:

  • BLIP-2: Better captioning
  • LLaVA: Vision-language chat
  • Segment Anything: Image segmentation

Quick start

Installation

pip install git+https://github.com/openai/CLIP.git
pip install torch torchvision ftfy regex tqdm

Zero-shot classification

import torch
import clip
from PIL import Image

# Load model
device = "cuda" if torch.cuda.is_available() else "cpu"
model, preprocess = clip.load("ViT-B/32", device=device)

# Load image
image = preprocess(Image.open("photo.jpg")).unsqueeze(0).to(device)

# Define possible labels
text = clip.tokenize(["a dog", "a cat", "a bird", "a car"]).to(device)

Details

Repository
github.com/orchestra-research/ai-research-skills
Categories
AI Agents & LLM Apps, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the clip skill do for an AI agent?

The clip skill brings OpenAI's CLIP model, which connects vision and language, into an agent so it can do zero-shot image classification, image-text matching and cross-modal retrieval without fine-tuning. It is aimed at tasks such as image search, content moderation and general-purpose image understanding.

What do I need before I can use the clip skill?

The skill's SKILL.md lists transformers, torch and pillow as dependencies, and its quick start installs CLIP from the openai/CLIP GitHub repository along with torch, torchvision, ftfy, regex and tqdm. A GPU is optional, since the skill notes CPU works but a GPU is much faster.

How do I install the clip skill?

Run npx -y skills add orchestra-research/ai-research-skills --skill clip -y in your project. This adds the clip skill so your agent can then run zero-shot classification, semantic image search and content moderation checks on images.

Which skills does clip sit alongside in AI Agents & LLM Apps?

The clip skill is listed in the AI Agents & LLM Apps category on Claude Marketplaces, alongside microsoft-foundry, azure-ai and the google-agents-cli skills. Its focus is on image and vision-language work rather than agent orchestration.

More from orchestra-research/ai-research-skills

All 92