laravel-docs
Installation
SKILL.md
Laravel Docs Search (delegated)
Why delegate
Raw docs chunks are large (~1500 tokens/call) and often include prose you won't reuse. A sub-agent can absorb the full markdown, synthesise a compact answer (method signatures, version notes, gotchas), and hand only that back — keeping your working context clean.
Workflow
- Read
composer.jsonin the project — grablaravel/frameworkversion, normalize tomajor.x(e.g.^13.0→13.x). - Spawn one sub-agent using the Agent tool (
subagent_type: general-purpose) with the prompt template below. Wait for it — you need the answer before writing code. - Use the returned synthesis to write the implementation. If gaps remain after reading the answer, spawn one follow-up sub-agent with the missing queries. Don't exceed 2 sub-agent calls per task.
Agent tool invocation
description: short label, e.g."Laravel docs: <topic>"subagent_type:general-purposeprompt: use the template below, filling in{VERSION}and{QUERIES}