/php-style:php-object-calisthenicsfrom php-style
Apply object-calisthenics conventions in PHP: flat control flow, domain types/collections, behaviour-rich objects, and PHP-specific type/immutability practices.
Ships in php-style. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Apply these rules fully to new code when they improve clarity. In existing code, preserve local consistency: do not turn a narrow task into a style refactor. If a rule would make code less clear, deviate explicitly and explain why. Always honour the repository's PHP version, PSR/style tooling, and static-analysis level.
For Laravel with Boost, read its project guidance first and use its version-matched documentation and inspection tools. Boost wins on framework concerns; these rules still guide the domain layer.
declare(strict_types=1); in every PHP file. Type parameters, returns,
and properties; use mixed only with a stated reason. Use generic docblocks
for collection contents.final readonly.
Use backed enums for closed sets and put their behaviour on the enum.else; return or throw early, use match for closed choices, or
model the variation with polymorphism, an enum, or a null object. ?-> and
?? are for genuinely optional data, not invalid object graphs.public readonly properties. Never add setters: use a
domain operation or an immutable with*() method.final by default. Use constructor promotion; make value
objects and injected dependencies readonly where possible.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub paulinevos/claude-stuff --plugin php-styleOther plugins' skills for the same job