Saltar al contenido
Skillpedia
APIs y servidores (backend)48 mil · #5440

php-pro

Qué hace

Este agente de IA te ayuda a escribir código PHP moderno y eficiente. Se centra en optimizar el uso de memoria y la velocidad del programa, aprovechando las funciones avanzadas de PHP.

Cuándo usarla

  • ✓Cuando creas programas en PHP que deben procesar grandes cantidades de datos sin fallar.
  • ✓Cuando quieres aplicar buenas prácticas y las últimas funciones de PHP.
  • ✓Cuando necesitas mejorar la velocidad y el consumo de memoria de tu código PHP.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/php-pro/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Revisa este código PHP para asegurarte de que sea rápido, use poca memoria y siga las buenas prácticas.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

Entiende funciones avanzadas de PHP, como los generadores y las estructuras de datos especiales, para crear código que funcione bien y sea fácil de mantener. Siempre prefiere las herramientas que vienen integradas en PHP.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes

¿Qué son los 'generadores' e 'iteradores'?

Son formas de procesar los datos poco a poco, en lugar de cargarlos todos en memoria a la vez, lo que ahorra mucha memoria cuando hay grandes cantidades de datos.

¿Qué son las 'estructuras de datos SPL'?

Son herramientas ya incluidas en PHP para organizar datos de forma eficiente, como colas y pilas, que pueden ser más rápidas que los métodos tradicionales.

¿Qué significa 'código idiomático'?

Significa escribir código que sigue las convenciones y el estilo más habituales y recomendados para el lenguaje PHP, lo que facilita que otros programadores lo entiendan.

Detalles

Descripción original del autor

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

Popularidad

Estrellas en GitHub
48 mil
Posición en el ranking
#5440
Licencia
MIT
Actualizada
15/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas