summaryrefslogtreecommitdiff
path: root/skills/web-search/SKILL.md
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-09-07 15:31:08 +0100
committertslil <tslil@posteo.de>2026-09-07 15:37:06 +0100
commitafc1672a6d14d203746362a9e5863ae2bc7882b3 (patch)
tree95a2f96a1a10c17988ede4cd700d663e0f885b58 /skills/web-search/SKILL.md
parent601df114c430bbaf7d49b201295b29d6fed2b9b8 (diff)
[hax] store a websearch skill, let's see how well this works
Diffstat (limited to 'skills/web-search/SKILL.md')
-rw-r--r--skills/web-search/SKILL.md13
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.