php-coding-standards

Enforce Nette PHP coding standards with on-save checks.

41|4|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/nette/claude-code --skill php-coding-standards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-coding-standards
Source: https://github.com/nette/claude-code/tree/main/plugins/nette-dev/skills/php-coding-standards
Command: npx skills add https://github.com/nette/claude-code --skill php-coding-standards

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces Nette PHP coding standards and naming conventions across your codebase, ensuring consistent, maintainable PHP code.

Core Features & Use Cases

  • Standardized PHP coding practices: Enforces strict types, naming conventions, and formatting guidelines for all PHP files.
  • On-save validation and onboarding: Quick feedback during development and easier code reviews.
  • Team consistency and quality: Reduces cognitive load when switching between modules or contributors.

Quick Start

Install the nette coding standard globally using the /install-nette-cs command. After installation, PHP files are automatically checked when edited. Do not run ecs manually.

Frequently Asked Questions about php-coding-standards

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

FAQPage Schema
How do I enforce PHP coding standards automatically when saving files?

To enforce PHP coding standards automatically on save, install the nette coding standard globally via the /install-nette-cs command. Once installed, PHP files are automatically checked when edited, providing immediate validation without running ecs manually.

What is the best way to maintain consistent naming conventions in a Nette framework project?

The best way to maintain consistent naming conventions in a Nette framework project is to apply Nette PHP coding standards. This enforces strict types, naming conventions, and formatting guidelines across your codebase, ensuring maintainable PHP code.

Does this coding standard check require manually running ecs to validate PHP files?

No, you do not need to run ecs manually. After installing the nette coding standard globally, the Skill performs on-save checks to ensure rules are followed automatically whenever PHP files are edited.

How do Nette coding standards improve team consistency during code reviews?

Nette coding standards improve team consistency by enforcing strict formatting and documentation rules across all PHP files. This reduces cognitive load when switching between modules or contributors, leading to easier code reviews and onboarding.

Can I use Nette coding standards for PHP projects that need strict type enforcement?

Yes, Nette coding standards are designed for PHP projects requiring strict type enforcement. It applies standardized coding practices to enforce strict types, naming conventions, and formatting guidelines for all PHP files.

What are the limitations of relying on on-save validation for PHP code quality?

On-save validation provides quick feedback during development but requires the nette/coding-standard tooling to be installed globally. It focuses on applying Nette rules to ensure consistency rather than running standalone manual linting commands.