anysearch
Installation
SKILL.md
AnySearch
Run python3 <skill-dir>/scripts/anysearch.py. Start with the smallest probe that can answer, read only sources that contribute evidence.
Pick the entry point
| User asks for… | Do |
|---|---|
| A field or record that a data source owns (a quote, a filing, a filtered paper list, a flight status) | Vertical search: get_sub_domains --domains <d> once, then search "<q>" --domain <d> --sub_domain <d.x> --sdp k=v,…. Output defaults to snippet here because the body is the answer. |
| Candidate pages for an ordinary question | search "<query>" --format compact --max-results 5; --format snippet --max-chars 300 when titles alone cannot pick a winner. |
| Several angles at once | batch_search --query … --query … (≤5), then extract the non-duplicate winners. |
| The full text of chosen pages | extract <url> [<url> …]; one header per document. |
Casual users do not speak in parameters. Translate before calling: company name → ticker (symbol=AAPL, A-shares cn_code=600519.SH), "recent" → period, "highly cited" → sort=cited_by_count:desc. Required parameters you cannot fill get an empty value (cn_code=); never invent fields — take names from the live get_sub_domains schema, not from memory.