@simplysm/sd-claude 13.0.0-beta.11
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 +41 -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/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 +95 -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-worktree/SKILL.md +82 -0
- package/claude/skills/sd-worktree/sd-worktree.mjs +128 -0
- package/dist/commands/install.js +64 -0
- package/dist/commands/install.js.map +7 -0
- package/dist/commands/uninstall.js +40 -0
- package/dist/commands/uninstall.js.map +7 -0
- package/dist/core-common/src/common.types.d.ts +74 -0
- package/dist/core-common/src/common.types.d.ts.map +1 -0
- package/dist/core-common/src/env.d.ts +6 -0
- package/dist/core-common/src/env.d.ts.map +1 -0
- package/dist/core-common/src/errors/argument-error.d.ts +25 -0
- package/dist/core-common/src/errors/argument-error.d.ts.map +1 -0
- package/dist/core-common/src/errors/not-implemented-error.d.ts +29 -0
- package/dist/core-common/src/errors/not-implemented-error.d.ts.map +1 -0
- package/dist/core-common/src/errors/sd-error.d.ts +27 -0
- package/dist/core-common/src/errors/sd-error.d.ts.map +1 -0
- package/dist/core-common/src/errors/timeout-error.d.ts +31 -0
- package/dist/core-common/src/errors/timeout-error.d.ts.map +1 -0
- package/dist/core-common/src/extensions/arr-ext.d.ts +15 -0
- package/dist/core-common/src/extensions/arr-ext.d.ts.map +1 -0
- package/dist/core-common/src/extensions/arr-ext.helpers.d.ts +19 -0
- package/dist/core-common/src/extensions/arr-ext.helpers.d.ts.map +1 -0
- package/dist/core-common/src/extensions/arr-ext.types.d.ts +215 -0
- package/dist/core-common/src/extensions/arr-ext.types.d.ts.map +1 -0
- package/dist/core-common/src/extensions/map-ext.d.ts +57 -0
- package/dist/core-common/src/extensions/map-ext.d.ts.map +1 -0
- package/dist/core-common/src/extensions/set-ext.d.ts +36 -0
- package/dist/core-common/src/extensions/set-ext.d.ts.map +1 -0
- package/dist/core-common/src/features/debounce-queue.d.ts +53 -0
- package/dist/core-common/src/features/debounce-queue.d.ts.map +1 -0
- package/dist/core-common/src/features/event-emitter.d.ts +66 -0
- package/dist/core-common/src/features/event-emitter.d.ts.map +1 -0
- package/dist/core-common/src/features/serial-queue.d.ts +47 -0
- package/dist/core-common/src/features/serial-queue.d.ts.map +1 -0
- package/dist/core-common/src/index.d.ts +32 -0
- package/dist/core-common/src/index.d.ts.map +1 -0
- package/dist/core-common/src/types/date-only.d.ts +152 -0
- package/dist/core-common/src/types/date-only.d.ts.map +1 -0
- package/dist/core-common/src/types/date-time.d.ts +96 -0
- package/dist/core-common/src/types/date-time.d.ts.map +1 -0
- package/dist/core-common/src/types/lazy-gc-map.d.ts +80 -0
- package/dist/core-common/src/types/lazy-gc-map.d.ts.map +1 -0
- package/dist/core-common/src/types/time.d.ts +68 -0
- package/dist/core-common/src/types/time.d.ts.map +1 -0
- package/dist/core-common/src/types/uuid.d.ts +35 -0
- package/dist/core-common/src/types/uuid.d.ts.map +1 -0
- package/dist/core-common/src/utils/bytes.d.ts +51 -0
- package/dist/core-common/src/utils/bytes.d.ts.map +1 -0
- package/dist/core-common/src/utils/date-format.d.ts +90 -0
- package/dist/core-common/src/utils/date-format.d.ts.map +1 -0
- package/dist/core-common/src/utils/json.d.ts +34 -0
- package/dist/core-common/src/utils/json.d.ts.map +1 -0
- package/dist/core-common/src/utils/num.d.ts +60 -0
- package/dist/core-common/src/utils/num.d.ts.map +1 -0
- package/dist/core-common/src/utils/obj.d.ts +258 -0
- package/dist/core-common/src/utils/obj.d.ts.map +1 -0
- package/dist/core-common/src/utils/path.d.ts +23 -0
- package/dist/core-common/src/utils/path.d.ts.map +1 -0
- package/dist/core-common/src/utils/primitive.d.ts +18 -0
- package/dist/core-common/src/utils/primitive.d.ts.map +1 -0
- package/dist/core-common/src/utils/str.d.ts +103 -0
- package/dist/core-common/src/utils/str.d.ts.map +1 -0
- package/dist/core-common/src/utils/template-strings.d.ts +84 -0
- package/dist/core-common/src/utils/template-strings.d.ts.map +1 -0
- package/dist/core-common/src/utils/transferable.d.ts +47 -0
- package/dist/core-common/src/utils/transferable.d.ts.map +1 -0
- package/dist/core-common/src/utils/wait.d.ts +19 -0
- package/dist/core-common/src/utils/wait.d.ts.map +1 -0
- package/dist/core-common/src/utils/xml.d.ts +36 -0
- package/dist/core-common/src/utils/xml.d.ts.map +1 -0
- package/dist/core-common/src/zip/sd-zip.d.ts +80 -0
- package/dist/core-common/src/zip/sd-zip.d.ts.map +1 -0
- package/dist/core-node/src/features/fs-watcher.d.ts +70 -0
- package/dist/core-node/src/features/fs-watcher.d.ts.map +1 -0
- package/dist/core-node/src/index.d.ts +7 -0
- package/dist/core-node/src/index.d.ts.map +1 -0
- package/dist/core-node/src/utils/fs.d.ts +197 -0
- package/dist/core-node/src/utils/fs.d.ts.map +1 -0
- package/dist/core-node/src/utils/path.d.ts +75 -0
- package/dist/core-node/src/utils/path.d.ts.map +1 -0
- package/dist/core-node/src/worker/create-worker.d.ts +23 -0
- package/dist/core-node/src/worker/create-worker.d.ts.map +1 -0
- package/dist/core-node/src/worker/types.d.ts +67 -0
- package/dist/core-node/src/worker/types.d.ts.map +1 -0
- package/dist/core-node/src/worker/worker.d.ts +27 -0
- package/dist/core-node/src/worker/worker.d.ts.map +1 -0
- package/dist/sd-claude/src/commands/install.d.ts +14 -0
- package/dist/sd-claude/src/commands/install.d.ts.map +1 -0
- package/dist/sd-claude/src/commands/uninstall.d.ts +10 -0
- package/dist/sd-claude/src/commands/uninstall.d.ts.map +1 -0
- package/dist/sd-claude/src/sd-claude.d.ts +8 -0
- package/dist/sd-claude/src/sd-claude.d.ts.map +1 -0
- package/dist/sd-claude.js +40 -0
- package/dist/sd-claude.js.map +7 -0
- package/package.json +30 -0
|
@@ -0,0 +1,95 @@
|
|
|
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>"
|
|
5
|
+
model: haiku
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# sd-readme
|
|
9
|
+
|
|
10
|
+
Update a package's README.md based on git commits since its last modification.
|
|
11
|
+
|
|
12
|
+
## Step 1: Resolve Package Path
|
|
13
|
+
|
|
14
|
+
`$ARGUMENTS` is the package name or path (e.g., `sd-cli`, `packages/sd-cli`, `packages/core-common`).
|
|
15
|
+
|
|
16
|
+
- If it doesn't start with `packages/`, prepend `packages/`.
|
|
17
|
+
- Verify `<pkg-path>/README.md` exists. If not, stop and report.
|
|
18
|
+
|
|
19
|
+
## Step 2: Gather Change Context
|
|
20
|
+
|
|
21
|
+
Run these git commands **in sequence** (second depends on first):
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# 1. Last commit that modified the README
|
|
25
|
+
git log -1 --format="%H %ai %s" -- <pkg-path>/README.md
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
If git log returns **no output** (README was never committed), treat all package commits as relevant:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
git log --oneline -- <pkg-path>/
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Otherwise, take the commit hash from above, then:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# 2. All commits to the package since that hash
|
|
38
|
+
git log <hash>..HEAD --oneline -- <pkg-path>/
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
If **no commits** exist since the last README update → report "README is already up to date" and **stop**.
|
|
42
|
+
|
|
43
|
+
## Step 3: Categorize Changes
|
|
44
|
+
|
|
45
|
+
For each commit, assess README impact:
|
|
46
|
+
|
|
47
|
+
| Category | Impact | README Action |
|
|
48
|
+
|----------|--------|---------------|
|
|
49
|
+
| New public export (function, class, type) | **High** | Add documentation |
|
|
50
|
+
| Changed API signature (params, return type) | **High** | Update existing docs |
|
|
51
|
+
| Removed/renamed public API | **High** | Remove or update |
|
|
52
|
+
| New feature (user-visible behavior) | **Medium** | Add description/example |
|
|
53
|
+
| Bug fix | **Low** | Skip unless it changes documented behavior |
|
|
54
|
+
| Refactoring (internal) | **None** | Skip |
|
|
55
|
+
| Build/config/dependency change | **None** | Skip |
|
|
56
|
+
| Version bump | **None** | Skip |
|
|
57
|
+
|
|
58
|
+
For commits with **unclear impact**, inspect the actual diff:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
git show <hash> -- <pkg-path>/src/
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Step 4: Cross-Check Exports
|
|
65
|
+
|
|
66
|
+
Read `<pkg-path>/src/index.ts` to verify:
|
|
67
|
+
|
|
68
|
+
- All **current public exports** are documented in the README
|
|
69
|
+
- No **removed exports** are still documented
|
|
70
|
+
- Any **new exports** not yet in README are identified
|
|
71
|
+
|
|
72
|
+
This catches changes that might have been missed in commit analysis.
|
|
73
|
+
|
|
74
|
+
## Step 5: Present Findings
|
|
75
|
+
|
|
76
|
+
Before editing, report to the user:
|
|
77
|
+
|
|
78
|
+
1. **Commits analyzed**: total count and date range
|
|
79
|
+
2. **Changes requiring README updates**: list each with category and what to add/modify
|
|
80
|
+
3. **No-action commits**: briefly note what was skipped and why
|
|
81
|
+
4. **Export mismatches**: any undocumented or stale exports found
|
|
82
|
+
|
|
83
|
+
Wait for user confirmation before proceeding to edit.
|
|
84
|
+
|
|
85
|
+
## Step 6: Update README
|
|
86
|
+
|
|
87
|
+
Read the current README, then edit **only** the affected sections.
|
|
88
|
+
|
|
89
|
+
**Rules:**
|
|
90
|
+
- README content is written in **English**
|
|
91
|
+
- **Preserve existing structure** — do not reorganize or rewrite unchanged sections
|
|
92
|
+
- **Match style** — follow the same documentation depth, table format, and code example style as existing entries
|
|
93
|
+
- For new APIs: include description, usage example, and parameter/option table if the existing style uses them
|
|
94
|
+
- Remove documentation for APIs that no longer exist
|
|
95
|
+
- 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.
|