library-author

library-author is a skill for Claude Code, Codex from hmj1026/dhpk. It costs 68 tokens per session (562 once invoked), scanned A, original, MIT.

A skill for designing and reviewing published PHP and Laravel libraries. Laravel is a PHP framework; the skill also maps test suites and plans support across framework and dependency versions.

In plain words
What is it for?
Use it to design providers and facades, review Composer package contracts, set up Laravel Testbench, audit compatibility helpers, and plan version-matrix tests.
Why use it?
Library work must preserve public APIs and remain compatible with several supported versions. Application code and one-off framework advice need different handling.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the dhpk plugin — 39 skills, 1 command, 1 agent, 3 hooks shipped together

Good fit Use it to design providers and facades, review Composer package contracts, set up Laravel Testbench, audit compatibility helpers, and plan version-matrix tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hmj1026/dhpk/library-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 library-author
Clone the repo
git clone --depth 1 https://github.com/hmj1026/dhpk

Made for: Claude Code, Codex.

Or install dhpk, the plugin that ships this one along with the rest of its 39 skills, 1 command, 1 agent, 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 library-author

README.md
[![agentmods](https://agentmods.dev/badge/skills/hmj1026/dhpk/library-author/github.svg)](https://agentmods.dev/skills/hmj1026/dhpk/library-author)
Your own site
<a href="https://agentmods.dev/skills/hmj1026/dhpk/library-author"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/library-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 library-author

Your own site · 80×15
<a href="https://agentmods.dev/skills/hmj1026/dhpk/library-author"><img src="https://agentmods.dev/badge/skills/hmj1026/dhpk/library-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 562 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.00068 $0.00562
Opus 5.5 $0.00027 $0.00225
Sonnet 5.5 $0.00014 $0.00112
Haiku 4.5 $0.00007 $0.00056

Measured yesterday against content hash 5e5f16e0a441, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

library-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 yesterday.

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-marketplace/package/modules/library-author/skills/library-author/SKILL.md · 38 lines

What it actually says

Library author

Use a natural-language library task or an explicit mode followed by its inputs.

  1. Select the mode below from the requested deliverable. An explicit mode wins; clarify a genuinely ambiguous deliverable before loading a procedure.
  2. Identify the consumer package, declared PHP/framework/dependency range, and existing matrix from local metadata. Preserve each procedure's version inference; do not invent pins where consumer evidence is missing.
  3. Load only the selected mode procedure. Load its named sibling reference only for the relevant branch. Complete its input, authority, and verification gates.
  4. Return that mode's output with actual check results and remaining gaps. A release plan does not authorize publication, tags, or external changes.
Mode Task and input Procedure Output
author Provider, facade, publishing or discovery design; supported range author Authoring decision or package design with compatibility gates
testbench Multi-major Laravel matrix; package dependency metadata testbench Per-cell CI matrix, TestCase, database and discovery evidence
composer Public API, Composer manifest, dependency floor or release contract composer Semver verdict, audited manifest or release gate
polyfill-audit File, symbol or all version guards; declared and executed matrices polyfill-audit Branch enumeration, matrix gaps and asymmetric-edit report
suite-map Edited paths and actual phpunit.xml suite directories suite-map Selected suites, commands and boundary warnings
cell-onboard Proposed pinned runtime/dependency tuple and current workflow cell-onboard Composer, workflow, polyfill, Testbench and focused-test cell plan

Distinct deliverables retain distinct contracts. A task spanning modes may run them in a stated sequence, retaining each mode's evidence and authority.

This relocatable skill is separate from the consumer content module modules/library-author/. Its mode references are resources, not peer skills.

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. yesterday First seen · 38 lines · 68 tokens per session scan A 5e5f16e0a441

Subscribe to this mod's changes

library-author is a skill published in the GitHub repository hmj1026/dhpk (2 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 562 once invoked, about $0.0003 per session on Opus 5.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-10-16.