Custom helpers

From jpcaparas/superpowers-laravel · View interactive version

Custom helpers is an AI agent skill from the GitHub repository jpcaparas/superpowers-laravel. Create and register small, pure helper functions when they improve clarity; keep them organized and tested

How to use this skill

Skill file

Custom Helpers

Create a helper file

// app/Support/helpers.php
function money(int $cents): string { return number_format($cents / 100, 2); }

Autoload

Add to composer.json:

{
  "autoload": { "files": ["app/Support/helpers.php"] }
}

Run composer dump-autoload.

Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.