NP

netresearch/php-modernization-skill

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

66 stars 品質 60 トレンド 22NOASSERTION

エージェントスキル: PHP 8.x の近代化パターン - typing, 属性, PHPStan | Claude コードの互換性

概要

PHP アプリケーションを PHP 8.x にタイプ安全、PSR / PER-CS 準拠、静的解析ツール、Symfony グレードのアーキテクチャを近代化するためのエキスパートパターン。 スキルは、機械読み取り可能な検証レポート、archetype プロファイル、および固定ループのトランスクリプトを放出する実行可能なツールの小さなセットを出荷します。 これは、もともとAnthropicによって開発され、クロスプラットフォームの使用のためにリリースされたオープンスタンダードの次のものです。 - クロードコード(Anthropic) - カーソル - GitHub Copilot - その他のスキル互換性のあるAIエージェント スキルは、エージェントスキルの仕様をサポートしているあらゆるAIエージェントで動作する手続き型の知識のポータブルパッケージです。 - : python verifier(verify php project.py)、オーケスト(modernize loop.py)、安価なプロファイラ(introspect.py)。 安定した構造化された出力(JSON と schema version 1.0.0、SARIF 2.1.0、JUnit XML)、archetype の検出、機械で読みやすい Agent actions[] の推奨事項は、偽物参照を再読することなく動作させることができます.

概要(AI 翻訳)

PHP アプリケーションを PHP 8.x にタイプ安全、PSR / PER-CS 準拠、静的解析ツール、Symfony グレードのアーキテクチャを近代化するためのエキスパートパターン。 スキルは、機械読み取り可能な検証レポート、アーチ型プロファイル、および固定ループトランスクリプトを放出する実行可能なツールの小さなセットである**エージェント契約を出荷します。

互換性

もともとAnthropicが開発したオープンスタンダードを追って「Agent Skill**」で、クロスプラットフォーム用としてリリースしました。

サポートされているプラットフォーム:

  • クロードコード(動物)
  • カーソル
  • GitHub Copilot(GitHub Copilot) - GitHub Copilot(GitHub Copilot) - GitHub Copilot(GitHub Copilot) - GitHub Copilot(GitHub Copilot) - GitHub Copilot(GitHub Copilot) - GitHub Copilot(GitHub Copilot) - GitHub Copilot(GitHub Copilot) - GitHub Copilot(GitHub Copilot) - GitHub Copilot(GitHub Copilot)
  • その他のスキル対応AIエージェント

スキルは、エージェントスキルの仕様をサポートしているあらゆるAIエージェントで動作する手続き型の知識のポータブルパッケージです。

##特徴

-Agent Contract: python verifier(verify_php_project.py])、 Orchestrator([modernize_loop.py])、安価なプロファイラ([introspect.py]))。 安定した構造化された出力(schema_version 1.0.0のJSON、SARIF 2.1.0、またはJUnit XML)、archetypeの検出および機械読みやすい[[agent_actions[]]]]]の推薦のdownstreamの代理店は、偽の参照を再読することなく行動することができます。

  • ハードガードレール:「SKILL」で述べた5つの結合拒絶例.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

PHP Modernization Skill

Expert patterns for modernizing PHP applications to PHP 8.x with type safety, PSR / PER-CS compliance, static-analysis tooling, and Symfony-grade architecture. The skill ships an agent contract — a small set of executable tools that emit machine-readable verification reports, archetype profiles, and fix-loop transcripts.

Compatibility

This is an Agent Skill following the open standard originally developed by Anthropic and released for cross-platform use.

Supported platforms:

  • Claude Code (Anthropic)
  • Cursor
  • GitHub Copilot
  • Other skills-compatible AI agents

Skills are portable packages of procedural knowledge that work across any AI agent supporting the Agent Skills specification.

Features

  • Agent contract: a Python verifier (verify_php_project.py), orchestrator (modernize_loop.py), and cheap profiler (introspect.py). stable structured output (JSON with schema_version 1.0.0, SARIF 2.1.0, or JUnit XML), archetype detection, and machine-readable agent_actions[] recommendations downstream agents can act on without re-reading the prose references.
  • Hard guardrails: five binding refusal cases stated in SKILL.md (no readonly on Doctrine entities, no Rector without --dry-run, baseline shrink-not-delete, no blanket final on mock targets, no editing generated files).
  • PHP 8.x feature coverage: 8.0–8.3 baseline, dedicated 8.4 reference (released 2024-11: property hooks, asymmetric visibility, lazy objects, array_find / array_any / array_all), and dedicated 8.5 reference (released 2025-11: pipe |>, array_first / array_last, #[\NoDiscard]).
  • Static-analysis stack: PHPStan (level 9+, level 10 recommended), PHPat (architecture testing), Rector (automated refactoring), PHP-CS-Fixer (@PER-CS), Infection (mutation testing in PR-diff mode), composer audit.
  • Type-safety patterns: DTOs and Value Objects over arrays, generic collection typing via PHPDoc, strict typing everywhere, immutability boundaries (readonly vs. property hooks vs. classic mutation).
  • Framework edges: dedicated references for Doctrine 2.x/3.x edges, API Platform resource separation, and PSR-15 middleware architecture.
  • PSR / PER-CS compliance: PSR-1, 3, 4, 6, 7, 11, 13, 14, 15, 16, 17, 18, 20 plus PER Coding Style. PSR-12 superseded by PER-CS.
  • Project-archetype detection: generic-composer, typo3-extension, symfony-app, monorepo-package. The verifier and orchestrator branch on archetype.
  • Regression suite: synthetic fixtures plus golden-output snapshots guard the verifier from contract drift.

Agent Contract

The skill follows a four-step loop. Cheap commands first; expensive analysis only when needed.

  1. Discover — read SKILL.md, then profile the project.
GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add netresearch/php-modernization-skill
MCP 初心者?mcpskill.org のガイドから始めましょう →