Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Input validation, custom rules, error handling.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✓→✓ | = Same ✓ | 19% | 0% |
| case-05 | ✓→✓ | = Same ✓ | -18% | 0% |
| case-11 | ✓→✓ | = Same ✓ | -26% | 0% |
| case-08 | ✓→✓ | = Same ✓ | -5% | 0% |
| case-10 | ✓→✓ | = Same ✓ | -44% | 0% |
php<?php public function create() { $rules = [ 'email' => 'required|valid_email|is_unique[users.email]', 'password' => 'required|min_length[8]', 'name' => 'required|min_length[3]' ]; if (!$this->validate($rules)) { return $this->fail($this->validator->getErrors()); } // Process valid data }
php<?php // Config/Validation.php public function strong_password(string $password): bool { return preg_match('/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$/', $password); }
Other measured skills in the registry, with their headline benchmark lift.