sourcegraph-automation

Automate Sourcegraph operations and code search workflows using the Rube MCP gateway.

74.2k|8.5k|Updated Oct 17, 2025
One-click install
npx skills add https://github.com/ComposioHQ/awesome-claude-skills --skill sourcegraph-automation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sourcegraph-automation
Source: https://github.com/ComposioHQ/awesome-claude-skills/tree/main/composio-skills/sourcegraph-automation
Command: npx skills add https://github.com/ComposioHQ/awesome-claude-skills --skill sourcegraph-automation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction of manually navigating Sourcegraph interfaces by enabling direct, programmatic control over code search and repository management tasks.

Core Features & Use Cases

  • Automated Tool Discovery: Dynamically fetch and validate available Sourcegraph tool schemas via Rube MCP.
  • Workflow Execution: Execute complex, multi-step code operations including bulk searches and remote workbench tasks.
  • Use Case: Automate the process of searching for deprecated function calls across a large codebase and executing refactoring tasks across multiple repositories.

Quick Start

Use the sourcegraph-automation skill to search for all instances of the deprecated auth module and prepare a refactoring plan.

Frequently Asked Questions about sourcegraph-automation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect Sourcegraph to my AI agent?

Connect Sourcegraph by configuring the Rube MCP server and calling the RUBE_MANAGE_CONNECTIONS tool with the sourcegraph toolkit. Ensure the connection status is set to ACTIVE before attempting any operations.

Why must I call RUBE_SEARCH_TOOLS first?

Calling RUBE_SEARCH_TOOLS is mandatory because tool schemas and available arguments change frequently. Searching first ensures your agent uses the most current input schemas and avoids execution errors.

Can I automate bulk code refactoring with this skill?

Yes, you can perform bulk operations by using the RUBE_REMOTE_WORKBENCH tool to run custom Composio scripts or by chaining multiple RUBE_MULTI_EXECUTE_TOOL calls.

What should I do if my Sourcegraph connection is inactive?

If the connection status is not ACTIVE, call RUBE_MANAGE_CONNECTIONS again to retrieve the latest authentication link. Follow the link to re-authenticate your Sourcegraph account.

Are there limitations to the automated search functionality?

Search results are subject to the current tool schema definitions. Always check for pagination tokens in the response to ensure you have retrieved the complete set of search results.