.claude/skills/add-embedding-search/SKILL.md
Add vector similarity search using embeddings for smart matching (property matching, lead-to-listing, similar items). Use when building AI-powered search and recommendations.
npx skillsauth add malhajri07/real-estate-CRM-project add-embedding-searchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Creates a vector embedding pipeline: text → embedding → storage → cosine similarity search. Used for smart property matching, "similar listings", and buyer requirement matching.
Choose embedding provider:
voyage-3 via Anthropic — best Arabic supporttext-embedding-3-small — cheaper, good enoughnomic-embed-text — free, runs on MacCreate embeddings table:
model embeddings {
id String @id @default(uuid())
entityType String // "property", "lead_requirement"
entityId String @unique
vector Float[] // embedding vector
textHash String // hash of input text (skip re-embedding if unchanged)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
Create embedding service at apps/api/libs/embedding-service.ts:
export async function embedText(text: string): Promise<number[]> { ... }
export async function findSimilar(vector: number[], entityType: string, topK: number) {
// Cosine similarity using pgvector or manual calculation
}
Create the batch embed cron using /add-cron-job:
Create search API:
router.post("/ai/match", authenticateToken, async (req, res) => {
const { query, entityType, topK } = req.body;
const queryVector = await embedText(query);
const matches = await findSimilar(queryVector, entityType, topK);
res.json(matches);
});
Frontend: "عقارات مقترحة" component — displays matched properties as cards.
/typecheck passestesting
Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.
tools
Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their Obsidian vault, manage notes, search vault content, perform vault operations from the command line, or develop and debug Obsidian plugins and themes.
data-ai
Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
tools
Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.