Agent Skills: Custom Helpers

Create and register small, pure helper functions when they improve clarity; keep them organized and tested

UncategorizedID: noartem/laravel-vue-skills/laravel-custom-helpers

Install this agent skill to your local

pnpm dlx add-skill https://github.com/noartem/skills/tree/HEAD/skills/laravel-custom-helpers

Skill Files

Browse the full folder contents for laravel-custom-helpers.

Download Skill

Loading file tree…

skills/laravel-custom-helpers/SKILL.md

Skill Metadata

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

// 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

  • Keep helpers small and pure; avoid hidden IO/state
  • Prefer static methods on value objects when domain-specific
Custom Helpers Skill | Agent Skills