Agent skill

embeddings

Text embeddings for semantic search and similarity. Use when converting text to vectors, choosing embedding models, implementing chunking strategies, or building document similarity features.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill embeddings --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 4 KB
Bundled scripts: none
Version: 1.0.0
Declared author: SkillForge
Path: skills/ai-ml/embeddings/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Embeddings Convert text to dense vector representations for semantic search and similarity. ## Quick Reference ```python from openai import OpenAI client = OpenAI() # Single text embedding response = client.embeddings.create( model="text-embedding-3-small", input="Your text here" ) vector = response.data[0].embedding # 1536 dimensions ``` ```python # Batch embedding (efficient) texts = ["text1", "text2", "text3"] response = client.embeddings.create( model="text-embedding-3-small", input=texts ) vectors = [item.embedding for item in response.data] ``` ## Model Selection | Model | Dims | Cost | Use Case | |-------|------|------|----------| | `text-embedding-3-small` | 1536 | $0.02/1M | General purpose | | `text-embedding-3-large` | 3072 | $0.13/1M | High accuracy | | `nomic-embed-text` (Ollama) | 768 | Free | Local/CI | ## Chunking Strategy ```python def chunk_text(text: str, chunk_size: int = 512, overlap: int = 50) -> list[str]: """Split text into overlapping chunks for embedding.""" words = text.split() chunks = [] for i in range(0, len(words), chunk_size - overlap): chunk = " ".join(words[i:i + chunk_size]) if chunk: chunks.append(chunk) return chunks ``` **Guidelines:** - Chun

What's inside
Steps it walks through
  1. Quick Reference
  2. Model Selection
  3. Chunking Strategy
  4. Similarity Calculation
  5. Key Decisions
  6. Common Mistakes
  7. Advanced Patterns
  8. Related Skills
  9. Capability Details
  10. text-to-vector
  11. semantic-search
  12. chunking-strategies
  13. batch-embedding
  14. local-embeddings
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the embeddings skill do?

Text embeddings for semantic search and similarity. Use when converting text to vectors, choosing embedding models, implementing chunking strategies, or building document similarity features.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill embeddings --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going