naming-convention-enforcer

Enforce naming conventions for files, components, variables, constants, hooks, and handlers.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/mouayadakel/flixCamFinal --skill naming-convention-enforcer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: naming-convention-enforcer
Source: https://github.com/mouayadakel/flixCamFinal/tree/main/.cursor/skills/naming-convention-enforcer
Command: npx skills add https://github.com/mouayadakel/flixCamFinal --skill naming-convention-enforcer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that all code elements—files, components, variables, constants, hooks, and handlers—adhere to a strict and consistent naming convention, improving code readability and maintainability.

Core Features & Use Cases

  • File Naming: Enforces kebab-case for all files.
  • Code Element Naming: Enforces PascalCase for components, camelCase for variables/functions, SCREAMING_SNAKE_CASE for constants, use* for hooks, and handle*/on* for event handlers.
  • Boolean Naming: Enforces is*, has*, can*, should* prefixes for boolean variables.
  • Use Case: When creating a new React component, this Skill will ensure it's named MyNewComponent.tsx and any related variables like myNewComponentCount follow the correct casing.

Quick Start

Use the naming-convention-enforcer skill to suggest a correct name for a new variable that stores the user's authentication status.

Frequently Asked Questions about naming-convention-enforcer

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

FAQPage Schema
How do I enforce consistent naming conventions across my code files and variables?

You can enforce consistent naming conventions by applying specific casing rules to different code constructs, such as using kebab-case for files, camelCase for variables, and PascalCase for components. This ensures uniformity during both new code creation and refactoring.

What is the correct naming convention for React hooks and event handlers?

The correct naming convention for React hooks and event handlers requires using the use* prefix for hooks and the handle* or on* prefix for event handlers. This maintains uniformity and improves code readability across your components.

How do I name boolean variables to follow strict coding standards?

To follow strict coding standards for boolean variables, you should use is*, has*, can*, or should* prefixes. Enforcing these prefixes ensures that boolean states are immediately recognizable and improves overall code maintainability.

What casing should I use for constants and component files when refactoring code?

When refactoring code, you should use SCREAMING_SNAKE_CASE for constants and PascalCase for components, while ensuring all files use kebab-case. Applying these specific casing rules maintains uniformity across your codebase.

Can I apply code style rules to existing code during a refactoring task?

Yes, you can apply code style rules to existing code during a refactoring task. The naming convention enforcement applies to both new code creation and existing code refactoring to maintain strict uniformity across all code elements.

Why does consistent code style improve readability in software engineering?

Consistent code style improves readability in software engineering by ensuring all elements adhere to strict casing rules for files, components, variables, and constants. This uniformity makes the codebase easier to understand and maintain.