Agent skill
alphaear-search
Perform web searches and local context searches. Use when the user needs general info from the web (Jina/DDG/Baidu) or needs to retrieve information from a local document store (RAG).
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/alphaear-search
SKILL.md
AlphaEar Search Skill
Overview
This skill provides unified search capabilities: web search (via DuckDuckGo, Jina, or Baidu) and local hybrid search (BM25 + Vector) for RAG applications.
Capabilities
1. Web Search
Use scripts/search_tools.py to perform web searches.
Key Methods:
search(query, engine, max_results): Execute a search.- Engines:
jina,ddg,baidu. - Returns: Dictionary with
results(JSON string) and metadata.
- Engines:
aggregate_search(query): Search across multiple engines and aggregate results.
Example Usage (Python):
from scripts.database_manager import DatabaseManager
from scripts.search_tools import SearchTools
db = DatabaseManager()
tools = SearchTools(db)
# Simple Search
results = tools.search("NVIDIA Earnings", engine="ddg")
print(results)
2. Local Hybrid Search (RAG)
Use scripts/hybrid_search.py for in-memory document retrieval.
Key Features:
- Add documents.
- Search with weighted keyword matching (simple algorithm).
Example Usage (Python):
from scripts.hybrid_search import InMemoryRAG
rag = InMemoryRAG()
rag.add({"id": "doc1", "content": "Apple released Vision Pro.", "title": "Tech News"})
rag.add({"id": "doc2", "content": "Tesla cybertruck delivery.", "title": "Auto News"})
# Search
hits = rag.search("Vision Pro")
print(hits)
Dependencies
duckduckgo-searchrequestssqlite3(built-in)
Ensure DatabaseManager is initialized correctly.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?