acc-check-lazy-loading
Installation
SKILL.md
Lazy Loading Analysis
Analyze PHP code for lazy loading patterns and issues.
Detection Patterns
1. Premature Loading
// PREMATURE: Loading before needed
public function getOrder(int $id): Order
{
$order = $this->repository->find($id);
$items = $order->getItems(); // Loads immediately
$customer = $order->getCustomer(); // Loads immediately
return $order; // Items and customer may not be used
}