constants

Installation
SKILL.md

Constants Organization Patterns

Core Principles

Organize constants in feature-level constants.ts files. Use SCREAMING_SNAKE_CASE for primitive constants, PascalCase for grouped constant objects, and always add as const for type safety and literal types.

Why: Centralized constants prevent magic numbers, improve maintainability, enable easy updates, and provide type-safe access to configuration values.

When to Use This Skill

Use these patterns when:

Installs
1
GitHub Stars
3
First Seen
Apr 22, 2026