variables-rule

Standardize variable, constant, and class naming across a codebase.

1|Updated Dec 15, 2025
One-click install
npx skills add https://github.com/uchidayuma/sales-management-laravel-portfolio --skill variables-rule
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: variables-rule
Source: https://github.com/uchidayuma/sales-management-laravel-portfolio/tree/main/.claude/skills/variables-rule
Command: npx skills add https://github.com/uchidayuma/sales-management-laravel-portfolio --skill variables-rule

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

このスキルは、プロジェクト全体の変数名・定数名・クラス名の命名規則を統一し、コードの可読性と保守性を向上させます。

Core Features & Use Cases

  • 変数名を camelCase、定数を UPPER_SNAKE_CASE、クラス名を PascalCase に統一するルールを提供
  • 複数言語が混在するプロジェクトや、複数の貢献者がいる環境でも命名規則を適用できるガバナンスを提供
  • 既存コードへのリファクタリング時にも、規則に沿った命名へ段階的に適用をサポート

Quick Start

サンプルファイルに対して、変数名を camelCase、定数を UPPER_SNAKE_CASE、クラス名を PascalCase に命名規則を適用してください。

Frequently Asked Questions about variables-rule

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

FAQPage Schema
How do I enforce naming conventions for variables, constants, and classes across a codebase?

You can enforce naming conventions by applying standardized rules: variables use camelCase, constants use UPPER_SNAKE_CASE, and classes use PascalCase. This standardizes mixed-language projects and improves code readability and maintainability.

What is the best way to standardize code style in a project with multiple contributors and mixed languages?

Standardizing code style in mixed-language projects requires governance rules that specify camelCase for variables, UPPER_SNAKE_CASE for constants, and PascalCase for classes. This aligns naming conventions across all new and existing modules from multiple contributors.

Can I apply naming conventions to existing modules during a refactoring process?

Yes, you can apply naming conventions to existing modules during refactoring. The governance rules support phased application, gradually updating existing variable, constant, and class names to match common language conventions.

What are the standard naming conventions for improving code consistency in software engineering?

Standard naming conventions for code consistency dictate using camelCase for variables, UPPER_SNAKE_CASE for constants, and PascalCase for classes. Applying these rules aligns your codebase with common language conventions.

How do I start applying code style rules to a sample file?

To start applying code style rules, process a sample file by enforcing variables to camelCase, constants to UPPER_SNAKE_CASE, and classes to PascalCase. This immediately standardizes naming conventions within the target file.