Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

aira-smart-search艾拉智能搜索

Agent Skill

aira-smart-search 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,267

周安装

256

GitHub Stars

公开资料未说明

下载量

2,007
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:aira-smart-search(艾拉智能搜索)
来源仓库:https://github.com/airaalfredsf/aira-smart-search
安装命令:
openclaw skills install aira-smart-search
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install aira-smart-search

简介

智能路由 Web 搜索至 Gemini 或 Brave API。

  • 具备配额管理与断路器机制保障稳定性。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 可将财务查询自动导向 Gemini 引擎。
  • 安装前应确认是否允许调用外部搜索 API。
  • aira-smart-search 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
smart-search
description
Intelligent web search routing across Gemini and Brave APIs with quota management, circuit breaker, and web_fetch fallback. Routes finance queries to Gemini, space/astronomy to Brave, with per-agent daily allocations and shared pool.
homepage
https://github.com/Spear-Fox-Technologies/smart-search
metadata

smart-search

1. WHAT THIS SKILL DOES

This skill routes search queries to the best available provider, manages daily API quota per agent, logs all searches, and degrades gracefully through web scraping when APIs are unavailable. It supports two execution strategies: scheduled agents that prioritise API calls for reliable results, and a general agent that preserves API quota by trying web scraping first. All quota state is persisted to a shared JSON file so multiple agents can coordinate without overrunning daily limits.


2. WHEN TO INVOKE THIS SKILL

Use this skill whenever an agent needs to search the web for information — news, research, stock data, general queries, or any topic requiring up-to-date results.

This skill exposes three tools:

ToolPurpose
smart_searchExecute a web search and return results
search_quota_statusCheck remaining quota for an agent or the full system
search_mark_agent_completeRelease unused quota to the shared pool when an agent finishes

3. TOOL REFERENCE

smart_search

Executes a search query using the best available provider for the given agent.

Parameters:

ParameterTypeRequiredDescription
querystringYesThe search query. Max 1000 characters. No control characters.
agent_idstringYesLowercase letters, numbers, and hyphens only (e.g. stock-analysis). Use general for manual/chat searches.
force_providerstringNoOverride routing. Accepts "gemini" or "brave" only.

Return shape:

{
  "results": "<string or array>",
  "provider_used": "gemini | brave | web_fetch",
  "queries_remaining": 12,
  "quota_source": "agent_allocation | shared_pool | provider_direct | none",
  "fallback_used": false,
  "warning": null,
  "web_fetch_engine": null,
  "error": null
}

On failure results is null and error contains the reason.


search_quota_status

Returns quota information for a specific agent or the full quota file.

Parameters:

ParameterTypeRequiredDescription
agent_idstringNoIf omitted, returns the full quota object.

Return shape (single agent):

{
  "agent_id": "stock-analysis",
  "gemini": { "allocated": 15, "used": 3, "remaining": 12 },
  "brave":  { "allocated": 0,  "used": 0, "remaining": 0  },
  "completed": false
}

search_mark_agent_complete

Marks an agent as done for the day and releases any unused allocation to the shared pool for other agents to use.

Parameters:

ParameterTypeRequiredDescription
agent_idstringYesThe agent to mark complete.

Return shape:

{
  "agent_id": "tech-news",
  "released": { "gemini": 7, "brave": 0 },
  "message": "Agent marked complete. 7 Gemini calls released to shared pool."
}

4. TWO EXECUTION STRATEGIES

Strategy A — Scheduled agents (any agent_id except general)

Used by automated agents with a known workload. Prioritises API quality; uses web scraping only as a last resort.

TierProviderCondition
1Primary API (Gemini or Brave)Agent has allocation remaining
2Fallback API (opposite provider)Primary exhausted or failed
3DuckDuckGo web_fetchBoth APIs unavailable — blocked for finance queries
4ErrorAll providers exhausted

Strategy B — General agent (agent_id: "general")

Used for manual chat or ad-hoc queries. Preserves API quota by trying web scraping first. Finance queries are not blocked from web_fetch in this strategy.

TierProviderCondition
1Google web_fetchAlways attempted first
2Bing web_fetchGoogle failed
3API (Gemini or Brave)Both web_fetch failed — quota consumed only here
4ErrorAll providers exhausted

5. PROVIDER ROUTING RULES

Routing is automatic based on query keywords. force_provider overrides all routing.

Routes to Gemini:

| Keyword | |---| | stock, share price, nse, bse, wse, nyse, nasdaq | | earnings, ipo, dividend, funding round, acquisition | | merger, valuation, competitor, market share | | breaking, just announced, today, hours ago | | spearfox, fifthspear |

Routes to Brave:

| Keyword | |---| | space, astronomy, nasa, esa, cosmos |

If no keywords match, the query routes to the configured default_provider (defaults to brave). Gemini always wins for finance queries regardless of other keywords.

Keyword lists are configurable in openclaw.json via finance_keywords and brave_keywords arrays.


6. WEB_FETCH ENGINES

EngineUsed byRole
GoogleStrategy B (general)Tier 1 — always tried first
BingStrategy B (general)Tier 2 — tried if Google fails
DuckDuckGoStrategy A (scheduled)Last resort — blocked for finance queries

All engines enforce a 2-second minimum delay between consecutive calls to avoid rate-limiting. Responses are capped at 10,000 characters to protect the model context window. Prompt injection patterns are stripped from all results before they are returned.


7. QUOTA SYSTEM

Each provider has a daily limit set in openclaw.json. Each agent has its own allocation drawn from that pool. Quota is tracked separately per provider (gemini_used, brave_used).

Deduction flow for a single search call:

  1. Agent allocation — deducted first if the agent has remaining quota for the provider
  2. Shared pool — used if the agent allocation is exhausted but other agents have released unused quota
  3. Provider direct — used if the shared pool is empty but the provider daily limit has remaining headroom
  4. Fallback provider — if all sources for the primary provider are exhausted, the opposite provider is tried through the same flow
  5. web_fetch — used if both APIs are unavailable (scheduled agents only; blocked for finance queries)
  6. Error — returned if all paths are exhausted

Config owns the ceilings (daily limits, per-agent allocations). The quota file owns the live counters. Changes to openclaw.json take effect on the next call without restart.

General agent quota is only consumed when both web_fetch attempts fail.


8. CONFIG-DRIVEN BEHAVIOUR

All allocations, limits, and behaviour flags live in openclaw.json under skills.smart-search. Changes take effect on the next skill invocation with no restart required.

{
  "skills": {
    "smart-search": {
      "gemini_model": "gemini-2.0-flash",
      "default_provider": "brave",
      "strict_agents": false,
      "retry_max_attempts": 3,
      "retry_base_delay": 500,
      "finance_keywords": ["stock", "earnings"],
      "brave_keywords": ["space", "astronomy"],
      "providers": {
        "gemini": { "daily_limit": 1500 },
        "brave":  { "daily_limit": 66 }
      },
      "agent_allocations": {
        "stock-analysis": { "gemini": 15, "brave": 0 },
        "general":        { "gemini": 20, "brave": 5 }
      }
    }
  }
}
KeyDefaultEffect
gemini_modelgemini-2.0-flashGemini model used for all API calls
default_providerbraveFallback provider when no keywords match
strict_agentsfalseWhen true, rejects agent IDs not defined in config
retry_max_attempts3Maximum API retry attempts per call
retry_base_delay500Base delay in ms for exponential backoff
finance_keywordsBuilt-in listKeywords that force Gemini routing
brave_keywordsBuilt-in listKeywords that force Brave routing

9. API KEY SECURITY

API keys are read from the env block in openclaw.json and held in memory only for the duration of the call. They are never logged to any file, never included in any error message, and never returned in any response object. Keys are not written to disk by this skill.


10. MANUAL CHAT USAGE

For manual or chat-initiated searches, OpenClaw must pass agent_id: "general". The skill automatically uses web_fetch first for this agent, so API quota is only consumed if both Google and Bing scraping fail. This is an OpenClaw configuration responsibility — the skill does not infer the agent from context.


11. LOG ROTATION

Each day's searches are written to a .jsonl file in the logs/ subdirectory alongside the quota file:

~/.openclaw/workspace/shared/logs/search-YYYY-MM-DD.jsonl

Each line is a JSON object with: timestamp, agent_id, query, provider_used, force_provider, quota_source, queries_remaining, success, response_summary (capped at 500 chars), error, fallback_used, web_fetch_engine.

Log files older than 30 days are deleted automatically based on the filename date, not the filesystem modification time.


12. ERROR REFERENCE

ErrorCauseResolution
query is required and must be a non-empty string.Missing or blank queryPass a non-empty string
query exceeds maximum length of 1000 characters.Query too longShorten the query
query contains invalid control characters.Null bytes or control chars in queryStrip control characters before calling
agent_id is required and must be a non-empty string.Missing agent_idPass a valid agent_id
agent_id must contain only lowercase letters, numbers, and hyphens.Invalid characters in agent_idUse only [a-z0-9-]
Unknown agent: "...". Add it to openclaw.json to use it.strict_agents is true, agent not in configAdd agent to config or disable strict_agents
Invalid force_provider: "...". Use "gemini" or "brave".Unknown provider nameUse gemini or brave only
Perplexity is not yet implemented.force_provider set to perplexityUse gemini or brave
GEMINI_API_KEY is not configured in openclaw.json.Missing API keyAdd key to openclaw.json env block
Brave Search is not configured. Add BRAVE_API_KEY to openclaw.json to enable it.Missing API keyAdd key to openclaw.json env block
Gemini model ... is unavailable.Model name incorrect or deprecatedUpdate gemini_model in config
Gemini API error: 4xxBad request or auth failureCheck API key and query
Brave API error: 4xxBad request or auth failureCheck API key
Gemini returned an empty response.API responded but returned no textRetry or check query
Brave returned no results.API returned empty results arrayTry a different query
Finance and time-sensitive queries require Gemini or Brave API.Finance query hit the web_fetch fallback blockEnsure API quota is available for finance queries
All search providers exhausted or unavailable.All tiers failedCheck API keys, quota, and network
... circuit is open. Try again later.Provider hit 3 consecutive failuresWait 60 seconds for circuit to reset
Quota file is locked. Try again.Concurrent write contentionRetry the call
Cannot read openclaw.json. Check OPENCLAW_CONFIG_PATH.Config file missing or unreadableCheck file path and permissions
Invalid JSON input.stdin payload was not valid JSONEnsure the harness sends valid JSON
Unknown tool: ...Tool name not recognisedUse smart_search, search_quota_status, or search_mark_agent_complete
Agent ... not found in quota.agent_id not in quota fileCall smart_search first to register the agent
Agent ... is already marked complete for today.Double-complete callNo action needed; agent is already released

13. EXAMPLES

Example 1 — Manual chat finance query, Google web_fetch succeeds

{ "tool": "smart_search", "args": { "query": "today AAPL stock price", "agent_id": "general" } }

Strategy B: Google web_fetch is tried first. Succeeds. Zero API quota consumed.

{
  "results": "<html content from Google>",
  "provider_used": "web_fetch",
  "queries_remaining": 20,
  "quota_source": "none",
  "fallback_used": true,
  "warning": "Result retrieved via web scraping. Quality may be lower than API results.",
  "web_fetch_engine": "google"
}

Example 2 — Manual chat finance query, both web_fetch fail, API fallback triggered

{ "tool": "smart_search", "args": { "query": "today AAPL stock price", "agent_id": "general" } }

Strategy B: Google fails, Bing fails. Gemini API is called (finance keyword routes to Gemini). Quota consumed.

{
  "results": "Apple (AAPL) is trading at $189.42...",
  "provider_used": "gemini",
  "queries_remaining": 19,
  "quota_source": "agent_allocation",
  "fallback_used": false,
  "warning": null,
  "web_fetch_engine": null
}

Example 3 — Manual chat general query, Google web_fetch succeeds

{ "tool": "smart_search", "args": { "query": "best noise-cancelling headphones 2025", "agent_id": "general" } }

Strategy B: No finance keywords. Google web_fetch tried first. Succeeds. Zero API quota consumed.

{
  "results": "<html content from Google>",
  "provider_used": "web_fetch",
  "queries_remaining": 20,
  "quota_source": "none",
  "fallback_used": true,
  "warning": "Result retrieved via web scraping. Quality may be lower than API results.",
  "web_fetch_engine": "google"
}

Example 4 — Scheduled agent finance query, Gemini API, agent has allocation

{ "tool": "smart_search", "args": { "query": "NSE market open today", "agent_id": "stock-analysis" } }

Strategy A: Finance keyword routes to Gemini. Agent has 12 remaining. API call succeeds.

{
  "results": "The NSE opened at 22,450 points today...",
  "provider_used": "gemini",
  "queries_remaining": 11,
  "quota_source": "agent_allocation",
  "fallback_used": false,
  "warning": null,
  "web_fetch_engine": null
}

Example 5 — Scheduled agent, both APIs exhausted, finance query → hard error

{ "tool": "smart_search", "args": { "query": "NSE market open today", "agent_id": "stock-analysis" } }

Strategy A: Gemini exhausted, Brave exhausted. Finance keyword blocks DuckDuckGo fallback.

{
  "results": null,
  "provider_used": null,
  "queries_remaining": 0,
  "quota_source": "none",
  "fallback_used": false,
  "warning": null,
  "web_fetch_engine": null,
  "error": "Finance and time-sensitive queries require Gemini or Brave API. web_fetch fallback is not permitted for this query type."
}

Example 6 — Scheduled agent, both APIs exhausted, general query → DuckDuckGo web_fetch

{ "tool": "smart_search", "args": { "query": "latest AI research papers", "agent_id": "tech-news" } }

Strategy A: Gemini exhausted, Brave exhausted. No finance keywords — DuckDuckGo web_fetch is permitted.

{
  "results": "<html content from DuckDuckGo>",
  "provider_used": "web_fetch",
  "queries_remaining": 0,
  "quota_source": "none",
  "fallback_used": true,
  "warning": "Result retrieved via web scraping. Quality may be lower than API results.",
  "web_fetch_engine": "duckduckgo"
}

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

86.04%
按下载量换算1,727

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills