From afc1672a6d14d203746362a9e5863ae2bc7882b3 Mon Sep 17 00:00:00 2001 From: tslil Date: Mon, 7 Sep 2026 15:31:08 +0100 Subject: [hax] store a websearch skill, let's see how well this works --- skills/web-search/SKILL.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 skills/web-search/SKILL.md (limited to 'skills/web-search/SKILL.md') 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. -- cgit v1.3.1