laravel-vector-search

laravel-vector-search is a skill for Claude Code from fusengine/agents. It costs 22 tokens per session (1,289 once invoked), scanned A, original, MIT.

A Laravel implementation for semantic search, which finds records by meaning rather than only matching exact words. It uses PostgreSQL with the pgvector extension to store and compare numeric representations of text.

In plain words
What is it for?
Use it to store embeddings, generate them from text, compare similarity, filter by distance, and order PostgreSQL results by meaning.
Why use it?
It helps searches find related wording and concepts, but requires PostgreSQL and does not work with MySQL or SQLite.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the fuse-laravel plugin — 23 skills, 1 agent shipped together

Good fit Use it to store embeddings, generate them from text, compare similarity, filter by distance, and order PostgreSQL results by meaning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fusengine/agents/laravel-vector-search
Install

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.

Any agent
npx skills add fusengine/agents --skill laravel-vector-search
Clone the repo
git clone --depth 1 https://github.com/fusengine/agents

Made for: Claude Code.

Or install fuse-laravel, the plugin that ships this one along with the rest of its 23 skills, 1 agent.

Wrote 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.

agentmods badge for laravel-vector-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/fusengine/agents/laravel-vector-search/github.svg)](https://agentmods.dev/skills/fusengine/agents/laravel-vector-search)
Your own site
<a href="https://agentmods.dev/skills/fusengine/agents/laravel-vector-search"><img src="https://agentmods.dev/badge/skills/fusengine/agents/laravel-vector-search/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.

agentmods 80×15 button for laravel-vector-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/fusengine/agents/laravel-vector-search"><img src="https://agentmods.dev/badge/skills/fusengine/agents/laravel-vector-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,289 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.01289
Opus 5.5 $0.00009 $0.00516
Sonnet 5.5 $0.00004 $0.00258
Haiku 4.5 $0.00002 $0.00129

Measured 2mo ago against content hash 559219f2c99c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

laravel-vector-search 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 2mo 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.

plugins/laravel-expert/skills/laravel-vector-search/SKILL.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Laravel 13 Vector Search (pgvector)

Agent Workflow (MANDATORY)

Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:

  1. fuse-ai-pilot:explore-codebase - Check current DB driver (must be PostgreSQL) and existing embedding columns
  2. fuse-ai-pilot:research-expert - Verify pgvector extension version and HNSW vs IVFFlat tradeoffs
  3. mcp__context7__query-docs - Pull laravel.com/docs/13.x/search + queries examples

After implementation, run fuse-ai-pilot:sniper for validation.


Overview

Feature Description
PostgreSQL / MariaDB PostgreSQL + pgvector, or MariaDB 11.7+ (vector queries since 13.27); not available on MySQL/SQLite
Schema helper Schema::ensureVectorExtensionExists() enables the extension
Query builder whereVectorSimilarTo(), selectVectorDistance(), whereVectorDistanceLessThan(), orderByVectorDistance()
Auto-embedding Pass a raw string and Laravel generates the embedding via AI SDK
Cosine similarity Default distance; threshold via minSimilarity (0.0 - 1.0)

Critical Rules

  1. Use PostgreSQL (pgvector) or MariaDB 11.7+ - Vector clauses do not work on MySQL/SQLite - no fallback
  2. Create an HNSW index - Without an index, queries do full table scans; > 10k rows means seconds-to-minutes latency
  3. Match dimensions exactly - Insert-time and query-time embedding models MUST share the same dimensions
  4. Cache embeddings - Regenerating embeddings on every request is the #1 cost driver; persist them
  5. Lock the embedding model - Changing the model invalidates ALL stored embeddings; treat the model as a schema field

Read the full file on GitHub · 137 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 2mo ago Changed 559219f2c99c
  2. 3mo ago Changed 2125a8a8142c
  3. 3mo ago First seen · 137 lines · 22 tokens per session scan A 0b1a6e3a90cc

Subscribe to this mod's changes

laravel-vector-search is a skill published in the GitHub repository fusengine/agents (34 stars, last pushed 1mo ago), licensed MIT. It adds 22 tokens to every session and 1,289 once invoked, about $0.0001 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-09-03.

Related

laravel-vector-search compared with skills from other repositories

laravel-vector-search next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
laravel-vector-searchfusengine/agentsSkill341mo agoMITA22Claude Code
pgvector-semantic-searchtimescale/pg-aiguideSkill1.9k2d agoApache-2.0A190Cursor
postgres-hybrid-text-searchtimescale/pg-aiguideSkill1.9k2d agoApache-2.0A162Cursor
pineconephucbm/skillsSkill21mo agononeA43Claude Code
markitdownK-Dense-AI/scientific-agent-skillsSkill59k4d agoMITA62Claude Code, Codex
ecto-patternsoliver-kriska/claude-elixir-phoenixSkill5804d agoMITA51Claude Code
cloudflare-vectorizesecondsky/claude-skillsSkill2574d agoMITA37Claude Code