/laravel-scout
Implement full-text search with Laravel Scout. Use when adding search to Eloquent models with Meilisearch, Algolia, or database driver.
$ npx -y skills add fusengine/agents --skill laravel-scout --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/laravel-scout
Context preview
The summary Claude sees to decide when to auto-load this skill.
Implement full-text search with Laravel Scout. Use when adding search to Eloquent models with Meilisearch, Algolia, or database driver.
SKILL.md
laravel-scout.SKILL.mdname: laravel-scout
description: Implement full-text search with Laravel Scout. Use when adding search to Eloquent models with Meilisearch, Algolia, or database driver.
versions:
laravel: "13.0"
scout: "10.12"
php: "8.3"
user-invocable: false
references: references/searchable.md, references/drivers.md
related-skills: laravel-architecture, laravel-eloquent
<objective> Covers Laravel Scout full-text search: the Searchable trait on Eloquent models, driver selection (Meilisearch, Algolia, database, collection), automatic index sync on model changes, the fluent search builder with filters, toSearchableArray() field control, queued indexing, and bulk import/reindexing. For semantic/vector similarity search on PostgreSQL, see laravel-vector-search instead — Scout stays the tool for keyword/full-text search. </objective>
Laravel Scout
Agent Workflow (MANDATORY)
Before ANY implementation, use `TeamCreate` to spawn 3 agents:
1. **fuse-ai-pilot:explore-codebase** - Analyze existing model and search patterns 2. **fuse-ai-pilot:research-expert** - Verify Scout docs via Context7 3. **mcp__context7__query-docs** - Check search and indexing patterns
After implementation, run **fuse-ai-pilot:sniper** for validation.
---
Overview
| Component | Purpose | |-----------|---------| | **Searchable Trait** | Makes Eloquent models searchable | | **Search Drivers** | Meilisearch, Algolia, database, collection | | **Indexing** | Automatic sync on model changes | | **Search Builder** | Fluent search API with filters |
---
Decision Guide: Search Driver
Which driver?
├── Production (recommended) → Meilisearch (fast, self-hosted, free)
├── Managed service → Algolia (hosted, pay per search)
├── Small dataset → database (no extra infra)
└── Testing → collection (in-memory, no engine)
---
Quick Setup
composer require laravel/scout
composer require meilisearch/meilisearch-php http-interop/http-factory-guzzle
SCOUT_DRIVER=meilisearch
MEILISEARCH_HOST=http://127.0.0.1:7700
MEILISEARCH_KEY=masterKey
$results = Article::search('laravel tutorial')->paginate(15);---
Critical Rules
1. **Use `toSearchableArray()`** to control indexed data 2. **Queue indexing** with `SCOUT_QUEUE=true` for performance 3. **Use `searchable()`** for bulk import after setup 4. **Pause indexing** during seeders with `Scout::withoutSyncing()`
---
Reference Guide
| Need | Reference | |------|-----------| | Searchable trait, indexing, conditions | [searchable.md](references/searchable.md) | | Driver setup, Meilisearch, Algolia | [drivers.md](references/drivers.md) |
---
Best Practices
DO
- Use Meilisearch for production (fast, typo-tolerant)
- Queue indexing operations (`SCOUT_QUEUE=true`)
- Limit indexed fields with `toSearchableArray()`
DON'T
- Index sensitive data (passwords, tokens)
- Forget to import existing records after setup
- Use collection driver in production
---
Laravel 13 Notes
Vector search natif pgvector
Pour la recherche sémantique (embeddings) sur PostgreSQL, Laravel 13 expose `Schema::ensureVectorExtensionExists()` et `whereVectorSimilarTo()` via la skill dédiée [[laravel-vector-search]]. Scout reste pertinent pour le full-text (Meilisearch/Algolia) ; pour la similarité vectorielle, utiliser pgvector directement sans driver Scout.
// Hybride : Scout pour full-text, pgvector pour similarité
$keyword = Post::search($query)->get();
$semantic = Post::whereVectorSimilarTo('embedding', $embedding, limit: 10)->get();Read more
name: laravel-scout description: Implement full-text search with Laravel Scout. Use when adding search to Eloquent models with Meilisearch, Algolia, or database driver. versions: laravel: "13.0" scout: "10.12" php: "8.3" user-invocable: false references: references/searchable.md, references/drivers.md related-skills: laravel-architecture, laravel-eloquent
<objective> Covers Laravel Scout full-text search: the Searchable trait on Eloquent models, driver selection (Meilisearch, Algolia, database, collection), automatic index sync on model changes, the fluent search builder with filters, toSearchableArray() field control, queued indexing, and bulk import/reindexing. For semantic/vector similarity search on PostgreSQL, see laravel-vector-search instead — Scout stays the tool for keyword/full-text search. </objective>
Laravel Scout
Agent Workflow (MANDATORY)
Before ANY implementation, use `TeamCreate` to spawn 3 agents:
1. **fuse-ai-pilot:explore-codebase** - Analyze existing model and search patterns 2. **fuse-ai-pilot:research-expert** - Verify Scout docs via Context7 3. **mcp__context7__query-docs** - Check search and indexing patterns
After implementation, run **fuse-ai-pilot:sniper** for validation.
---
Overview
| Component | Purpose | |-----------|---------| | **Searchable Trait** | Makes Eloquent models searchable | | **Search Drivers** | Meilisearch, Algolia, database, collection | | **Indexing** | Automatic sync on model changes | | **Search Builder** | Fluent search API with filters |
---
Decision Guide: Search Driver
Which driver? ├── Production (recommended) → Meilisearch (fast, self-hosted, free) ├── Managed service → Algolia (hosted, pay per search) ├── Small dataset → database (no extra infra) └── Testing → collection (in-memory, no engine)
---
Quick Setup
composer require laravel/scout composer require meilisearch/meilisearch-php http-interop/http-factory-guzzle
SCOUT_DRIVER=meilisearch MEILISEARCH_HOST=http://127.0.0.1:7700 MEILISEARCH_KEY=masterKey
$results = Article::search('laravel tutorial')->paginate(15);---
Critical Rules
1. **Use `toSearchableArray()`** to control indexed data 2. **Queue indexing** with `SCOUT_QUEUE=true` for performance 3. **Use `searchable()`** for bulk import after setup 4. **Pause indexing** during seeders with `Scout::withoutSyncing()`
---
Reference Guide
| Need | Reference | |------|-----------| | Searchable trait, indexing, conditions | [searchable.md](references/searchable.md) | | Driver setup, Meilisearch, Algolia | [drivers.md](references/drivers.md) |
---
Best Practices
DO
- Use Meilisearch for production (fast, typo-tolerant)
- Queue indexing operations (`SCOUT_QUEUE=true`)
- Limit indexed fields with `toSearchableArray()`
DON'T
- Index sensitive data (passwords, tokens)
- Forget to import existing records after setup
- Use collection driver in production
---
Laravel 13 Notes
Vector search natif pgvector
Pour la recherche sémantique (embeddings) sur PostgreSQL, Laravel 13 expose `Schema::ensureVectorExtensionExists()` et `whereVectorSimilarTo()` via la skill dédiée [[laravel-vector-search]]. Scout reste pertinent pour le full-text (Meilisearch/Algolia) ; pour la similarité vectorielle, utiliser pgvector directement sans driver Scout.
// Hybride : Scout pour full-text, pgvector pour similarité
$keyword = Post::search($query)->get();
$semantic = Post::whereVectorSimilarTo('embedding', $embedding, limit: 10)->get();A plugin ecosystem that turns Claude Code into a supervised, multi-agent development environment.
Repo: fusengine/agents
Other skills on fusengine-agents.
- /agent-creator
Use when creating expert agents. Generates agent.md with frontmatter, hooks, required sections, and skill references.
Open skill - /apex-methodology
Use when starting ANY development task -- feature, bug fix, refactor, hotfix (triggers: implement, create, build, fix, add feature, refactor, develop).
Open skill - /brainstorming
Use when creating a feature/component or adding functionality. Fires BEFORE APEX Analyze to refine requirements via structured questioning.
Open skill - /challenge
Use before a root-cause, done/verified claim, irreversible action, or 2nd-time fix reaches the owner (APEX or plain conversation); also fires at every eLicit/Verify gate. Not for code correctness (use sniper).
Open skill - /code-quality
Use when validating code quality after modifications -- SOLID compliance, DRY duplication, linter errors, architecture violations. Do NOT use for functional verification (run verification FIRST, then code-quality).
Open skill - /elicitation
Use when an expert agent self-reviews and self-corrects code after the Execute phase, before sniper validation (BMAD-METHOD elicitation techniques).
Open skill

