agent-creator
Use when creating expert agents. Generates agent.md with frontmatter, hooks, required sections, and skill references.
Use when implementing Laravel translations — __(), trans_choice(), lang files, pluralization, locale middleware, or formatting.
$ npx -y skills add fusengine/agents --skill laravel-i18n --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/laravel-i18nContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when implementing Laravel translations — __(), trans_choice(), lang files, pluralization, locale middleware, or formatting.
name: laravel-i18n description: Use when implementing Laravel translations — __(), trans_choice(), lang files, pluralization, locale middleware, or formatting. versions: laravel: "13.0" php: "8.3" user-invocable: true references: references/localization.md, references/pluralization.md, references/blade-translations.md, references/middleware.md, references/formatting.md, references/packages.md, references/best-practices.md, references/templates/SetLocaleMiddleware.php.md, references/templates/lang-files.md, references/templates/LocaleServiceProvider.php.md, references/templates/LocaleRoutes.php.md related-skills: laravel-blade, laravel-api
<objective> Covers Laravel localization: PHP vs JSON translation files, pluralization rules, Blade translation helpers, locale-detection middleware, date/number/ currency formatting, vendor package translations, and organizing translations for large apps. Includes queue-safe locale propagation via Context::add() in Laravel 13. </objective>
Before ANY implementation, spawn 3 agents in parallel, one `Agent` call each with a `name`:
1. **fuse-ai-pilot:explore-codebase** - Check existing translation patterns 2. **fuse-ai-pilot:research-expert** - Verify Laravel i18n best practices via Context7 3. **mcp__context7__query-docs** - Check Laravel localization documentation
After implementation, run **fuse-ai-pilot:sniper** for validation.
---
| Feature | PHP Files | JSON Files | |---------|-----------|------------| | Keys | Short (`messages.welcome`) | Full text | | Nesting | Supported | Flat only | | Best for | Structured translations | Large apps |
---
1. **Never concatenate strings** - Use `:placeholder` replacements 2. **Always handle zero** in pluralization 3. **Group by feature** - `auth.login.title`, `auth.login.button` 4. **Extract strings early** - No hardcoded text in views 5. **Validate locales** - Use enum or whitelist
---
Translation task?
├── Basic string → __('key')
├── With variables → __('key', ['name' => $value])
├── Pluralization → trans_choice('key', $count)
├── In Blade → @lang('key') or {{ __('key') }}
├── Locale detection → Middleware
├── Format date/money → LocalizationService
└── Package strings → trans('package::key')---
| Topic | Reference | When to Consult | |-------|-----------|-----------------| | **Setup** | [localization.md](references/localization.md) | Initial configuration | | **Pluralization** | [pluralization.md](references/pluralization.md) | Count-based translations | | **Blade** | [blade-translations.md](references/blade-translations.md) | View translations | | **Middleware** | [middleware.md](references/middleware.md) | Locale detection | | **Formatting** | [formatting.md](references/formatting.md) | Date/number/currency | | **Packages** | [packages.md](references/packages.md) | Vendor translations | | **Best Practices** | [best-practices.md](references/best-practices.md) | Large app organization |
| Template | When to Use | |----------|-------------| | [SetLocaleMiddleware.php.md](references/templates/SetLocaleMiddleware.php.md) | URL/session locale detection | | [lang-files.md](references/templates/lang-files.md) | Translation file examples | | [LocaleServiceProvider.php.md](references/templates/LocaleServiceProvider.php.md) | Centralized localization service | | [LocaleRoutes.php.md](references/templates/LocaleRoutes.php.md) | URL prefix locale routing |
---
// Basic translation
__('messages.welcome')
// With replacement
__('Hello :name', ['name' => 'John'])
// Pluralization
trans_choice('messages.items', $count)
// Runtime locale
App::setLocale('fr');
App::currentLocale(); // 'fr'---
---
L'API de localisation (`__()`, `trans_choice()`, `App::setLocale()`) reste **inchangée en Laravel 13**. Points spécifiques :
// app/Jobs/SendNotification.php
public function handle(): void
{
App::setLocale(Context::get('locale', 'en'));
Notification::send($this->user, new OrderShipped());
}A plugin ecosystem that turns Claude Code into a supervised, multi-agent development environment.
Repo: fusengine/agents
Use when creating expert agents. Generates agent.md with frontmatter, hooks, required sections, and skill references.
Use when starting ANY development task -- feature, bug fix, refactor, hotfix (triggers: implement, create, build, fix, add feature, refactor, develop).
Use when creating a feature/component or adding functionality. Fires BEFORE APEX Analyze to refine requirements via structured questioning.
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…
Use when validating code quality after modifications -- SOLID compliance, DRY duplication, linter errors, architecture violations. Do NOT use for functional…
Use when an expert agent self-reviews and self-corrects code after the Execute phase, before sniper validation (BMAD-METHOD elicitation techniques).