php-modernization SKILL.md skillA

php-modernization from netresearch/php-modernization-skill is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add netresearch/php-modernization-skill/php-modernization@v1.24.1

Pins v1.24.1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
netresearch/php-modernization-skill
Path
skills/php-modernization/SKILL.md
Versions recorded
17
Latest version
v1.24.1, committed Nov 4, 2026
First version recorded
Aug 27, 2026
Size
4,558 bytes
Repository stars
61
License
a license file GitHub does not identify

Use when modernizing PHP code: PHP 8.1-8.5 features, PSR/PHP-FIG/PER-CS compliance, PHPStan/Rector/PHP-CS-Fixer/PHPat tooling, DTOs/enums/readonly/property hooks, type safety. Triggers: PHP modernization, type safety, PHPStan, Rector, PHP-CS-Fixer, enum, DTO, readonly, strict_types, property hooks, PHP 8.4, PHP 8.5.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# PHP Modernization

## Agent contract

1. **Discover**: `uv run ${CLAUDE_SKILL_DIR}/scripts/introspect.py` (cheap), or `verify_php_project.py --summary` (full, with `agent_actions[]`).
2. **Drill**: `... --check PM-XX` per finding. Full output when triaging >3.
3. **Apply**: `uv run ${CLAUDE_SKILL_DIR}/scripts/modernize_loop.py --mode dry-run`. Review transcript before applying.
4. **References**: load on demand; do not pre-load.

## Reference routing

| Need | Read |
|---|---|
| PHP 8.0-8.3 baseline | `references/php8-features.md` |
| PHP 8.4 | `references/php-8.4.md` |
| PHP 8.5 | `references/php-8.5.md` |
| PSR / PER-CS | `references/psr-per-compliance.md` |
| PHPStan config | `references/phpstan-compliance.md` |
| Static analysis | `references/static-analysis-tools.md` |
| PHP-CS-Fixer deprecations | `references/php-cs-fixer-deprecations.md` |
| DTOs / VOs / inputs | `references/type-safety.md`, `references/request-dtos.md` |
| Adapter / registry | `references/adapter-registry-pattern.md` |
| Multi-version compat | `references/multi-version-adapters.md`, `references/composer-package-metadata.md` |
| Symfony patterns | `references/symfony-patterns.md` |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add netresearch/php-modernization-skill/php-modernization@sha256:fff9e4daee6d6da1

The line at the top of this page pins the label v1.24.1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_civckpgz7uegznzk.svg)](https://markdownregistry.com/a/art_civckpgz7uegznzk)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 17 versions of this file, between Aug 27, 2026 and Nov 4, 2026, about one every 4 days.

versioncommittedcommitsizeaudit
v1.24.1 latest2026-11-04 3db4966 4,558 BA view · diff
v1.24.02026-10-25 d56e702 4,558 BA view · diff
v1.24.02026-10-21 522528f 4,511 BA view · diff
v1.23.62026-10-01 6ff3d68 4,511 BA view · diff
v1.23.62026-09-27 1be6828 4,424 BA view · diff
v1.23.52026-09-23 30f8deb 4,424 BA view · diff
v1.23.42026-09-20 053486a 4,424 BA view · diff
v1.23.32026-09-19 f614e7c 4,424 BA view · diff
v1.23.32026-09-16 ad00612 4,337 BA view · diff
v1.23.22026-09-12 ff9bd34 4,337 BA view · diff
v1.23.12026-09-11 38bd065 4,337 BA view · diff
v1.23.02026-09-10 3dc75f9 4,337 BA view · diff
v1.23.02026-09-05 d27e722 4,260 BA view · diff
v1.22.32026-09-04 2a855ac 4,260 BA view · diff
v1.22.32026-09-03 8f7c097 4,167 BA view · diff
v1.22.22026-08-29 e1d53fe 4,167 BA view · diff
v1.22.22026-08-27 50f2cd4 4,124 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (4558 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

netresearch/php-modernization-skill · 61 stars · license a license file GitHub does not identify · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_civckpgz7uegznzk
GET https://markdownregistry.com/api/v1/resolve?ref=netresearch/php-modernization-skill/php-modernization
GET https://markdownregistry.com/api/v1/blob/fff9e4daee6d6da1ab062feaa3c4d4ce866f9d887eef6e5f71ab27bfdc54f066

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from netresearch/php-modernization-skill

AGENTS.md AGENTS.md file
netresearch/php-modernization-skill · AGENTS.md
git:20261025.d56e702 · audit A · 61 stars

Every file in netresearch/php-modernization-skill

Browse by kind, by grade A, or by owner.