Best for
- Email, Slack, SMS, or database notifications
- Custom notification channels
- On-demand notifications (to non-user recipients)
event4u-app/agent-config/src/skills/laravel-notifications/SKILL.md
Use when sending notifications via mail, Slack, database, or custom channels — with queuing, on-demand recipients, and notification preferences.
Decision brief
Use when sending notifications via mail, Slack, database, or custom channels — with queuing, on-demand recipients, and notification preferences.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/laravel-notifications"Inspect the Agent Skill "laravel-notifications" from https://github.com/event4u-app/agent-config/blob/0adf49a8ae84b0ff6e2de8759eea43257e020eff/src/skills/laravel-notifications/SKILL.md at commit 0adf49a8ae84b0ff6e2de8759eea43257e020eff. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Inspect existing notifications — Read app/Notifications/ and the notifiable models for current channels, queue defaults, and per-user preferences. 2. Generate class — php artisan make:notification InvoiceCreated. 3. Choose channels — Mail, database, Slack, or custom. Implemen…
Use this skill when sending notifications to users or external systems: - Email, Slack, SMS, or database notifications - Custom notification channels - On-demand notifications (to non-user recipients) - Notification preferences and opt-out logic
Review the “Example” section in the pinned source before continuing.
Review the “Sending notifications” section in the pinned source before continuing.
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 95/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 7 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Use this skill when sending notifications to users or external systems:
For Mailables (complex email templates, attachments), see laravel-mail.
app/Notifications/ and the notifiable models for current channels, queue defaults, and per-user preferences.php artisan make:notification InvoiceCreated.via().toMail(), toArray(), etc. for each channel.ShouldQueue interface for non-blocking delivery.php artisan make:notification InvoiceCreated
class InvoiceCreated extends Notification implements ShouldQueue
{
use Queueable;
public function __construct(
private readonly Invoice $invoice,
) {}
/** @return array<int, string> */
public function via(object $notifiable): array
{
return ['mail', 'database'];
}
public function toMail(object $notifiable): MailMessage
{
return (new MailMessage())
->subject('New Invoice #' . $this->invoice->getNumber())
->greeting('Hello ' . $notifiable->getName())
->line('A new invoice has been created.')
->action('View Invoice', url('/invoices/' . $this->invoice->getId()))
->line('Thank you for your business.');
}
/** @return array<string, mixed> */
public function toArray(object $notifiable): array
{
return [
'invoice_id' => $this->invoice->getId(),
'amount' => $this->invoice->getAmount(),
];
}
}
// Via the Notifiable trait on the model
$user->notify(new InvoiceCreated($invoice));
// Via the Notification facade (multiple recipients)
Notification::send($users, new InvoiceCreated($invoice));
// On-demand (no user model needed)
Notification::route('mail', '[email protected]')
->route('slack', '#billing')
->notify(new InvoiceCreated($invoice));
Requires the notifications table migration:
php artisan notifications:table
php artisan migrate
// Read notifications
$user->notifications; // all
$user->unreadNotifications; // unread only
// Mark as read
$notification->markAsRead();
$user->unreadNotifications->markAsRead();
public function toSlack(object $notifiable): SlackMessage
{
return (new SlackMessage())
->text('Invoice #' . $this->invoice->getNumber() . ' created')
->headerBlock('New Invoice')
->sectionBlock(function (SectionBlock $block) {
$block->text('Amount: ' . $this->invoice->getAmount());
});
}
public function via(object $notifiable): array
{
// Respect user preferences
$channels = ['database'];
if ($notifiable->wantsEmailNotifications()) {
$channels[] = 'mail';
}
if ($notifiable->wantsSlackNotifications()) {
$channels[] = 'slack';
}
return $channels;
}
ShouldQueue to avoid blocking requests.toArray() — store IDs, not full objects.via() for channel logic — don't hardcode channels, respect user preferences.Notification::route() for non-user targets.toArray() for database notifications — it throws silently.via() method must return an array even for a single channel — return ['mail'], not return 'mail'.data — use IDs and fetch on read.Alternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
event4u-app/agent-config
Grounded design brief from the adopted corpus — style, WCAG-checked color tokens, typography, layout pattern, anti-patterns. Use on ui-design-brief or any which-style/palette/font/chart decision.
event4u-app/agent-config
Use BEFORE writing or editing any non-trivial UI — inventories components, design tokens, shadcn primitives, and reusable patterns into state.ui_audit. Hard gate for the ui directive set.
event4u-app/agent-config
Use BEFORE writing/changing tests, adding mocks, or test-only methods on production classes — vs mocking-the-mock, production pollution, partial mocks, and overfit/tautological assertions