원클릭으로
code-conventions
Takdi 프로젝트의 코드 구조 컨벤션 — 이름 매핑, 폴더 문서화, 파일 헤더.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Takdi 프로젝트의 코드 구조 컨벤션 — 이름 매핑, 폴더 문서화, 파일 헤더.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Sync status docs after implementation milestones.
10-step checklist for adding a new block type to the compose editor.
Drag, selection, keyboard, and inline editing patterns for the compose editor.
Unified image/asset upload pattern for the compose editor.
Keep API routes and type contracts synchronized with docs.
Protect usage accounting behavior for generation and export events.
| name | code-conventions |
| description | Takdi 프로젝트의 코드 구조 컨벤션 — 이름 매핑, 폴더 문서화, 파일 헤더. |
API 라우트의 마지막 경로 세그먼트와 프론트엔드 컴포넌트 폴더명을 일치시킨다.
API route → Component folder
src/app/api/projects/[id]/generate/ → src/components/generate/
src/app/api/projects/[id]/generate-images/ → src/components/generate-images/
src/app/api/projects/[id]/export/ → src/components/export/
src/app/api/projects/[id]/remotion/render/ → src/components/remotion/ (or editor/remotion-*)
src/app/api/projects/[id]/assets/ → src/components/assets/
src/app/api/projects/[id]/bgm/ → src/components/bgm/
에디터 페이지는 여러 API를 조합하므로, src/components/editor/ 폴더 내 파일명에 API 세그먼트를 반영:
src/components/editor/generate-panel.tsx → /api/projects/:id/generate 호출
src/components/editor/assets-panel.tsx → /api/projects/:id/assets 호출
src/components/editor/export-action.tsx → /api/projects/:id/export 호출
1:1 매핑이 가능한 경우 페이지 경로도 일치:
API: /api/projects/[id]/generate
Page: /projects/[id]/editor (generate는 editor 내 기능)
API: /api/projects/[id]/remotion/preview
Page: /projects/[id]/preview
모든 주요 폴더에 CLAUDE.md를 배치하여 폴더의 목적과 파일 목록을 문서화한다.
# folder-name/
(이 폴더의 존재 이유 1줄)
## Files
- `file-a.tsx` — 간단 설명
- `file-b.tsx` — 간단 설명
## Convention
- (이 폴더 내 파일이 따라야 할 규칙)
src/components/, src/lib/, src/services/, src/app/ 하위 주요 폴더에 배치..gitkeep만 있으면 스킵).모든 새 파일의 첫 줄에 JSDoc 형식으로 파일 설명을 추가한다.
/** 프로젝트 상태를 시각적으로 표시하는 배지 컴포넌트 */
/** ... */ 형식.*.test.ts, *.spec.ts, __tests__/): JSDoc 헤더 생략 가능*.config.ts, *.config.js): JSDoc 헤더 생략 가능*.d.ts): JSDoc 헤더 생략 가능