constant-naming-convention

Standardize TypeScript constant identifiers with uppercase names and lowercase object keys.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/Suriya-Kodehode/Angular --skill constant-naming-convention
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: constant-naming-convention
Source: https://github.com/Suriya-Kodehode/Angular/tree/main/.github/skills/constant-naming-convention
Command: npx skills add https://github.com/Suriya-Kodehode/Angular --skill constant-naming-convention

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams standardize constant naming in TypeScript and Angular code, reducing inconsistent identifiers and making code easier to read and maintain.

Core Features & Use Cases

  • Constant Naming Guidance: Uses concise ALL_UPPERCASE identifiers for fixed values and enum-like constants.
  • Object and Map Conventions: Preserves lowercase runtime keys inside constant objects for routes, statuses, and lookups.
  • Angular/TypeScript Usage: Supports consistent naming for feature flags, DI tokens, ports, delays, and other shared constants.

Quick Start

Apply the constant-naming-convention skill to rewrite my TypeScript constants with short uppercase names and lowercase object keys where appropriate.

Frequently Asked Questions about constant-naming-convention

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

FAQPage Schema
What is the standard naming convention for TypeScript constants in Angular?

The standard naming convention for TypeScript constants uses concise ALL_UPPERCASE identifiers for fixed compile-time values, while preserving lowercase runtime keys inside constant objects for routes, statuses, and lookups to maintain code readability.

How do I format enum-like constants and lookup maps in an Angular codebase?

To format enum-like constants and lookup maps in Angular, use short uppercase identifiers for the constant itself and lowercase keys for the runtime object properties, ensuring consistent casing for maintainable code style.

Should object keys inside a TypeScript constant be uppercase or lowercase?

Object keys inside a TypeScript constant should be lowercase at runtime, even when the constant identifier itself is uppercase, to preserve consistent casing for configuration values, lookup maps, and route statuses.

Does this constant naming approach apply to Angular dependency injection tokens and feature flags?

Yes, this constant naming approach applies to Angular dependency injection tokens and feature flags, requiring short descriptive uppercase names for these shared constants to ensure repository-local frontend maintainability.

Why use uppercase for compile-time constants but lowercase for runtime object keys in TypeScript?

Using uppercase for compile-time constants and lowercase for runtime object keys in TypeScript distinguishes fixed values from dynamic properties, reducing inconsistent identifiers and making Angular feature flags and configuration objects easier to read.