Skip to content

Commit 9e97acc

Browse files
bb-connorclaude
andcommitted
feat(plugin): add marketplace distribution support
- Create `.claude-plugin/marketplace.json` at repo root so the repo serves as its own Claude Code plugin marketplace - Update hook commands and MCP server args to use `${CLAUDE_PLUGIN_ROOT}` so the plugin works when installed from marketplace cache - Flesh out `plugin.json` with author, homepage, license, and keywords - Update README install instructions with marketplace commands: `/plugin marketplace add backbay-labs/clawdstrike` Users can now install without cloning: /plugin marketplace add backbay-labs/clawdstrike /plugin install clawdstrike@clawdstrike Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f26807b commit 9e97acc

File tree

6 files changed

+65
-10
lines changed

6 files changed

+65
-10
lines changed

.claude-plugin/marketplace.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "clawdstrike",
3+
"owner": {
4+
"name": "Backbay Labs",
5+
"email": "hello@backbay.io"
6+
},
7+
"metadata": {
8+
"description": "ClawdStrike security plugins for Claude Code — runtime policy enforcement, threat hunting, and audit tools.",
9+
"version": "0.1.0"
10+
},
11+
"plugins": [
12+
{
13+
"name": "clawdstrike",
14+
"source": "./clawdstrike-plugin",
15+
"description": "Runtime security enforcement for AI coding agents — policy hooks, audit receipts, threat hunting, and 15 MCP security tools.",
16+
"version": "0.1.0",
17+
"author": {
18+
"name": "Backbay Labs",
19+
"email": "hello@backbay.io"
20+
},
21+
"homepage": "https://github.com/backbay-labs/clawdstrike",
22+
"repository": "https://github.com/backbay-labs/clawdstrike",
23+
"license": "Apache-2.0",
24+
"keywords": ["security", "policy", "audit", "edr", "agent-security", "mcp", "threat-hunting"],
25+
"category": "security",
26+
"tags": ["security", "policy-enforcement", "audit-trail", "threat-hunting", "mcp-tools"]
27+
}
28+
]
29+
}

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,14 @@ openclaw plugins enable clawdstrike-security
209209

210210
Clawdstrike ships as a native [Claude Code](https://docs.anthropic.com/en/docs/claude-code) plugin. Every tool call Claude makes is checked against your security policy before execution, with a full audit trail of signed receipts.
211211

212+
```shell
213+
# From inside Claude Code:
214+
/plugin marketplace add backbay-labs/clawdstrike
215+
/plugin install clawdstrike@clawdstrike
216+
```
217+
218+
Or from a local clone:
219+
212220
```bash
213221
claude --plugin-dir ./clawdstrike-plugin
214222
```
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"name": "clawdstrike",
33
"version": "0.1.0",
4-
"description": "Runtime security enforcement for AI coding agents — policy hooks, audit receipts, threat hunting, and security tools.",
5-
"author": "Backbay Labs",
6-
"license": "MIT"
4+
"description": "Runtime security enforcement for AI coding agents — policy hooks, audit receipts, threat hunting, and security tools for Claude Code.",
5+
"author": {
6+
"name": "Backbay Labs",
7+
"email": "hello@backbay.io"
8+
},
9+
"homepage": "https://github.com/backbay-labs/clawdstrike",
10+
"repository": "https://github.com/backbay-labs/clawdstrike",
11+
"license": "Apache-2.0",
12+
"keywords": ["security", "policy", "audit", "edr", "agent-security", "mcp"]
713
}

clawdstrike-plugin/.mcp.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"mcpServers": {
33
"clawdstrike": {
44
"command": "bun",
5-
"args": ["run", "scripts/mcp-server.ts"]
5+
"args": ["run", "${CLAUDE_PLUGIN_ROOT}/scripts/mcp-server.ts"]
66
}
77
}
88
}

clawdstrike-plugin/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ Runtime security enforcement for AI coding agents. This plugin integrates ClawdS
1313

1414
## Installation
1515

16+
### From the marketplace (recommended)
17+
18+
```shell
19+
# Add the ClawdStrike marketplace
20+
/plugin marketplace add backbay-labs/clawdstrike
21+
22+
# Install the plugin
23+
/plugin install clawdstrike@clawdstrike
24+
```
25+
26+
### From a local clone
27+
1628
```bash
1729
claude --plugin-dir ./clawdstrike-plugin
1830
```

clawdstrike-plugin/hooks/hooks.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"hooks": [
66
{
77
"type": "command",
8-
"command": "bash scripts/pre-tool-check.sh"
8+
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/pre-tool-check.sh"
99
}
1010
]
1111
}
@@ -15,7 +15,7 @@
1515
"hooks": [
1616
{
1717
"type": "command",
18-
"command": "bash scripts/post-tool-receipt.sh"
18+
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/post-tool-receipt.sh"
1919
}
2020
]
2121
}
@@ -25,7 +25,7 @@
2525
"hooks": [
2626
{
2727
"type": "command",
28-
"command": "bash scripts/session-start.sh"
28+
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/session-start.sh"
2929
}
3030
]
3131
}
@@ -35,7 +35,7 @@
3535
"hooks": [
3636
{
3737
"type": "command",
38-
"command": "bash scripts/session-end.sh"
38+
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/session-end.sh"
3939
}
4040
]
4141
}
@@ -45,7 +45,7 @@
4545
"hooks": [
4646
{
4747
"type": "command",
48-
"command": "bash scripts/user-prompt-check.sh"
48+
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/user-prompt-check.sh"
4949
}
5050
]
5151
}
@@ -55,7 +55,7 @@
5555
"hooks": [
5656
{
5757
"type": "command",
58-
"command": "bash scripts/stop-handler.sh"
58+
"command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/stop-handler.sh"
5959
}
6060
]
6161
}

0 commit comments

Comments
 (0)