sourcebot
Original:🇺🇸 English
Translated
Search external libraries and frameworks using Sourcebot MCP. Use when researching external code patterns, library APIs, framework examples, or documentation from repositories like Effect-TS/effect, vercel/ai, tanstack/query. NEVER use for local project code.
17installs
Sourcepedronauck/skills
Added on
NPX Install
npx skill4agent add pedronauck/skills sourcebotTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Sourcebot Guide
Expert guidance for using Sourcebot MCP to search external libraries, frameworks, and code patterns.
When to Use
- External library research: Finding code patterns in Effect-TS, TanStack, Vercel AI SDK, etc.
- API discovery: Understanding how external libraries implement specific features
- Documentation examples: Finding real-world usage examples from official repositories
- Framework patterns: Learning best practices from external framework codebases
- Migration guidance: Finding upgrade patterns and breaking changes in external libraries
When NOT to Use
- Local project code: Use or
codebase_searchinsteadosgrep search - Local components: Use local search tools for project files
- Local utilities: Never use Sourcebot for your own codebase
Required Workflow
- First, call to get available repository IDs
list_repos - Identify relevant repository ID(s) for your search (e.g., "Effect-TS/effect" for EffectTS)
- Always include when calling
filterByRepoIdssearch_code - Use to fetch specific file contents when needed
get_file_source
Repository ID Format
- CRITICAL: Repository IDs must be in format (e.g.,
"owner/repo","Effect-TS/effect")"vercel/ai" - DO NOT include the prefix
github.com/ - The tool returns IDs like
list_repos- strip the prefix when using in"github.com/owner/repo"filterByRepoIds
Usage Examples
Searching EffectTS patterns
json
{
"query": "Effect.gen yield",
"filterByRepoIds": ["Effect-TS/effect"],
"includeCodeSnippets": true
}Searching AI SDK
json
{
"query": "streamText tool calling",
"filterByRepoIds": ["vercel/ai"],
"includeCodeSnippets": true
}Searching multiple repos
json
{
"query": "error handling patterns",
"filterByRepoIds": ["Effect-TS/effect", "vercel/ai"],
"includeCodeSnippets": true
}Best Practices
- Use descriptive queries (not just keywords, but full descriptions)
- Always specify to scope searches
filterByRepoIds - Set when you need actual code examples
includeCodeSnippets: true - Use after finding relevant files to see full context
get_file_source
Tool Hierarchy for Code Search
- Sourcebot - For EXTERNAL libraries and frameworks only
- (if available) - For local project code
codebase_search - - For local code when codebase_search unavailable
osgrep search - /
grep- Last resort for exact string matchingfind
Critical Requirements
- MANDATORY: Use Sourcebot MCP 5-7 times when researching external libraries
- CRITICAL: NEVER use Sourcebot to search local project code
- CRITICAL: Always use on EVERY
filterByRepoIdscallsearch_code - TASK INVALIDATION: Task will be invalidated if you don't use Sourcebot 5-7 times when dealing with external libraries
- AFTER SOURCEBOT: Also use Perplexity and Context7 for updated information on external libraries