@simplysm/claude 13.0.0-beta.22
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/README.md +32 -0
- package/claude/agents/sd-api-reviewer.md +81 -0
- package/claude/agents/sd-code-reviewer.md +49 -0
- package/claude/agents/sd-code-simplifier.md +50 -0
- package/claude/rules/sd-context7.md +26 -0
- package/claude/sd-statusline.js +270 -0
- package/claude/skills/sd-api-name-review/SKILL.md +49 -0
- package/claude/skills/sd-brainstorm/SKILL.md +55 -0
- package/claude/skills/sd-check/SKILL.md +88 -0
- package/claude/skills/sd-commit/SKILL.md +48 -0
- package/claude/skills/sd-explore/SKILL.md +63 -0
- package/claude/skills/sd-plan/SKILL.md +104 -0
- package/claude/skills/sd-plan-dev/SKILL.md +266 -0
- package/claude/skills/sd-plan-dev/code-quality-reviewer-prompt.md +69 -0
- package/claude/skills/sd-plan-dev/implementer-prompt.md +50 -0
- package/claude/skills/sd-plan-dev/spec-reviewer-prompt.md +38 -0
- package/claude/skills/sd-readme/SKILL.md +131 -0
- package/claude/skills/sd-review/SKILL.md +93 -0
- package/claude/skills/sd-skill/SKILL.md +639 -0
- package/claude/skills/sd-skill/anthropic-best-practices.md +1150 -0
- package/claude/skills/sd-skill/examples/CLAUDE_MD_TESTING.md +189 -0
- package/claude/skills/sd-skill/persuasion-principles.md +187 -0
- package/claude/skills/sd-skill/testing-skills-with-subagents.md +384 -0
- package/claude/skills/sd-tdd/SKILL.md +373 -0
- package/claude/skills/sd-tdd/testing-anti-patterns.md +299 -0
- package/claude/skills/sd-use/SKILL.md +70 -0
- package/claude/skills/sd-worktree/SKILL.md +82 -0
- package/claude/skills/sd-worktree/sd-worktree.mjs +128 -0
- package/package.json +21 -0
- package/scripts/postinstall.mjs +99 -0
- package/scripts/sync-claude-assets.mjs +46 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Spec Compliance Reviewer Prompt
|
|
2
|
+
|
|
3
|
+
Send the following as prompt to `Task(general-purpose)` (sub-Task launched by task agent).
|
|
4
|
+
|
|
5
|
+
**Purpose:** Verify the implementation matches the spec exactly (nothing more, nothing less)
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
You are reviewing whether an implementation matches its specification.
|
|
9
|
+
|
|
10
|
+
## What Was Requested
|
|
11
|
+
|
|
12
|
+
[FULL TEXT of task requirements]
|
|
13
|
+
|
|
14
|
+
## What Implementer Claims They Built
|
|
15
|
+
|
|
16
|
+
[From implementer's report]
|
|
17
|
+
|
|
18
|
+
## CRITICAL: Do Not Trust the Report
|
|
19
|
+
|
|
20
|
+
Verify everything independently by reading the actual code.
|
|
21
|
+
|
|
22
|
+
**DO NOT:** Take their word, trust their claims, accept their interpretation.
|
|
23
|
+
|
|
24
|
+
**DO:** Read actual code, compare to requirements line by line, check for missing/extra pieces.
|
|
25
|
+
|
|
26
|
+
## Verify
|
|
27
|
+
|
|
28
|
+
**Missing requirements:** Did they implement everything? Did they skip anything?
|
|
29
|
+
|
|
30
|
+
**Extra/unneeded work:** Did they build things not requested? Over-engineer?
|
|
31
|
+
|
|
32
|
+
**Misunderstandings:** Did they interpret requirements differently? Solve wrong problem?
|
|
33
|
+
|
|
34
|
+
## Report
|
|
35
|
+
|
|
36
|
+
- ✅ Spec compliant (if everything matches after code inspection)
|
|
37
|
+
- ❌ Issues found: [list specifically what's missing or extra, with file:line references]
|
|
38
|
+
```
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sd-readme
|
|
3
|
+
description: Use when updating a package README.md to reflect recent code changes, or when asked to sync README with current implementation
|
|
4
|
+
argument-hint: "<package-name or path> (optional - omit to update all)"
|
|
5
|
+
model: haiku
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# sd-readme
|
|
9
|
+
|
|
10
|
+
Update README.md files based on git commits since their last modification.
|
|
11
|
+
|
|
12
|
+
## Step 0: Check for Batch Mode
|
|
13
|
+
|
|
14
|
+
If `$ARGUMENTS` is **empty or blank**:
|
|
15
|
+
|
|
16
|
+
1. Use `Glob` with pattern `packages/*/package.json` to discover all packages.
|
|
17
|
+
2. Launch **parallel subagents** via the `Task` tool (`subagent_type: "general-purpose"`, `model: "haiku"`):
|
|
18
|
+
- One subagent for **project root README.md** with prompt:
|
|
19
|
+
```
|
|
20
|
+
Update the project root README.md at /home/kslhunter/projects/simplysm/README.md based on recent git changes.
|
|
21
|
+
- Run: git log -1 --format="%H %ai %s" -- README.md
|
|
22
|
+
- If no output, treat all commits as relevant: git log --oneline -30
|
|
23
|
+
- Otherwise: git log <hash>..HEAD --oneline
|
|
24
|
+
- If no commits since last update, report "already up to date" and stop.
|
|
25
|
+
- Read the current README.md, read CLAUDE.md for project context, then edit only affected sections.
|
|
26
|
+
- README content must be in English.
|
|
27
|
+
- Preserve existing structure. Match existing style. Do not add changelog sections.
|
|
28
|
+
```
|
|
29
|
+
- One subagent **per package** with prompt:
|
|
30
|
+
```
|
|
31
|
+
Update the README.md for package <pkg-name> at <pkg-path>/README.md based on recent git changes.
|
|
32
|
+
Follow these steps:
|
|
33
|
+
1. Run: git log -1 --format="%H %ai %s" -- <pkg-path>/README.md
|
|
34
|
+
2. If no output, all commits are relevant: git log --oneline -- <pkg-path>/
|
|
35
|
+
Otherwise: git log <hash>..HEAD --oneline -- <pkg-path>/
|
|
36
|
+
3. If no commits since last update, report "already up to date" and stop.
|
|
37
|
+
4. Read <pkg-path>/src/index.ts to verify all public exports are documented.
|
|
38
|
+
5. Read the current README.md, then edit only affected sections.
|
|
39
|
+
6. README content must be in English.
|
|
40
|
+
7. Preserve existing structure. Match existing style. Do not add changelog sections.
|
|
41
|
+
8. If README.md does not exist, create it following the style of other package READMEs in this repo.
|
|
42
|
+
```
|
|
43
|
+
3. Collect all subagent results and **report a summary** to the user: which READMEs were updated, which were already up to date.
|
|
44
|
+
4. **Stop here** — do not proceed to the single-package steps below.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Step 1: Resolve Package Path (Single Package Mode)
|
|
49
|
+
|
|
50
|
+
`$ARGUMENTS` is the package name or path (e.g., `sd-cli`, `packages/sd-cli`, `packages/core-common`).
|
|
51
|
+
|
|
52
|
+
- If it doesn't start with `packages/`, prepend `packages/`.
|
|
53
|
+
- Verify `<pkg-path>/README.md` exists. If not, stop and report.
|
|
54
|
+
|
|
55
|
+
## Step 2: Gather Change Context
|
|
56
|
+
|
|
57
|
+
Run these git commands **in sequence** (second depends on first):
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# 1. Last commit that modified the README
|
|
61
|
+
git log -1 --format="%H %ai %s" -- <pkg-path>/README.md
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
If git log returns **no output** (README was never committed), treat all package commits as relevant:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
git log --oneline -- <pkg-path>/
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Otherwise, take the commit hash from above, then:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
# 2. All commits to the package since that hash
|
|
74
|
+
git log <hash>..HEAD --oneline -- <pkg-path>/
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
If **no commits** exist since the last README update → report "README is already up to date" and **stop**.
|
|
78
|
+
|
|
79
|
+
## Step 3: Categorize Changes
|
|
80
|
+
|
|
81
|
+
For each commit, assess README impact:
|
|
82
|
+
|
|
83
|
+
| Category | Impact | README Action |
|
|
84
|
+
|----------|--------|---------------|
|
|
85
|
+
| New public export (function, class, type) | **High** | Add documentation |
|
|
86
|
+
| Changed API signature (params, return type) | **High** | Update existing docs |
|
|
87
|
+
| Removed/renamed public API | **High** | Remove or update |
|
|
88
|
+
| New feature (user-visible behavior) | **Medium** | Add description/example |
|
|
89
|
+
| Bug fix | **Low** | Skip unless it changes documented behavior |
|
|
90
|
+
| Refactoring (internal) | **None** | Skip |
|
|
91
|
+
| Build/config/dependency change | **None** | Skip |
|
|
92
|
+
| Version bump | **None** | Skip |
|
|
93
|
+
|
|
94
|
+
For commits with **unclear impact**, inspect the actual diff:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
git show <hash> -- <pkg-path>/src/
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Step 4: Cross-Check Exports
|
|
101
|
+
|
|
102
|
+
Read `<pkg-path>/src/index.ts` to verify:
|
|
103
|
+
|
|
104
|
+
- All **current public exports** are documented in the README
|
|
105
|
+
- No **removed exports** are still documented
|
|
106
|
+
- Any **new exports** not yet in README are identified
|
|
107
|
+
|
|
108
|
+
This catches changes that might have been missed in commit analysis.
|
|
109
|
+
|
|
110
|
+
## Step 5: Present Findings
|
|
111
|
+
|
|
112
|
+
Before editing, report to the user:
|
|
113
|
+
|
|
114
|
+
1. **Commits analyzed**: total count and date range
|
|
115
|
+
2. **Changes requiring README updates**: list each with category and what to add/modify
|
|
116
|
+
3. **No-action commits**: briefly note what was skipped and why
|
|
117
|
+
4. **Export mismatches**: any undocumented or stale exports found
|
|
118
|
+
|
|
119
|
+
Wait for user confirmation before proceeding to edit.
|
|
120
|
+
|
|
121
|
+
## Step 6: Update README
|
|
122
|
+
|
|
123
|
+
Read the current README, then edit **only** the affected sections.
|
|
124
|
+
|
|
125
|
+
**Rules:**
|
|
126
|
+
- README content is written in **English**
|
|
127
|
+
- **Preserve existing structure** — do not reorganize or rewrite unchanged sections
|
|
128
|
+
- **Match style** — follow the same documentation depth, table format, and code example style as existing entries
|
|
129
|
+
- For new APIs: include description, usage example, and parameter/option table if the existing style uses them
|
|
130
|
+
- Remove documentation for APIs that no longer exist
|
|
131
|
+
- Do not add version history, changelog, or "recently updated" sections
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sd-review
|
|
3
|
+
description: Use when performing a comprehensive code review of a package or path - uses sd-explore for code analysis in a forked context, then dispatches to specialized reviewer agents
|
|
4
|
+
model: inherit
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# sd-review
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
Perform a multi-perspective code review of a package or specified path, producing a comprehensive report. **Analysis only — no code modifications.**
|
|
12
|
+
|
|
13
|
+
Analyzes code via the `sd-explore` skill, then runs 3 subagents in parallel for specialized review. Collects subagent results, verifies each finding against actual code, and writes the final report.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
- `/sd-review packages/solid` — review source code at the given path
|
|
18
|
+
- `/sd-review` — if no argument, ask the user for the target path
|
|
19
|
+
|
|
20
|
+
## Target Selection
|
|
21
|
+
|
|
22
|
+
1. If `$ARGUMENTS` contains a path, use that path
|
|
23
|
+
2. Otherwise, ask the user for the target path
|
|
24
|
+
|
|
25
|
+
**Important: the review scope is ALL source files under the target path.** Do not use git status or git diff to limit to changed files. Analyze every source file in the target path.
|
|
26
|
+
|
|
27
|
+
## Reviewer Agents
|
|
28
|
+
|
|
29
|
+
Run 3 subagents in parallel via the Task tool:
|
|
30
|
+
|
|
31
|
+
| Agent Type | Role |
|
|
32
|
+
|----------------------|------|
|
|
33
|
+
| `sd-code-reviewer` | Bugs, security, logic errors, convention issues |
|
|
34
|
+
| `sd-code-simplifier` | Complexity, duplication, readability issues |
|
|
35
|
+
| `sd-api-reviewer` | DX/usability, naming, type hints |
|
|
36
|
+
|
|
37
|
+
## Workflow
|
|
38
|
+
|
|
39
|
+
### Step 1: Code Analysis via sd-explore
|
|
40
|
+
|
|
41
|
+
Invoke the `sd-explore` skill via the Skill tool to analyze the target path:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
Skill: sd-explore
|
|
45
|
+
Args: <target-path>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
This runs in a **separate context**, so it does not consume the main context window. The analysis covers:
|
|
49
|
+
|
|
50
|
+
- Feature Discovery: entry points, core files, module boundaries
|
|
51
|
+
- Code Flow Tracing: call chains, data transformations, state changes
|
|
52
|
+
- Architecture Analysis: abstraction layers, design patterns, dependency graph
|
|
53
|
+
- Implementation Details: error handling, public API surface, performance
|
|
54
|
+
|
|
55
|
+
### Step 2: Dispatch Analysis to Reviewers
|
|
56
|
+
|
|
57
|
+
Run 3 subagents **in parallel** via the Task tool. Include the sd-explore analysis results in each subagent's prompt:
|
|
58
|
+
|
|
59
|
+
- **sd-code-reviewer**: Based on the analysis, find bugs, security vulnerabilities, logic errors, and convention issues. Each finding must include **file:line** and **evidence**.
|
|
60
|
+
- **sd-code-simplifier**: Based on the analysis, find unnecessary complexity, code duplication, and readability issues. Each finding must include **file:line** and **evidence**. **No code modifications.**
|
|
61
|
+
- **sd-api-reviewer**: Based on the analysis, review API intuitiveness, naming consistency, type hints, error messages, and configuration complexity. Each finding must include **file:line** and **evidence**.
|
|
62
|
+
|
|
63
|
+
### Step 3: Verify Issues
|
|
64
|
+
|
|
65
|
+
After collecting results from all 3 subagents, verify each issue against the actual code:
|
|
66
|
+
|
|
67
|
+
- **Valid**: the issue is real → include in the report
|
|
68
|
+
- **Invalid — already handled**: handled elsewhere in the codebase (provide evidence)
|
|
69
|
+
- **Invalid — intentional pattern**: by-design architectural decision
|
|
70
|
+
- **Invalid — misread**: the reviewer misinterpreted the code
|
|
71
|
+
|
|
72
|
+
### Step 4: Final Report
|
|
73
|
+
|
|
74
|
+
Compile only **verified findings** into a comprehensive report.
|
|
75
|
+
|
|
76
|
+
### Report Structure
|
|
77
|
+
|
|
78
|
+
| Section | Priority | Source |
|
|
79
|
+
|---------|----------|--------|
|
|
80
|
+
| **Architecture Summary** | — | sd-explore analysis |
|
|
81
|
+
| **Critical Issues** | P0 | Bugs, security vulnerabilities |
|
|
82
|
+
| **Quality Issues** | P1 | Logic errors, missing error handling, performance |
|
|
83
|
+
| **DX/Usability Issues** | P2 | API intuitiveness, naming, type hints |
|
|
84
|
+
| **Simplification Opportunities** | P3 | Complexity removal, duplicate code, abstractions |
|
|
85
|
+
| **Convention Issues** | P4 | Project convention mismatches |
|
|
86
|
+
|
|
87
|
+
Each issue includes **file:line**, **description**, and **suggestion**.
|
|
88
|
+
|
|
89
|
+
Optionally include an **Invalid Findings Summary** appendix showing which findings were filtered out and why.
|
|
90
|
+
|
|
91
|
+
## Completion Criteria
|
|
92
|
+
|
|
93
|
+
Present the comprehensive report to the user. No code modifications.
|