domain-constants-config
Manage centralized domain constants and configuration in the project. Use when adding new status types, modifying UI labels, updating color schemes, or creating configuration objects for domain entities.
When & Why to Use This Skill
The Domain Constants Config skill is designed to streamline project architecture by centralizing domain-specific constants and configurations. It provides a structured approach to managing status types, UI labels, and color schemes, ensuring code consistency and reducing technical debt. By acting as a single source of truth for configuration objects, this skill helps developers maintain a clean codebase and accelerate the implementation of global UI or logic changes.
Use Cases
- Standardizing Status Workflows: Quickly add or modify domain status types (e.g., 'Pending', 'In Review') along with their associated UI labels and Tailwind CSS color classes.
- Global UI Theme Updates: Update project-wide color schemes and visual constants from a centralized configuration file to ensure design consistency across all screens.
- Configuration Centralization: Consolidate scattered configuration objects and hardcoded strings into a unified directory structure (e.g., app/screen/config/constants.ts).
- UI Label & Microcopy Management: Manage and synchronize UI text and labels across different modules to maintain a professional and consistent user experience.
| name | domain-constants-config |
|---|---|
| description | Manage centralized domain constants and configuration in the project. Use when adding new status types, modifying UI labels, updating color schemes, or creating configuration objects for domain entities. |
Domain Constants Config
프로젝트의 도메인 상수 및 설정을 중앙 관리하는 스킬입니다.
Quick Reference
상수 위치
app/screen/[prefix]/config/constants.ts ← 메인 상수 파일
상태 설정 구조
const STATUS_CONFIG = {
'Reviewing': {
label: '검토중',
color: 'text-yellow-700',
bgColor: 'bg-yellow-100'
}
// ...
};
Contents
- reference.md - 도메인 상수 전체 목록 및 가이드
- guide.md - 새 상수 추가 및 수정 패턴
When to Use
- 새 상태(Status) 또는 진행 단계(Progress) 추가 시
- UI 라벨 또는 색상 수정 시
- 스크린 접두사(Prefix) 추가 시
- 설정 객체가 여러 파일에 분산되어 있을 때 통합 시