- Added 44 external skills from obra/superpowers, ui-ux-pro-max-skill, claude-codex-settings - Added 8 autonomous agents (commit-creator, pr-creator, pr-reviewer, etc.) - Added 23 slash commands for Git/GitHub, setup, and plugin development - Added hooks for code formatting, notifications, and validation - Added MCP configurations for Azure, GCloud, Supabase, MongoDB, etc. - Added awesome-openclaw-skills registry (3,002 skills referenced) - Updated comprehensive README with full documentation Sources: - github.com/obra/superpowers (14 skills) - github.com/nextlevelbuilder/ui-ux-pro-max-skill (1 skill) - github.com/fcakyon/claude-codex-settings (29 skills, 8 agents, 23 commands) - github.com/VoltAgent/awesome-openclaw-skills (registry) - skills.sh (reference) - buildwithclaude.com (reference)
24 lines
707 B
Python
Executable File
24 lines
707 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
PreToolUse hook: intercept WebSearch → suggest using Tavily search instead
|
|
"""
|
|
import json
|
|
import sys
|
|
|
|
try:
|
|
data = json.load(sys.stdin)
|
|
tool_input = data["tool_input"]
|
|
query = tool_input["query"]
|
|
except (KeyError, json.JSONDecodeError) as err:
|
|
print(f"hook-error: {err}", file=sys.stderr)
|
|
sys.exit(1)
|
|
|
|
print(json.dumps({
|
|
"systemMessage": "WebSearch detected. AI is directed to use Tavily search instead.",
|
|
"hookSpecificOutput": {
|
|
"hookEventName": "PreToolUse",
|
|
"permissionDecision": "deny",
|
|
"permissionDecisionReason": f"Please use mcp__tavily__tavily_search with query: '{query}'"
|
|
}
|
|
}, separators=(',', ':')))
|
|
sys.exit(0) |