Skip to content

Commit 864ac55

Browse files
committed
fix: wire up enforcement hooks in plugin hooks.json
The plugin ships three enforcement scripts in scripts/ but hooks.json was empty, meaning marketplace-only installs got zero hook enforcement. Users who installed via 'plugin install' received agents, commands, and CLAUDE.md but not the edit-gate that blocks UI file changes without accessibility-lead review. Add all three hooks to hooks.json: - UserPromptSubmit: a11y-team-eval.sh (web project detection) - PreToolUse (Edit|Write): a11y-enforce-edit.sh (UI file gate) - PostToolUse (Agent): a11y-mark-reviewed.sh (session marker) All paths use ${CLAUDE_PLUGIN_ROOT} per the official plugin hooks spec. Bump plugin version from 1.0.0 to 3.0.1 to align with the published 3.0.0 release and indicate a patch fix.
1 parent df68078 commit 864ac55

2 files changed

Lines changed: 38 additions & 2 deletions

File tree

‎claude-code-plugin/.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "accessibility-agents",
33
"description": "WCAG AA accessibility enforcement for Claude Code. 55 specialist agents, 17 commands, and enforcement hooks that delegate to accessibility-lead for UI code review.",
4-
"version": "1.0.0",
4+
"version": "3.0.1",
55
"author": {
66
"name": "Taylor Arndt"
77
}
Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
11
{
2-
"hooks": {}
2+
"hooks": {
3+
"UserPromptSubmit": [
4+
{
5+
"hooks": [
6+
{
7+
"type": "command",
8+
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/a11y-team-eval.sh",
9+
"timeout": 10
10+
}
11+
]
12+
}
13+
],
14+
"PreToolUse": [
15+
{
16+
"matcher": "Edit|Write",
17+
"hooks": [
18+
{
19+
"type": "command",
20+
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/a11y-enforce-edit.sh",
21+
"timeout": 10
22+
}
23+
]
24+
}
25+
],
26+
"PostToolUse": [
27+
{
28+
"matcher": "Agent",
29+
"hooks": [
30+
{
31+
"type": "command",
32+
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/a11y-mark-reviewed.sh",
33+
"timeout": 5
34+
}
35+
]
36+
}
37+
]
38+
}
339
}

0 commit comments

Comments
 (0)