agentleFS
ythx-101ythx-101/ask-search/SKILL.md

ask-search

Skill540 starsChanged 3 days agoMITView on GitHub

Web search via self-hosted SearxNG. Aggregates Google, Bing, DuckDuckGo, Brave. Returns title/url/snippet. Zero API key required. Optional Tavily backend via SEARCH_PROVIDER=tavily.

  • Reads credentials
  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run ask-search "topic" to get candidates

    line 23
  2. Distinctive:

    Check snippet — if enough, answer directly

    line 24
  3. Very specific:

    If snippet truncated, use web_fetch on the URL for full content

    line 25

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ask-search

Web search powered by SearxNG. Aggregates multiple search engines, no API key needed (optional Tavily backend).

Usage

ask-search "your query"                    # top 10 results
ask-search "query" --num 5                 # limit results
ask-search "AI news" --categories news     # news only
ask-search "query" --lang zh-CN            # Chinese results
ask-search "query" --urls-only             # URL list (pipe to web_fetch)
ask-search "query" --json                  # raw JSON

Agent Workflow

  1. Run ask-search "topic" to get candidates
  2. Check snippet — if enough, answer directly
  3. If snippet truncated, use web_fetch on the URL for full content

Parameters

FlagShortDescription
--num N-nMax results (default 10)
--engines-egoogle,bing,duckduckgo,brave
--lang-lzh-CN, en, ja, ko
--categories-cgeneral,news,images,science
--json-jRaw JSON output
--urls-only-uURLs only

Setup

Requires SearxNG running locally, with json in search.formats (the bundled searxng/ Docker Compose setup does this). Set SEARXNG_URL if not on default port 8080.

bash install.sh            # installs the `ask-search` command (sudo, or: bash install.sh ~/.local/bin)

Optional Tavily backend: SEARCH_PROVIDER=tavily + TAVILY_API_KEY (--engines/--lang/--categories are ignored in this mode).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.