Check PHP/Space-Utils Coding Standards

Verify PHP code against Space-Utils coding standards and detect anti-patterns.

3|1|Updated Apr 18, 2021
One-click install
npx skills add https://github.com/nashgao/mqtt-client --skill check-php-space-utils-coding-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Check PHP/Space-Utils Coding Standards
Source: https://github.com/nashgao/mqtt-client/tree/main/.claude/skills/checkstandards
Command: npx skills add https://github.com/nashgao/mqtt-client --skill check-php-space-utils-coding-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers quickly verify their PHP code against established coding standards, ensuring consistency and quality.

Core Features & Use Cases

  • Standards Verification: Checks code against specific rules for simplicity, type safety, and function usage.
  • Anti-Pattern Detection: Identifies common code smells and anti-patterns.
  • Automated Fixing: Provides a command to automatically fix some identified issues.
  • Use Case: Before committing a new PHP feature, run this Skill to ensure it adheres to the project's coding guidelines, preventing potential integration issues.

Quick Start

Run the checkstandards skill with the 'all' topic to perform a complete standards check on your PHP code.

Frequently Asked Questions about Check PHP/Space-Utils Coding Standards

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

FAQPage Schema
How do I check my PHP code against coding standards?

To check PHP code against coding standards, you can run a verification skill that analyzes your files for simplicity, type safety, and proper function usage. It detects anti-patterns and provides automated fixing tools to resolve issues.

What are common PHP anti-patterns detected during code validation?

PHP code validation detects anti-patterns related to simplicity, type safety, and improper function usage. Identifying these code smells early helps maintain consistency and prevents potential integration issues before committing new features.

Can I automatically fix PHP coding standard violations?

Yes, you can automatically fix PHP coding standard violations. The validation process includes an automated fixing command that resolves some of the identified issues, helping you quickly adhere to project coding guidelines without manual refactoring.

Do I need to set environment variables for PHP code validation?

Yes, PHP code validation requires the SPACE_UTILS_PATH environment variable to be set. This environment variable is necessary for the validation tool to correctly reference the established coding standards and automated fixing tools.

When should I run a PHP coding standards check?

You should run a PHP coding standards check before committing a new feature or completing a refactoring task. Verifying your code early ensures it adheres to project guidelines, maintaining code quality and preventing integration problems.