php-expert

Analyzes FacturaScripts PHP code for PSR-12 compliance and Tools class usage using PHPStan and CS-Check.

7|2|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/FacturaScripts/fs-claude-plugin --skill php-expert-facturascripts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-expert
Source: https://github.com/FacturaScripts/fs-claude-plugin/tree/main/fs-dev/skills/php-expert
Command: npx skills add https://github.com/FacturaScripts/fs-claude-plugin --skill php-expert-facturascripts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps to write idiomatic and high-quality PHP code in FacturaScripts by adhering to specific PHP 8.0+ patterns, PSR-12 compliance, and utilizing the Tools class effectively.

Core Features & Use Cases

  • PHP Patterns: Implements PHP 8.0+ patterns specific to the FacturaScripts framework.
  • Code Quality: Ensures compliance with PSR-12 standards and utilizes PHPStan and CS-Check for quality checks.
  • Tools Class: Provides guidance on the correct usage of the Tools class.
  • Refactoring: Assists in refactoring code to adhere to FacturaScripts conventions.
  • Error Resolution: Helps in resolving errors and analyzing code quality.

Quick Start

Use the php-expert agent to analyze your PHP code for FacturaScripts compliance.

Frequently Asked Questions about php-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I ensure my PHP code adheres to FacturaScripts coding conventions?

To ensure PHP code adheres to FacturaScripts coding conventions, analyze your scripts for PSR-12 compliance, PHP 8.0+ pattern implementation, and correct Tools class usage. This agent provides automated quality checks and targeted refactoring guidance.

What is the best way to refactor PHP code for FacturaScripts compliance?

The best way to refactor PHP for FacturaScripts compliance is by applying PHP 8.0+ patterns and utilizing the Tools class correctly. This agent analyzes your codebase to identify convention violations and provides specific refactoring steps.

Does this agent check FacturaScripts code against PSR-12 standards?

Yes, this agent checks FacturaScripts PHP code against PSR-12 standards. It utilizes PHPStan and CS-Check to perform comprehensive quality assurance, ensuring your scripts meet strict formatting and structural guidelines.

How do I resolve PHPStan errors in my FacturaScripts plugins?

To resolve PHPStan errors in FacturaScripts plugins, use this agent to analyze the flagged code for convention deviations. It provides guidance on fixing structural issues and refactoring to the correct PHP 8.0+ patterns and Tools class implementations.

Can I use this agent to analyze FacturaScripts code written in older PHP versions?

This agent is designed for PHP 8.0+ patterns specific to the FacturaScripts framework. Code written in older PHP versions should be refactored to meet modern PHP 8.0+ standards before this agent can provide accurate compliance analysis.

Why does my FacturaScripts code fail CS-Check quality checks?

FacturaScripts code fails CS-Check quality checks when it deviates from PSR-12 standards or ignores specific framework patterns. This agent identifies these exact convention violations and provides targeted refactoring steps to resolve them.