@kood/claude-code 0.4.1 → 0.5.0
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.
- package/dist/index.js +53 -7
- package/package.json +2 -1
- package/templates/.claude/PARALLEL_AGENTS.md +737 -0
- package/templates/.claude/agents/analyst.md +416 -0
- package/templates/.claude/agents/architect.md +569 -0
- package/templates/.claude/agents/code-reviewer.md +132 -133
- package/templates/.claude/agents/dependency-manager.md +93 -94
- package/templates/.claude/agents/deployment-validator.md +64 -65
- package/templates/.claude/agents/designer.md +655 -0
- package/templates/.claude/agents/document-writer.md +500 -0
- package/templates/.claude/agents/explore.md +499 -0
- package/templates/.claude/agents/git-operator.md +74 -75
- package/templates/.claude/agents/implementation-executor.md +138 -109
- package/templates/.claude/agents/ko-to-en-translator.md +18 -22
- package/templates/.claude/agents/lint-fixer.md +250 -93
- package/templates/.claude/agents/planner.md +356 -0
- package/templates/.claude/agents/refactor-advisor.md +135 -136
- package/templates/.claude/commands/bug-fix.md +296 -207
- package/templates/.claude/commands/git-all.md +199 -46
- package/templates/.claude/commands/git-session.md +113 -57
- package/templates/.claude/commands/lint-fix.md +219 -153
- package/templates/.claude/commands/lint-init.md +113 -76
- package/templates/.claude/commands/pre-deploy.md +190 -124
- package/templates/.claude/commands/refactor.md +407 -162
- package/templates/.claude/commands/version-update.md +138 -37
- package/templates/.claude/instructions/context-engineering/ANTHROPIC_CONTEXT_ENGINEERING.md +178 -0
- package/templates/.claude/instructions/context-engineering/references/claude-4x.md +215 -0
- package/templates/.claude/instructions/context-engineering/references/core-principles.md +137 -0
- package/templates/.claude/instructions/context-engineering/references/examples.md +351 -0
- package/templates/.claude/instructions/context-engineering/references/techniques.md +162 -0
- package/templates/.claude/instructions/parallel-agent-execution.md +874 -0
- package/templates/.claude/skills/docs-creator/AGENTS.md +238 -0
- package/templates/.claude/{commands/docs-creator.md → skills/docs-creator/SKILL.md} +61 -75
- package/templates/.claude/skills/docs-refactor/AGENTS.md +270 -0
- package/templates/.claude/{commands/docs-refactor.md → skills/docs-refactor/SKILL.md} +30 -44
- package/templates/.claude/skills/execute/SKILL.md +451 -0
- package/templates/.claude/skills/figma-to-code/AGENTS.md +287 -0
- package/templates/.claude/skills/figma-to-code/SKILL.md +225 -225
- package/templates/.claude/skills/figma-to-code/references/design-tokens.md +75 -73
- package/templates/.claude/skills/figma-to-code/references/figma-mcp-tools.md +73 -73
- package/templates/.claude/skills/figma-to-code/references/layout-mapping.md +104 -104
- package/templates/.claude/skills/figma-to-code/references/responsive-design.md +99 -99
- package/templates/.claude/skills/figma-to-code/references/verification.md +91 -91
- package/templates/.claude/skills/global-uiux-design/AGENTS.md +317 -0
- package/templates/.claude/skills/global-uiux-design/SKILL.md +738 -0
- package/templates/.claude/skills/global-uiux-design/references/accessibility.md +401 -0
- package/templates/.claude/skills/global-uiux-design/references/color-system.md +275 -0
- package/templates/.claude/skills/global-uiux-design/references/design-philosophy.md +206 -0
- package/templates/.claude/skills/global-uiux-design/references/design-systems.md +446 -0
- package/templates/.claude/skills/korea-uiux-design/AGENTS.md +307 -0
- package/templates/.claude/skills/korea-uiux-design/SKILL.md +170 -0
- package/templates/.claude/skills/nextjs-react-best-practices/AGENTS.md +95 -116
- package/templates/.claude/skills/nextjs-react-best-practices/SKILL.md +134 -152
- package/templates/.claude/skills/nextjs-react-best-practices/rules/advanced-event-handler-refs.md +6 -6
- package/templates/.claude/skills/nextjs-react-best-practices/rules/advanced-use-latest.md +5 -5
- package/templates/.claude/skills/nextjs-react-best-practices/rules/async-api-routes.md +5 -5
- package/templates/.claude/skills/nextjs-react-best-practices/rules/async-defer-await.md +22 -22
- package/templates/.claude/skills/nextjs-react-best-practices/rules/async-dependencies.md +5 -5
- package/templates/.claude/skills/nextjs-react-best-practices/rules/async-parallel.md +4 -4
- package/templates/.claude/skills/nextjs-react-best-practices/rules/async-suspense-boundaries.md +21 -21
- package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-barrel-imports.md +18 -18
- package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-conditional.md +4 -4
- package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-defer-third-party.md +4 -4
- package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-dynamic-imports.md +4 -4
- package/templates/.claude/skills/nextjs-react-best-practices/rules/bundle-preload.md +5 -5
- package/templates/.claude/skills/nextjs-react-best-practices/rules/client-event-listeners.md +9 -9
- package/templates/.claude/skills/nextjs-react-best-practices/rules/client-swr-dedup.md +7 -7
- package/templates/.claude/skills/nextjs-react-best-practices/rules/js-batch-dom-css.md +13 -13
- package/templates/.claude/skills/nextjs-react-best-practices/rules/js-cache-function-results.md +14 -14
- package/templates/.claude/skills/nextjs-react-best-practices/rules/js-cache-property-access.md +4 -4
- package/templates/.claude/skills/nextjs-react-best-practices/rules/js-cache-storage.md +10 -10
- package/templates/.claude/skills/nextjs-react-best-practices/rules/js-combine-iterations.md +4 -4
- package/templates/.claude/skills/nextjs-react-best-practices/rules/js-early-exit.md +7 -7
- package/templates/.claude/skills/nextjs-react-best-practices/rules/js-hoist-regexp.md +6 -6
- package/templates/.claude/skills/nextjs-react-best-practices/rules/js-index-maps.md +6 -6
- package/templates/.claude/skills/nextjs-react-best-practices/rules/js-length-check-first.md +14 -14
- package/templates/.claude/skills/nextjs-react-best-practices/rules/js-min-max-loop.md +16 -16
- package/templates/.claude/skills/nextjs-react-best-practices/rules/js-set-map-lookups.md +4 -4
- package/templates/.claude/skills/nextjs-react-best-practices/rules/js-tosorted-immutable.md +17 -17
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-activity.md +4 -4
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-animate-svg-wrapper.md +11 -11
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-conditional-render.md +8 -8
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-content-visibility.md +4 -4
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-hoist-jsx.md +6 -6
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-hydration-no-flicker.md +14 -14
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rendering-svg-precision.md +5 -5
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-defer-reads.md +4 -4
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-dependencies.md +7 -7
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-derived-state.md +5 -5
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-functional-setstate.md +34 -34
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-lazy-state-init.md +15 -15
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-memo.md +5 -5
- package/templates/.claude/skills/nextjs-react-best-practices/rules/rerender-transitions.md +4 -4
- package/templates/.claude/skills/nextjs-react-best-practices/rules/server-after-nonblocking.md +24 -24
- package/templates/.claude/skills/nextjs-react-best-practices/rules/server-cache-lru.md +10 -10
- package/templates/.claude/skills/nextjs-react-best-practices/rules/server-cache-react.md +4 -4
- package/templates/.claude/skills/nextjs-react-best-practices/rules/server-parallel-fetching.md +5 -5
- package/templates/.claude/skills/nextjs-react-best-practices/rules/server-serialization.md +6 -6
- package/templates/.claude/skills/plan/SKILL.md +594 -0
- package/templates/.claude/skills/prd/SKILL.md +496 -0
- package/templates/.claude/skills/ralph/AGENTS.md +393 -0
- package/templates/.claude/skills/ralph/SKILL.md +1035 -0
- package/templates/.claude/skills/tanstack-start-react-best-practices/AGENTS.md +100 -121
- package/templates/.claude/skills/tanstack-start-react-best-practices/SKILL.md +139 -157
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/async-defer-await.md +22 -22
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/async-dependencies.md +5 -5
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/async-loader.md +7 -7
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/async-parallel.md +4 -4
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-barrel-imports.md +18 -18
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-conditional.md +4 -4
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-defer-third-party.md +4 -4
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-lazy-routes.md +12 -12
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/bundle-preload.md +5 -5
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/client-event-listeners.md +9 -9
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/client-tanstack-query.md +12 -12
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-batch-dom-css.md +13 -13
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-cache-function-results.md +14 -14
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-cache-property-access.md +4 -4
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-cache-storage.md +10 -10
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-combine-iterations.md +4 -4
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-early-exit.md +7 -7
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-hoist-regexp.md +6 -6
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-index-maps.md +6 -6
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-length-check-first.md +14 -14
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-min-max-loop.md +16 -16
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-set-map-lookups.md +4 -4
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/js-tosorted-immutable.md +17 -17
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-animate-svg-wrapper.md +11 -11
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-conditional-render.md +8 -8
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-content-visibility.md +4 -4
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-hoist-jsx.md +6 -6
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rendering-svg-precision.md +5 -5
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-defer-reads.md +4 -4
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-dependencies.md +7 -7
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-derived-state.md +5 -5
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-functional-setstate.md +34 -34
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-lazy-state-init.md +15 -15
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-memo.md +5 -5
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/rerender-transitions.md +4 -4
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/server-cache-lru.md +12 -12
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/server-deferred-data.md +14 -14
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/server-parallel-fetching.md +9 -9
- package/templates/.claude/skills/tanstack-start-react-best-practices/rules/server-serialization.md +6 -6
- package/templates/.claude/commands/agent-creator.md +0 -370
- package/templates/.claude/commands/command-creator.md +0 -524
- package/templates/.claude/commands/execute.md +0 -469
- package/templates/.claude/commands/git.md +0 -98
- package/templates/.claude/commands/plan.md +0 -526
- package/templates/.claude/commands/prd.md +0 -629
|
@@ -1,38 +1,22 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: 배포 전 typecheck/lint/build 검증 및 수정. ultrathink + sequential thinking 필수 사용.
|
|
3
3
|
allowed-tools: Bash(tsc:*, npx:*, yarn:*, npm:*, pnpm:*), Read, Edit, mcp__sequential-thinking__sequentialthinking
|
|
4
|
-
argument-hint: [
|
|
4
|
+
argument-hint: [파일/디렉토리 경로...]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
<critical_instruction>
|
|
8
|
-
|
|
9
|
-
**CRITICAL: 사용자와의 모든 커뮤니케이션은 반드시 한국어로 작성하세요.**
|
|
10
|
-
|
|
11
|
-
- 내부 사고와 분석은 영어로 해도 됨
|
|
12
|
-
- 설명, 요약, 보고서, 피드백 등 사용자에게 전달하는 모든 내용은 반드시 한국어
|
|
13
|
-
- 사용자가 영어로 말하더라도 답변은 한국어로
|
|
14
|
-
- 진행 상황 업데이트와 상태 보고는 반드시 한국어
|
|
15
|
-
|
|
16
|
-
이 규칙은 절대적이며 예외가 없습니다.
|
|
17
|
-
|
|
18
|
-
</critical_instruction>
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
|
|
23
7
|
# Pre-Deploy Command
|
|
24
8
|
|
|
25
|
-
>
|
|
9
|
+
> 배포 전 typecheck/lint/build를 Sequential Thinking으로 검증하고 수정
|
|
26
10
|
|
|
27
11
|
---
|
|
28
12
|
|
|
29
13
|
<forbidden>
|
|
30
14
|
|
|
31
|
-
|
|
|
32
|
-
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
15
|
+
| 분류 | 금지 |
|
|
16
|
+
|------|------|
|
|
17
|
+
| **회피** | 오류 무시하고 배포, `any` 타입, `@ts-ignore`, `eslint-disable` 남발 |
|
|
18
|
+
| **전략** | 여러 오류 동시 수정, build 생략, 오류 메시지만 보고 급하게 수정 |
|
|
19
|
+
| **분석** | Sequential Thinking 없이 수정 |
|
|
36
20
|
|
|
37
21
|
</forbidden>
|
|
38
22
|
|
|
@@ -40,50 +24,132 @@ argument-hint: [file/directory paths...]
|
|
|
40
24
|
|
|
41
25
|
<agent_usage>
|
|
42
26
|
|
|
43
|
-
## @deployment-validator Agent
|
|
27
|
+
## @deployment-validator Agent 활용
|
|
44
28
|
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
29
|
+
**언제 사용:**
|
|
30
|
+
- PR 생성 전 전체 검증
|
|
31
|
+
- 배포 전 품질 보증
|
|
32
|
+
- CI/CD 전 로컬 검증
|
|
49
33
|
|
|
50
|
-
|
|
34
|
+
**호출 방법:**
|
|
51
35
|
```bash
|
|
52
36
|
@deployment-validator
|
|
53
|
-
#
|
|
54
|
-
"
|
|
55
|
-
"
|
|
37
|
+
# 또는 자연어
|
|
38
|
+
"배포 준비 완료 체크해줘"
|
|
39
|
+
"pre-deploy 검증해줘"
|
|
56
40
|
```
|
|
57
41
|
|
|
58
|
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
61
|
-
-
|
|
62
|
-
-
|
|
42
|
+
**장점:**
|
|
43
|
+
- typecheck + lint + build 전체 자동화
|
|
44
|
+
- Build 실패 시 Sequential Thinking으로 원인 자동 분석
|
|
45
|
+
- 배포 가능 여부 최종 판단
|
|
46
|
+
- 독립적 context에서 실행 (메인 작업 병렬 가능)
|
|
63
47
|
|
|
64
|
-
|
|
48
|
+
**직접 검증 vs Agent:**
|
|
65
49
|
|
|
66
|
-
|
|
|
67
|
-
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
50
|
+
| 상황 | 권장 방법 |
|
|
51
|
+
|------|----------|
|
|
52
|
+
| 빠른 개발 중 | 직접 검증 (command) |
|
|
53
|
+
| PR 생성 전 | @deployment-validator |
|
|
54
|
+
| 배포 전 최종 확인 | @deployment-validator |
|
|
55
|
+
| CI/CD 전 로컬 확인 | @deployment-validator |
|
|
56
|
+
| 자동화된 검증 | @deployment-validator |
|
|
73
57
|
|
|
74
58
|
</agent_usage>
|
|
75
59
|
|
|
76
60
|
---
|
|
77
61
|
|
|
62
|
+
<parallel_agent_execution>
|
|
63
|
+
|
|
64
|
+
## 병렬 Agent 실행
|
|
65
|
+
|
|
66
|
+
**권장 Agent:**
|
|
67
|
+
|
|
68
|
+
| Agent | 모델 | 용도 |
|
|
69
|
+
|-------|------|------|
|
|
70
|
+
| @deployment-validator | sonnet/opus | 전체 검증 자동화 (typecheck + lint + build) |
|
|
71
|
+
| @lint-fixer | haiku/sonnet | 린트 오류 자동 수정 |
|
|
72
|
+
| @code-reviewer | sonnet | 배포 전 코드 품질 리뷰 |
|
|
73
|
+
|
|
74
|
+
**병렬 실행 패턴:**
|
|
75
|
+
|
|
76
|
+
| 작업 유형 | 실행 방식 | 이유 |
|
|
77
|
+
|----------|----------|------|
|
|
78
|
+
| typecheck + lint 검사 | ✅ 병렬 가능 | 읽기 전용, 파일 충돌 없음 |
|
|
79
|
+
| 오류 수정 | ❌ 순차 실행 | 동일 파일 동시 수정 방지 |
|
|
80
|
+
| 검증 + 문서화 | ✅ 병렬 가능 | validator + document-writer 독립적 |
|
|
81
|
+
| build + test | ❌ 순차 실행 | build 완료 후 test 실행 |
|
|
82
|
+
|
|
83
|
+
**모델 라우팅:**
|
|
84
|
+
|
|
85
|
+
| 복잡도 | 모델 | 사용 시나리오 |
|
|
86
|
+
|--------|------|-------------|
|
|
87
|
+
| LOW | haiku | 간단한 린트 오류, 단순 검증 |
|
|
88
|
+
| MEDIUM | sonnet | 일반적인 typecheck/lint 검증, 수정 |
|
|
89
|
+
| HIGH | opus | 복잡한 타입 오류, 아키텍처 영향 분석 |
|
|
90
|
+
|
|
91
|
+
**실전 예시:**
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
// ✅ 병렬 검사 (읽기 전용)
|
|
95
|
+
Task({
|
|
96
|
+
subagent_type: "deployment-validator",
|
|
97
|
+
model: "sonnet",
|
|
98
|
+
prompt: "typecheck 실행 및 검증"
|
|
99
|
+
})
|
|
100
|
+
Task({
|
|
101
|
+
subagent_type: "deployment-validator",
|
|
102
|
+
model: "sonnet",
|
|
103
|
+
prompt: "lint 실행 및 검증"
|
|
104
|
+
})
|
|
105
|
+
|
|
106
|
+
// ✅ 검증 + 문서화 병렬
|
|
107
|
+
Task({
|
|
108
|
+
subagent_type: "deployment-validator",
|
|
109
|
+
model: "sonnet",
|
|
110
|
+
prompt: "배포 전 전체 검증"
|
|
111
|
+
})
|
|
112
|
+
Task({
|
|
113
|
+
subagent_type: "document-writer",
|
|
114
|
+
model: "haiku",
|
|
115
|
+
prompt: "CHANGELOG.md 업데이트"
|
|
116
|
+
})
|
|
117
|
+
|
|
118
|
+
// ❌ 수정 작업은 순차 실행 (충돌 방지)
|
|
119
|
+
// 잘못된 예시:
|
|
120
|
+
Task({ prompt: "src/utils/calc.ts 타입 오류 수정" })
|
|
121
|
+
Task({ prompt: "src/utils/calc.ts 린트 오류 수정" })
|
|
122
|
+
// → 동일 파일 동시 수정으로 충돌 발생
|
|
123
|
+
|
|
124
|
+
// ✅ 올바른 순차 실행:
|
|
125
|
+
// 1. typecheck + lint 병렬 검사
|
|
126
|
+
// 2. 오류 목록 파악
|
|
127
|
+
// 3. 파일별 순차 수정
|
|
128
|
+
// 4. build 실행
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
**Agent 조합 권장:**
|
|
132
|
+
|
|
133
|
+
| 목표 | Agent 조합 | 실행 방식 |
|
|
134
|
+
|------|-----------|----------|
|
|
135
|
+
| 빠른 검증 | @deployment-validator (haiku) | 단독 실행 |
|
|
136
|
+
| 전체 검증 + 수정 | @deployment-validator (sonnet) → @lint-fixer (haiku) | 순차 |
|
|
137
|
+
| 배포 준비 | @deployment-validator (sonnet) + @code-reviewer (sonnet) | 병렬 |
|
|
138
|
+
| 자동화된 CI | @deployment-validator (opus) | 단독 실행 |
|
|
139
|
+
|
|
140
|
+
</parallel_agent_execution>
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
78
144
|
<required>
|
|
79
145
|
|
|
80
|
-
|
|
|
81
|
-
|
|
82
|
-
| **Thinking** | Sequential Thinking 3-5
|
|
83
|
-
| **Tracking** |
|
|
84
|
-
| **Strategy** |
|
|
85
|
-
| **Validation** |
|
|
86
|
-
| **Build** |
|
|
146
|
+
| 분류 | 필수 |
|
|
147
|
+
|------|------|
|
|
148
|
+
| **Thinking** | Sequential Thinking 3-5단계 (각 오류마다) |
|
|
149
|
+
| **Tracking** | TodoWrite로 오류 목록 추적 |
|
|
150
|
+
| **Strategy** | typecheck + lint 병렬 실행 → 순차 수정 → build |
|
|
151
|
+
| **Validation** | 각 파일 수정 후 해당 파일 재검사 |
|
|
152
|
+
| **Build** | 모든 오류 해결 후 build 실행 및 성공 확인 |
|
|
87
153
|
|
|
88
154
|
</required>
|
|
89
155
|
|
|
@@ -91,32 +157,32 @@ argument-hint: [file/directory paths...]
|
|
|
91
157
|
|
|
92
158
|
<workflow>
|
|
93
159
|
|
|
94
|
-
1.
|
|
160
|
+
1. **병렬 검사**
|
|
95
161
|
```bash
|
|
96
162
|
npx tsc --noEmit
|
|
97
163
|
npx eslint .
|
|
98
164
|
```
|
|
99
165
|
|
|
100
|
-
2. **
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
166
|
+
2. **TodoWrite 생성**
|
|
167
|
+
- typecheck 오류 목록
|
|
168
|
+
- lint 오류 목록
|
|
169
|
+
- 우선순위: 타입 오류 → 린트 오류 → 린트 경고
|
|
104
170
|
|
|
105
|
-
3.
|
|
106
|
-
- Sequential Thinking 3-5
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
171
|
+
3. **순차 수정** (각 오류마다)
|
|
172
|
+
- Sequential Thinking 3-5단계
|
|
173
|
+
- 수정 적용
|
|
174
|
+
- 해당 파일 재검사
|
|
175
|
+
- TodoWrite 업데이트 (completed)
|
|
110
176
|
|
|
111
|
-
4. **
|
|
177
|
+
4. **Build 실행**
|
|
112
178
|
```bash
|
|
113
|
-
#
|
|
179
|
+
# package.json scripts 확인 후 실행
|
|
114
180
|
npm run build # or yarn build, pnpm build
|
|
115
181
|
```
|
|
116
182
|
|
|
117
|
-
5. **
|
|
118
|
-
-
|
|
119
|
-
-
|
|
183
|
+
5. **Build 성공 확인**
|
|
184
|
+
- 오류 발생 시 Sequential Thinking으로 분석 및 수정
|
|
185
|
+
- 성공 시 배포 준비 완료
|
|
120
186
|
|
|
121
187
|
</workflow>
|
|
122
188
|
|
|
@@ -124,24 +190,24 @@ argument-hint: [file/directory paths...]
|
|
|
124
190
|
|
|
125
191
|
<sequential_thinking>
|
|
126
192
|
|
|
127
|
-
|
|
193
|
+
**각 오류마다 필수:**
|
|
128
194
|
|
|
129
|
-
|
|
|
130
|
-
|
|
131
|
-
| 1 |
|
|
132
|
-
| 2 |
|
|
133
|
-
| 3 |
|
|
134
|
-
| 4 |
|
|
135
|
-
| 5 |
|
|
195
|
+
| 단계 | 내용 |
|
|
196
|
+
|------|------|
|
|
197
|
+
| 1 | 오류 메시지 분석 및 이해 |
|
|
198
|
+
| 2 | 관련 코드 컨텍스트 파악 |
|
|
199
|
+
| 3 | 근본 원인 식별 |
|
|
200
|
+
| 4 | 수정 방안 검토 (여러 옵션 고려) |
|
|
201
|
+
| 5 | 최적 수정 방안 선택 및 적용 |
|
|
136
202
|
|
|
137
|
-
|
|
203
|
+
**파라미터:**
|
|
138
204
|
|
|
139
205
|
```typescript
|
|
140
206
|
{
|
|
141
|
-
thought: "
|
|
207
|
+
thought: "현재 사고 내용",
|
|
142
208
|
nextThoughtNeeded: true | false,
|
|
143
|
-
thoughtNumber: 1, //
|
|
144
|
-
totalThoughts: 5 //
|
|
209
|
+
thoughtNumber: 1, // 현재 단계
|
|
210
|
+
totalThoughts: 5 // 예상 총 단계 (동적 조정 가능)
|
|
145
211
|
}
|
|
146
212
|
```
|
|
147
213
|
|
|
@@ -151,34 +217,34 @@ argument-hint: [file/directory paths...]
|
|
|
151
217
|
|
|
152
218
|
<commands>
|
|
153
219
|
|
|
154
|
-
|
|
220
|
+
**검사:**
|
|
155
221
|
|
|
156
222
|
```bash
|
|
157
|
-
# TypeScript (
|
|
223
|
+
# TypeScript (전체)
|
|
158
224
|
npx tsc --noEmit
|
|
159
225
|
|
|
160
|
-
# TypeScript (
|
|
226
|
+
# TypeScript (특정 파일)
|
|
161
227
|
npx tsc --noEmit $ARGUMENTS
|
|
162
228
|
|
|
163
|
-
# ESLint (
|
|
229
|
+
# ESLint (전체)
|
|
164
230
|
npx eslint .
|
|
165
231
|
|
|
166
|
-
# ESLint (
|
|
232
|
+
# ESLint (특정 파일/디렉토리)
|
|
167
233
|
npx eslint $ARGUMENTS
|
|
168
234
|
|
|
169
|
-
# Build (
|
|
235
|
+
# Build (package.json 확인 필요)
|
|
170
236
|
npm run build
|
|
171
237
|
yarn build
|
|
172
238
|
pnpm build
|
|
173
239
|
```
|
|
174
240
|
|
|
175
|
-
|
|
241
|
+
**인수 처리:**
|
|
176
242
|
|
|
177
|
-
|
|
|
178
|
-
|
|
179
|
-
|
|
|
180
|
-
|
|
|
181
|
-
|
|
|
243
|
+
| 인수 | 동작 |
|
|
244
|
+
|------|------|
|
|
245
|
+
| 없음 | 전체 프로젝트 검사 + build |
|
|
246
|
+
| 파일 경로 | 해당 파일만 검사 (build 생략) |
|
|
247
|
+
| 디렉토리 | 해당 디렉토리만 검사 (build 생략) |
|
|
182
248
|
|
|
183
249
|
</commands>
|
|
184
250
|
|
|
@@ -186,73 +252,73 @@ pnpm build
|
|
|
186
252
|
|
|
187
253
|
<examples>
|
|
188
254
|
|
|
189
|
-
**Example 1:
|
|
255
|
+
**Example 1: 전체 워크플로우**
|
|
190
256
|
|
|
191
257
|
```
|
|
192
|
-
1.
|
|
258
|
+
1. 병렬 검사 실행
|
|
193
259
|
npx tsc --noEmit
|
|
194
260
|
→ TS2322: Type 'string' is not assignable to type 'number'
|
|
195
261
|
|
|
196
262
|
npx eslint .
|
|
197
263
|
→ error: 'user' is assigned a value but never used (no-unused-vars)
|
|
198
264
|
|
|
199
|
-
2.
|
|
200
|
-
-
|
|
201
|
-
-
|
|
265
|
+
2. TodoWrite 생성
|
|
266
|
+
- TS2322 오류 수정 (src/utils/calc.ts:15)
|
|
267
|
+
- no-unused-vars 수정 (src/components/Form.tsx:8)
|
|
202
268
|
|
|
203
269
|
3. Sequential Thinking (TS2322)
|
|
204
|
-
thought 1: "TS2322
|
|
205
|
-
thought 2: "
|
|
206
|
-
thought 3: "
|
|
207
|
-
thought 4: "
|
|
208
|
-
thought 5: "parseInt
|
|
270
|
+
thought 1: "TS2322 오류. string을 number에 할당 시도"
|
|
271
|
+
thought 2: "calc.ts:15의 반환값 타입과 실제 반환값 확인"
|
|
272
|
+
thought 3: "함수가 parseInt 결과를 반환해야 하는데 toString() 호출 중"
|
|
273
|
+
thought 4: "수정 옵션: 1) toString() 제거 2) 반환 타입 변경"
|
|
274
|
+
thought 5: "parseInt는 number를 반환하므로 toString() 제거가 적절"
|
|
209
275
|
|
|
210
|
-
4.
|
|
276
|
+
4. Edit으로 수정 → npx tsc --noEmit src/utils/calc.ts 재검사 → 해결
|
|
211
277
|
|
|
212
|
-
5.
|
|
278
|
+
5. TodoWrite 업데이트 (completed) → 다음 오류
|
|
213
279
|
|
|
214
|
-
6.
|
|
280
|
+
6. 모든 오류 해결 후 build 실행
|
|
215
281
|
npm run build → ✅ Build successful
|
|
216
282
|
|
|
217
|
-
7.
|
|
283
|
+
7. 배포 준비 완료
|
|
218
284
|
```
|
|
219
285
|
|
|
220
|
-
**Example 2:
|
|
286
|
+
**Example 2: 우선순위**
|
|
221
287
|
|
|
222
|
-
|
|
|
223
|
-
|
|
224
|
-
| 1 |
|
|
225
|
-
| 2 |
|
|
226
|
-
| 3 |
|
|
288
|
+
| 우선순위 | 유형 | 예시 |
|
|
289
|
+
|----------|------|------|
|
|
290
|
+
| 1 | 타입 오류 (컴파일 차단) | TS2322, TS2345, TS2339 |
|
|
291
|
+
| 2 | 린트 오류 (error 레벨) | no-unused-vars, no-undef |
|
|
292
|
+
| 3 | 린트 경고 (warning 레벨) | prefer-const, no-console |
|
|
227
293
|
|
|
228
|
-
**Example 3: Build
|
|
294
|
+
**Example 3: Build 실패 시나리오**
|
|
229
295
|
|
|
230
296
|
```
|
|
231
|
-
1. typecheck + lint
|
|
297
|
+
1. typecheck + lint 통과
|
|
232
298
|
|
|
233
|
-
2.
|
|
299
|
+
2. npm run build 실행
|
|
234
300
|
→ Error: Cannot find module '@/utils/helper'
|
|
235
301
|
|
|
236
302
|
3. Sequential Thinking
|
|
237
|
-
thought 1: "
|
|
238
|
-
thought 2: "helper
|
|
239
|
-
thought 3: "
|
|
240
|
-
thought 4: "helper.ts
|
|
241
|
-
thought 5: "
|
|
303
|
+
thought 1: "Build 시 import 오류 발생"
|
|
304
|
+
thought 2: "helper 모듈이 존재하지 않거나 경로 오류"
|
|
305
|
+
thought 3: "Read로 파일 확인 필요"
|
|
306
|
+
thought 4: "helper.ts가 아닌 helpers.ts로 존재"
|
|
307
|
+
thought 5: "import 경로를 '@/utils/helpers'로 수정"
|
|
242
308
|
|
|
243
|
-
4.
|
|
309
|
+
4. Edit으로 수정 → npm run build 재실행 → ✅ 성공
|
|
244
310
|
```
|
|
245
311
|
|
|
246
|
-
**Example 4:
|
|
312
|
+
**Example 4: 부분 검사 (인수 제공)**
|
|
247
313
|
|
|
248
314
|
```bash
|
|
249
|
-
#
|
|
315
|
+
# 특정 파일만 검사 (build 생략)
|
|
250
316
|
/pre-deploy src/utils/calc.ts
|
|
251
317
|
|
|
252
318
|
→ npx tsc --noEmit src/utils/calc.ts
|
|
253
319
|
→ npx eslint src/utils/calc.ts
|
|
254
|
-
→
|
|
255
|
-
→
|
|
320
|
+
→ 오류 수정
|
|
321
|
+
→ build는 실행하지 않음
|
|
256
322
|
```
|
|
257
323
|
|
|
258
324
|
</examples>
|