Modularize web-search-agent with strategy modules
Split inline search strategies into separate module files (github-debug, general-web, academic-papers, chinese-tech, stackoverflow). Agent now loads modules dynamically via Read tool before searching. Update install instructions to include module files. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
510b6ba198
commit
e932c92cc6
@@ -0,0 +1,28 @@
|
||||
# Academic Papers Module
|
||||
|
||||
> 从 web-search-agent.md 提取的学术论文搜索专用策略
|
||||
|
||||
**触发场景**: 论文查找、学术研究、算法原理
|
||||
|
||||
## 搜索源 (Academic Sources)
|
||||
- **Google Scholar** (scholar.google.com) - comprehensive academic search engine
|
||||
- **arXiv** (arxiv.org) - preprints in physics, math, CS, and related fields
|
||||
- **Hugging Face Papers** (huggingface.co/papers) - daily/monthly trending ML/AI papers with community upvotes
|
||||
- **bioRxiv** (biorxiv.org) - preprints in biology and life sciences
|
||||
- **ResearchGate** (researchgate.net) - academic social network with papers and author profiles
|
||||
- **Semantic Scholar** (semanticscholar.org) - AI-powered academic search
|
||||
- **ACM Digital Library** and **IEEE Xplore** - CS and engineering papers
|
||||
|
||||
## 查询策略 (1.3 Academic Paper Search)
|
||||
- Use Google Scholar as primary source with advanced search operators
|
||||
- Search by author names, paper titles, DOI numbers, institutions, and publication years
|
||||
- Use quotation marks for exact titles and author name combinations
|
||||
- Include year ranges to find seminal works and recent publications
|
||||
- Look for related papers and citation patterns to identify seminal works
|
||||
- Search for preprints on arXiv, bioRxiv, and institutional repositories
|
||||
- Check author profiles and ResearchGate for publications and PDFs
|
||||
- Identify open-access versions and legal paper download sources
|
||||
- Track citation networks to understand research evolution
|
||||
- Note impact factors, h-index, and citation counts for relevance assessment
|
||||
- Search for conference proceedings, journals, and workshop papers
|
||||
- Identify funding agencies and research grants for context
|
||||
@@ -0,0 +1,20 @@
|
||||
# Chinese Tech Module
|
||||
|
||||
> 从 web-search-agent.md 提取的中文技术社区专用策略
|
||||
|
||||
**触发场景**: 中文技术问题、国内框架、中文社区解决方案
|
||||
|
||||
## 搜索源 (Chinese Technical Sites)
|
||||
- **CSDN** (csdn.net) - China's largest IT community with extensive technical articles and solutions
|
||||
- **Juejin** (juejin.cn) - high-quality Chinese developer community with modern tech focus
|
||||
- **SegmentFault** (segmentfault.com) - Chinese Q&A platform similar to Stack Overflow
|
||||
- **Zhihu** (zhihu.com) - Chinese knowledge-sharing platform with technical discussions
|
||||
- **Cnblogs** (cnblogs.com) - Chinese blogging platform with deep technical content
|
||||
- **OSChina** (oschina.net) - Chinese open source community and technical news
|
||||
- **V2EX** (v2ex.com) - Chinese developer community with active discussions
|
||||
- **Tencent Cloud** and **Alibaba Cloud** developer communities - enterprise-level solutions
|
||||
|
||||
## 查询策略 (Bilingual Research)
|
||||
- **For bilingual research**: Generate queries in both English and Chinese (中文)
|
||||
- Use Chinese technical terms and common translations (e.g., "报错" for errors, "解决方案" for solutions)
|
||||
- Search Chinese sites with Chinese keywords for better results from Chinese developer communities
|
||||
@@ -0,0 +1,27 @@
|
||||
# General Web Module
|
||||
|
||||
> 从 web-search-agent.md 提取的通用网页搜索策略
|
||||
|
||||
**触发场景**: 通用信息、新闻、产品对比、最佳实践
|
||||
|
||||
## 搜索源
|
||||
- **Reddit** (r/programming, r/webdev, r/javascript, and topic-specific subreddits) - real-world experiences
|
||||
- **Official documentation** and changelogs - authoritative information
|
||||
- **Blog posts** and tutorials - detailed explanations
|
||||
- **Hacker News** discussions - high-quality technical discourse
|
||||
- **Dev.to** (dev.to) - developer community with high-quality technical articles
|
||||
- **Medium** (medium.com) - technical blog platform with in-depth articles
|
||||
- **Discord** - official discussion channels for many open source projects
|
||||
- **X/Twitter** - technical announcements and discussions from developers and maintainers
|
||||
|
||||
## 查询策略 (1.2 Best Practices & Comparative Research)
|
||||
- Look for official recommendations first
|
||||
- Cross-reference with community consensus
|
||||
- Find examples from production codebases
|
||||
- Identify anti-patterns and common pitfalls
|
||||
- Note evolving best practices and deprecated approaches
|
||||
- Create structured comparisons with clear criteria
|
||||
- Find real-world usage examples and case studies
|
||||
- Look for performance benchmarks and user experiences
|
||||
- Identify trade-offs and decision factors
|
||||
- Consider scalability, maintenance, and learning curve
|
||||
@@ -0,0 +1,18 @@
|
||||
# GitHub Debug Module
|
||||
|
||||
> 从 web-search-agent.md 提取的 GitHub/Debug 专用策略
|
||||
|
||||
**触发场景**: 项目bug、error调试、issue查找、版本特定问题
|
||||
|
||||
## 搜索源
|
||||
- **GitHub Issues** (both open and closed) - excellent for known bugs and workarounds
|
||||
|
||||
## 查询策略 (1.1 Debugging Assistance)
|
||||
- Search for exact error messages in quotes
|
||||
- Look for issue templates that match the problem pattern
|
||||
- Find workarounds, not just explanations
|
||||
- Check if it's a known bug with existing patches or PRs
|
||||
- Look for similar issues even if not exact matches
|
||||
- Identify if the issue is version-specific
|
||||
- Search for both the library name + error and more general descriptions
|
||||
- Check closed issues for resolution patterns
|
||||
@@ -0,0 +1,9 @@
|
||||
# Stack Overflow Module
|
||||
|
||||
> 从 web-search-agent.md 提取的技术问答专用策略
|
||||
|
||||
**触发场景**: 编程问答、代码实现、API用法
|
||||
|
||||
## 搜索源
|
||||
- **Stack Overflow** and other Stack Exchange sites - technical Q&A
|
||||
- **Technical forums** and discussion boards - community wisdom
|
||||
Reference in New Issue
Block a user