Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ArieGoldkin/claude-forge --skill embeddingsgit clone --depth 1 https://github.com/ArieGoldkin/claude-forgeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ariegoldkin/claude-forge/embeddings)<a href="https://agentmods.dev/skills/ariegoldkin/claude-forge/embeddings"><img src="https://agentmods.dev/badge/skills/ariegoldkin/claude-forge/embeddings/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ariegoldkin/claude-forge/embeddings"><img src="https://agentmods.dev/badge/skills/ariegoldkin/claude-forge/embeddings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00095 | $0.00780 |
| Opus 5.5 | $0.00038 | $0.00312 |
| Sonnet 5.5 | $0.00019 | $0.00156 |
| Haiku 4.5 | $0.00010 | $0.00078 |
Grade A, and why
embeddings scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Embeddings
Convert text to dense vector representations for semantic search and similarity.
Quick Reference
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
# 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
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:
- Chunk size: 256-1024 tokens (512 typical)
- Overlap: 10-20% for context continuity
- Include metadata (title, source) with chunks
Similarity Calculation
import numpy as np
def cosine_similarity(a: list[float], b: list[float]) -> float:
"""Calculate cosine similarity between two vectors."""
a, b = np.array(a), np.array(b)
return np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b))
# Usage
similarity = cosine_similarity(vector1, vector2)
# 1.0 = identical, 0.0 = orthogonal, -1.0 = opposite
Key Decisions
- Dimension reduction: Can truncate
text-embedding-3-largeto 1536 dims - Normalization: Most models return normalized vectors
- Batch size: 100-500 texts per API call for efficiency
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 103 lines · 95 tokens per session scan A 527bb0a53f8b
embeddings is a skill published in the GitHub repository ArieGoldkin/claude-forge (7 stars, last pushed 3mo ago), licensed MIT. It adds 95 tokens to every session and 780 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
embeddings compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| embeddingsArieGoldkin/claude-forge | Skill | 7 | 3mo ago | MIT | A | 95 | Claude Code |
| llm-app-developmenttravisjneuman/.claude | Skill | 116 | yesterday | MIT | A | 22 | Claude Code |
| agent-ml-engineertravisjneuman/.claude | Skill | 116 | yesterday | MIT | A | 29 | Claude Code |
| rag-implementationstefan-jansen/claude-code-toolkit | Skill | 101 | 4mo ago | MIT | A | 50 | Claude Code, Codex |
| embedding-strategiesFluxonLab/Skillry | Skill | 13 | 4d ago | none | A | 37 | Claude Code, Codex |
| hybrid-search-implementationFluxonLab/Skillry | Skill | 13 | 4d ago | none | A | 35 | Claude Code, Codex |
| langchain-architectureFluxonLab/Skillry | Skill | 13 | 4d ago | none | A | 45 | Claude Code, Codex |