diff options
Diffstat (limited to 'skills/web-search/SKILL.md')
| -rw-r--r-- | skills/web-search/SKILL.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/skills/web-search/SKILL.md b/skills/web-search/SKILL.md new file mode 100644 index 0000000..30d773a --- /dev/null +++ b/skills/web-search/SKILL.md @@ -0,0 +1,13 @@ +--- +description: Web search when a task needs information beyond the local project or when the user mentions searching the web. +--- + +Run the script next to this file when a task needs current or external information (docs, versions, error messages, news, "what is X"): + +```sh +~/.config/hax/skills/web-search/web_search.py [-n N] QUERY... +``` + +- Prints `N` results (default 5) as numbered `title / url / snippet` blocks, plain text. +- Exit status 2 with a message on stderr means the search backend rate-limited or served a bot challenge: wait and retry once, then tell the user that search is unavailable. +- Search in the language the user wrote in. For error messages, search the exact message text quoted. |
