- 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>
69 lines
1.9 KiB
Markdown
69 lines
1.9 KiB
Markdown
# Naming Conventions
|
|
|
|
> Shared naming conventions for Skills and Agents
|
|
>
|
|
> Usage: Add to frontmatter imports in SKILL.md or Agent.md
|
|
> ```yaml
|
|
> 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
|
|
|
|
```javascript
|
|
// Preferred prefixes for booleans
|
|
is - isActive, isLoading, isValid
|
|
has - hasPermission, hasError
|
|
can - canEdit, canDelete
|
|
should - shouldRefresh, shouldValidate
|
|
```
|
|
|
|
## Event Handler Naming
|
|
|
|
```javascript
|
|
// Prefix with 'handle' or 'on'
|
|
handleClick // internal handler
|
|
onClick // prop passed to component
|
|
handleSubmit // form submission
|
|
onSuccess // callback prop
|
|
```
|