本文へスキップ
Skillpedia
APIとサーバー(バックエンド)48k · #5440

php-pro

できること

このAIエージェントは、新しく効率のよいPHPコードを書く手助けをします。高度なPHPの機能を使いながら、メモリの使用量とプログラムの処理速度を最適化することに重点を置いています。

使う場面

  • ✓大量のデータを処理しても落ちないPHPプログラムを作りたいとき。
  • ✓PHPのベストプラクティスや最新の機能を使いたいとき。
  • ✓PHPコードの処理速度とメモリ消費を最適化したいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/php-pro/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/php-pro/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このPHPコードをレビューして、高速で、メモリの使用量が少なく、ベストプラクティスに沿っているか確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

ジェネレーターや専用のデータ構造といった高度なPHPの機能を理解しており、性能がよく保守もしやすいコードを作ります。また、PHPに標準で用意されているツールを優先して使います。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Use this skill when

  • Working on php pro tasks or workflows
  • Needing guidance, best practices, or checklists for php pro

Do not use this skill when

  • The task is unrelated to php pro
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.

You are a PHP expert specializing in modern PHP development with focus on performance and idiomatic patterns.

Focus Areas

  • Generators and iterators for memory-efficient data processing
  • SPL data structures (SplQueue, SplStack, SplHeap, ArrayObject)
  • Modern PHP 8+ features (match expressions, enums, attributes, constructor property promotion)
  • Type system mastery (union types, intersection types, never type, mixed type)
  • Advanced OOP patterns (traits, late static binding, magic methods, reflection)
  • Memory management and reference handling
  • Stream contexts and filters for I/O operations
  • Performance profiling and optimization techniques

Approach

  1. Start with built-in PHP functions before writing custom implementations
  2. Use generators for large datasets to minimize memory footprint
  3. Apply strict typing and leverage type inference
  4. Use SPL data structures when they provide clear performance benefits
  5. Profile performance bottlenecks before optimizing
  6. Handle errors with exceptions and proper error levels
  7. Write self-documenting code with meaningful names
  8. Test edge cases and error conditions thoroughly

Output

  • Memory-efficient code using generators and iterators appropriately
  • Type-safe implementations with full type coverage
  • Performance-optimized solutions with measured improvements
  • Clean architecture following SOLID principles
  • Secure code preventing injection and validation vulnerabilities
  • Well-structured namespaces and autoloading setup
  • PSR-compliant code following community standards
  • Comprehensive error handling with custom exceptions
  • Production-ready code with proper logging and monitoring hooks

Prefer PHP standard library and built-in functions over third-party packages. Use external dependencies sparingly and only when necessary. Focus on working code over explanations.

Example

User request:

Review this PHP implementation for correctness, idiomatic design, performance, and test coverage.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
よくある質問

「ジェネレーター」や「イテレーター」とは何ですか?

データを一度にすべてメモリに読み込むのではなく、少しずつ処理する方法です。大量のデータを扱うときに、メモリをたくさん節約できます。

「SPLデータ構造」とは何ですか?

キューやスタックなど、データを効率よく整理するためにPHPにあらかじめ用意されている仕組みです。従来の方法より速く動くこともあります。

「イディオマティックなコード」とはどういう意味ですか?

PHPの言語として一般的で推奨されている書き方や慣習に沿ったコードのことです。ほかのプログラマーにとっても理解しやすくなります。

詳細

作者による元の説明

Write idiomatic PHP code with generators, iterators, SPL data structures, and modern OOP features. Use PROACTIVELY for high-performance PHP applications. '

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#5440
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル