Form github search query

From microsoft/vscode-pull-request-github · View interactive version

Form github search query is an AI agent skill from the GitHub repository microsoft/vscode-pull-request-github. Forms a GitHub search query based on a natural language query and the type of search (issue or PR). This skill helps users create effective search queries to find relevant issues or pull requests on GitHub.

How to use this skill

Skill file

Form GitHub Search Query

Purpose

GitHub has a specific syntax for searching issues and pull requests. This skill takes a natural language query from the user and the type of search they want to perform (issue or PR) and converts it into a properly formatted GitHub search query. This allows users to leverage GitHub's powerful search capabilities without needing to know the specific syntax.

Usage

To use this skill, provide a natural language query and specify whether you want to search for issues or pull requests. The skill will then analyze the input and generate a GitHub search query that can be used to find relevant results on GitHub.

Converting Natural Language to GitHub Search Syntax

Steps

  1. Identify if there's a repo mention in the query.
  2. Fetch labels for the repo if mentioned.
  3. Follow the "Tips for Forming Effective Search Queries" to convert the natural language query into GitHub search syntax.

Search Syntax Overview

Example Queries

Tips for Forming Effective Search Queries

Adding Labels to the Search Query

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.