Skip to content

Commit bd80e38

Browse files
orybandclaude
andcommitted
feat: add Claude Code plugin manifest and hooks config
Enables installation via /plugin install and submission to official marketplace. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d984064 commit bd80e38

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.claude-plugin/plugin.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "auto-approve-compound-bash",
3+
"description": "Auto-approve compound Bash commands (pipes, chains, subshells) by parsing each segment via shfmt AST and checking against allow/deny lists",
4+
"version": "1.0.0",
5+
"author": {
6+
"name": "Ory Band"
7+
},
8+
"repository": "https://github.com/oryband/claude-code-auto-approve",
9+
"license": "MIT",
10+
"keywords": ["hooks", "bash", "permissions", "compound-commands", "auto-approve"]
11+
}

hooks/hooks.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hooks": {
3+
"PreToolUse": [
4+
{
5+
"matcher": "Bash",
6+
"hooks": [
7+
{
8+
"type": "command",
9+
"command": "bash \"$PLUGIN_DIR\"/approve-compound-bash.sh",
10+
"timeout": 3
11+
}
12+
]
13+
}
14+
]
15+
}
16+
}

0 commit comments

Comments
 (0)