clip
Use OpenAI CLIP for zero-shot image-text inference, prompt engineering, feature extraction, and responsible evaluation.
Skill by VectorSpaceLab
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/vectorspacelab-clip
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/clip
What's inside
- Skill name
clip- Description
- Use OpenAI CLIP for zero-shot image-text inference, prompt engineering, feature extraction, and responsible evaluation.
- License
- MIT
- Metadata
- disco-role: operating
- Instructions
- 62 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (21)
- SKILL.md
- repo-provenance.md · references/
- repo-routing-metadata.json · references/
- troubleshooting.md · references/
- validate_clip_runtime.py · scripts/
- SKILL.md · sub-skills/feature-evaluation/
- feature-workflows.md · sub-skills/feature-evaluation/references/
- responsible-evaluation.md · sub-skills/feature-evaluation/references/
- troubleshooting.md · sub-skills/feature-evaluation/references/
- extract_image_features.py · sub-skills/feature-evaluation/scripts/
- SKILL.md · sub-skills/model-loading-inference/
- api-reference.md · sub-skills/model-loading-inference/references/
- troubleshooting.md · sub-skills/model-loading-inference/references/
- workflows.md · sub-skills/model-loading-inference/references/
- clip_smoke_check.py · sub-skills/model-loading-inference/scripts/
- image_text_similarity.py · sub-skills/model-loading-inference/scripts/
- SKILL.md · sub-skills/prompt-engineering/
- prompting-workflows.md · sub-skills/prompt-engineering/references/
- tokenization.md · sub-skills/prompt-engineering/references/
- troubleshooting.md · sub-skills/prompt-engineering/references/
- build_zeroshot_classifier.py · sub-skills/prompt-engineering/scripts/
SKILL.md (first lines)
# CLIP
Use this skill when a task involves OpenAI CLIP: zero-shot image classification, image-text similarity, prompt template design, tokenization, CLIP image/text embeddings, linear-probe evaluation, or troubleshooting CLIP model loading.
## Fast Route
- For model names, `clip.load`, preprocessing, image-text logits, local checkpoints, JIT/device choices, and cache/download behavior, read [model-loading-inference](sub-skills/model-loading-inference/).
- For class-name prompt templates, `clip.tokenize`, context-length failures, zero-shot classifier weights, and prompt ensembling, read [prompt-engineering](sub-skills/prompt-engineering/).
- For batch image/text feature extraction, `.npz` embedding outputs, similarity/search prototypes, linear probes, and responsible evaluation limits, read [feature-evaluation](sub-skills/feature-evaluation/).
- For package-wide install/import, dependency, checkpoint download, dataset, and safety issues, read [references/troubleshooting.md](references/troubleshooting.md).
- For a no-download runtime check, run `python scripts/validate_clip_runtime.py --json`.
## Use This Skill When
- The user names `clip`, OpenAI CLIP, `ViT-B/32`, `RN50`, `clip.load`, `clip.tokenize`, `encode_image`, or `encode_text`.
- The task asks for zero-shot image classification, image-to-text ranking, image/text embedding extraction, CLIP feature caching, or CLIP linear-probe evaluation.
- The task mentions prompt templates for vision-language classification, prompt ensembling, class taxonomy design, or CLIP context length 77.
- The task has errors involving CLIP checkpoint downloads, checksum/cache problems, CPU/CUDA tensor placement, TorchScript/JIT loading, or overlong tokenized text.
## Avoid This Skill When
- The user is using OpenCLIP, Hugging Face `transformers.CLIPModel`, SigLIP, BLIP, or another CLIP-like implementation rather than this package.
- The user wants to train CLIP from scratch; this repository primarily exposes released model loading, inference, feature extraction, and evaluation examples.
- The request is about deploying CLIP in production, surveillance, facial recognition, or sensitive demographic classification without explicit research-only framing and safety review.
- The task is a general PyTorch, torchvision, or image-classification issue with no CLIP-specific API, model, tokenizer, or prompt signal.
## Minimal Setup Pattern
Install PyTorch/torchvision first using the wheel or conda variant appropriate for the user's CPU/CUDA environment, then install CLIP and its lightweight text/tokenizer dependencies:
```bash
pip install ftfy regex tqdm
pip install git+https://github.com/openai/CLIP.git
```
Run a no-download import/tokenizer check before any checkpoint download:
```bash
python scripts/validate_clip_runtime.py --json
```
A healthy runtime imports `clip`, lists the nine released model names, tokenizes sample text to shape `[n, 77]`, and reports that no checkpoint downloads were attempted.
## Checkpoint and Dataset Policy
- `clip.load("ViT-B/32")` and other named models may download checkpoints if they are not cached; ask before triggering downloads in restricted, offline, or expensive environments.
- Use `download_root=` to point CLIP at a cache, or pass a local checkpoint path as `name` for strict offline workflows.
- README examples using CIFAR100 and dataset docs for Country211, Rendered SST2, and YFCC100M require network and potentially large downloads; treat them as opt-in verification or evaluation evidence, not default skill actions.
- The native JIT/eager consistency test can download every available model, so run it only when checkpoint downloads and time budget are explicitly allowed.
## Core API Facts
- `clip.available_models()` returns the released model names: `RN50`, `RN101`, `RN50x4`, `RN50x16`, `RN50x64`, `ViT-B/32`, `ViT-B/16`, `ViT-L/14`, and `ViT-L/14@336px`.
- `clip.load(name, device=..., jit=False, download_root=None)` returns `(model, preprocess)` for a named model or local checkpoint path.
- `clip.tokenize(texts, context_length=77, truncate=False)` returns a `[number_of_texts, context_length]` token tensor and raises on overlong prompts unless `truncate=True`.
- Loaded models expose `encode_image(image)`, `encode_text(text)`, and `model(image, text)`; the forward call returns image/text logit matrices derived from normalized cosine similarities.
## Responsible Use
CLIP was released as a research model for studying robustness and zero-shot transfer. Model-card evidence warns that performance depends strongly on class taxonomy and prompts, that the model is English-oriented, and that deployment, surveillance, facial recognition, and sensitive demographic classification are out of scope without careful task-specific testing and safety review. Route evaluation and safety questions through [feature-evaluation responsible guidance](sub-skills/feature-evaluation/references/responsible-evaluation.md).From VectorSpaceLab/AREX-Skill, MIT.
More from VectorSpaceLab/AREX-Skill
- 0.563score
data-designer-repo-skill
VectorSpaceLab
Use when you need to design DataDesigner configs, run preview/create/validate workflows, inspect the CLI or agent context, work with plugins or MCP tools, or…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
everos
VectorSpaceLab
Use this skill for EverOS local-first Markdown memory service setup, HTTP memory and knowledge APIs, cascade/OME operations, and observability integration.
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
bentoml
VectorSpaceLab
Use BentoML to author model-serving Services, build and containerize Bentos, run HTTP/gRPC servers and clients, manage models, operate the CLI and BentoCloud…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
dash
VectorSpaceLab
Use when building, debugging, testing, or maintaining Plotly Dash applications, callbacks, server backends, component packages, renderer internals, and Dash…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
diffusers
VectorSpaceLab
Use this skill for Hugging Face Diffusers tasks: pipeline inference, schedulers, adapters/loaders, training recipes, modular pipelines, conversion helpers…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
espnet
VectorSpaceLab
Use when working with ESPnet speech AI toolkit: installation, ESPnet2 recipes and training, pretrained inference/model zoo, ESPnet3 stage workflows, and…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
alphafold3
VectorSpaceLab
Use this skill for AlphaFold 3 input preparation, prediction command planning, output interpretation, and Python API inspection.
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
autogen
VectorSpaceLab
Use this skill for maintaining, migrating, debugging, and safely operating Microsoft AutoGen Python 0.7.x applications, including AgentChat, Core runtimes…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
browser-use
VectorSpaceLab
Use this self-contained Browser Use repo skill for Python agents that automate websites, browser sessions, custom tools, LLM/provider setup, persistent CLI…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
dagster
VectorSpaceLab
Use when working with Dagster OSS: assets, jobs, Definitions, config/resources, schedules/sensors, automation, CLI/local development, deployment operations…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
datasets
VectorSpaceLab
Use this skill when working with Hugging Face Datasets: loading local or Hub datasets, defining Features schemas, processing/streaming datasets, converting…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
geopandas
VectorSpaceLab
Use when working with GeoPandas GeoDataFrame and GeoSeries workflows, vector geospatial I/O, CRS-aware spatial operations, mapping, geocoding, and…
SkillBFreshness: B★ 341Claude Code +9
Signals
- Stars
- 341
- Forks
- 26
- Open issues
- 0
- Last commit (this folder)
- Aug 26, 2026 (2 months ago)
- Last release
- Sep 2, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/VectorSpaceLab/AREX-Skill
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from VectorSpaceLab
- 0.563score
bentoml
VectorSpaceLab
Use BentoML to author model-serving Services, build and containerize Bentos, run HTTP/gRPC servers and clients, manage models, operate the CLI and BentoCloud…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
dagster
VectorSpaceLab
Use when working with Dagster OSS: assets, jobs, Definitions, config/resources, schedules/sensors, automation, CLI/local development, deployment operations…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
alphafold3
VectorSpaceLab
Use this skill for AlphaFold 3 input preparation, prediction command planning, output interpretation, and Python API inspection.
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
autogen
VectorSpaceLab
Use this skill for maintaining, migrating, debugging, and safely operating Microsoft AutoGen Python 0.7.x applications, including AgentChat, Core runtimes…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
browser-use
VectorSpaceLab
Use this self-contained Browser Use repo skill for Python agents that automate websites, browser sessions, custom tools, LLM/provider setup, persistent CLI…
SkillBFreshness: B★ 341Claude Code +9 - 0.563score
dash
VectorSpaceLab
Use when building, debugging, testing, or maintaining Plotly Dash applications, callbacks, server backends, component packages, renderer internals, and Dash…
SkillBFreshness: B★ 341Claude Code +9
Cite this page
clip skill. Agent Mart. https://agentmart.dev/skills/vectorspacelab-clip (last updated 2026-10-24)