← ClaudeAtlas

labrodev-corelisted

Use when writing or reviewing ANY PHP code in a Labrodev Laravel project (Laravel 13+, PHP 8.5): creating a class of any kind, deciding which folder/namespace code belongs in, checking dependency direction between App/Layer and Core, applying final/readonly rules, or auditing code for architectural anti-patterns. This is the always-on foundation every other labrodev-* skill assumes.
labrodev/laravel-playbook · ★ 0 · AI & Automation · score 73
Install: claude install-skill labrodev/laravel-playbook
# Labrodev Core — structure, boundaries, headers, immutability Part of the Labrodev playbook. **The law for this skill lives in the always-on `labrodev-core` guideline** (philosophy, structure, dependency law, golden paths, global code rules, anti-patterns, legacy zones) — this skill holds the craft: structure detail, canonical header templates, and edge cases. Per-file checks are folded into each component's rule file under `rules/`. ## Project structure (canonical) Logical layout. Physically, Core often lives in a separate Composer package checked out next to the app (e.g. `../core/src/Domain/...`) — check `composer.json`. All rules apply to the logical module regardless of physical location. ``` src/Core/ ├── Domain/{Domain}/ business logic, one bounded context per domain │ ├── Actions/ Casts/ Collections/ Data/ Enums/ Events/ Exceptions/ (→ labrodev-exception skill) │ ├── Factories/ Jobs/ Models/ Observers/ Payloads/ │ ├── Pipelines/ Policies/ Queries/ Rules/ Services/ │ └── Traits/ Utilities/ ├── Feature/{FeatureName}/ isolated cross-domain workflows; promote to a Domain when stable ├── Infrastructure/{Integration}/ external adapters (payment, email, ERP, APIs); technical, not business → see the labrodev-infrastructure skill ├── Shared/ generic base abstractions (base models, concerns, traits); no domain nouns └── Support/ technical helpers/utilities only; no business logic, no domain lang