NP

netresearch/php-modernization-skill

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

66 stars 품질 60 트렌드 22NOASSERTION

Agent Skill: PHP 8.x 현대화 패턴 - 태핑, 속성, PHPStan | Claude Code 호환

개요

PHP를 현대화하기위한 전문가 패턴 PHP 8.x 유형의 안전, PSR / PER-CS 준수, 정적 분석 도구 및 Symfony-grade 아키텍처. 기술선은 기계식 검증 보고서, 아치형 프로파일 및 수정 루프 성적표를 방출하는 작은 실행 도구 세트를 배웁니다. 이것은 Anthropic이 개발 한 오픈 표준이며 cross-platform 사용을 위해 출시되었습니다. - Claude Code (Anthropic) - Cursor - GitHub Copilot - 기타 기술 호환 AI 에이전트 스킬은 에이전트 스킬 사양을 지원하는 AI 에이전트를 통해 일하는 procedural 지식의 휴대용 패키지입니다. - : 파이썬 베터 (verify php project.py), 오케스트라 (modernize loop.py), 그리고 싼 프로파일러 (introspect.py). 안정적인 구조 출력 (JSON with schema version 1.0.0, SARIF 2.1.0, 또는 JUnit XML), archetype 검출 및 기계 읽기 가능한 Agent actions[] 권고 다운스트림 에이전트는 간섭 참조없이 행동 할 수 있습니다.

개요(AI 번역)

PHP를 현대화하기위한 전문가 패턴 PHP 8.x 유형의 안전, PSR / PER-CS 준수, 정적 분석 도구 및 Symfony-grade 아키텍처. 기술선은 ** 시약 계약** — 기계 학습 검증 보고서, 아카이브 프로필 및 수정 루프 성적표를 방출하는 실행 가능한 도구의 작은 세트입니다.

호환성

이 Agent Skill는 Anthropic에 의해 개발된 오픈 표준을 따르고 cross-platform 사용을 위해 출시되었습니다.

지원되는 플랫폼:

  • 클로드 코드 (Anthropic)
  • 커서 프로젝트
  • 기타 기술 호환 AI 에이전트

스킬은 에이전트 스킬 사양을 지원하는 AI 에이전트를 통해 일하는 procedural 지식의 휴대용 패키지입니다.

특징

  • Agent 컨트랙트: Python verifier (verify_php_project.py]), Orchestrator ([T1]]), 저렴한 프로파일러 (introspect.py]). 안정적인 구조 출력 (JSON with schema_version 1.0.0, SARIF 2.1.0, 또는 JUnit XML), 아치형 검출 및 기계 읽기 쉬운 agent_actions[] 권장 다운스트림 에이전트는 간섭 참조없이 행동 할 수 있습니다. -Hard guardrails: `SKILL에 명시된 5개의 바인딩 refusal 케이스.

이 페이지는 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 가이드부터 시작하세요 →