@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.
Files changed (119) hide show
  1. package/README.md +41 -0
  2. package/claude/agents/sd-api-reviewer.md +81 -0
  3. package/claude/agents/sd-code-reviewer.md +49 -0
  4. package/claude/agents/sd-code-simplifier.md +50 -0
  5. package/claude/sd-statusline.js +270 -0
  6. package/claude/skills/sd-api-name-review/SKILL.md +49 -0
  7. package/claude/skills/sd-brainstorm/SKILL.md +55 -0
  8. package/claude/skills/sd-check/SKILL.md +88 -0
  9. package/claude/skills/sd-commit/SKILL.md +48 -0
  10. package/claude/skills/sd-explore/SKILL.md +63 -0
  11. package/claude/skills/sd-plan/SKILL.md +104 -0
  12. package/claude/skills/sd-plan-dev/SKILL.md +266 -0
  13. package/claude/skills/sd-plan-dev/code-quality-reviewer-prompt.md +69 -0
  14. package/claude/skills/sd-plan-dev/implementer-prompt.md +50 -0
  15. package/claude/skills/sd-plan-dev/spec-reviewer-prompt.md +38 -0
  16. package/claude/skills/sd-readme/SKILL.md +95 -0
  17. package/claude/skills/sd-review/SKILL.md +93 -0
  18. package/claude/skills/sd-skill/SKILL.md +639 -0
  19. package/claude/skills/sd-skill/anthropic-best-practices.md +1150 -0
  20. package/claude/skills/sd-skill/examples/CLAUDE_MD_TESTING.md +189 -0
  21. package/claude/skills/sd-skill/persuasion-principles.md +187 -0
  22. package/claude/skills/sd-skill/testing-skills-with-subagents.md +384 -0
  23. package/claude/skills/sd-tdd/SKILL.md +373 -0
  24. package/claude/skills/sd-tdd/testing-anti-patterns.md +299 -0
  25. package/claude/skills/sd-worktree/SKILL.md +82 -0
  26. package/claude/skills/sd-worktree/sd-worktree.mjs +128 -0
  27. package/dist/commands/install.js +64 -0
  28. package/dist/commands/install.js.map +7 -0
  29. package/dist/commands/uninstall.js +40 -0
  30. package/dist/commands/uninstall.js.map +7 -0
  31. package/dist/core-common/src/common.types.d.ts +74 -0
  32. package/dist/core-common/src/common.types.d.ts.map +1 -0
  33. package/dist/core-common/src/env.d.ts +6 -0
  34. package/dist/core-common/src/env.d.ts.map +1 -0
  35. package/dist/core-common/src/errors/argument-error.d.ts +25 -0
  36. package/dist/core-common/src/errors/argument-error.d.ts.map +1 -0
  37. package/dist/core-common/src/errors/not-implemented-error.d.ts +29 -0
  38. package/dist/core-common/src/errors/not-implemented-error.d.ts.map +1 -0
  39. package/dist/core-common/src/errors/sd-error.d.ts +27 -0
  40. package/dist/core-common/src/errors/sd-error.d.ts.map +1 -0
  41. package/dist/core-common/src/errors/timeout-error.d.ts +31 -0
  42. package/dist/core-common/src/errors/timeout-error.d.ts.map +1 -0
  43. package/dist/core-common/src/extensions/arr-ext.d.ts +15 -0
  44. package/dist/core-common/src/extensions/arr-ext.d.ts.map +1 -0
  45. package/dist/core-common/src/extensions/arr-ext.helpers.d.ts +19 -0
  46. package/dist/core-common/src/extensions/arr-ext.helpers.d.ts.map +1 -0
  47. package/dist/core-common/src/extensions/arr-ext.types.d.ts +215 -0
  48. package/dist/core-common/src/extensions/arr-ext.types.d.ts.map +1 -0
  49. package/dist/core-common/src/extensions/map-ext.d.ts +57 -0
  50. package/dist/core-common/src/extensions/map-ext.d.ts.map +1 -0
  51. package/dist/core-common/src/extensions/set-ext.d.ts +36 -0
  52. package/dist/core-common/src/extensions/set-ext.d.ts.map +1 -0
  53. package/dist/core-common/src/features/debounce-queue.d.ts +53 -0
  54. package/dist/core-common/src/features/debounce-queue.d.ts.map +1 -0
  55. package/dist/core-common/src/features/event-emitter.d.ts +66 -0
  56. package/dist/core-common/src/features/event-emitter.d.ts.map +1 -0
  57. package/dist/core-common/src/features/serial-queue.d.ts +47 -0
  58. package/dist/core-common/src/features/serial-queue.d.ts.map +1 -0
  59. package/dist/core-common/src/index.d.ts +32 -0
  60. package/dist/core-common/src/index.d.ts.map +1 -0
  61. package/dist/core-common/src/types/date-only.d.ts +152 -0
  62. package/dist/core-common/src/types/date-only.d.ts.map +1 -0
  63. package/dist/core-common/src/types/date-time.d.ts +96 -0
  64. package/dist/core-common/src/types/date-time.d.ts.map +1 -0
  65. package/dist/core-common/src/types/lazy-gc-map.d.ts +80 -0
  66. package/dist/core-common/src/types/lazy-gc-map.d.ts.map +1 -0
  67. package/dist/core-common/src/types/time.d.ts +68 -0
  68. package/dist/core-common/src/types/time.d.ts.map +1 -0
  69. package/dist/core-common/src/types/uuid.d.ts +35 -0
  70. package/dist/core-common/src/types/uuid.d.ts.map +1 -0
  71. package/dist/core-common/src/utils/bytes.d.ts +51 -0
  72. package/dist/core-common/src/utils/bytes.d.ts.map +1 -0
  73. package/dist/core-common/src/utils/date-format.d.ts +90 -0
  74. package/dist/core-common/src/utils/date-format.d.ts.map +1 -0
  75. package/dist/core-common/src/utils/json.d.ts +34 -0
  76. package/dist/core-common/src/utils/json.d.ts.map +1 -0
  77. package/dist/core-common/src/utils/num.d.ts +60 -0
  78. package/dist/core-common/src/utils/num.d.ts.map +1 -0
  79. package/dist/core-common/src/utils/obj.d.ts +258 -0
  80. package/dist/core-common/src/utils/obj.d.ts.map +1 -0
  81. package/dist/core-common/src/utils/path.d.ts +23 -0
  82. package/dist/core-common/src/utils/path.d.ts.map +1 -0
  83. package/dist/core-common/src/utils/primitive.d.ts +18 -0
  84. package/dist/core-common/src/utils/primitive.d.ts.map +1 -0
  85. package/dist/core-common/src/utils/str.d.ts +103 -0
  86. package/dist/core-common/src/utils/str.d.ts.map +1 -0
  87. package/dist/core-common/src/utils/template-strings.d.ts +84 -0
  88. package/dist/core-common/src/utils/template-strings.d.ts.map +1 -0
  89. package/dist/core-common/src/utils/transferable.d.ts +47 -0
  90. package/dist/core-common/src/utils/transferable.d.ts.map +1 -0
  91. package/dist/core-common/src/utils/wait.d.ts +19 -0
  92. package/dist/core-common/src/utils/wait.d.ts.map +1 -0
  93. package/dist/core-common/src/utils/xml.d.ts +36 -0
  94. package/dist/core-common/src/utils/xml.d.ts.map +1 -0
  95. package/dist/core-common/src/zip/sd-zip.d.ts +80 -0
  96. package/dist/core-common/src/zip/sd-zip.d.ts.map +1 -0
  97. package/dist/core-node/src/features/fs-watcher.d.ts +70 -0
  98. package/dist/core-node/src/features/fs-watcher.d.ts.map +1 -0
  99. package/dist/core-node/src/index.d.ts +7 -0
  100. package/dist/core-node/src/index.d.ts.map +1 -0
  101. package/dist/core-node/src/utils/fs.d.ts +197 -0
  102. package/dist/core-node/src/utils/fs.d.ts.map +1 -0
  103. package/dist/core-node/src/utils/path.d.ts +75 -0
  104. package/dist/core-node/src/utils/path.d.ts.map +1 -0
  105. package/dist/core-node/src/worker/create-worker.d.ts +23 -0
  106. package/dist/core-node/src/worker/create-worker.d.ts.map +1 -0
  107. package/dist/core-node/src/worker/types.d.ts +67 -0
  108. package/dist/core-node/src/worker/types.d.ts.map +1 -0
  109. package/dist/core-node/src/worker/worker.d.ts +27 -0
  110. package/dist/core-node/src/worker/worker.d.ts.map +1 -0
  111. package/dist/sd-claude/src/commands/install.d.ts +14 -0
  112. package/dist/sd-claude/src/commands/install.d.ts.map +1 -0
  113. package/dist/sd-claude/src/commands/uninstall.d.ts +10 -0
  114. package/dist/sd-claude/src/commands/uninstall.d.ts.map +1 -0
  115. package/dist/sd-claude/src/sd-claude.d.ts +8 -0
  116. package/dist/sd-claude/src/sd-claude.d.ts.map +1 -0
  117. package/dist/sd-claude.js +40 -0
  118. package/dist/sd-claude.js.map +7 -0
  119. 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.