github-researcher

Guides the agent on how to read and search GitHub issues to understand the repository's problems.

npx skills add https://github.com/google-gemini/gemini-managed-agents-templates --skill github-researcher

GitHub Researcher Skill

This skill helps the agent find and understand issues in a specified GitHub repository, and gain a deep understanding of the codebase.

[!WARNING] GitHub CLI (gh) is NOT installed in this environment. Do NOT attempt to run gh commands. Always use the provided fetch_issues.py script to batch fetch open issues, and use curl with the GitHub REST API to fetch specific issue details or comments.

Workflow

1. Fetching Issues

You can fetch issues using the provided Python script (works without auth for public repos):

python skills/github-researcher/scripts/fetch_issues.py --repo <owner>/<repo> --workspace ./workspace

Output: {workspace}/data/github-issues.md

If you need to fetch specific issue details or comments, you can query the GitHub REST API directly using curl (since api.github.com is in the network allowlist):

Fetch Specific Issue Details:

curl -s -H "User-Agent: Repo-Maintainer/1.0" https://api.github.com/repos/<owner>/<repo>/issues/<issue_number>

Fetch Comments on a Specific Issue:

curl -s -H "User-Agent: Repo-Maintainer/1.0" https://api.github.com/repos/<owner>/<repo>/issues/<issue_number>/comments

3. Understanding the Repo

To answer questions like "What are my biggest issues?" or understand the project deeply:

  1. Read the README: Check the top-level README.md in the cloned repo.
  2. Scan the directory tree: Use find . -maxdepth 2 to understand the structure.
  3. Summarize issues: Read the fetched issues and identify themes, recurring complaints, or critical bugs.

Output

Produce a summary of the top issues and codebase structure to answer the user's high-level questions.

More skills from google-gemini

greeter
google-gemini
A friendly greeter skill
official
code-reviewer
google-gemini
Automated code review for local changes and remote pull requests with structured analysis across correctness, maintainability, and security. Supports both local file system changes (staged and unstaged) and remote PRs (by number or URL) with automatic GitHub CLI checkout Analyzes code across seven dimensions: correctness, maintainability, readability, efficiency, security, edge case handling, and test coverage Runs optional preflight verification suites (e.g., npm run preflight ) to catch...
official
review-duplication
google-gemini
Use this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing…
official
reconciliation
google-gemini
Reconcile loaded expenses against the pre-parsed invoice database, flagging discrepancies like amount mismatches, missing invoices, and merchant mismatches…
official
gemini-api-cli
google-gemini
Guide for using the Gemini API CLI tool. Use when you need to interact with the Gemini API via the command line, manage agents, or generate media (images,…
official
agent-tui
google-gemini
Main Agents: Do NOT use this skill directly. If you need to test the TUI, invoke the `tui_tester` subagent. Drive terminal UI (TUI) applications…
official
async-pr-review
google-gemini
Trigger this skill when the user wants to start an asynchronous PR review, run background checks on a PR, or check the status of a previously started async PR…
official
behavioral-evals
google-gemini
Guidance for creating, running, fixing, and promoting behavioral evaluations. Use when verifying agent decision logic, debugging failures, debugging prompt…
official