@simplysm/sd-claude 13.0.83 → 13.0.84
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/claude/rules/sd-claude-rules.md +10 -6
- package/claude/rules/sd-simplysm-usage.md +5 -5
- package/claude/skills/sd-api-review/SKILL.md +51 -51
- package/claude/skills/sd-check/SKILL.md +40 -40
- package/claude/skills/sd-commit/SKILL.md +31 -31
- package/claude/skills/sd-debug/SKILL.md +77 -68
- package/claude/skills/sd-document/SKILL.md +56 -56
- package/claude/skills/sd-email-analyze/SKILL.md +22 -22
- package/claude/skills/sd-init/SKILL.md +63 -63
- package/claude/skills/sd-plan/SKILL.md +62 -62
- package/claude/skills/sd-readme/SKILL.md +59 -59
- package/claude/skills/sd-review/SKILL.md +35 -35
- package/claude/skills/sd-simplify/SKILL.md +30 -30
- package/package.json +1 -1
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sd-review
|
|
3
|
-
description:
|
|
3
|
+
description: Used when requesting "bug review", "sd-review", "code review", "find bugs", etc. Analyzes code at the specified path for potential bugs, then creates a plan and applies fixes.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# SD Review —
|
|
6
|
+
# SD Review — Potential Bug Detection
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Reads the code at the specified path, analyzes it for potential bugs, then creates and executes a plan via the `/sd-plan` process.
|
|
9
9
|
|
|
10
|
-
ARGUMENTS:
|
|
10
|
+
ARGUMENTS: Target path (required). Specify any path within the repo.
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
## Step 1:
|
|
14
|
+
## Step 1: Validate Arguments
|
|
15
15
|
|
|
16
|
-
1.
|
|
17
|
-
2.
|
|
16
|
+
1. Extract the target path from ARGUMENTS.
|
|
17
|
+
2. If no path is provided, display "Please specify a target path. Example: `/sd-review packages/my-pkg`" and stop.
|
|
18
18
|
|
|
19
|
-
## Step 2:
|
|
19
|
+
## Step 2: Bug Analysis (Do Not Modify Code)
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
Read the code at the target path and search for potential bugs from the following 5 perspectives.
|
|
22
|
+
Do not modify the code under any circumstances. Only compile and output a list of findings.
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
1.
|
|
26
|
-
2. **Null/Undefined
|
|
27
|
-
3.
|
|
28
|
-
4.
|
|
29
|
-
5.
|
|
24
|
+
**Analysis Perspectives:**
|
|
25
|
+
1. **Logic/Correctness** — Incorrect conditions, off-by-one errors, wrong operators, unintended branching
|
|
26
|
+
2. **Null/Undefined Safety** — Missing null checks, unused optional chaining, misuse of type assertions
|
|
27
|
+
3. **Error Handling** — Swallowed errors, missing catch blocks, improper error propagation
|
|
28
|
+
4. **Edge Cases** — Empty arrays/strings, boundary values, concurrency/race conditions, missing await
|
|
29
|
+
5. **Resource Management** — Unclosed connections, event listener leaks, memory leak patterns
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
Write each finding in the following format:
|
|
32
32
|
```
|
|
33
|
-
-
|
|
33
|
+
- **filepath:line** — Problem description — Suggested fix
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
If no findings are discovered, display "No potential bugs were found." and stop.
|
|
37
37
|
|
|
38
|
-
## Step 3: sd-plan
|
|
38
|
+
## Step 3: Create Plan via sd-plan
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
Using the list of findings from Step 2 as the task description, invoke `sd-plan` via the Skill tool. Pass the following as args:
|
|
41
41
|
|
|
42
42
|
```
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
The following are potential bug fixes **analyzed and suggested by the LLM**.
|
|
44
|
+
Since these fixes were not explicitly requested by the user, treat them as uncertain.
|
|
45
45
|
|
|
46
|
-
##
|
|
47
|
-
|
|
46
|
+
## Target
|
|
47
|
+
<target path>
|
|
48
48
|
|
|
49
|
-
## LLM
|
|
50
|
-
|
|
49
|
+
## LLM-Suggested Fixes
|
|
50
|
+
When asking the user about uncertain fixes, **always present** the following information first so the user can understand the context.
|
|
51
51
|
|
|
52
52
|
```
|
|
53
|
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
53
|
+
Fix:
|
|
54
|
+
- Filepath:line:
|
|
55
|
+
- Problem description:
|
|
56
|
+
- Current code: (excerpt of the relevant code)
|
|
57
|
+
- Suggested fix:
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
<
|
|
60
|
+
<Full list of findings from Step 2>
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
## Step 4:
|
|
63
|
+
## Step 4: Execute Plan
|
|
64
64
|
|
|
65
|
-
sd-plan
|
|
65
|
+
Once sd-plan completes and produces a finalized plan, apply the code modifications according to that plan.
|
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sd-simplify
|
|
3
|
-
description: "
|
|
3
|
+
description: Used when requesting "code simplification", "simplify", "sd-simplify", "code refinement", etc. Analyzes code at a specified path, creates a plan, and applies modifications.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# SD Simplify —
|
|
6
|
+
# SD Simplify — Path-Specific Code Simplification
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Analyzes code at a specified path using the built-in `/simplify`, then creates and executes a plan via the `/sd-plan` process.
|
|
9
9
|
|
|
10
|
-
ARGUMENTS:
|
|
10
|
+
ARGUMENTS: Target path (required). Specify any path within the repository.
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
14
|
-
## Step 1:
|
|
14
|
+
## Step 1: Validate Arguments
|
|
15
15
|
|
|
16
|
-
1.
|
|
17
|
-
2.
|
|
16
|
+
1. Extract the target path from ARGUMENTS.
|
|
17
|
+
2. If no path is provided, display the message "Please specify a target path. Example: `/sd-simplify packages/my-pkg`" and stop.
|
|
18
18
|
|
|
19
|
-
## Step 2: simplify
|
|
19
|
+
## Step 2: simplify Analysis (Do Not Modify)
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
Invoke `simplify` using the Skill tool. Pass the following instructions as args:
|
|
22
22
|
|
|
23
23
|
```
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
-
|
|
24
|
+
Review the current codebase at the <target path> path. (Not recently changed code)
|
|
25
|
+
Do NOT modify any code. Only compile and output a list of items to fix.
|
|
26
|
+
Write each item in the following format:
|
|
27
|
+
- **file-path:line** — Problem description — Suggested improvement
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
Replace the `<target path>` placeholder with the actual path extracted in Step 1.
|
|
31
31
|
|
|
32
|
-
## Step 3: sd-plan
|
|
32
|
+
## Step 3: Create a Plan with sd-plan
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Using the list of items to fix from Step 2 as the task description, invoke `sd-plan` using the Skill tool. Pass the following as args:
|
|
35
35
|
|
|
36
36
|
```
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
The following are code improvement suggestions **proposed by an LLM analysis**.
|
|
38
|
+
Since these suggestions were not explicitly requested by the user, treat them as unclear.
|
|
39
39
|
|
|
40
|
-
##
|
|
41
|
-
|
|
40
|
+
## Target
|
|
41
|
+
<target path>
|
|
42
42
|
|
|
43
|
-
## LLM
|
|
44
|
-
|
|
43
|
+
## LLM-Suggested Improvements
|
|
44
|
+
When asking the user about unclear suggestions, **always present** the following details first so the user can understand the context.
|
|
45
45
|
|
|
46
46
|
```
|
|
47
|
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
47
|
+
Suggestion:
|
|
48
|
+
- File path:line:
|
|
49
|
+
- Problem description:
|
|
50
|
+
- Current code: (excerpt of the relevant code)
|
|
51
|
+
- Suggested improvement:
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
<
|
|
54
|
+
<Full list of items to fix from Step 2>
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
## Step 4:
|
|
57
|
+
## Step 4: Execute the Plan
|
|
58
58
|
|
|
59
|
-
sd-plan
|
|
59
|
+
Once sd-plan completes and a finalized plan is produced, modify the code according to that plan.
|