Back to skills
SKILL.md
Custom Helpers
ASecurityCreate and register small, pure helper functions when they improve clarity; keep them organized and tested
- 147 stars
- 0 votes
- 0 copies
- 3 views
- Added June 6, 2026
Security analysis
100/100npx -y skills add jpcaparas/superpowers-laravel --skill custom-helpers --agent claude-codeAre you the author of Custom Helpers?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jpcaparas-custom-helpers)---
name: laravel:custom-helpers
description: Create and register small, pure helper functions when they improve clarity; keep them organized and tested
---
# Custom Helpers
## Create a helper file
```php
// app/Support/helpers.php
function money(int $cents): string { return number_format($cents / 100, 2); }
```
## Autoload
Add to `composer.json`:
```json
{
"autoload": { "files": ["app/Support/helpers.php"] }
}
```
Run `composer dump-autoload`.
## Guidelines
- Keep helpers small and pure; avoid hidden IO/state
- Prefer static methods on value objects when domain-specific
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.