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がスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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
- Start with built-in PHP functions before writing custom implementations
- Use generators for large datasets to minimize memory footprint
- Apply strict typing and leverage type inference
- Use SPL data structures when they provide clear performance benefits
- Profile performance bottlenecks before optimizing
- Handle errors with exceptions and proper error levels
- Write self-documenting code with meaningful names
- 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. '
人気
- GitHubのスター
- 48k
- ランキング
- #5440
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
api-connector-builder
280kエージェントが既存のパターンに従って、新しいAPI連携を構築します。新しい方式を作らずに、もう一つ連携を追加したいときに使います。
api-design
280kエージェントがベストプラクティスに沿ってREST APIを設計できるようにします。APIの通信方法、エラーの表示方法、データの整理方法を決めるのに役立ちます。
backend-patterns
280kエージェントのサーバーサイドのアーキテクチャパターンとデータベースの最適化を支援します。サーバー上で動くコードを作成またはレビューするときに役立ちます。