Install any skill in seconds. Free to start, no credit card required.
Get Started Free →lingxling/php
Language-specific super-code guidelines for php.
Passed 23 of 23 test cases with the skill, and 21 of 23 without it.
2 fixed21 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
In an old PHP file processing script, the code uses `$contents = @file_get_contents($filePath);` to prevent warnings if the file is missing, followed by checking if `$contents` is false. Refactor this code to remove error suppression and handle failure correctly.
| Checked | Without skill | With skill |
|---|---|---|
| The refactored code removes the @ error suppression operator. | Passed | Passed |
| The refactored code throws a RuntimeException when file_get_contents returns false. | Missed | Passed |
The instructions your model reads when the skill loads.
// ❌ Manual accumulation
$result = [];
foreach ($items as $item) {
if ($item->isActive()) {
$result[] = strtoupper($item->getName());
}
}
// ✅
$result = array_map(
fn($i) => strtoupper($i->getName()),
array_filter($items, fn($i) => $i->isActive())
);
// ❌ Manual key-value grouping
$grouped = [];
foreach ($items as $item) {
$grouped[$item->getCategory()][] = $item;
}
test cases passed, vs 21 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.