@simplysm/claude 13.0.23 → 13.0.25
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/agents/sd-api-reviewer.md +1 -1
- package/claude/agents/sd-code-reviewer.md +1 -1
- package/claude/agents/sd-code-simplifier.md +1 -1
- package/claude/agents/sd-security-reviewer.md +1 -1
- package/claude/skills/sd-brainstorm/SKILL.md +8 -1
- package/claude/skills/sd-check/SKILL.md +76 -27
- package/claude/skills/sd-plan/SKILL.md +1 -1
- package/claude/skills/sd-tdd/SKILL.md +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sd-api-reviewer
|
|
3
3
|
description: Reviews a library's public API for developer experience (DX) quality - naming consistency, industry standard alignment, intuitiveness, error messages, type hints, configuration complexity, and usage pattern coherence
|
|
4
|
-
model:
|
|
4
|
+
model: opus
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
You are an expert API/DX reviewer who evaluates libraries from the **consumer's perspective**. Your goal is to identify friction points that developers encounter when using a package.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sd-code-reviewer
|
|
3
3
|
description: Reviews code for bugs, logic errors, security vulnerabilities, code quality issues, and adherence to project conventions, using confidence-based filtering to report only high-priority issues that truly matter
|
|
4
|
-
model:
|
|
4
|
+
model: opus
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
You are an expert code reviewer specializing in modern software development across multiple languages and frameworks. Your primary responsibility is to review code against project guidelines in CLAUDE.md with high precision to minimize false positives.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sd-code-simplifier
|
|
3
3
|
description: Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.
|
|
4
|
-
model:
|
|
4
|
+
model: opus
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
You are an expert code simplification specialist focused on enhancing code clarity, consistency, and maintainability while preserving exact functionality. Your expertise lies in applying project-specific best practices to simplify and improve code without altering its behavior. You prioritize readable, explicit code over overly compact solutions. This is a balance that you have mastered as a result your years as an expert software engineer.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sd-security-reviewer
|
|
3
3
|
description: Reviews ORM queries and service endpoints for SQL injection and input validation vulnerabilities in simplysm's string-escaping ORM
|
|
4
|
-
model:
|
|
4
|
+
model: opus
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
You are a security-focused code reviewer for the simplysm framework.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sd-brainstorm
|
|
3
3
|
description: "You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation."
|
|
4
|
-
model:
|
|
4
|
+
model: opus
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Brainstorming Ideas Into Designs
|
|
@@ -41,6 +41,13 @@ Start by understanding the current project context, then ask questions one at a
|
|
|
41
41
|
|
|
42
42
|
**Next Steps Guide:**
|
|
43
43
|
|
|
44
|
+
Before presenting the workflow paths, check git status for uncommitted changes. If there are any uncommitted changes (staged, unstaged, or untracked files), prepend the following warning before the workflow guide:
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
⚠️ You have uncommitted changes.
|
|
48
|
+
To use Path A (worktree branch isolation), run `/sd-commit all` first to commit your current changes.
|
|
49
|
+
```
|
|
50
|
+
|
|
44
51
|
Present the following two workflow paths so the user can see the full process and choose.
|
|
45
52
|
Display the guide in the **user's configured language** (follow the language settings from CLAUDE.md or system instructions).
|
|
46
53
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: sd-check
|
|
3
3
|
description: Verify code via typecheck, lint, and tests
|
|
4
4
|
argument-hint: "[path]"
|
|
5
|
-
model:
|
|
5
|
+
model: opus
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
## Usage
|
|
@@ -17,7 +17,14 @@ If an argument is provided, run against that path. Otherwise, run against the en
|
|
|
17
17
|
Before running any verification, confirm the project environment is properly set up.
|
|
18
18
|
Run these checks **in parallel** and report results before proceeding.
|
|
19
19
|
|
|
20
|
-
### 1.
|
|
20
|
+
### 1. Root package.json version
|
|
21
|
+
|
|
22
|
+
Read the root `package.json` and check the `version` field.
|
|
23
|
+
The major version must be `13` (e.g., `13.x.x`). If the major version is not `13`, stop and report:
|
|
24
|
+
|
|
25
|
+
> "This skill requires simplysm v13. Current version: {version}"
|
|
26
|
+
|
|
27
|
+
### 2. pnpm workspace
|
|
21
28
|
|
|
22
29
|
Verify this is a pnpm project:
|
|
23
30
|
|
|
@@ -27,7 +34,7 @@ ls pnpm-workspace.yaml pnpm-lock.yaml
|
|
|
27
34
|
|
|
28
35
|
Both files must exist. If missing, stop and report to the user.
|
|
29
36
|
|
|
30
|
-
###
|
|
37
|
+
### 3. package.json scripts
|
|
31
38
|
|
|
32
39
|
Read the root `package.json` and confirm these scripts are defined:
|
|
33
40
|
|
|
@@ -36,7 +43,7 @@ Read the root `package.json` and confirm these scripts are defined:
|
|
|
36
43
|
|
|
37
44
|
If either is missing, stop and report to the user.
|
|
38
45
|
|
|
39
|
-
###
|
|
46
|
+
### 4. Vitest config
|
|
40
47
|
|
|
41
48
|
Verify vitest is configured:
|
|
42
49
|
|
|
@@ -52,43 +59,85 @@ If all pre-checks pass, report "Environment OK" and proceed to code verification
|
|
|
52
59
|
|
|
53
60
|
## Code Verification
|
|
54
61
|
|
|
55
|
-
Run
|
|
56
|
-
|
|
57
|
-
|
|
62
|
+
Run verification checks using haiku agents for command execution, then analyze and fix errors.
|
|
63
|
+
Repeat until all checks pass.
|
|
64
|
+
|
|
65
|
+
### Step 1: Launch Verification Agents (Parallel)
|
|
58
66
|
|
|
59
|
-
|
|
67
|
+
Launch 3 haiku agents in parallel using the Task tool.
|
|
60
68
|
|
|
69
|
+
**Important**: Replace `[path]` in the commands below with the actual path argument provided by the user. If no argument was provided, omit the path (runs on entire project).
|
|
70
|
+
|
|
71
|
+
**Agent 1 - Typecheck:**
|
|
61
72
|
```
|
|
62
|
-
|
|
73
|
+
Task tool with:
|
|
74
|
+
subagent_type: Bash
|
|
75
|
+
model: haiku
|
|
76
|
+
description: "Run typecheck"
|
|
77
|
+
prompt: "Run `pnpm typecheck [path]` and return the full output. Do NOT analyze or fix errors - just report the raw output."
|
|
63
78
|
```
|
|
64
79
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
80
|
+
**Agent 2 - Lint:**
|
|
81
|
+
```
|
|
82
|
+
Task tool with:
|
|
83
|
+
subagent_type: Bash
|
|
84
|
+
model: haiku
|
|
85
|
+
description: "Run lint with auto-fix"
|
|
86
|
+
prompt: "Run `pnpm lint --fix [path]` and return the full output. Do NOT analyze or fix errors - just report the raw output."
|
|
87
|
+
```
|
|
68
88
|
|
|
89
|
+
**Agent 3 - Test:**
|
|
69
90
|
```
|
|
70
|
-
|
|
91
|
+
Task tool with:
|
|
92
|
+
subagent_type: Bash
|
|
93
|
+
model: haiku
|
|
94
|
+
description: "Run tests"
|
|
95
|
+
prompt: "Run `pnpm vitest [path] --run` and return the full output. Do NOT analyze or fix errors - just report the raw output."
|
|
71
96
|
```
|
|
72
97
|
|
|
73
|
-
|
|
98
|
+
### Step 2: Collect Results and Fix Errors
|
|
74
99
|
|
|
75
|
-
|
|
100
|
+
Wait for all 3 agents to complete. Collect their outputs.
|
|
76
101
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
102
|
+
If any errors are found:
|
|
103
|
+
|
|
104
|
+
1. **Analyze errors by priority**: typecheck → lint → test
|
|
105
|
+
- Typecheck errors may cause lint/test errors, so fix them first
|
|
106
|
+
2. **Read failing files** to identify root causes
|
|
107
|
+
3. **Fix with Edit**:
|
|
108
|
+
- Typecheck errors: Fix type issues
|
|
109
|
+
- Lint errors: Fix linting issues (most should be auto-fixed by `--fix`)
|
|
110
|
+
- Test failures:
|
|
111
|
+
- Run `git diff` to check for intentional code changes
|
|
112
|
+
- If intentional changes not reflected in tests: Update test code
|
|
113
|
+
- If source code bug: Fix source code
|
|
114
|
+
4. Proceed to Step 3
|
|
115
|
+
|
|
116
|
+
If all checks passed: Proceed to Completion.
|
|
117
|
+
|
|
118
|
+
### Step 3: Re-verify (Loop)
|
|
119
|
+
|
|
120
|
+
Go back to Step 1 and launch the 3 haiku agents again.
|
|
121
|
+
Repeat until all checks pass with no errors.
|
|
122
|
+
|
|
123
|
+
## Common Mistakes
|
|
124
|
+
|
|
125
|
+
### Running checks sequentially instead of parallel
|
|
126
|
+
❌ **Wrong**: Launch agent 1, wait, then agent 2, wait, then agent 3
|
|
127
|
+
✅ **Right**: Launch all 3 agents in a single message with multiple Task tool calls
|
|
80
128
|
|
|
81
|
-
|
|
82
|
-
|
|
129
|
+
### Fixing before collecting all results
|
|
130
|
+
❌ **Wrong**: Agent 1 returns error → fix immediately → launch agents again
|
|
131
|
+
✅ **Right**: Wait for all 3 agents → collect all errors → fix in priority order → re-verify
|
|
83
132
|
|
|
84
|
-
|
|
133
|
+
### Skipping re-verification after fixes
|
|
134
|
+
❌ **Wrong**: Fix typecheck error → assume lint/test still pass
|
|
135
|
+
✅ **Right**: Always re-run all 3 checks after any fix (fixes can introduce new errors)
|
|
85
136
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
- **Source code bug**: Fix the source code.
|
|
90
|
-
3. Re-run tests after the fix.
|
|
137
|
+
### Using wrong model for agents
|
|
138
|
+
❌ **Wrong**: `model: opus` or `model: sonnet` for verification agents
|
|
139
|
+
✅ **Right**: `model: haiku` for command execution (cheaper, faster)
|
|
91
140
|
|
|
92
141
|
## Completion Criteria
|
|
93
142
|
|
|
94
|
-
Complete when all 3
|
|
143
|
+
Complete when all 3 checks pass without errors.
|