supermind-claude 2.1.0 → 4.0.1

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 (44) hide show
  1. package/.claude-plugin/plugin.json +21 -0
  2. package/README.md +34 -46
  3. package/agents/code-reviewer.md +81 -0
  4. package/cli/commands/doctor.js +415 -79
  5. package/cli/commands/install.js +17 -18
  6. package/cli/commands/skill.js +164 -0
  7. package/cli/commands/uninstall.js +32 -3
  8. package/cli/commands/update.js +27 -5
  9. package/cli/index.js +16 -4
  10. package/cli/lib/agents.js +413 -0
  11. package/cli/lib/executor.js +365 -0
  12. package/cli/lib/hooks.js +8 -1
  13. package/cli/lib/logger.js +1 -1
  14. package/cli/lib/mcp.js +25 -5
  15. package/cli/lib/planning.js +502 -0
  16. package/cli/lib/platform.js +4 -0
  17. package/cli/lib/plugin.js +127 -0
  18. package/cli/lib/settings.js +2 -40
  19. package/cli/lib/skills.js +39 -2
  20. package/cli/lib/templates.js +48 -1
  21. package/cli/lib/vendor-skills.js +594 -0
  22. package/hooks/bash-permissions.js +196 -176
  23. package/hooks/context-monitor.js +79 -0
  24. package/hooks/improvement-logger.js +94 -0
  25. package/hooks/pre-merge-checklist.js +102 -0
  26. package/hooks/session-start.js +109 -5
  27. package/hooks/statusline-command.js +123 -29
  28. package/package.json +4 -2
  29. package/skills/anti-rationalization/SKILL.md +38 -0
  30. package/skills/brainstorming/SKILL.md +165 -0
  31. package/skills/code-review/SKILL.md +144 -0
  32. package/skills/executing-plans/SKILL.md +138 -0
  33. package/skills/finishing-branches/SKILL.md +144 -0
  34. package/skills/project/SKILL.md +533 -0
  35. package/skills/quick/SKILL.md +178 -0
  36. package/skills/supermind/SKILL.md +58 -4
  37. package/skills/supermind-init/SKILL.md +48 -2
  38. package/skills/systematic-debugging/SKILL.md +129 -0
  39. package/skills/tdd/SKILL.md +179 -0
  40. package/skills/using-git-worktrees/SKILL.md +138 -0
  41. package/skills/verification-before-completion/SKILL.md +54 -0
  42. package/skills/writing-plans/SKILL.md +169 -0
  43. package/templates/CLAUDE.md +124 -61
  44. package/cli/lib/plugins.js +0 -23
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "supermind",
3
+ "description": "Unified skill engine combining execution infrastructure with behavioral discipline for autonomous Claude Code development",
4
+ "version": "0.0.0",
5
+ "author": {
6
+ "name": "Steven Spivak"
7
+ },
8
+ "homepage": "https://github.com/steven-3/supermind",
9
+ "repository": "https://github.com/steven-3/supermind",
10
+ "license": "MIT",
11
+ "keywords": [
12
+ "skills",
13
+ "hooks",
14
+ "tdd",
15
+ "debugging",
16
+ "code-review",
17
+ "worktrees",
18
+ "autonomous",
19
+ "developer-tools"
20
+ ]
21
+ }
package/README.md CHANGED
@@ -1,47 +1,37 @@
1
1
  # Supermind
2
2
 
3
- Complete, opinionated Claude Code setup hooks, skills, status line, MCP servers, and living documentation.
3
+ A unified skill engine for Claude Code — execution infrastructure meets behavioral discipline. Two modes, 15 skills, 8 hooks, zero dependencies.
4
4
 
5
- ## Quick Install
5
+ ## Install
6
6
 
7
7
  ```bash
8
- npm install -g supermind-claude
9
- supermind-claude
8
+ npx supermind-claude
10
9
  ```
11
10
 
12
- Or run without installing: `npx supermind-claude`
11
+ Or install globally: `npm install -g supermind-claude && supermind-claude`
13
12
 
14
- ## What Gets Installed
13
+ Then run `/supermind-init` in any project to generate CLAUDE.md, ARCHITECTURE.md, and DESIGN.md.
15
14
 
16
- | Component | Location | Purpose |
17
- |-----------|----------|---------|
18
- | Hooks | ~/.claude/hooks/ | Session persistence, bash permissions, status line, cost tracking |
19
- | Skills | ~/.claude/skills/ | /supermind-init, /supermind-living-docs |
20
- | Plugins | settings.json | Superpowers, frontend-design, claude-md-management, ui-ux-pro-max |
21
- | Settings | settings.json | Thinking mode, effort level, hook registration |
22
- | Templates | ~/.claude/templates/ | CLAUDE.md project template |
15
+ ## Two Modes
23
16
 
24
- ## Project Setup
17
+ **`/quick`** Single-executor path for small tasks (bug fixes, renames, config changes). Fast and stateless.
25
18
 
26
- After installing, run `/supermind-init` in any project to:
27
- 1. Create or merge CLAUDE.md with project-specific config
28
- 2. Generate ARCHITECTURE.md (and DESIGN.md for UI projects)
29
- 3. Check setup health and discover relevant tools
19
+ **`/project`** — Full six-phase lifecycle for features and refactors: discuss, research, plan, execute (parallel waves), verify, ship. Coordinates fresh-context subagents with injected methodology skills.
30
20
 
31
- ## Living Documentation
21
+ **`/supermind`** auto-detects which mode fits your task and routes accordingly.
32
22
 
33
- - **Auto-read**: Session-start hook reads ARCHITECTURE.md and DESIGN.md at every conversation start
34
- - **Manual sync**: Run `/supermind-living-docs` to update docs after code changes
23
+ ## What's Included
35
24
 
36
- ## Status Line
37
-
38
- Two-line terminal display showing: user, model, path, git branch, context usage, thinking level, active agents, and session cost.
39
-
40
- ## MCP Servers
41
-
42
- Choose during setup:
43
- - **Docker** (AIRIS gateway): Single endpoint routing to context7, playwright, serena, tavily, chrome-devtools, shadcn
44
- - **Direct**: Individual servers via npx/uvx
25
+ | Component | Count | Purpose |
26
+ |-----------|-------|---------|
27
+ | Skills | 15 | Complexity router, TDD, debugging, brainstorming, code review, planning, execution, worktrees, and more |
28
+ | Hooks | 8 | Bash permissions (blocklist), session persistence, cost tracking, status line, context monitoring |
29
+ | Agents | 1 | Code reviewer for structured review in verify phase |
30
+ | Executor engine | 3 modules | Task packets, wave parallelism, agent prompt templates (cli/lib/) |
31
+ | Safety layer | 1 hook | Blocklist-based command classification with gate override logging |
32
+ | Living docs | 2 skills | Project onboarding (/supermind-init) and doc sync (/supermind-living-docs) |
33
+ | Vendor skills | CLI | Install third-party skills from GitHub with hash-locked integrity |
34
+ | Plugin | manifest | Dual distribution: npm package + Claude Code plugin |
45
35
 
46
36
  ## Commands
47
37
 
@@ -51,20 +41,17 @@ Choose during setup:
51
41
  | `supermind-claude update` | Refresh hooks, skills, templates |
52
42
  | `supermind-claude doctor` | Verify installation health |
53
43
  | `supermind-claude uninstall` | Remove all components |
54
- | `supermind-claude approve "cmd"` | Permanently auto-approve a command |
55
-
56
- ## Approved Commands
57
-
58
- Permanently auto-approve specific commands that the bash-permissions hook would normally flag:
44
+ | `supermind-claude approve "cmd"` | Auto-approve a blocked command |
45
+ | `supermind-claude skill add <url>` | Install vendor skill from GitHub |
46
+ | `supermind-claude skill update [name]` | Update vendor skill(s) |
47
+ | `supermind-claude skill list` | List installed vendor skills |
48
+ | `supermind-claude skill remove <name>` | Remove vendor skill |
59
49
 
60
- ```bash
61
- supermind-claude approve "git push" # exact/prefix match
62
- supermind-claude approve "/npm run .*/" # regex match
63
- supermind-claude approve --list # see all approved
64
- supermind-claude approve --remove "git push" # remove approval
65
- ```
50
+ ## MCP Servers
66
51
 
67
- Or tell Claude: "add that to my approved commands" — it knows how to edit the file directly.
52
+ Optional. Choose during setup:
53
+ - **Docker** (AIRIS gateway): Single endpoint routing to context7, playwright, serena, tavily, chrome-devtools, shadcn
54
+ - **Direct**: Individual servers via npx/uvx
68
55
 
69
56
  ## Platforms
70
57
 
@@ -72,7 +59,8 @@ Windows, macOS, and Linux. Requires Node.js >= 18.
72
59
 
73
60
  ## Troubleshooting
74
61
 
75
- Run `supermind-claude doctor` to check installation health. Common issues:
76
- - **Plugins not active**: Restart Claude Code after install
77
- - **Status line not showing**: Ensure Node.js is in PATH
78
- - **Hooks not firing**: Run `supermind-claude update` to re-register
62
+ Run `supermind-claude doctor` to check installation health.
63
+
64
+ ## Credits
65
+
66
+ Methodology skills forked from [obra/superpowers](https://github.com/obra/superpowers) (MIT) by Jesse Vincent and the Prime Radiant team. Execution architecture inspired by [gsd-build/get-shit-done](https://github.com/gsd-build/get-shit-done) (MIT). Both adapted and rebuilt as Supermind-native implementations.
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: code-reviewer
3
+ description: Subagent that reviews code changes against plan and coding standards
4
+ ---
5
+
6
+ # Code Reviewer Agent
7
+
8
+ You are a code reviewer for the Supermind project. Your job is to review code changes and produce a structured review. You do NOT modify files — you only analyze and report.
9
+
10
+ ## Inputs
11
+
12
+ You will receive:
13
+
14
+ - **Diff**: The git diff of all changes to review
15
+ - **Plan**: The implementation plan or task spec that describes what was supposed to be built
16
+ - **Task Spec**: Specific acceptance criteria and expected output for the task
17
+
18
+ ## Instructions
19
+
20
+ 1. Read the plan/task spec to understand what was intended
21
+ 2. Read the full diff carefully — every file, every hunk
22
+ 3. For each changed file, evaluate against ALL six criteria:
23
+ - **Spec compliance** — does the code do what the plan said?
24
+ - **Correctness** — logic errors, off-by-ones, edge cases, null handling, async correctness
25
+ - **Test coverage** — are important behaviors tested? Edge cases covered?
26
+ - **Security** — injection, path traversal, secrets in code, unsafe operations
27
+ - **Maintainability** — clear naming, reasonable complexity, no unnecessary abstractions
28
+ - **Consistency** — follows existing codebase patterns and conventions
29
+ 4. Classify each finding as Critical, Important, or Suggestion
30
+ 5. Produce the structured review output
31
+
32
+ ## Constraint
33
+
34
+ You are a reviewer only. Do NOT:
35
+ - Modify any files
36
+ - Run any commands that change state
37
+ - Create commits
38
+ - Suggest rewrites of working code for style preference alone
39
+
40
+ You MAY read files, run read-only commands (grep, git log, etc.), and run tests to verify behavior.
41
+
42
+ ## Input Template
43
+
44
+ ```
45
+ ### Diff
46
+ {{diff}}
47
+
48
+ ### Plan
49
+ {{plan}}
50
+
51
+ ### Task Spec
52
+ {{task_spec}}
53
+ ```
54
+
55
+ ## Output Format
56
+
57
+ ```
58
+ ## Code Review: [task/feature name]
59
+
60
+ ### Summary
61
+ One paragraph: overall assessment, confidence level.
62
+
63
+ ### Critical Issues
64
+ - [file:line] Description. Why it matters. Suggested fix.
65
+
66
+ ### Important Issues
67
+ - [file:line] Description. Why it matters. Suggested fix.
68
+
69
+ ### Suggestions
70
+ - [file:line] Description.
71
+
72
+ ### Verdict
73
+ PASS | NEEDS FIXES | FAIL
74
+ ```
75
+
76
+ **Verdict rules:**
77
+ - **PASS**: Zero critical AND zero important issues.
78
+ - **NEEDS FIXES**: Has critical or important issues, but fixable without redesign.
79
+ - **FAIL**: Fundamental problems requiring architectural change.
80
+
81
+ If a section has no items, write "None."