Files
Pier_v1/.hmcmkit/knowledge/templates/shared/naming-conventions.md
T
ahnyongjooandClaude Sonnet 5.5 964a841de1 chore(rebar): Pier_T_rebar 작업 폴더 초기 구성 및 외부 의존 파일 통합
- Code\rebar_pipeline, review_pipeline, pier-program을 정션에서 실제 폴더로 전환
- Code\rhino_mcp 및 CLAUDE_rhino배경.md 추가, .mcp.json은 PYTHONPATH로 새 위치 사용
- pier-program 내부 .git 제거(이력은 backup\pier-program_20261028.bundle에 보관)
- worktree 가이드 반영(CLAUDE.local.md, HANDOFF.md)
- D:\Rhino-MCP 경로 참조를 새 위치로 치환

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-28 11:20:18 +09:00

1.9 KiB

Naming Conventions

Shared naming conventions for Skills and Agents

Usage: Add to frontmatter imports in SKILL.md or Agent.md

imports:
  - ${PLUGIN_ROOT}/templates/shared/naming-conventions.md

Code Naming

Category Convention Example
Components PascalCase UserProfile, LoginForm
Functions camelCase getUserById, validateInput
Constants UPPER_SNAKE_CASE MAX_RETRY_COUNT, API_BASE_URL
Variables camelCase userName, isLoading
Files kebab-case user-profile.tsx, api-client.js
CSS Classes kebab-case user-card, nav-menu
Database Tables snake_case user_profiles, order_items

File Structure Naming

src/
├── components/          # PascalCase
│   └── UserCard.tsx
├── hooks/               # camelCase with use- prefix
│   └── useAuth.ts
├── utils/               # camelCase
│   └── formatDate.ts
├── types/               # PascalCase
│   └── User.ts
└── api/                 # kebab-case
    └── user-api.ts

Environment Variables

Prefix Purpose Example
NEXT_PUBLIC_ Client-side (Next.js) NEXT_PUBLIC_API_URL
DB_ Database DB_HOST, DB_PORT
API_ External APIs API_KEY, API_SECRET
AUTH_ Authentication AUTH_SECRET, AUTH_PROVIDER
SMTP_ Email SMTP_HOST, SMTP_PORT
STORAGE_ File storage STORAGE_BUCKET

Boolean Naming

// Preferred prefixes for booleans
is   - isActive, isLoading, isValid
has  - hasPermission, hasError
can  - canEdit, canDelete
should - shouldRefresh, shouldValidate

Event Handler Naming

// Prefix with 'handle' or 'on'
handleClick    // internal handler
onClick        // prop passed to component
handleSubmit   // form submission
onSuccess      // callback prop