Welcome to Laravel Boost, the supercharger for your PHP applications! ๐๐จ
Installation Time (aka The Setup)
Letโs get this party started! Hereโs a step-by-step guide on how to install Laravel Boost and keep those resources sparkling fresh.
Update Your Boost Resources (Like Getting a New Haircut)
Keep your Boost resources updated, because outdated resources are like last seasonโs fashionโnot so cool anymore! ๐
Agent Setup (Setting Up Your Crew)
To make the most of our AI-powered superheroes, youโll need to set up your agents. Donโt worry; they wonโt ask for coffee breaks! โ๏ธ
Meet the MCP Server (Our Command Center)
The MCP Server is like your personal AI butler, here to help manage tasks and tools. Hereโs a rundown of its available features:
Available MCP Tools (Our AI Butlerโs Skills)
Your new best friend comes equipped with a variety of useful tools. Letโs get acquainted! ๐ค
Manually Registering the MCP Server (Inviting Your AI Butler)
If you want to manually register your MCP server, weโve got a guide on that too! Just remember, no need to offer it a silver platterโitโs already here to serve you. ๐ฅณ
AI Guidelines (Setting the Rules for Our AI Friends)
You can set guidelines to help our AI friends understand how to assist you best. Hereโs a breakdown of what you can do:
Available AI Guidelines (Our AIโs House Rules)
Our AI already knows some house rules, but donโt worry; you can add your own! ๐ก
Adding Custom AI Guidelines (Teaching Your AI Friend New Tricks)
If the built-in guidelines arenโt enough, go ahead and teach your AI friend some new tricks! Just make sure not to ask it to do your chores. ๐งน
Overriding Boost AI Guidelines (Changing the House Rules)
Need to change the house rules? Go ahead and override them! But remember, no pulling all-nightersโour AI needs sleep too. ๐ด
Third-Party Package AI Guidelines (Outsourcing AI Training)
If youโre using third-party packages, donโt worry; weโve got guidelines for those too! Just remember, no teaching our AI to cookโitโs a software, not a robot. ๐ฒ
Agent Skills (Upgrading Your AI Buddy)
Want to upgrade your AI buddy? Hereโs how:
Available Skills (Our AIโs Extra Skills)
Your AI buddy comes with some cool skills right out of the box! Letโs see what it can do. ๐ฏ
Custom Skills (Teaching Your AI Buddy New Tricks)
Need more than just the basics? No problem, letโs teach your AI buddy some new tricks! Just donโt ask it to learn to dance or play an instrumentโweโre software developers, not magicians. ๐บ๏ธ
Overriding Skills (Changing Your AI Buddyโs Skills)
Want to change your AI buddyโs skills? Go ahead and override them! But remember, no teaching it to juggle flaming torchesโthatโs a fire hazard. ๐ฅ
Third-Party Package Skills (Getting Extra Help)
If youโre using third-party packages, donโt worry; weโve got skills for those too! Just remember, no teaching our AI buddy to do card tricksโit might scare some people. ๐
Guidelines vs Skills (The House Rules vs Extra Skills)
Guidelines and skills are like the difference between a boss and an employeeโguidelines are what tell your AI buddy what to do, while skills are what it can do. ๐๐ผ
Documentation API (Our AIโs User Manual)
Need help using our API? Weโve got a user manual for that! Just remember, no asking our AI to read it out loudโitโs a software, not a voice assistant. ๐
Extending Boost (Customizing Your AI Buddy)
Want to add support for other IDEs or AI agents? Weโve got you covered! Just remember, no teaching our AI buddy to driveโitโs a software, not a self-driving car. ๐
We hope this guide has helped make your Laravel Boost experience enjoyable and educational! Now letโs get coding, shall we? ๐ค๐ป๐
Ahoy there, development pirates! Buckle up as we sail into the uncharted waters of Laravel Boost - your AI co-pilot for a smoother voyage towards Laravel code nirvana! ๐ด๐
Laravel Boost sets sail by arming your trusty AI mates like Claude Code and Cursor with the compass they need to navigate the Laravel seas, creating top-tier applications that not only comply with the pirateโs code (errrโฆ Laravel best practices), but will make Davy Jones himself green with envy! ๐ค๐บ
Boost also equips you with a treasure map of epic proportions โ an API brimming with docummentary gold, boasting a built-in MCP tool and a vast, 17,000+ piece encyclopedia devoted solely to all things Laravel. And for those precious moments when the seaโs a bit foggy, its semantic search capabilities using embeddings will guide you through with pinpoint accuracy and context awareness! Arrrr, ye wonโt get lost in these waters again!
So, set sail and letโs see whatโs next on our adventure. Ah, yes, the installationโฆ Navigate to Installation and hoist the mainmast to anchor your ship at the Laravel Boost dock. After all, a smooth sea never made a skilled sailor! ๐โ๏ธ
Yar har har! Letโs conquer Laravel development together with Laravel Boost! ๐ดโโ ๏ธ๐๐ฅ
Alrighty, letโs get this Laravel Boost party started! ๐
First things first, grab a comfy chair and fire up your terminal. You can snag Laravel Boost like youโd swipe a pint of ice cream on a hot day:
composer require laravel/boost --dev
Next, itโs time to install the MCP server and coding guidelines - think of it as setting up your AI agentโs house before moving in. Hereโs how:
php artisan boost:install
The boost:install command is like a magical wand that sprinkles the necessary agent guideline and skill files all over your project, based on the coding agents you picked during the installation process. Arenโt magic and Laravel just the best combo sinceโฆ well, you know! ๐ฉ
Once Laravel Boost is installed, itโs time to don your coding toga (or any attire of your choice) and start working with Cursor, Claude Code, or your preferred AI agent. Youโre now ready to code like a pro!
[!NOTE]
Donโt forget to give these files a warm welcome by adding the generated MCP configuration file (.mcp.json), guideline files (CLAUDE.md, AGENTS.md, junie/, etc.), and the boost.json configuration file to your applicationโs .gitignore. These files will regenerate themselves like a phoenix from ashes when you run boost:install or boost:update, which is quite handy, if we do say so ourselves! ๐ฅ
Alright, Agent Smith! Letโs get this Laravel party started, shall we? ๐
-
First things first, open your command palette - press
Cmd+Shift+PorCtrl+Shift+Pand feel the power coursing through your veins. ๐ฆนโโ๏ธ -
Once youโve summoned it, type โopen MCP Settingsโ like a seasoned Jedi (just hit enter). ๐ฅณ
-
Now, for the piรจce de rรฉsistance - find the
laravel-boosttoggle and flip that bad boy ON! ๐ฆ๐ก Your Laravel will now be boosted to light-speed! ๐โจ
But remember, not everyoneโs setup is the same. If Claude Code, Codex, or even Gemini CLI are your preferred tools of choice (who are we to judge?), consult their specific instructions below:
Claude Code
For our valiant Claude Code users, enable laravel-boost with this magical incantation in your projectโs directory shell:
claude mcp add -s local -t stdio laravel-boost php artisan boost:mcp ๐ช๐ซ
Codex
If you prefer the elegance of Codex, chant this command in your projectโs directory shell:
codex mcp add laravel-boost โ php โartisanโ โboost:mcpโ ๐งโโ๏ธ๐ฎ
Gemini CLI
For our daring Gemini adventurers, use this enchantment in your projectโs directory shell:
gemini mcp add -s project -t stdio laravel-boost php artisan boost:mcp ๐๐
GitHub Copilot (VS Code)
If youโre using the mighty GitHub Copilot, first search for โMCP: List Serversโ, then select laravel-boost and hit start server. Sounds like a task for a superhero! ๐ฆธโโ๏ธโก๏ธ
Junie
For our trusty Junie users, simply press shift twice, search โMCP Settingsโ, check the box next to laravel-boost, and click apply at the bottom right. Easy peasy, lemon squeezy! ๐๐
Keeping Your Boost Juiced Up! โก๏ธ
Ahoy there, Captain! Itโs time to give your trusty Laravel ship a tune-up with some fresh Boost resources. You donโt want your AI first mate following outdated guidelines or skills now, do you? To ensure your vessel is always sailing with the latest packages, you can use the boost:update Artisan command.
php artisan boost:update ๐ฃ "Yo ho ho and a package update for me!"
Now, if youโre as lazy as a seagull on shore leave, you can automate this process by adding it to your Composer scripts. Itโs like setting up an auto-pilot for your ship! ๐ข
{
"scripts": {
"post-update-cmd": [
"@php artisan boost:update --ansi"
]
}
}
By default, the boost:update command will only update the existing Boost resources already on board. But if youโve recently docked and picked up some new packages, donโt forget to call upon Boost to publish their guidelines and skills! You can do this using the --discover option:
php artisan boost:update --discover ๐ "Ahoy there! I believe we've got some new cargo!"
Remember, a well-oiled machine runs smoothly, and so does a Laravel application with up-to-date Boost resources. Happy sailing! ๐
Ahoy there, tech pirates! Sail the Laravel seas no longer alone, for weโve got the swashbuckling MCP Server to keep you company! This bad boy is like the Swiss Army knife of AI sidekicks, ready to assist you in navigating your Laravel application like a seasoned sailor navigates the seven seas.
The MCP (Model Context Protocol) server is our state-of-the-art toolbox for your artificial mates to interact seamlessly with your Laravel app. These tools arm your agents with superpowers to:
- Inspection Sword: Peer into the mysterious depths of your application structure, revealing hidden treasures and avoiding those pesky icebergs (or bugs).
- Database Peg-Leg: Hook into your database like a sturdy peg-leg, letting you dredge up valuable information with ease.
- Code Parrot: Repeat after me โ executing code has never been this fun! Just like a parrot learning to mimic your commands, our AI agents can perform tasks as you wish.
- And more secrets weโre saving for laterโฆ Shh, letโs keep some mystery alive, shall we?
(Donโt worry about the technical jargon; just remember that these tools are here to make your life easier as a Laravel captain!)
The Swanky Laravel Toolkit! ๐๐
Gather โRound for a Magic Show of Tools! ๐คฉ
| Name | Whatchamacallit Notes |
|---|---|
| App Spill | Spills the beans on PHP, Laravel versions, database engine, and a list of pals from the ecosystem with their versions ๐จ |
| Browser Whispers | Peeks into logs and errors whispered by your browser |
| Database Dances | Shakes its tail feather with available database connections, including the main squeeze ๐ |
| Database Disco | Twirls around a query against the database, get ready to boogie ๐บ |
| Database Schema Shenanigans | Reads the blueprint of your database schema, itโs a real party trick! ๐คณ |
| URL Transformer | Turns those relative path URIs into glamorous, red-carpet-worthy absolute URLs for agents ๐น |
| Last Error Laugh-Off | A side-splitting read of the last error from your appโs log files, because who doesnโt love a good chuckle? ๐ |
| Log Entries Dance Party | The best part of any party - catching up on the last N log entries! ๐ |
| Doc Search (AI-Powered DJ) | Spins tunes from the Laravel hosted documentation API service, based on the packages installed at your soiree ๐๐ผ๐บ๐ผ |
Ready to Register? ๐ฅ
Letโs get this party started! Register the MCP server and enjoy the ride! ๐๐๐๐๐ผ๐บ๐ผ
Alrighty then, party people! If you find yourself in a pickle where you need to manually register the Laravel Boost MCP server like a boss, fear not! Iโve got your back with this nifty guide. Just follow these easy steps and youโll be sippinโ margaritas on the beach of code success in no time.
-
Gather round, cowpokes, itโs time for a little command line dance: Open up your terminal or command prompt, depending on whether youโre more Mac or PC (no judgement here).
-
Dust off those fingers and type in the following:
php. Thatโs right, weโre going old-school with PHP. No need to call a higher power, we got this! -
Now for the piรจce de rรฉsistance: Hit โEnterโ and then follow it up with
artisan boost:mcp. Itโs like performing the worldโs most elegant code-juggle.
But wait, thereโs more! For those of you who enjoy a bit of JSON action (and who doesnโt?), hereโs how you can make your MCP server registration even sweeter:
{
"mcpServers": {
"laravel-boost": {
"command": "php",
"args": ["artisan", "boost:mcp"]
}
}
}
Now, isnโt that a sight for sore eyes? If youโve managed to make it through this far without snoring, congratulations! Youโre officially one step closer to Laravel Boost MCP server glory. Happy coding, folks! ๐ค๐๐ป
Alrighty, buckle up for a whirlwind tour through the magical world of Laravel AI Guidelines! These arenโt your average bedtime stories, no sirree. Theyโre action-packed instruction files, chock-full of wisdom that helps our beloved AI agents navigate the enchanting realms of the Laravel ecosystem.
Think of them as a secret map to the treasure chest of knowledge about Laravel packages. The guidelines are loaded upfront like a trusty sidekick, ready to share their secrets with our brave AI agents. Inside these files reside the core conventions, the unspoken rules of this land, and the best practices โ the wisdom of the ancients!
But wait, thereโs more! These guidelines also contain framework-specific patterns that are like secret handshakes in a spy movie. Knowing them helps our AI agents fit right in and generate code worthy of the Code Hall of Fame โ consistent, high-quality code that makes developers swoon with delight!
Now, letโs get down to business, shall we? ๐บ๏ธ๐๏ธ If youโre feeling curious about the available AI Guidelines, just click on this magical link. Itโll take you on a grand adventure through the most essential guidelines โ you wonโt want to miss it!
Alright, party people! Letโs dive into the world of Laravel Boost AI Guidelines, shall we? Hereโs a fun take on our technical documentation:
Party Time AI Tips (AI guidelines in plain English)
Laravel Boost brings you AI party tips for various packages and frameworks. The core tips are like the ever-present life of the party, offering general advice that works across all versions.
| Package | Invite List |
|---|---|
| Core & Boost | Everybodyโs invited! |
| Laravel Framework | The core crew, 10.x, 11.x, and 12.x (the cool kids) |
| Livewire | The core squad, 2.x, 3.x, and 4.x (theyโve got the moves!) |
| Flux UI | The core crew, free or pro (for those who like to be in control) |
| Folio | Everybodyโs invited! (a secret guest, shh!) |
| Herd | Everybodyโs invited! (the party animal package) |
| Inertia Laravel | The core crew, 1.x, 2.x, and 3.x (the trendsetters) |
| Inertia React | The core crew, 1.x, 2.x, and 3.x (react-ing to the crowd) |
| Inertia Vue | The core crew, 1.x, 2.x, and 3.x (keeping it casual and comfy) |
| Inertia Svelte | The core crew, 1.x, 2.x, and 3.x (the sleek newcomer) |
| MCP | Everybodyโs invited! (the mysterious host) |
| Pennant | Everybodyโs invited! (keeping the party organized) |
| Pest | The core crew, 3.x and 4.x (party poopers with a purpose!) |
| PHPUnit | Everybodyโs invited! (the serious one with a good sense of humor) |
| Pint | Everybodyโs invited! (the party-loving design master) |
| Sail | Everybodyโs invited! (navigating the dancefloor like a pro) |
| Tailwind CSS | The core crew, 3.x and 4.x (the style mavens) |
| Livewire Volt | Everybodyโs invited! (a surprise guest from another party) |
| Wayfinder | Everybodyโs invited! (guiding the crowd with a smile) |
| Enforce Tests | Conditional Invite (security guards, keep an eye on things!) |
PSA: To ensure your AI party tips are always fresh and fun, remember to check out the Keeping Boost Resources Updated section!
Now, if youโve got your own AI party tips for a package we didnโt include, feel free to add them in! Letโs keep the party going! ๐๐ฅณ๐
Alright, letโs get this AI party started! If youโve got a hankering to personalize Laravelโs Boost with your very own AI etiquette (because who doesnโt want an AI butler programmed to their specific quirks?), hereโs the lowdown:
-
Get ready to play dress-up, because the first step is to don your best
.blade.phpor.mdgarb. These are like the tuxedos of the AI world and will help your custom guidelines fit seamlessly into Laravelโs high society. -
Now itโs time for a bit of organizational finesse: Stash these snazzy new outfits in your applicationโs
.ai/guidelines/closet. Think of it as the AI equivalent of a walk-in wardrobe (except, you know, digital and without the risk of tripping over Jimmy Choos). -
With everything set, run
boost:installโ Laravel Boostโs way of announcing to the world that your freshly dressed AI is ready to mingle with the other guidelines at the ball. Itโll automatically include your custom guidelines along with the rest, so thereโs no risk of showing up in last seasonโs AI fashion faux pas.
Thatโs all, folks! With these simple steps, youโre on your way to creating a one-of-a-kind, tailor-made AI experience thatโll have your users dancing and your competitors green with envy (well, perhaps not envy โ more like bewilderment). Happy customizing!
Rebel Against Boostโs Brainy Boss, the AI! ๐ค๐
Got a bone to pick with olโ Boostโs brainy boss? Donโt like the way heโs been running things? Fear not! With our rebellion-friendly tutorial, you can overthrow his built-in AI guidelines and establish your own, custom rulebook. ๐
Hereโs how to become a rogue coder and defy Boostโs AI like a true outlaw:
-
Create a hideout for your rebellious guidelines by constructing a custom file, using these secret coordinates:
.ai/guidelines/[your_desired_guideline]/[version]/[file_name].blade.php๐บ๏ธFor instance, if youโre fed up with Boostโs โInertia React v2 Form Guidanceโ, set up camp at
.ai/guidelines/inertia-react/2/forms.blade.php. ๐๏ธ๐๏ธ -
Once your underground base is established, itโs time to attack the system! When you call for reinforcements using the command
boost:install, Boost will surrender to your custom rulebook instead of his original one. ๐ ๏ธ๐ช
Now go forth and conquer, my fellow rebels! Make Boost bend to your will, or should I say, codeโฆ ๐๐
Ahoy there, Package Maintainers! If youโve got a swashbuckling third-party package thatโs giving other piratesโ ships a run for their gold, you can now make it even more treasure trove-y by getting Boost to help you chart the AI sea shanties for it.
To do this, all ye need is to hoist the Jolly Roger of a resources/boost/guidelines/core.blade.php file on your pirate ship (er, package). Once your users set sail with php artisan boost:install, Boost will swab the decks and raise anchor, automatically loading your guidelines like a well-oiled pirate crew.
Now, for your AI shanties to be as catchy as a jolly roger itself, they should provide a quick and tantalizing overview of what your package does (you know, to entice the other seafarers). Next, draw a treasure map of any essential file structures or conventions (just like X marks the spot!). Lastly, share some pirate lore on how to create or use its main features, complete with example commands and code snippets. Keep it concise, actionable, and filled with best practices thatโll make AI write gold for your users โ arr!
Here be an example to get ye started:
Pirate's Code of Conduct (core.blade.php)
Ye have bravely set sail on the high seas of Laravel packages, matey. Welcome aboard! Here's a guide to help you navigate our swashbuckling package, "Arr-tisan Bread."
1. Overview:
Arr-tisan Bread is a package for bakers who want their yeast rolls to rise above the competition. It automates the bread-making process with precision and flair. Get ready to serve up fresh, artisanal loaves like a pro!
2. File Structure & Conventions:
For optimum results, keep your "Arr-tisan Bread" files organized as follows:
- src/ArrBread
- Console
- Commands
- MakeDough.php
- BakeBread.php
- ProofDough.php
- config/arrbread.php
3. Main Features & Usage:
Aye, there's three main features in Arr-tisan Bread:
a) MakeDough
To create the dough, use this command: `php artisan arrbread:makeDough`
b) ProofDough
Allow your dough to rise with this command: `php artisan arrbread:proofDough`
c) BakeBread
Pop those loaves in the oven and bask in the aroma of freshly-baked bread with this command: `php artisan arrbread:bakeBread`
Keep your sails hoisted high, matey! May you have smooth seas, fair winds, and a treasure chest full of well-written AI guidelines. Happy coding, yarr! ๐ดโโ ๏ธ
## The Packet of Delights!
Ahoy there, developer friends! Get ready to embark on a whirlwind adventure with our dazzling new package, The Packet of Delights! This all-singing, all-dancing marvel will sprinkle some stardust onto your Laravel application, making it shimmer and shine like never before.
## What's the Big Idea?
The Packet of Delights offers a [brief description of functionality] that is so cutting-edge, we had to make sure our testers were wearing protective eyewear to avoid any unwanted solar flares! This package will take your Laravel app from zero to hero in record time!
## Installation: The First Step Towards Greatness
To add this life-changing magic to your project, simply run the following command:
```sh
composer require vendor/package-name
(Just make sure youโve got your Laravel installation properly brewed beforehand!)
Usage: Unleashing the Power of The Packet of Delights
Once installed, The Packet of Delights is as easy to use as a well-oiled can opener (but way more exciting). Just follow these simple steps to experience the joy:
- Import the package in your code:
use Vendor\PackageName;
- Instantiate The Packet of Delights:
$packet = new PackageName();
- Marvel at the results as you call its fantastic methods:
$results = $packet->[someMethodYouWantToUse]();
(Remember to replace [someMethodYouWantToUse] with the specific magic trick you desire.)
Conclusion: A Leap Forward for Laravel (And Your Project)
There you have it! With The Packet of Delights in your development arsenal, your Laravel projects will be shining brighter than a Hollywood premierโand without any celebrities causing a scene. So grab this package, and let the good times roll! Happy coding!
Features
Feature 1: Weโve Made Coding Easier Than Baking a Cake (โฆand we all know how easy that is)
Donโt believe us? Witness the simplicity yourself!
@verbatim
Feature 2: Weโve Taken a Leaf Out of Your Magic Spellbook (No wand required)
Call us Harry, but weโve brewed up something even more potent than an Expelliarmus charm!
@verbatim
Just remember, with great features come great responsibility. So, channel your inner superhero and conquer the coding world!
Alright, buckle up, coding cowboys and code-savvy cowgirls! Weโre about to dive into the wild west of software development with a trusty sidekick โ Agent Skills! These arenโt your run-of-the-mill howdy-partner guides, oh no, theyโre lean, mean coding modules that a cowpoke can activate whenever theyโre wrangling specific domains. Unlike the dusty old guidelines that take up precious wagonspace before the journey even begins, Skills let you saddle up with detailed patterns and the sharpest shooting best practices only when you need โem, reducing context clutter and improving the accuracy of your AI-generated code more than a well-aimed six-shooter.
To get these bad boys on board, all you gotta do is yell โYeehaw!โ (or run boost:install) and select Skills as a feature. Once thatโs done, Skills will automatically hitch their horses to your project based on the packages listed in your composer.json. Say your project is riding shotgun with livewire/livewire, well then, youโll find yourself armed with the livewire-development Skill faster than you can say โGiddy up!โ
Now, letโs take a gander at the Skills corral:
- Livewire Development: A quick-draw Skill for projects that are using Livewire, making your code more reliable than an old trusty horse.
- Laravel Mix Assets Optimization: Saddles up your assets for a smooth ride, optimizing them faster than a mustang on the plains.
- Tailwind CSS Utilities: Dresses your code in the finest coding attire, making it look sharper than a rhinestone-studded Stetson.
Ahoy there, code pirates! Hereโs a treasure trove of skills thatโll make your developer heart swell with excitement (and possibly some sea shanties). Letโs dive in!
Pirateโs Pouch oโ Powers
| Skill | Booty |
|---|---|
| Flux UI Development | Flux UI, matey |
| Folio Routing | Folio, ye scurvy dog |
| Inertia React Development | Inertia React, ye buccaneer |
| Inertia Svelte Development | Inertia Svelte, landlubber |
| Inertia Vue Development | Inertia Vue, sea dog |
| Livewire Development | Livewire, hearties |
| MCP Development | MCP, me hearty |
| Pennant Development | Pennant, mateys |
| Pest Testing | Pest, ye scallywag |
| Tailwind CSS Development | Tailwind CSS, ye sea dog |
| Volt Development | Volt, ye hearty |
| Wayfinder Development | Wayfinder, mateys |
Ye Be Warned: Keep these skills shipshape and Bristol fashion by reading the Keeping Boost Resources Updated section,Arrrr!
Custom Shenanigans (aka Skills, but Cooler)
Ready to make your assistant more you-centric? Letโs get this party started! To craft your own custom shenanigans, simply stash a SKILL.md file in your applicationโs .ai/pranks/{skill-name}/ directory. When you unleash the mighty boost:update, these custom shenanigans will join forces with Boostโs built-in pranks, turning your assistant into a Swiss Army Knife of awesomeness!
For instance, to create a custom shenanigan for your applicationโs domain logic mastery:
.ai/pranks/invoice-wizardry/SKILL.md
Oh, and just in case you thought youโd be the only mad genius here, weโve got news for you! You can override Boostโs built-in pranks, too! Itโs like having your very own secret service agent, but for chatbots. Now get out there and make your assistant more YOU-rific than ever! ๐ค๐
Alrighty, letโs talk shop about overriding those Boost-built skills that are giving you trouble like a cat giving you the hairball of doom! You see, you can create your very own custom skills (we call โem DIY skills) with the same dashing names as Boostโs originals. When you craft a custom skill to match an existing Boost skill name, Boost will toss out the original like a pair of last yearโs bell-bottom jeans and put on your fresh new threads instead!
For instance, if you fancy yourself a maestro in the livewire-development realm and wish to replace Boostโs default symphony, simply create a file at .ai/skills/livewire-development/SKILL.md. Once you run boost:update, Boost will strut down the catwalk with your custom skill instead of the off-the-rack version!
Now, if youโre working with third-party packages, itโs a whole other ball game. We donโt want to leave our favorite third-wheel out of the party, do we? So, Boost allows you to add skills for third-party packages by creating a file in the corresponding package directory and following similar naming conventions. Itโs a love story between Boost and your packages that results in harmonious code!
Alright, coding buddies! ๐ค๐ If youโve got a swanky third-party package that makes other developers swoon, and you wanna share the love by having Boost pick up your tricks, weโre all for it! ๐
To make Boost dance to your beat, simply create a file named resources/boost/skills/{skill-name}/SKILL.md within your package. When your admiring fans run php artisan boost:install, our little bot will install your sweet skills based on their preferences. ๐ค๐
Our Boost Skills are akin to a superheroโs utility belt, following the Agent Skills format for the ultimate convenience. They should be organized as a folder containing a SKILL.md file, with YAML frontmatter and Markdown instructions. The SKILL.md file must include vital stats (name and description) and can optionally include scripts, templates, and manuals. ๐
Now, letโs get those skills polished! They should set clear expectations about any required file structure or conventions, and demonstrate how to create or utilize its primary features using example commands or code snippets. Remember to keep them concise, actionable, and focused on best practices so AI can generate accurate code for your users. Hereโs a quick example:
---
name: package-name-development
description: Build and work with PackageName features, including components and workflows.
---
Welcome to the magical world of PackageName development! ๐ฉโจ In this tutorial, we'll explore how to create and manage your PackageName packages like a pro!
First things first, let's set up our dev environment:
```bash
composer require package-name/package-name-dev
And thatโs just the beginning of your coding adventure with PackageName! ๐๐ซ Keep it up and happy coding! ๐ค๐
Alright, buckle up, programming pirates! Today we're diving into the shark-infested waters of package name development. You might be thinking, "I thought I was a landlubber, not a codemonkey?" Well, fear not, matey! This guide will make you feel more like Captain Coder than Long John Silicon.
First off, let's establish the rules of the high seas, er, naming conventions. Your package name should be unique, easy to remember, and descriptive enough to give potential treasure seekers (developers) an idea of what they're in for. It's like naming your ship: you wouldn't call it The Rusty Anchor, would ya?
Next, we set sail for the Vendor-Namespace Harbor. This is where you'll register your package with Composer, giving it a proper home and making sure it's easily accessible to all seafaring developers. Remember, no man is an island (or package), and isolation won't help ye find yer buried treasure (users).
Now that we have a map, let's talk about components. Like the three musketeers of a well-oiled ship, your package should consist of three key elements: src, tests, and resources. src is where the heart of your package lives, tests help ye ensure it's seaworthy, and resources...well, they're like the pirate flag โ they make yer package stand out on the horizon.
The src directory should follow Laravel's namespacing conventions to keep things neat and organized. Tests will house your PHPUnit tests to verify that your treasure chest (package) doesn't have any leaks or hidden skeletons (bugs). And resources, my hearties, are for files like assets and config, the dressing that makes yer package uniquely yours.
So there ye have it! With a sturdy ship, a well-maintained treasure chest, and a pirate flag flappin' in the wind, your Laravel package development venture is off to a roaring start. So hoist the main sail, tie up the Jolly Roger, and set sail for the land of prosperity (the Laravel community)!
...when you're ready to unleash some serious superpowers in your Laravel project! ๐ฆธโโ๏ธ๐ฆธโโ๏ธ
PackageName is not just a name, it's a gateway to a world of convenience and productivity. ๐๐ป When you find yourself grappling with repetitive tasks or feeling like you're reinventing the wheel, PackageName swoops in like a caffeinated caped crusader to save the day! ๐
So, whether you're building an app for superheroes in distress (Laravel Rescue Squad), or creating the next big social network for intergalactic beings (GalaxyFriends), PackageName is your trusty sidekick that'll help you focus on what really matters - crafting a fantastic user experience! ๐๐ฑ
Now, buckle up, put on your coding cape, and let's get this show on the road! ๐๐๐
Alrighty, buckle up! Here's the lowdown on our Laravel wonderland. Let's call it a digital playground, because why not?
## Features
### Feature 1: The Svelte Speedster ๐๏ธ๐จ
A sleek and speedy feature that will make your development life a breeze. It's like having a barista who never misses your order.
// Just ask for what you need, and itโs magically served up! $result = PackageName::featureOne();
### Feature 2: The Dynamic Duo ๐ฆธโโ๏ธ๐ฆธโโ๏ธ
Two caped crusaders joining forces to save the day! Use them together, and watch your code soar to new heights.
// Call in the superheroes with a simple request. $result = PackageName::featureTwo($param1, $param2);
<a name="guidelines-vs-skills"></a>
Now that we've introduced our A-team, let's chat about the guidelines and skills you'll need to become one with Laravel. But remember, it's all just a bit of fun around here! ๐ค๐ผ
Alright, let's dive into the world of Laravel Boost, where we arm our AI agents like a medieval knight with two essential tools: Guidelines and Skills!
Think of **Guidelines** as your trusty old squire, always by the agent's side when they embark on their code-chivalry journey. They carry the knowledge of Laravel conventions and best practices, ensuring our knight stays sharp and in line with the noble codebase rules of the realm.
On the other hand, **Skills** are the knight's arsenal of battle-tested strategies for specific tasks (like slaying Livewire components or defending against Pest tests). Instead of lugging around an unwieldy sword all the time, our knight deftly wields a sharp, focused tool when it's needed most. This not only lightens their load but also improves the quality of their battles (er... code).
| Aspect | Guidelines | Skills |
| ----------- | ---------------------------------------- | ---------------------------------- |
| **Loaded** | Upfront, always present, a faithful squire | On-demand, when relevant, a secret weapon |
| **Scope** | Broad, laying the foundational groundwork | Focused, targeting specific tasks and battles |
| **Purpose** | Core conventions & best practices | Detailed implementation patterns |
So there you have it! Now our knight is equipped with both a solid understanding of the codebase and the right tools for each mission. Let's go forth, conquer the realm, and write some kick-ass Laravel code! ๐ฐ๐ฅ๐๐ฒ
## The Laravel Boost API โ Where Coders Go to Unleash their Inner Wisecrack!
Welcome to the Laravel Boost API, your smarty-pants sidekick in coding endeavors! With over 17,000 pieces of Laravel-specific knowledge at its disposal, this AI powerhouse is like having a party of PHP experts in your pocket.
Our semantic search with embeddings technology ensures that you'll get the right answers, not just any answers โ it's like having a magic 8-ball for coding questions!
The `Search Docs` MCP tool (Meta-Coder Party Partner, obviously) lets your coding agent access this swanky Laravel documentation API service. With Boost's AI guidelines and witty repartee, your coder buddy will be instructed to use this API like a pro!
| Package | Supported Versions |
|---------|--------------------|
| Laravel Framework | 10.x, 11.x, 12.x |
| Filament | 2.x, 3.x, 4.x, 5.x |
| Flux UI (Free Edition) | 2.x |
| Flux UI (Premium Edition) | 2.x Pro |
| Inertia | 1.x, 2.x |
| Livewire | 1.x, 2.x, 3.x, 4.x |
| Nova | 4.x, 5.x |
| Pest | 3.x, 4.x |
| Tailwind CSS | 3.x, 4.x |
<a name="extending-boost"></a>
## Extending Boost โ Let's Take the Party to the Next Level!
Ready to take your coding prowess to the next level? With Boost's easy-to-use API, extending its abilities is as simple as pie! (Note: we can't guarantee it tastes like pie.) Check out our documentation for more info on how to customize Boost and make it work for you. Happy coding, party people! ๐ฅณ๐๐
### Unleashing Boost: The Sequel to Your Coding Sidekick! ๐๐ค
Boost, the coding sidekick you never knew you needed but always wanted, is already pals with a plethora of cool IDEs and AI agents. But what if your preferred coding companion isn't on the guest list? No worries, Boost won't keep you hanging - just invite them yourself!
<a name="adding-support-for-other-ides-ai-agents"></a>
### Let's Make New Friends! ๐๐
If your current coding buddy isn't feeling the Boost vibe yet, it's time to throw them an invite! Creating your very own agent and integrating it with Boost is as easy as pie (or maybe more like pizza, because who doesn't love pizza?). Here's a step-by-step guide on how to become best coding pals:
1. **Whisk up your Agent:** First things first - bake your very own AI agent from scratch, or find one that's been pre-made and just waiting for some love from Boost.
2. **Mix in the Boost ingredients:** Once you've got your hands on an AI agent, it's time to get them up to speed with Boost's secret sauce. This involves a little bit of coding magic, but don't worry - we've got recipes and tutorials to help you out!
3. **Serve your Agent to Boost:** Once your agent is all dressed up in their Boost finest, it's time for the big introduction. Add them to Boost's inner circle, and watch the coding synergy unfold before your eyes!
Remember, with great power comes great responsibility. So make sure to test your newfound coding duo thoroughly to ensure they play well together and don't get into any mischief (unless that's what you're going for, in which case - more power to you!)
And there you have it! Your very own coding super-team, ready to conquer the world (or at least your to-do list) with style and efficiency. Now, let's get Boosting! ๐ฅ๐๐ค๐
### Unleashing the Power of Extraordinary Code Companions! ๐๐ค
Ever wanted to expand your Laravel development squad with a flashy new AI code buddy? Well, buckle up, partner! Here's how you can create and recruit a fresh, intelligent recruit for your IDE or AI agent arsenal. ๐ค
First things first: You'll need to craft a class that takes its cues from the wise `Laravel\Boost\Install\Agents\Agent` masterclass. This is your prospective team member's blueprint, so make it count!
Once you have your basic structure in place, it's time to specialize: Extend your class by implementing one or more of the following contracts based on your needs:
- `Laravel\Boost\Contracts\SupportsGuidelines` ๐ค - This contract gives your new agent the ability to understand and follow the rules of the AI playground (because, let's face it, even geniuses need a little guidance sometimes).
- `Laravel\Boost\Contracts\SupportsMcp` ๐ฏ - With this badge of honor, your AI will gain the power to communicate with and impress the mighty MCP (Master Chief Programmer โ we're pretty sure that's what it stands for).
- `Laravel\Boost\Contracts\SupportsSkills` ๐ค - This contract arms your AI agent with Agent Skills, allowing it to perform tasks like a true Laravel cowboy or cowgirl (you know, all those tricky coding stunts and whatnot).
<a name="writing-the-agent"></a>
Now that you've got the lowdown on these contracts, let's write the agent! ๐
1. Start by extending `Laravel\Boost\Install\Agents\Agent`. This is like when you're adopting a puppy and want it to grow up to be just like its parents.
2. Implement the contracts that best suit your needs. Think of this as equipping your AI with special tools, each one more powerful than the last!
3. Write code that follows the contract methods. It's time for your agent to show off its new skills and prove it deserves a spot on your Laravel team! ๐ช
4. Register your new agent with Laravel Boost, so it can join the party and start making a difference in your development workflow. ๐
5. Kick back and watch as your code becomes sleeker, faster, and more enjoyable to write, all thanks to your fancy new AI sidekick! ๐ค๐
Alrighty then! Let's put on our coding cowboy hats and tame the Laravel beast together, partner. Here's how you write a CustomAgent that can handle Guidelines, MCP (Mind-Bending Code Problems), and Skills like a seasoned pro.
```php
Yโall better strap in, cause weโre about to get technical in this here corral! ๐ค
<?php
namespace App;
Now, remember when we were kids and played cowboys and Indians? Well, it's a bit like that but with PHP classes and stuff. Let me show you how to create your very own CustomAgent, partner.
declare(strict_types=1);
This here line is just letting the computer know we mean business! No room for loose variables in our rodeo.
namespace App;
Now, if this were a Wild West town, you'd probably see tumbleweeds blowing through this namespace. But we're not out there, partner, weโre making Laravel magic happen.
use Laravel\Boost\Contracts\SupportsGuidelines;
use Laravel\Boost\Contracts\SupportsMcp;
use Laravel\Boost\Contracts\SupportsSkills;
use Laravel\Boost\Install\Agents\Agent;
Time to import some of our cowboy buddies! Weโre gonna need these contracts and Agent class to help us out. Think of them as your trusty six-shooter and horse.
class CustomAgent extends Agent implements SupportsGuidelines, SupportsMcp, SupportsSkills
{
// Your implementation...
}
For a proper example implementation, you can take a peek at ClaudeCode.php โ just like olโ Claude himself! And remember, the West isnโt won in a day; learning takes time and practice. Good luck, partner! ๐ค ๐
Ahoy there, Laravel swashbucklers! Letโs have a jolly good time as we delve into the grand adventure of registering our very own custom agent.
First off, set sail to your applicationโs boot decks and hoist the sails of your AppServiceProvider in App\Providers.
Use yar-masthead Boost; (yep, that's "Laravel" in pirate speak)
Now, letโs prepare for boarding by sprucing up the boot method:
public function boot(): void
{
Boost::registerAgent('customagent', CustomAgent::class); (Huzzah! We've added our swashbuckler to the roster)
}
Once youโve registered your agent, itโll be ready for duty when you run php artisan boost:install. Aye-aye, Captain! Your custom agent is now on active service and ready to join the fleet!
So, hoist the Jolly Roger and set sail for success with your new matey in tow. Yo ho, Laravel!