@kood/claude-code 0.3.7 → 0.3.9
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 +1 -1
- package/package.json +1 -1
- package/templates/.claude/agents/code-reviewer.md +138 -123
- package/templates/.claude/agents/dependency-manager.md +99 -84
- package/templates/.claude/agents/deployment-validator.md +70 -55
- package/templates/.claude/agents/git-operator.md +78 -63
- package/templates/.claude/agents/implementation-executor.md +109 -94
- package/templates/.claude/agents/ko-to-en-translator.md +74 -0
- package/templates/.claude/agents/lint-fixer.md +93 -78
- package/templates/.claude/agents/refactor-advisor.md +136 -121
- package/templates/.claude/commands/agent-creator.md +199 -184
- package/templates/.claude/commands/bug-fix.md +207 -192
- package/templates/.claude/commands/command-creator.md +69 -53
- package/templates/.claude/commands/docs-creator.md +72 -56
- package/templates/.claude/commands/docs-refactor.md +41 -25
- package/templates/.claude/commands/execute.md +27 -11
- package/templates/.claude/commands/git-all.md +46 -31
- package/templates/.claude/commands/git-session.md +57 -41
- package/templates/.claude/commands/git.md +49 -33
- package/templates/.claude/commands/lint-fix.md +153 -137
- package/templates/.claude/commands/lint-init.md +76 -60
- package/templates/.claude/commands/plan.md +275 -259
- package/templates/.claude/commands/prd.md +39 -23
- package/templates/.claude/commands/pre-deploy.md +124 -108
- package/templates/.claude/commands/refactor.md +162 -146
- package/templates/.claude/commands/version-update.md +32 -16
- package/templates/hono/CLAUDE.md +28 -27
- package/templates/hono/docs/architecture.md +24 -24
- package/templates/hono/docs/deployment/cloudflare.md +18 -18
- package/templates/hono/docs/deployment/docker.md +13 -13
- package/templates/hono/docs/deployment/index.md +19 -19
- package/templates/hono/docs/deployment/railway.md +32 -32
- package/templates/hono/docs/deployment/vercel.md +29 -29
- package/templates/hono/docs/guides/conventions.md +57 -57
- package/templates/hono/docs/guides/env-setup.md +47 -47
- package/templates/hono/docs/guides/getting-started.md +27 -27
- package/templates/hono/docs/library/hono/error-handling.md +11 -11
- package/templates/hono/docs/library/hono/index.md +4 -4
- package/templates/hono/docs/library/hono/middleware.md +18 -18
- package/templates/hono/docs/library/hono/rpc.md +7 -7
- package/templates/hono/docs/library/hono/validation.md +6 -6
- package/templates/hono/docs/library/prisma/cloudflare-d1.md +29 -29
- package/templates/hono/docs/library/prisma/config.md +16 -16
- package/templates/hono/docs/library/prisma/index.md +32 -32
- package/templates/hono/docs/library/t3-env/index.md +22 -22
- package/templates/hono/docs/library/zod/index.md +31 -31
- package/templates/nextjs/CLAUDE.md +54 -51
- package/templates/nextjs/docs/architecture.md +812 -0
- package/templates/nextjs/docs/design.md +183 -183
- package/templates/nextjs/docs/guides/conventions.md +86 -86
- package/templates/nextjs/docs/guides/getting-started.md +28 -28
- package/templates/nextjs/docs/guides/routes.md +32 -32
- package/templates/nextjs/docs/library/better-auth/index.md +70 -70
- package/templates/nextjs/docs/library/nextjs/app-router.md +43 -43
- package/templates/nextjs/docs/library/nextjs/caching.md +73 -73
- package/templates/nextjs/docs/library/nextjs/index.md +51 -51
- package/templates/nextjs/docs/library/nextjs/middleware.md +41 -41
- package/templates/nextjs/docs/library/nextjs/route-handlers.md +31 -31
- package/templates/nextjs/docs/library/nextjs/server-actions.md +34 -34
- package/templates/nextjs/docs/library/prisma/cloudflare-d1.md +20 -20
- package/templates/nextjs/docs/library/prisma/config.md +18 -18
- package/templates/nextjs/docs/library/prisma/crud.md +17 -17
- package/templates/nextjs/docs/library/prisma/index.md +18 -18
- package/templates/nextjs/docs/library/prisma/relations.md +16 -16
- package/templates/nextjs/docs/library/prisma/schema.md +23 -23
- package/templates/nextjs/docs/library/prisma/setup.md +6 -6
- package/templates/nextjs/docs/library/prisma/transactions.md +10 -10
- package/templates/nextjs/docs/library/tanstack-query/index.md +6 -6
- package/templates/nextjs/docs/library/tanstack-query/invalidation.md +20 -20
- package/templates/nextjs/docs/library/tanstack-query/optimistic-updates.md +4 -4
- package/templates/nextjs/docs/library/tanstack-query/use-mutation.md +15 -15
- package/templates/nextjs/docs/library/tanstack-query/use-query.md +22 -22
- package/templates/nextjs/docs/library/zod/complex-types.md +11 -11
- package/templates/nextjs/docs/library/zod/index.md +8 -8
- package/templates/nextjs/docs/library/zod/transforms.md +11 -11
- package/templates/nextjs/docs/library/zod/validation.md +9 -9
- package/templates/npx/CLAUDE.md +38 -37
- package/templates/npx/docs/library/commander/index.md +12 -12
- package/templates/npx/docs/library/fs-extra/index.md +9 -9
- package/templates/npx/docs/library/prompts/index.md +3 -3
- package/templates/npx/docs/references/patterns.md +12 -12
- package/templates/tanstack-start/CLAUDE.md +54 -53
- package/templates/tanstack-start/docs/architecture.md +128 -128
- package/templates/tanstack-start/docs/design.md +169 -169
- package/templates/tanstack-start/docs/guides/conventions.md +43 -43
- package/templates/tanstack-start/docs/guides/env-setup.md +35 -35
- package/templates/tanstack-start/docs/guides/getting-started.md +19 -19
- package/templates/tanstack-start/docs/guides/hooks.md +45 -45
- package/templates/tanstack-start/docs/guides/routes.md +54 -54
- package/templates/tanstack-start/docs/guides/services.md +45 -45
- package/templates/tanstack-start/docs/library/better-auth/index.md +68 -68
- package/templates/tanstack-start/docs/library/prisma/cloudflare-d1.md +19 -19
- package/templates/tanstack-start/docs/library/prisma/config.md +16 -16
- package/templates/tanstack-start/docs/library/prisma/crud.md +17 -17
- package/templates/tanstack-start/docs/library/prisma/index.md +17 -17
- package/templates/tanstack-start/docs/library/prisma/relations.md +16 -16
- package/templates/tanstack-start/docs/library/prisma/schema.md +23 -23
- package/templates/tanstack-start/docs/library/prisma/setup.md +6 -6
- package/templates/tanstack-start/docs/library/prisma/transactions.md +10 -10
- package/templates/tanstack-start/docs/library/t3-env/index.md +21 -160
- package/templates/tanstack-start/docs/library/tanstack-query/index.md +6 -6
- package/templates/tanstack-start/docs/library/tanstack-query/invalidation.md +19 -19
- package/templates/tanstack-start/docs/library/tanstack-query/optimistic-updates.md +4 -4
- package/templates/tanstack-start/docs/library/tanstack-query/use-mutation.md +14 -14
- package/templates/tanstack-start/docs/library/tanstack-query/use-query.md +21 -21
- package/templates/tanstack-start/docs/library/tanstack-router/error-handling.md +9 -9
- package/templates/tanstack-start/docs/library/tanstack-router/hooks.md +11 -11
- package/templates/tanstack-start/docs/library/tanstack-router/index.md +18 -18
- package/templates/tanstack-start/docs/library/tanstack-router/navigation.md +17 -17
- package/templates/tanstack-start/docs/library/tanstack-router/route-context.md +5 -5
- package/templates/tanstack-start/docs/library/tanstack-router/search-params.md +10 -10
- package/templates/tanstack-start/docs/library/tanstack-start/auth-patterns.md +8 -8
- package/templates/tanstack-start/docs/library/tanstack-start/index.md +15 -15
- package/templates/tanstack-start/docs/library/tanstack-start/middleware.md +9 -9
- package/templates/tanstack-start/docs/library/tanstack-start/routing.md +6 -6
- package/templates/tanstack-start/docs/library/tanstack-start/server-functions.md +18 -18
- package/templates/tanstack-start/docs/library/tanstack-start/setup.md +4 -4
- package/templates/tanstack-start/docs/library/zod/complex-types.md +11 -11
- package/templates/tanstack-start/docs/library/zod/index.md +8 -8
- package/templates/tanstack-start/docs/library/zod/transforms.md +11 -11
- package/templates/tanstack-start/docs/library/zod/validation.md +9 -9
|
@@ -1,30 +1,46 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: PRD(Product Requirements Document) 생성
|
|
3
3
|
allowed-tools: Read, Write, Glob, Grep, Task, mcp__sequential-thinking__sequentialthinking
|
|
4
|
-
argument-hint:
|
|
4
|
+
argument-hint: <feature/product description>
|
|
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
|
+
|
|
7
23
|
@../instructions/sequential-thinking-guide.md
|
|
8
24
|
|
|
9
25
|
# PRD Command
|
|
10
26
|
|
|
11
|
-
|
|
27
|
+
Write Product Requirements Document (PRD) for feature/product.
|
|
12
28
|
|
|
13
|
-
|
|
29
|
+
**Target**: $ARGUMENTS
|
|
14
30
|
|
|
15
31
|
---
|
|
16
32
|
|
|
17
33
|
<workflow>
|
|
18
34
|
|
|
19
|
-
##
|
|
35
|
+
## Execution Flow
|
|
20
36
|
|
|
21
|
-
|
|
|
37
|
+
| Step | Task | Tool |
|
|
22
38
|
|------|------|------|
|
|
23
|
-
| 1.
|
|
24
|
-
| 2. Sequential Thinking | 3-5
|
|
25
|
-
| 3.
|
|
26
|
-
| 4. PRD
|
|
27
|
-
| 5.
|
|
39
|
+
| 1. Validate input | Verify ARGUMENT, ask if missing | - |
|
|
40
|
+
| 2. Sequential Thinking | Analyze PRD structure in 3-5 steps | sequentialthinking |
|
|
41
|
+
| 3. Check codebase | Explore related code/documents (if needed) | Task (Explore) |
|
|
42
|
+
| 4. Write PRD | Write in 15-section structure | Write |
|
|
43
|
+
| 5. Save | Save to `.claude/plans/` or `docs/prd/` | - |
|
|
28
44
|
|
|
29
45
|
</workflow>
|
|
30
46
|
|
|
@@ -32,12 +48,12 @@ argument-hint: <기능/제품 설명>
|
|
|
32
48
|
|
|
33
49
|
<forbidden>
|
|
34
50
|
|
|
35
|
-
|
|
|
36
|
-
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
51
|
+
| Category | Forbidden |
|
|
52
|
+
|----------|-----------|
|
|
53
|
+
| **Problem definition** | Include solutions/feature list |
|
|
54
|
+
| **Scope** | List without In/Out distinction |
|
|
55
|
+
| **Expression** | Vague expressions ("good UX", "fast") |
|
|
56
|
+
| **Style** | Marketing language, excessive adjectives |
|
|
41
57
|
|
|
42
58
|
</forbidden>
|
|
43
59
|
|
|
@@ -45,13 +61,13 @@ argument-hint: <기능/제품 설명>
|
|
|
45
61
|
|
|
46
62
|
<required>
|
|
47
63
|
|
|
48
|
-
|
|
|
49
|
-
|
|
50
|
-
|
|
|
51
|
-
|
|
|
52
|
-
|
|
|
53
|
-
|
|
|
54
|
-
|
|
|
64
|
+
| Category | Required |
|
|
65
|
+
|----------|----------|
|
|
66
|
+
| **Structure** | 15 sections (metadata ~ template) |
|
|
67
|
+
| **Feature requirements** | User Stories + Functional + Non-functional |
|
|
68
|
+
| **Metrics** | Current value → target value format |
|
|
69
|
+
| **Assumptions/Risks** | Specify in separate section |
|
|
70
|
+
| **Style** | Short clear sentences, concrete examples |
|
|
55
71
|
|
|
56
72
|
</required>
|
|
57
73
|
|
|
@@ -1,22 +1,38 @@
|
|
|
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: [file/directory paths...]
|
|
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
|
+
|
|
7
23
|
# Pre-Deploy Command
|
|
8
24
|
|
|
9
|
-
>
|
|
25
|
+
> Verify and fix typecheck/lint/build before deployment with Sequential Thinking
|
|
10
26
|
|
|
11
27
|
---
|
|
12
28
|
|
|
13
29
|
<forbidden>
|
|
14
30
|
|
|
15
|
-
|
|
|
16
|
-
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
31
|
+
| Category | Forbidden |
|
|
32
|
+
|----------|-----------|
|
|
33
|
+
| **Avoidance** | Deploy with errors, excessive `any` type, `@ts-ignore`, `eslint-disable` |
|
|
34
|
+
| **Strategy** | Fix multiple errors simultaneously, skip build, fix hastily based on error message |
|
|
35
|
+
| **Analysis** | Fix without Sequential Thinking |
|
|
20
36
|
|
|
21
37
|
</forbidden>
|
|
22
38
|
|
|
@@ -24,36 +40,36 @@ argument-hint: [파일/디렉토리 경로...]
|
|
|
24
40
|
|
|
25
41
|
<agent_usage>
|
|
26
42
|
|
|
27
|
-
## @deployment-validator Agent
|
|
43
|
+
## @deployment-validator Agent Usage
|
|
28
44
|
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
- CI/CD
|
|
45
|
+
**When to use:**
|
|
46
|
+
- Full validation before PR creation
|
|
47
|
+
- Quality assurance before deployment
|
|
48
|
+
- Local validation before CI/CD
|
|
33
49
|
|
|
34
|
-
|
|
50
|
+
**How to call:**
|
|
35
51
|
```bash
|
|
36
52
|
@deployment-validator
|
|
37
|
-
#
|
|
38
|
-
"
|
|
39
|
-
"pre-deploy
|
|
53
|
+
# or natural language
|
|
54
|
+
"Check if ready to deploy"
|
|
55
|
+
"Validate pre-deploy"
|
|
40
56
|
```
|
|
41
57
|
|
|
42
|
-
|
|
43
|
-
- typecheck + lint + build
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
58
|
+
**Benefits:**
|
|
59
|
+
- Full automation of typecheck + lint + build
|
|
60
|
+
- Auto-analyze cause of build failure with Sequential Thinking
|
|
61
|
+
- Final judgment on deployment readiness
|
|
62
|
+
- Run in independent context (can parallelize with main work)
|
|
47
63
|
|
|
48
|
-
|
|
64
|
+
**Direct validation vs Agent:**
|
|
49
65
|
|
|
50
|
-
|
|
|
51
|
-
|
|
52
|
-
|
|
|
53
|
-
| PR
|
|
54
|
-
|
|
|
55
|
-
| CI/CD
|
|
56
|
-
|
|
|
66
|
+
| Situation | Recommended |
|
|
67
|
+
|-----------|-------------|
|
|
68
|
+
| During rapid development | Direct validation (command) |
|
|
69
|
+
| Before PR creation | @deployment-validator |
|
|
70
|
+
| Final check before deployment | @deployment-validator |
|
|
71
|
+
| Local check before CI/CD | @deployment-validator |
|
|
72
|
+
| Automated validation | @deployment-validator |
|
|
57
73
|
|
|
58
74
|
</agent_usage>
|
|
59
75
|
|
|
@@ -61,13 +77,13 @@ argument-hint: [파일/디렉토리 경로...]
|
|
|
61
77
|
|
|
62
78
|
<required>
|
|
63
79
|
|
|
64
|
-
|
|
|
65
|
-
|
|
66
|
-
| **Thinking** | Sequential Thinking 3-5
|
|
67
|
-
| **Tracking** |
|
|
68
|
-
| **Strategy** | typecheck + lint
|
|
69
|
-
| **Validation** |
|
|
70
|
-
| **Build** |
|
|
80
|
+
| Category | Required |
|
|
81
|
+
|----------|----------|
|
|
82
|
+
| **Thinking** | Sequential Thinking 3-5 steps per error |
|
|
83
|
+
| **Tracking** | Track error list with TodoWrite |
|
|
84
|
+
| **Strategy** | Run typecheck + lint in parallel → sequential fix → build |
|
|
85
|
+
| **Validation** | Recheck each file after fixing |
|
|
86
|
+
| **Build** | Run build after all errors resolved and verify success |
|
|
71
87
|
|
|
72
88
|
</required>
|
|
73
89
|
|
|
@@ -75,32 +91,32 @@ argument-hint: [파일/디렉토리 경로...]
|
|
|
75
91
|
|
|
76
92
|
<workflow>
|
|
77
93
|
|
|
78
|
-
1.
|
|
94
|
+
1. **Parallel check**
|
|
79
95
|
```bash
|
|
80
96
|
npx tsc --noEmit
|
|
81
97
|
npx eslint .
|
|
82
98
|
```
|
|
83
99
|
|
|
84
|
-
2. **TodoWrite
|
|
85
|
-
- typecheck
|
|
86
|
-
- lint
|
|
87
|
-
-
|
|
100
|
+
2. **Create TodoWrite**
|
|
101
|
+
- List typecheck errors
|
|
102
|
+
- List lint errors
|
|
103
|
+
- Priority: type errors → lint errors → lint warnings
|
|
88
104
|
|
|
89
|
-
3.
|
|
90
|
-
- Sequential Thinking 3-5
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
- TodoWrite
|
|
105
|
+
3. **Sequential fix** (per error)
|
|
106
|
+
- Sequential Thinking 3-5 steps
|
|
107
|
+
- Apply fix
|
|
108
|
+
- Recheck file
|
|
109
|
+
- Update TodoWrite (completed)
|
|
94
110
|
|
|
95
|
-
4. **
|
|
111
|
+
4. **Run build**
|
|
96
112
|
```bash
|
|
97
|
-
# package.json scripts
|
|
113
|
+
# Verify package.json scripts then run
|
|
98
114
|
npm run build # or yarn build, pnpm build
|
|
99
115
|
```
|
|
100
116
|
|
|
101
|
-
5. **
|
|
102
|
-
-
|
|
103
|
-
-
|
|
117
|
+
5. **Verify build success**
|
|
118
|
+
- If errors occur, analyze and fix with Sequential Thinking
|
|
119
|
+
- If successful, ready for deployment
|
|
104
120
|
|
|
105
121
|
</workflow>
|
|
106
122
|
|
|
@@ -108,24 +124,24 @@ argument-hint: [파일/디렉토리 경로...]
|
|
|
108
124
|
|
|
109
125
|
<sequential_thinking>
|
|
110
126
|
|
|
111
|
-
|
|
127
|
+
**Required for each error:**
|
|
112
128
|
|
|
113
|
-
|
|
|
114
|
-
|
|
115
|
-
| 1 |
|
|
116
|
-
| 2 |
|
|
117
|
-
| 3 |
|
|
118
|
-
| 4 |
|
|
119
|
-
| 5 |
|
|
129
|
+
| Step | Content |
|
|
130
|
+
|------|---------|
|
|
131
|
+
| 1 | Analyze and understand error message |
|
|
132
|
+
| 2 | Identify relevant code context |
|
|
133
|
+
| 3 | Identify root cause |
|
|
134
|
+
| 4 | Review fix options (consider multiple) |
|
|
135
|
+
| 5 | Select and apply optimal fix |
|
|
120
136
|
|
|
121
|
-
|
|
137
|
+
**Parameters:**
|
|
122
138
|
|
|
123
139
|
```typescript
|
|
124
140
|
{
|
|
125
|
-
thought: "
|
|
141
|
+
thought: "Current thinking content",
|
|
126
142
|
nextThoughtNeeded: true | false,
|
|
127
|
-
thoughtNumber: 1, //
|
|
128
|
-
totalThoughts: 5 //
|
|
143
|
+
thoughtNumber: 1, // current step
|
|
144
|
+
totalThoughts: 5 // expected total steps (dynamic)
|
|
129
145
|
}
|
|
130
146
|
```
|
|
131
147
|
|
|
@@ -135,34 +151,34 @@ argument-hint: [파일/디렉토리 경로...]
|
|
|
135
151
|
|
|
136
152
|
<commands>
|
|
137
153
|
|
|
138
|
-
|
|
154
|
+
**Check:**
|
|
139
155
|
|
|
140
156
|
```bash
|
|
141
|
-
# TypeScript (
|
|
157
|
+
# TypeScript (all)
|
|
142
158
|
npx tsc --noEmit
|
|
143
159
|
|
|
144
|
-
# TypeScript (
|
|
160
|
+
# TypeScript (specific file)
|
|
145
161
|
npx tsc --noEmit $ARGUMENTS
|
|
146
162
|
|
|
147
|
-
# ESLint (
|
|
163
|
+
# ESLint (all)
|
|
148
164
|
npx eslint .
|
|
149
165
|
|
|
150
|
-
# ESLint (
|
|
166
|
+
# ESLint (specific file/directory)
|
|
151
167
|
npx eslint $ARGUMENTS
|
|
152
168
|
|
|
153
|
-
# Build (package.json
|
|
169
|
+
# Build (requires package.json check)
|
|
154
170
|
npm run build
|
|
155
171
|
yarn build
|
|
156
172
|
pnpm build
|
|
157
173
|
```
|
|
158
174
|
|
|
159
|
-
|
|
175
|
+
**Argument handling:**
|
|
160
176
|
|
|
161
|
-
|
|
|
162
|
-
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
177
|
+
| Argument | Action |
|
|
178
|
+
|----------|--------|
|
|
179
|
+
| None | Check entire project + build |
|
|
180
|
+
| File path | Check that file only (skip build) |
|
|
181
|
+
| Directory | Check that directory only (skip build) |
|
|
166
182
|
|
|
167
183
|
</commands>
|
|
168
184
|
|
|
@@ -170,73 +186,73 @@ pnpm build
|
|
|
170
186
|
|
|
171
187
|
<examples>
|
|
172
188
|
|
|
173
|
-
**Example 1:
|
|
189
|
+
**Example 1: Full workflow**
|
|
174
190
|
|
|
175
191
|
```
|
|
176
|
-
1.
|
|
192
|
+
1. Run parallel check
|
|
177
193
|
npx tsc --noEmit
|
|
178
194
|
→ TS2322: Type 'string' is not assignable to type 'number'
|
|
179
195
|
|
|
180
196
|
npx eslint .
|
|
181
197
|
→ error: 'user' is assigned a value but never used (no-unused-vars)
|
|
182
198
|
|
|
183
|
-
2. TodoWrite
|
|
184
|
-
- TS2322
|
|
185
|
-
- no-unused-vars
|
|
199
|
+
2. Create TodoWrite
|
|
200
|
+
- Fix TS2322 error (src/utils/calc.ts:15)
|
|
201
|
+
- Fix no-unused-vars (src/components/Form.tsx:8)
|
|
186
202
|
|
|
187
203
|
3. Sequential Thinking (TS2322)
|
|
188
|
-
thought 1: "TS2322
|
|
189
|
-
thought 2: "calc.ts:15
|
|
190
|
-
thought 3: "
|
|
191
|
-
thought 4: "
|
|
192
|
-
thought 5: "parseInt
|
|
204
|
+
thought 1: "TS2322 error. Assigning string to number"
|
|
205
|
+
thought 2: "Check return value type and actual return in calc.ts:15"
|
|
206
|
+
thought 3: "Function should return parseInt result but calling toString()"
|
|
207
|
+
thought 4: "Fix options: 1) Remove toString() 2) Change return type"
|
|
208
|
+
thought 5: "parseInt returns number so removing toString() is appropriate"
|
|
193
209
|
|
|
194
|
-
4. Edit
|
|
210
|
+
4. Fix with Edit → recheck with npx tsc --noEmit src/utils/calc.ts → resolved
|
|
195
211
|
|
|
196
|
-
5. TodoWrite
|
|
212
|
+
5. Update TodoWrite (completed) → next error
|
|
197
213
|
|
|
198
|
-
6.
|
|
214
|
+
6. After all errors resolved, run build
|
|
199
215
|
npm run build → ✅ Build successful
|
|
200
216
|
|
|
201
|
-
7.
|
|
217
|
+
7. Ready for deployment
|
|
202
218
|
```
|
|
203
219
|
|
|
204
|
-
**Example 2:
|
|
220
|
+
**Example 2: Priority**
|
|
205
221
|
|
|
206
|
-
|
|
|
207
|
-
|
|
208
|
-
| 1 |
|
|
209
|
-
| 2 |
|
|
210
|
-
| 3 |
|
|
222
|
+
| Priority | Type | Example |
|
|
223
|
+
|----------|------|---------|
|
|
224
|
+
| 1 | Type errors (blocks compile) | TS2322, TS2345, TS2339 |
|
|
225
|
+
| 2 | Lint errors (error level) | no-unused-vars, no-undef |
|
|
226
|
+
| 3 | Lint warnings (warning level) | prefer-const, no-console |
|
|
211
227
|
|
|
212
|
-
**Example 3: Build
|
|
228
|
+
**Example 3: Build failure scenario**
|
|
213
229
|
|
|
214
230
|
```
|
|
215
|
-
1. typecheck + lint
|
|
231
|
+
1. typecheck + lint pass
|
|
216
232
|
|
|
217
|
-
2. npm run build
|
|
233
|
+
2. Run npm run build
|
|
218
234
|
→ Error: Cannot find module '@/utils/helper'
|
|
219
235
|
|
|
220
236
|
3. Sequential Thinking
|
|
221
|
-
thought 1: "
|
|
222
|
-
thought 2: "helper
|
|
223
|
-
thought 3: "
|
|
224
|
-
thought 4: "helper.ts
|
|
225
|
-
thought 5: "import
|
|
237
|
+
thought 1: "Import error during build"
|
|
238
|
+
thought 2: "helper module doesn't exist or path error"
|
|
239
|
+
thought 3: "Need to check file with Read"
|
|
240
|
+
thought 4: "helper.ts doesn't exist, only helpers.ts"
|
|
241
|
+
thought 5: "Fix import path to '@/utils/helpers'"
|
|
226
242
|
|
|
227
|
-
4. Edit
|
|
243
|
+
4. Fix with Edit → rerun npm run build → ✅ success
|
|
228
244
|
```
|
|
229
245
|
|
|
230
|
-
**Example 4:
|
|
246
|
+
**Example 4: Partial check (with arguments)**
|
|
231
247
|
|
|
232
248
|
```bash
|
|
233
|
-
#
|
|
249
|
+
# Check only specific file (skip build)
|
|
234
250
|
/pre-deploy src/utils/calc.ts
|
|
235
251
|
|
|
236
252
|
→ npx tsc --noEmit src/utils/calc.ts
|
|
237
253
|
→ npx eslint src/utils/calc.ts
|
|
238
|
-
→
|
|
239
|
-
→
|
|
254
|
+
→ Fix errors
|
|
255
|
+
→ Don't run build
|
|
240
256
|
```
|
|
241
257
|
|
|
242
258
|
</examples>
|