Skip to content

Commit 2393d48

Browse files
author
RyukyuInteractive
committed
update
1 parent 0e0ab1a commit 2393d48

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.claude/commands/c.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Check
2+
3+
Analyze the current implementation or text to determine if its state is optimal.

.claude/commands/fix-any.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
description: 'Fix Any types in TypeScript code'
3+
---
4+
5+
# Fix Any Types
6+
7+
Find and replace `as any` type assertions with proper TypeScript types.
8+
9+
## Context
10+
11+
- TypeScript Errors: !`bun tsgo --noEmit`
12+
13+
## Steps
14+
15+
1. Search codebase for `as any` usage
16+
2. Analyze context and determine correct type
17+
3. Replace with specific type annotations
18+
4. Verify with `bun tsgo --noEmit`
19+
20+
## Common Patterns
21+
22+
- Event handlers: `as React.MouseEvent<HTMLButtonElement>`
23+
- API responses: Define interface or use existing types
24+
- Third-party libraries: Import proper types or create type declarations
25+
- DOM elements: Use specific HTMLElement types
26+
27+
## Validation
28+
29+
Run TypeScript check after changes:
30+
```bash
31+
bun tsgo --noEmit
32+
```

.claude/commands/fix.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
description: Fix bugs in the codebase
3+
---
4+
5+
# Fix bugs
6+
7+
Fix all errors by calling appropriate Subagents to modify files. Repeat command execution until all problems are resolved.
8+
9+
## Context
10+
11+
- TypeScript Errors: !`bun tsgo --noEmit`
12+
- Biome Errors: !`bun biome check . --fix --unsafe`
13+
- Bun Test Errors: !`bun test`

0 commit comments

Comments
 (0)