npx claudepluginhub nbkm8y5/claude-plugins --plugin ios-dev-toolkitDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/validate-swift-write.sh",
"timeout": 10
}
],
"matcher": "Write|Edit"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "prompt",
"prompt": "If the file just written or edited is a .swift file AND it contains interactive SwiftUI elements (Button, TextField, Toggle, Slider, NavigationLink, Link, DatePicker, Picker, or Image), check whether those elements have accessibility modifiers (.accessibilityLabel, .accessibilityHint, .accessibilityValue, .accessibilityAddTraits). If any interactive element is missing accessibility support, add a brief reminder as a system message suggesting the specific accessibility modifiers needed. Do not block the operation.",
"timeout": 15
}
],
"matcher": "Write|Edit"
}
]
}"Validates session with validate-session.sh before Write tools (can block) and rebuilds question index with rebuild-question-index.sh after Writes. Executes bash scripts; touches files."