php-specialist

php-specialist is a skill for Claude Code, Codex from Pixel-Process-UG/superkit-agents. It costs 95 tokens per session (4,486 once invoked), scanned A, original, MIT.

A guide for writing modern PHP 8.x code, the language used by many web applications. It covers PHP language features, Composer packages, coding standards, static analysis, and maintainable design patterns.

In plain words
What is it for?
Use it to write or refactor PHP, design enums and data objects, configure Composer autoloading, or set up PHPStan, Psalm, PHP CS Fixer, or Pint.
Why use it?
It helps produce code that is type-safe, consistently structured, and compatible with the project's PHP version and tooling.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to write or refactor PHP, design enums and data objects, configure Composer autoloading, or set up PHPStan, Psalm, PHP CS Fixer, or Pint.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pixel-process-ug/superkit-agents/php-specialist
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 Pixel-Process-UG/superkit-agents --skill php-specialist
Clone the repo
git clone --depth 1 https://github.com/Pixel-Process-UG/superkit-agents

Made for: Claude Code, Codex.

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 php-specialist

README.md
[![agentmods](https://agentmods.dev/badge/skills/pixel-process-ug/superkit-agents/php-specialist/github.svg)](https://agentmods.dev/skills/pixel-process-ug/superkit-agents/php-specialist)
Your own site
<a href="https://agentmods.dev/skills/pixel-process-ug/superkit-agents/php-specialist"><img src="https://agentmods.dev/badge/skills/pixel-process-ug/superkit-agents/php-specialist/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 php-specialist

Your own site · 80×15
<a href="https://agentmods.dev/skills/pixel-process-ug/superkit-agents/php-specialist"><img src="https://agentmods.dev/badge/skills/pixel-process-ug/superkit-agents/php-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,486 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.00095 $0.04486
Opus 5 $0.00048 $0.02243
Sonnet 5 $0.00019 $0.00897
Haiku 4.5 $0.00010 $0.00449

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

Security

Grade A, and why

php-specialist 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 8d 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.

templates/skills/php-specialist/SKILL.md · 580 lines

How it starts

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

PHP Specialist

Overview

Write modern, type-safe, and maintainable PHP 8.x code adhering to PSR standards and SOLID principles. This skill covers the full modern PHP toolchain: language features introduced in PHP 8.0 through 8.4, PSR interoperability standards, Composer dependency management, static analysis with PHPStan and Psalm, coding style enforcement with PHP CS Fixer and Pint, and architectural patterns that leverage the type system for correctness at compile time rather than runtime.

Apply this skill whenever PHP code is being written, reviewed, or refactored in any framework or standalone context.

Multi-Phase Process

Phase 1: Environment Assessment

  1. Identify PHP version from composer.json -> require.php
  2. Review composer.json for autoloading strategy (PSR-4 namespaces)
  3. Check for static analysis configuration (phpstan.neon, psalm.xml)
  4. Identify coding standard tool (pint.json, .php-cs-fixer.php)
  5. Catalog existing patterns: enums, DTOs, value objects, interfaces

STOP — Do NOT write code without knowing the PHP version and autoloading strategy.

Phase 2: Design

  1. Define interfaces and contracts before implementations
  2. Design value objects and DTOs with readonly properties
  3. Map domain concepts to backed enums where applicable
  4. Plan exception hierarchy for the domain
  5. Identify seams for dependency injection

STOP — Do NOT implement without interfaces defined for key boundaries.

Phase 3: Implementation

  1. Write interfaces first — contracts before concrete classes
  2. Implement with constructor promotion, readonly properties, union/intersection types
  3. Use match expressions over switch; named arguments for clarity
  4. Leverage first-class callable syntax for functional composition
  5. Apply SOLID principles at every class boundary

STOP — Do NOT skip strict_types declaration in any PHP file.

Phase 4: Quality Assurance

  1. Run PHPStan at maximum achievable level (target level 9)
  2. Enforce coding style with PHP CS Fixer or Laravel Pint
  3. Verify type coverage — no mixed without justification
  4. Review for SOLID violations and code smells
  5. Confirm Composer autoload is optimized (--classmap-authoritative)

Read the full file on GitHub · 580 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. 8d ago First seen · 580 lines · 95 tokens per session scan A c294aa5830aa

Subscribe to this mod's changes

php-specialist is a skill published in the GitHub repository Pixel-Process-UG/superkit-agents (1 stars, last pushed 6mo ago), licensed MIT. It adds 95 tokens to every session and 4,486 once invoked, about $0.0005 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-03.

Related

Other skills, from other repositories

Laravel Dusk Testing

Expert-level Laravel Dusk browser testing skill for PHP/Laravel applications. Covers Chrome-based E2E testing, browser assertions, Page Objects, component testing, authentication helpers, and database integration.

PramodDutta/qaskills · 44 tokens

agentscope-skill

Build and debug Python applications using AgentScope 2.x. Consult this skill for AgentScope APIs, agent tools, multi-agent orchestration, and agent service deployment.

agentscope-ai/skills · 38 tokens

auditing-php-applications

Audit PHP web application source for critical vulnerabilities using PHP's specific sink and footgun catalog — object injection via unserialize and phar:// POP chains, type-juggling and magic-hash auth bypass, LFI/RFI through php:// and phar:// wrappers, dynamic includes and extract()/superglobal trust, SQL injection…

trilwu/secskills · 129 tokens

laravel-expert

Laravel & PHP Development Instructions for GitHub Copilot.

GulajavaMinistudio/awesome-copilot-id · 15 tokens

mvc-expert

Expert guidelines to refactor legacy PHP codebases into clean, modern, and scalable MVC-structured projects / Pedoman ahli untuk merefaktor codebase PHP lama menjadi proyek terstruktur MVC yang bersih, modern, dan skalabel.

roedyrustam/vibes-plug · 51 tokens

yao-geoflow-template

Use only for explicit legacy GEOFlow template skill questions, old PHP template-package contracts, or historical outputs using root index.php/article.php/category.php/archive.php and includes/.php. Route current Laravel Blade themes, reference-site cloning, homepage modules, leadform, theme editor, channel frontend…

yaojingang/yao-geo-skills · 94 tokens