Global Coding Style

Enforce consistent coding style across PHP, JavaScript, TypeScript, Vue, and React codebases.

Updated Oct 31, 2025
One-click install
npx skills add https://github.com/FlorianRiquelme/statamic-assets --skill global-coding-style-florianriquelme
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Global Coding Style
Source: https://github.com/FlorianRiquelme/statamic-assets/tree/main/.claude/skills/global-coding-style
Command: npx skills add https://github.com/FlorianRiquelme/statamic-assets --skill global-coding-style-florianriquelme

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures all code adheres to a consistent style, improving readability, reducing cognitive load for developers, and simplifying code reviews and maintenance across the entire codebase.

Core Features & Use Cases

  • Consistent Naming: Guides meaningful, descriptive names for variables, functions, classes, and files.
  • Automated Formatting: Promotes tools for consistent indentation, spacing, and overall code layout.
  • Use Case: When writing a new function, this skill ensures it's small, focused, uses descriptive names, and follows the project's established formatting rules (e.g., PSR-12 for PHP), making it instantly understandable to any team member.

Quick Start

Refactor the attached PHP function to improve readability, apply consistent naming conventions, and ensure it adheres to PSR-12 coding standards.

Frequently Asked Questions about Global Coding Style

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

FAQPage Schema
How do I enforce consistent coding style across my PHP and JavaScript project?

Enforce consistent coding style by establishing naming conventions, automated formatting rules, and adherence to standards like PSR-12 for PHP. Apply these standards across all files—variables, functions, classes—to improve readability and reduce cognitive load during code reviews.

What's the best way to refactor code for better readability and maintainability?

Refactor by applying consistent naming conventions, removing dead code, breaking large functions into small focused ones, ensuring proper indentation, and adhering to DRY principles. This makes code instantly understandable to all team members and simplifies maintenance.

Can I use coding style enforcement with Vue and React projects?

Yes, global coding style applies across PHP, JavaScript, TypeScript, Vue, React, CSS, and other project languages. Enforce consistent naming, formatting, and structure across your entire tech stack for uniform code quality.

How do I remove unused code and maintain DRY principles while keeping backward compatibility?

Apply dead code removal systematically while preserving backward-compatible interfaces. Follow DRY principles by eliminating duplication, using descriptive identifiers, and organizing file structures consistently across the codebase.

Why does inconsistent naming and formatting slow down code reviews?

Inconsistent style forces reviewers to parse varying conventions, increasing cognitive load and review time. Enforcing global coding standards ensures all developers use the same naming patterns, indentation, and structure, making reviews faster and more focused on logic.

Do I need automated formatting tools to maintain coding style across a large team?

Automated formatting tools ensure consistent indentation, spacing, and layout without manual effort. They enforce standards like PSR-12 across the codebase reliably, reducing style-related review comments and allowing teams to focus on meaningful feedback.