What problem does it solve?
This Skill helps teams implement, refactor, debug, and review a Petrvs backend built with Laravel by providing consistent, tenant-aware development and verification guardrails.
Core Features & Use Cases
- Backend-focused workflow: Guides how to inspect affected code, choose the right reference (commands, testing, repository pattern, PHPStan, SIAPE), and keep changes aligned with existing Laravel architecture.
- Separation of responsibilities: Keeps controllers focused on request/response while moving business logic to Services and collaborators, using contracts, DTOs, validators, jobs, policies, resources, and repositories where the codebase already follows those patterns.
- Tenant and security safety: Preserves tenant context and log/audit behavior, and flags sensitive areas such as authorization, tenant isolation, CPF/personal data handling, SIAPE payloads, SQL usage, mass assignment, and downloads.
- Correct verification loop: Encourages adding/adjusting Pest tests (with clear suite choice) and running PHPStan on the altered paths to confirm correctness.
Quick Start
Use this skill to guide a backend Laravel change by first reading AGENTS.md files, inspecting the targeted code, choosing the most relevant references, then updating Services/repositories/DTOs with tenant-aware behavior and verifying the result with the narrower Pest suite and a PHPStan run on the modified paths.