dhpk-laravel-package-author

dhpk-laravel-package-author is a skill for Claude Code from hmj1026/dhpk. It costs 86 tokens per session (684 once invoked), scanned A, original, MIT.

A skill for authoring Laravel packages that work across supported Laravel and PHP versions. Laravel packages are reusable software components that may provide services, configuration, routes, views, migrations, and other files to an application.

In plain words
What is it for?
Use it to design service providers, facades, version-dependent bindings, publishing rules, discovery metadata, and compatibility boundaries in a Laravel package.
Why use it?
It helps keep the package's public files, service registration, version branches, and compatibility behavior consistent for real users.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dhpk plugin — 65 skills, 31 commands, 37 agents, 3 hooks shipped together

Good fit Use it to design service providers, facades, version-dependent bindings, publishing rules, discovery metadata, and compatibility boundaries in a Laravel package.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hmj1026/dhpk/dhpk-laravel-package-author
View source ↗ hmj1026/dhpk
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hmj1026/dhpk --skill dhpk-laravel-package-author
Clone the repo
git clone --depth 1 https://github.com/hmj1026/dhpk

Made for: Claude Code.

Or install dhpk, the plugin that ships this one along with the rest of its 65 skills, 31 commands, 37 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dhpk-laravel-package-author

README.md
[![agentmods](https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-laravel-package-author/github.svg)](https://agentmods.dev/skills/hmj1026/dhpk/dhpk-laravel-package-author)
Your own site
<a href="https://agentmods.dev/skills/hmj1026/dhpk/dhpk-laravel-package-author"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-laravel-package-author/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dhpk-laravel-package-author

Your own site · 80×15
<a href="https://agentmods.dev/skills/hmj1026/dhpk/dhpk-laravel-package-author"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/dhpk-laravel-package-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 684 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.00684
Opus 5 $0.00043 $0.00342
Sonnet 5 $0.00017 $0.00137
Haiku 4.5 $0.00009 $0.00068

Measured 7d ago against content hash a8bf1d68ece4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

dhpk-laravel-package-author scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

generated/claude-profiles/compat-v1/package/skills/dhpk-laravel-package-author/SKILL.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Laravel package author

Use this skill for code distributed as a Laravel package. A package ships more than classes: service providers, facades, configuration, migrations, routes, views, and assets are separate consumer contracts.

Working sequence

  1. Identify the supported Laravel and PHP range and every published surface.
  2. Load references/authoring-patterns.md for the provider, binding, facade, matrix, publishing, discovery, or compatibility branch being changed.
  3. Keep provider registration, public aliases, version branches, and published names explicit; pair each conditional branch with a test cell.
  4. Validate the package as a real consumer, not only from its own repository.

Contract branches

  • Provider lifecycle or deferred binding → authoring-patterns.md §Service provider.
  • Multi-major behavior → §Version-conditional bindings and the Testbench skill.
  • Facade or auto-discovery → §Facades and discovery metadata.
  • Config, views, assets, routes, or migrations → §Publishing recipes.
  • Released names or artifact compatibility → §Laravel-specific compatibility surface.

When NOT to Use

  • Application controllers, jobs, or models that are not distributed to consumers.
  • Version-specific Laravel deprecations or new APIs; use the matching laravel-N module.
  • Semver, Composer manifest, or registry publication decisions; use dhpk-composer-package-hygiene.
  • Detailed per-cell Testbench setup; use dhpk-laravel-testbench-matrix.

Output

Return an authoring decision or implementation checklist covering the register/boot split, deferral choice, version branches and test cells, facade/accessor contract, publish tags and migration ownership, discovery proof, and compatibility impact.

Verification

  • register() contains bindings/config merges; boot-time work is in boot().
  • Every deferred or version-conditional binding has a resolution test.
  • Facade accessor, provider binding, Composer alias, and IDE hints agree.
  • Published artifacts have deliberate tags and migration ownership.
  • composer validate --strict and a fresh-consumer package:discover pass.
  • The compatibility review covers route/config/migration/view/alias/provider names.

Read the full file on GitHub · 61 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 61 lines · 86 tokens per session scan A a8bf1d68ece4

Subscribe to this mod's changes

dhpk-laravel-package-author is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed yesterday), licensed MIT. It adds 86 tokens to every session and 684 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

craftcms

Craft CMS 5 plugin and module development — extending Craft with PHP. Covers elements, element queries, services, models, records, controllers, migrations, queue jobs, console commands, field types, native fields, events, behaviors, Twig extensions, widgets, filesystems, permissions, project config, GraphQL, testing…

michtio/craftcms-claude-skills · 327 tokens

php-ecosystem-reference

Use when picking a non-Laravel PHP tool — Symfony components, API Platform, or Slim — and routing to implementation. Do NOT use for Laravel (laravel-expert).

fusengine/agents · 42 tokens

php-http-psr

Use when building framework-agnostic PHP HTTP code — PSR-7/15/17/18 messages, middleware, factories, clients. Do NOT use for Laravel HTTP or Symfony HttpFoundation (not PSR-7).

fusengine/agents · 52 tokens

php-laravel

Modern PHP 8.2+ and Laravel patterns: architecture, Eloquent, queues, Pest testing. Use when asked to "write PHP", "build a Laravel app", "fix Eloquent query", "add a queue job", "write a Pest test", or mentions PHP, Laravel, Eloquent, Blade, artisan, or migrations.

iliaal/whetstone · 74 tokens

ia-php-laravel

Modern PHP 8.4 and Laravel patterns: architecture, Eloquent, migrations, queues, testing. Use when working with Laravel, Eloquent, Blade, artisan, or building/testing a framework-based PHP app. Not for php-src internals, standalone PHP libraries, or general PHP language discussion.

iliaal/whetstone · 67 tokens

symfony:interfaces-and-autowiring

Master Symfony Dependency Injection with autowiring.

dev-toolings/superpowers-symfony · 18 tokens