@thebushidocollective/han 1.53.3 → 1.55.0
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 -28
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -6,23 +6,36 @@ A curated marketplace of Claude Code plugins built on the foundation of the seve
|
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### Quick Install (Recommended)
|
|
10
|
+
|
|
11
|
+
Install the han binary for fastest execution and automatic hook support:
|
|
10
12
|
|
|
11
13
|
```bash
|
|
12
|
-
|
|
14
|
+
curl -fsSL https://han.guru/install.sh | bash
|
|
13
15
|
```
|
|
14
16
|
|
|
15
|
-
This
|
|
17
|
+
This installs to `~/.claude/bin/han`, which is automatically added to PATH by Claude Code.
|
|
18
|
+
|
|
19
|
+
### Alternative: Homebrew
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
brew install thebushidocollective/tap/han
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Note:** The `core` plugin automatically installs the han binary when you start a Claude Code session, so manual installation is optional.
|
|
16
26
|
|
|
17
27
|
## Plugin Categories
|
|
18
28
|
|
|
19
|
-
Han organizes plugins into
|
|
29
|
+
Han organizes plugins into five categories inspired by Japanese samurai traditions:
|
|
20
30
|
|
|
21
|
-
- **
|
|
31
|
+
- **Core** (⚙️) - **Required infrastructure** - Auto-installs han binary, provides hook system, MCP servers, and universal principles
|
|
32
|
+
- **Bushido** (武士道) - Core principles, enforcement hooks, and foundational quality skills (strongly recommended)
|
|
22
33
|
- **Do** (道 - The Way) - Specialized agents for development disciplines and practices
|
|
23
34
|
- **Jutsu** (術 - Techniques) - Language and tool skills with validation hooks for quality
|
|
24
35
|
- **Hashi** (橋 - Bridges) - MCP servers providing external knowledge and integrations
|
|
25
36
|
|
|
37
|
+
> **Important:** The `core` plugin is always required and automatically included with `--auto` installation.
|
|
38
|
+
|
|
26
39
|
## Commands
|
|
27
40
|
|
|
28
41
|
### plugin install
|
|
@@ -31,13 +44,13 @@ Install plugins interactively or automatically.
|
|
|
31
44
|
|
|
32
45
|
```bash
|
|
33
46
|
# Interactive mode - browse and select plugins
|
|
34
|
-
|
|
47
|
+
han plugin install
|
|
35
48
|
|
|
36
49
|
# Auto-detect mode - AI analyzes codebase and recommends plugins
|
|
37
|
-
|
|
50
|
+
han plugin install --auto
|
|
38
51
|
|
|
39
52
|
# Install specific plugin by name
|
|
40
|
-
|
|
53
|
+
han plugin install <plugin-name>
|
|
41
54
|
```
|
|
42
55
|
|
|
43
56
|
**Options:**
|
|
@@ -57,7 +70,7 @@ npx @thebushidocollective/han plugin install <plugin-name>
|
|
|
57
70
|
Remove a specific plugin.
|
|
58
71
|
|
|
59
72
|
```bash
|
|
60
|
-
|
|
73
|
+
han plugin uninstall <plugin-name> [--scope <project|local>]
|
|
61
74
|
```
|
|
62
75
|
|
|
63
76
|
### plugin search
|
|
@@ -65,7 +78,7 @@ npx @thebushidocollective/han plugin uninstall <plugin-name> [--scope <project|l
|
|
|
65
78
|
Search for plugins in the Han marketplace.
|
|
66
79
|
|
|
67
80
|
```bash
|
|
68
|
-
|
|
81
|
+
han plugin search [query]
|
|
69
82
|
```
|
|
70
83
|
|
|
71
84
|
### plugin update-marketplace
|
|
@@ -73,7 +86,7 @@ npx @thebushidocollective/han plugin search [query]
|
|
|
73
86
|
Update the local marketplace cache from GitHub.
|
|
74
87
|
|
|
75
88
|
```bash
|
|
76
|
-
|
|
89
|
+
han plugin update-marketplace
|
|
77
90
|
```
|
|
78
91
|
|
|
79
92
|
The marketplace cache is automatically refreshed every 24 hours when using `han plugin install` or `han plugin search`. Use this command to manually force a refresh if you want to see the latest plugins immediately.
|
|
@@ -91,10 +104,10 @@ Run a hook command defined by a plugin.
|
|
|
91
104
|
|
|
92
105
|
```bash
|
|
93
106
|
# New format (recommended) - uses plugin's han-config.json
|
|
94
|
-
|
|
107
|
+
han hook run <plugin-name> <hook-name> [options]
|
|
95
108
|
|
|
96
109
|
# Legacy format - run arbitrary commands in matching directories
|
|
97
|
-
|
|
110
|
+
han hook run --dirs-with <pattern> -- <command>
|
|
98
111
|
```
|
|
99
112
|
|
|
100
113
|
**Options:**
|
|
@@ -108,16 +121,16 @@ npx @thebushidocollective/han hook run --dirs-with <pattern> -- <command>
|
|
|
108
121
|
|
|
109
122
|
```bash
|
|
110
123
|
# Run TypeScript type checking using plugin config
|
|
111
|
-
|
|
124
|
+
han hook run jutsu-typescript typecheck
|
|
112
125
|
|
|
113
126
|
# Run with caching (skip if no changes)
|
|
114
|
-
|
|
127
|
+
han hook run jutsu-elixir test --cached
|
|
115
128
|
|
|
116
129
|
# Run in a specific directory only
|
|
117
|
-
|
|
130
|
+
han hook run jutsu-biome lint --only=packages/core
|
|
118
131
|
|
|
119
132
|
# Legacy: Run npm test in all directories with package.json
|
|
120
|
-
|
|
133
|
+
han hook run --dirs-with package.json -- npm test
|
|
121
134
|
```
|
|
122
135
|
|
|
123
136
|
### hook explain
|
|
@@ -125,7 +138,7 @@ npx @thebushidocollective/han hook run --dirs-with package.json -- npm test
|
|
|
125
138
|
Show comprehensive information about configured hooks.
|
|
126
139
|
|
|
127
140
|
```bash
|
|
128
|
-
|
|
141
|
+
han hook explain [hookType] [--all]
|
|
129
142
|
```
|
|
130
143
|
|
|
131
144
|
**Options:**
|
|
@@ -137,13 +150,13 @@ npx @thebushidocollective/han hook explain [hookType] [--all]
|
|
|
137
150
|
|
|
138
151
|
```bash
|
|
139
152
|
# Show all Han plugin hooks
|
|
140
|
-
|
|
153
|
+
han hook explain
|
|
141
154
|
|
|
142
155
|
# Show only Stop hooks
|
|
143
|
-
|
|
156
|
+
han hook explain Stop
|
|
144
157
|
|
|
145
158
|
# Show all hooks including settings
|
|
146
|
-
|
|
159
|
+
han hook explain --all
|
|
147
160
|
```
|
|
148
161
|
|
|
149
162
|
### hook dispatch
|
|
@@ -151,7 +164,7 @@ npx @thebushidocollective/han hook explain --all
|
|
|
151
164
|
Dispatch hooks of a specific type across all installed Han plugins.
|
|
152
165
|
|
|
153
166
|
```bash
|
|
154
|
-
|
|
167
|
+
han hook dispatch <hookType> [--all]
|
|
155
168
|
```
|
|
156
169
|
|
|
157
170
|
This is useful for triggering hooks manually or for workarounds when plugin hook output needs to be passed to the agent.
|
|
@@ -160,10 +173,10 @@ This is useful for triggering hooks manually or for workarounds when plugin hook
|
|
|
160
173
|
|
|
161
174
|
```bash
|
|
162
175
|
# Dispatch SessionStart hooks
|
|
163
|
-
|
|
176
|
+
han hook dispatch SessionStart
|
|
164
177
|
|
|
165
178
|
# Dispatch Stop hooks including settings hooks
|
|
166
|
-
|
|
179
|
+
han hook dispatch Stop --all
|
|
167
180
|
```
|
|
168
181
|
|
|
169
182
|
### hook test
|
|
@@ -172,10 +185,10 @@ Validate hook configurations for all installed plugins.
|
|
|
172
185
|
|
|
173
186
|
```bash
|
|
174
187
|
# Validate hook structure and syntax only
|
|
175
|
-
|
|
188
|
+
han hook test
|
|
176
189
|
|
|
177
190
|
# Validate AND execute hooks to verify they run successfully
|
|
178
|
-
|
|
191
|
+
han hook test --execute
|
|
179
192
|
```
|
|
180
193
|
|
|
181
194
|
### mcp
|
|
@@ -183,7 +196,7 @@ npx @thebushidocollective/han hook test --execute
|
|
|
183
196
|
Start the Han MCP server for natural language hook execution.
|
|
184
197
|
|
|
185
198
|
```bash
|
|
186
|
-
|
|
199
|
+
han mcp
|
|
187
200
|
```
|
|
188
201
|
|
|
189
202
|
The MCP server dynamically exposes tools based on your installed plugins. Once installed via `hashi-han`, you can run hooks using natural language like "run the elixir tests" instead of remembering exact commands.
|
|
@@ -201,7 +214,7 @@ See the [hashi-han plugin](/hashi/hashi-han) for installation and configuration.
|
|
|
201
214
|
Remove all Han plugins and marketplace configuration.
|
|
202
215
|
|
|
203
216
|
```bash
|
|
204
|
-
|
|
217
|
+
han uninstall
|
|
205
218
|
```
|
|
206
219
|
|
|
207
220
|
## Philosophy
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thebushidocollective/han",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.55.0",
|
|
4
4
|
"description": "CLI for installing and managing curated Claude Code plugins from the Han marketplace",
|
|
5
5
|
"main": "dist/lib/main.js",
|
|
6
6
|
"types": "dist/lib/main.d.ts",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"README.md"
|
|
47
47
|
],
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@thebushidocollective/han-darwin-arm64": "1.
|
|
50
|
-
"@thebushidocollective/han-darwin-x64": "1.
|
|
51
|
-
"@thebushidocollective/han-linux-arm64": "1.
|
|
52
|
-
"@thebushidocollective/han-linux-x64": "1.
|
|
53
|
-
"@thebushidocollective/han-win32-x64": "1.
|
|
49
|
+
"@thebushidocollective/han-darwin-arm64": "1.55.0",
|
|
50
|
+
"@thebushidocollective/han-darwin-x64": "1.55.0",
|
|
51
|
+
"@thebushidocollective/han-linux-arm64": "1.55.0",
|
|
52
|
+
"@thebushidocollective/han-linux-x64": "1.55.0",
|
|
53
|
+
"@thebushidocollective/han-win32-x64": "1.55.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@anthropic-ai/claude-agent-sdk": "0.1.50",
|