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