Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Data access abstraction, repository pattern.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-10 | ✗→✓ | ▲ Improved | -17% | 0% |
| case-12 | ✗→✓ | ▲ Improved | -51% | 0% |
| case-14 | ✗→✓ | ▲ Improved | -55% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-18 | ✗→✓ | ▲ Improved | -5% | 0% |
php<?php namespace App\Repositories; interface UserRepositoryInterface { public function find(int $id): ?User; public function findByEmail(string $email): ?User; public function save(User $user): User; }
php<?php namespace App\Repositories; class UserRepository implements UserRepositoryInterface { public function __construct( private UserModel $model ) {} public function find(int $id): ?User { return $this->model->find($id); } public function findByEmail(string $email): ?User { return $this->model->where('email', $email)->first(); } }
Other measured skills in the registry, with their headline benchmark lift.