@choblue/claude-code-toolkit 1.2.5 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/.claude/.project-map-cache +1 -1
  2. package/.claude/CLAUDE.md +80 -18
  3. package/.claude/hooks/prompt-hook.sh +4 -4
  4. package/.claude/prompts/feature.md +11 -0
  5. package/.claude/prompts/fix.md +11 -0
  6. package/.claude/prompts/review.md +7 -0
  7. package/.claude/skills/Coding/SKILL.md +5 -4
  8. package/.claude/skills/Curation/SKILL.md +36 -0
  9. package/.claude/skills/FailureRecovery/SKILL.md +47 -0
  10. package/.claude/skills/{Coding/backend.md → NestJS/SKILL.md} +7 -2
  11. package/.claude/skills/NextJS/SKILL.md +13 -303
  12. package/.claude/skills/NextJS/references/data-fetching.md +96 -0
  13. package/.claude/skills/NextJS/references/middleware-actions.md +74 -0
  14. package/.claude/skills/NextJS/references/optimization.md +127 -0
  15. package/.claude/skills/Planning/SKILL.md +30 -7
  16. package/.claude/skills/React/SKILL.md +25 -287
  17. package/.claude/skills/React/references/a11y-ux.md +134 -0
  18. package/.claude/skills/React/references/rendering-patterns.md +62 -0
  19. package/.claude/skills/React/references/state-hooks.md +73 -0
  20. package/.claude/skills/ReactHookForm/SKILL.md +8 -196
  21. package/.claude/skills/ReactHookForm/references/advanced-patterns.md +193 -0
  22. package/.claude/skills/TDD/SKILL.md +2 -2
  23. package/.claude/skills/TailwindCSS/SKILL.md +14 -240
  24. package/.claude/skills/TailwindCSS/references/patterns-components.md +93 -0
  25. package/.claude/skills/TailwindCSS/references/responsive-dark.md +102 -0
  26. package/.claude/skills/TailwindCSS/references/transitions.md +33 -0
  27. package/README.md +25 -12
  28. package/package.json +1 -1
  29. package/.claude/skills/Coding/frontend.md +0 -11
  30. /package/.claude/skills/TDD/{backend.md → references/backend.md} +0 -0
  31. /package/.claude/skills/TDD/{frontend.md → references/frontend.md} +0 -0
@@ -0,0 +1,93 @@
1
+ # 자주 쓰는 패턴 & 컴포넌트 추출
2
+
3
+ ## 자주 쓰는 패턴
4
+
5
+ ### Flexbox 레이아웃
6
+ ```typescript
7
+ // 가로 정렬 (중앙)
8
+ <div className="flex items-center justify-center">
9
+
10
+ // 가로 정렬 (양쪽 분산)
11
+ <div className="flex items-center justify-between">
12
+
13
+ // 세로 정렬
14
+ <div className="flex flex-col gap-4">
15
+
16
+ // 자식 요소 간격
17
+ <div className="flex gap-2">
18
+ ```
19
+
20
+ ### Grid 레이아웃
21
+ ```typescript
22
+ // 반응형 그리드
23
+ <div className="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3">
24
+
25
+ // 고정 비율 그리드
26
+ <div className="grid grid-cols-[1fr_2fr] gap-4">
27
+
28
+ // 사이드바 레이아웃
29
+ <div className="grid grid-cols-[240px_1fr] gap-8">
30
+ ```
31
+
32
+ ### Spacing 패턴
33
+ ```typescript
34
+ // 섹션 간격
35
+ <section className="py-12 md:py-16 lg:py-20">
36
+
37
+ // 컨테이너
38
+ <div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
39
+
40
+ // 카드
41
+ <div className="rounded-lg border p-6 shadow-sm">
42
+ ```
43
+
44
+ ### Typography 패턴
45
+ ```typescript
46
+ // 텍스트 말줄임
47
+ <p className="truncate">긴 텍스트...</p>
48
+
49
+ // 여러 줄 말줄임
50
+ <p className="line-clamp-3">긴 텍스트...</p>
51
+
52
+ // 반응형 텍스트
53
+ <h1 className="text-2xl font-bold tracking-tight md:text-4xl">
54
+ ```
55
+
56
+ ---
57
+
58
+ ## 컴포넌트 추출
59
+
60
+ ### 반복 클래스 처리
61
+ - 동일한 클래스 조합이 3회 이상 반복되면 컴포넌트로 추출한다
62
+ - `@apply`보다 컴포넌트 추출을 우선한다
63
+
64
+ ```typescript
65
+ // Bad - 동일한 클래스 반복
66
+ <button className="rounded-lg bg-blue-600 px-4 py-2 text-white hover:bg-blue-700">저장</button>
67
+ <button className="rounded-lg bg-blue-600 px-4 py-2 text-white hover:bg-blue-700">확인</button>
68
+ <button className="rounded-lg bg-blue-600 px-4 py-2 text-white hover:bg-blue-700">전송</button>
69
+
70
+ // Good - 컴포넌트로 추출
71
+ <Button>저장</Button>
72
+ <Button>확인</Button>
73
+ <Button>전송</Button>
74
+ ```
75
+
76
+ ### @apply 사용 (제한적 허용)
77
+ - 컴포넌트 추출이 어려운 경우에만 `@apply`를 사용한다
78
+ - 주로 base layer의 글로벌 스타일에서 사용한다
79
+ - v4에서도 `@apply`는 지원되지만, 여전히 컴포넌트 추출을 우선한다
80
+
81
+ ```css
82
+ /* 허용 - 글로벌 기본 스타일 */
83
+ @layer base {
84
+ body {
85
+ @apply bg-background text-foreground;
86
+ }
87
+ }
88
+
89
+ /* 지양 - 컴포넌트 스타일을 @apply로 작성 */
90
+ .btn-primary {
91
+ @apply rounded-lg bg-blue-600 px-4 py-2 text-white hover:bg-blue-700;
92
+ }
93
+ ```
@@ -0,0 +1,102 @@
1
+ # 반응형 디자인, 다크 모드, 커스텀 설정
2
+
3
+ ## 반응형 디자인
4
+
5
+ ### 브레이크포인트
6
+ | 접두사 | 최소 너비 | 용도 |
7
+ |--------|-----------|------|
8
+ | (없음) | 0px | 모바일 기본 |
9
+ | `sm:` | 640px | 소형 태블릿 |
10
+ | `md:` | 768px | 태블릿 |
11
+ | `lg:` | 1024px | 데스크톱 |
12
+ | `xl:` | 1280px | 대형 데스크톱 |
13
+ | `2xl:` | 1536px | 초대형 데스크톱 |
14
+
15
+ ### Mobile-First 원칙
16
+ - 모바일 스타일을 기본으로 작성하고, 큰 화면에 대해 재정의한다
17
+
18
+ ```typescript
19
+ // Good - Mobile-First
20
+ <div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">
21
+ {items.map((item) => (
22
+ <Card key={item.id} data={item} />
23
+ ))}
24
+ </div>
25
+
26
+ // Good - 반응형 타이포그래피
27
+ <h1 className="text-2xl font-bold md:text-3xl lg:text-4xl">
28
+ 제목
29
+ </h1>
30
+ ```
31
+
32
+ ---
33
+
34
+ ## 다크 모드
35
+
36
+ ### dark: prefix 사용
37
+ - `dark:` 접두사로 다크 모드 스타일을 정의한다
38
+ - v4에서는 기본적으로 `prefers-color-scheme` 미디어 쿼리로 동작한다
39
+ - 수동 토글(class 전략)이 필요하면 CSS에서 `@custom-variant`를 설정한다
40
+
41
+ ```css
42
+ /* app.css - 수동 다크 모드 토글 시 */
43
+ @import "tailwindcss";
44
+ @custom-variant dark (&:where(.dark, .dark *));
45
+ ```
46
+
47
+ ```typescript
48
+ // 컴포넌트에서 사용
49
+ <div className="bg-white text-gray-900 dark:bg-gray-900 dark:text-white">
50
+ <p className="text-gray-600 dark:text-gray-300">
51
+ 라이트/다크 모드를 지원하는 텍스트
52
+ </p>
53
+ </div>
54
+ ```
55
+
56
+ ### 시맨틱 색상 활용
57
+ - 반복되는 라이트/다크 색상 조합은 `@theme`과 CSS 변수로 추출한다
58
+
59
+ ```css
60
+ /* app.css */
61
+ @import "tailwindcss";
62
+
63
+ @theme {
64
+ --color-background: #ffffff;
65
+ --color-foreground: #0a0a0a;
66
+ }
67
+
68
+ .dark {
69
+ --color-background: #0a0a0a;
70
+ --color-foreground: #fafafa;
71
+ }
72
+ ```
73
+
74
+ ---
75
+
76
+ ## 커스텀 설정
77
+
78
+ ### @theme 디렉티브 사용
79
+ - CSS 파일에서 `@theme` 디렉티브로 디자인 토큰을 정의한다
80
+ - v4에서는 `tailwind.config.ts`가 불필요하다. 모든 커스텀 설정은 CSS의 `@theme`에서 정의한다
81
+ - v4는 콘텐츠 파일을 자동 감지하므로 `content` 배열 설정이 불필요하다
82
+
83
+ ```css
84
+ /* app.css */
85
+ @import "tailwindcss";
86
+
87
+ @theme {
88
+ --color-primary-50: #eff6ff;
89
+ --color-primary-100: #dbeafe;
90
+ --color-primary-500: #3b82f6;
91
+ --color-primary-600: #2563eb;
92
+ --color-primary-700: #1d4ed8;
93
+ --color-success: #10b981;
94
+ --color-warning: #f59e0b;
95
+ --color-danger: #ef4444;
96
+
97
+ --spacing-18: 4.5rem;
98
+ --spacing-88: 22rem;
99
+
100
+ --font-sans: 'Inter', sans-serif;
101
+ }
102
+ ```
@@ -0,0 +1,33 @@
1
+ # 트랜지션 & 모션
2
+
3
+ ### transition 속성 명시
4
+ - `transition-all` 사용을 금지한다 - 변경되는 속성만 명시한다
5
+ - 불필요한 속성까지 트랜지션되면 성능이 저하된다
6
+
7
+ ```typescript
8
+ // Bad - 모든 속성에 트랜지션
9
+ <button className="transition-all">
10
+
11
+ // Good - 필요한 속성만
12
+ <button className="transition-colors">
13
+ <div className="transition-[transform,opacity]">
14
+ ```
15
+
16
+ ### prefers-reduced-motion 존중
17
+ - 애니메이션/트랜지션이 있는 요소에는 `motion-reduce:` 변형을 고려한다
18
+
19
+ ```typescript
20
+ // 모션 감소 선호 시 애니메이션 비활성화
21
+ <div className="animate-bounce motion-reduce:animate-none">
22
+ <div className="transition-transform motion-reduce:transition-none">
23
+ ```
24
+
25
+ ### 다크 모드 color-scheme
26
+ - 다크 모드 지원 시 `color-scheme: dark`를 설정하여 네이티브 UI(스크롤바, 입력 필드 등)도 다크 테마에 맞춘다
27
+
28
+ ```css
29
+ /* app.css */
30
+ .dark {
31
+ color-scheme: dark;
32
+ }
33
+ ```
package/README.md CHANGED
@@ -25,36 +25,49 @@
25
25
  │ └── git-manager.md ← Git 작업 (sonnet)
26
26
  ├── skills/
27
27
  │ ├── Coding/
28
- │ │ ├── SKILL.md ← 공통 코딩 원칙
29
- │ └── backend.md ← NestJS 코딩 규칙
28
+ │ │ └── SKILL.md ← 공통 코딩 원칙
29
+ ├── NestJS/
30
+ │ │ └── SKILL.md ← NestJS 백엔드 규칙
30
31
  │ ├── Planning/
31
32
  │ │ └── SKILL.md ← 작업 계획 (티어 판단, 작업 분해)
32
33
  │ ├── React/
33
- │ │ └── SKILL.md ← React 컴포넌트, 훅, 상태 관리
34
+ │ │ ├── SKILL.md ← React 핵심 규칙
35
+ │ │ └── references/ ← 상태/훅, 렌더링 패턴, 접근성/UX
34
36
  │ ├── NextJS/
35
- │ │ └── SKILL.md ← Next.js App Router, SSR
37
+ │ │ ├── SKILL.md ← Next.js App Router 핵심 규칙
38
+ │ │ └── references/ ← 데이터 페칭, 미들웨어, 최적화
36
39
  │ ├── TailwindCSS/
37
- │ │ └── SKILL.md ← Tailwind CSS 유틸리티 패턴
40
+ │ │ ├── SKILL.md ← Tailwind CSS 핵심 규칙
41
+ │ │ └── references/ ← 반응형/다크모드, 패턴, 트랜지션
38
42
  │ ├── TanStackQuery/
39
43
  │ │ └── SKILL.md ← TanStack Query 서버 상태
40
44
  │ ├── Zustand/
41
45
  │ │ └── SKILL.md ← Zustand 클라이언트 상태
42
46
  │ ├── ReactHookForm/
43
- │ │ └── SKILL.md ← React Hook Form + Zod
47
+ │ │ ├── SKILL.md ← React Hook Form 핵심 규칙
48
+ │ │ └── references/ ← Controller, 동적 필드, 중첩 스키마
44
49
  │ ├── TypeScript/
45
- │ │ └── SKILL.md ← TypeScript 고급 패턴
50
+ │ │ ├── SKILL.md ← TypeScript 고급 패턴
51
+ │ │ └── references/ ← 제네릭, 타입 가드, 고급 패턴
46
52
  │ ├── TypeORM/
47
53
  │ │ ├── SKILL.md ← TypeORM Entity, Repository
48
54
  │ │ └── references/ ← 고급 쿼리, 마이그레이션, 트랜잭션
49
55
  │ ├── DDD/
50
56
  │ │ ├── SKILL.md ← DDD 전술적 패턴
51
- │ │ └── references/ ← Entity/VO, Aggregate, Domain Event 심화
57
+ │ │ └── references/ ← Entity/VO, Aggregate, Domain Event
52
58
  │ ├── TDD/
53
59
  │ │ ├── SKILL.md ← TDD 핵심 원칙
54
- │ │ ├── frontend.md ← React 테스트 규칙
55
- │ └── backend.md ← NestJS 테스트 규칙
56
- │ └── Git/
57
- └── SKILL.md ← 커밋/PR/브랜치 규칙
60
+ │ │ └── references/ ← React 테스트, NestJS 테스트
61
+ ├── Git/
62
+ └── SKILL.md ← 커밋/PR/브랜치 규칙
63
+ ├── FailureRecovery/
64
+ │ │ └── SKILL.md ← 실패 복구 프로토콜
65
+ │ └── Curation/
66
+ │ └── SKILL.md ← AI 결과물 큐레이션 체크리스트
67
+ ├── prompts/
68
+ │ ├── feature.md ← /feature [기능명] 커스텀 커맨드
69
+ │ ├── fix.md ← /fix [증상] 커스텀 커맨드
70
+ │ └── review.md ← /review 커스텀 커맨드
58
71
  ├── hooks/
59
72
  │ ├── prompt-hook.sh ← 통합 hook (품질 체크 + 스킬 추천 + 구조 변경 감지)
60
73
  │ └── skill-keywords.conf ← 스킬별 키워드 매핑 설정
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@choblue/claude-code-toolkit",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "Claude Code 서브에이전트 위임 툴킷 - npx로 바로 설치",
5
5
  "bin": {
6
6
  "claude-code-toolkit": "bin/cli.js"
@@ -1,11 +0,0 @@
1
- # Coding Skill - Frontend
2
-
3
- > **이 파일은 더 이상 사용되지 않는다.**
4
- > 프론트엔드 규칙은 기술별 스킬 파일로 분리되었다.
5
-
6
- - `../React/SKILL.md` - React 컴포넌트, 훅, 상태 관리
7
- - `../NextJS/SKILL.md` - Next.js App Router, SSR, Server Actions
8
- - `../TailwindCSS/SKILL.md` - Tailwind CSS 유틸리티 패턴
9
- - `../TanStackQuery/SKILL.md` - 서버 상태 관리 (React Query)
10
- - `../Zustand/SKILL.md` - 클라이언트 전역 상태 관리
11
- - `../ReactHookForm/SKILL.md` - 폼 관리 + Zod 검증