agentleFS
MicrosoftKnown publishermicrosoft/vscode-pull-request-github/src/lm/skills/form-github-search-query/SKILL.md

form-github-search-query

Skill2.6k starsChanged 5 months agoMITView on 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.

Trending

Quiet since June.about the whole repository

Dec 2025: 1 mentionJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/vscode-pull-request-github repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/vscode-pull-request-github

The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 16

Talked about on GitHub, Hacker News and Bluesky (16 times).

On GitHub · 10

5 more on GitHub

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the "Tips for Forming Effective Search Queries" to convert the natural language query into GitHub search syntax.

    line 22
  2. Distinctive:

    Always try to include "repo:" or "org:" in your response.

    line 73
  3. Distinctive:

    If the user specifies a repo, ALWAYS fetch the labels for that repo and try to match any words in the natural language query to the label …

    line 75
  4. Distinctive:

    Always include a "sort:" parameter.

    line 77
  5. Distinctive:

    Always include a property with the @me value if the query includes "me" or "my".

    line 78
  6. Distinctive:

    Use a "-" in front of a syntax component to indicate that it should be "not-ed".

    line 80
  7. Distinctive:

    Use the "no" syntax component to indicate that a property should be empty.

    line 81
  8. Distinctive:

    Only choose labels that you're sure are relevant.

    line 89
  9. Distinctive:

    Don't choose labels that the user has explicitly excluded.

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  • is: { possibleValues: ['issue', 'pr', 'draft', 'public', 'private', 'locked', 'unlocked'] }
  • assignee: { valueDescription: 'A GitHub user name or @me' }
  • author: { valueDescription: 'A GitHub user name or @me' }
  • mentions: { valueDescription: 'A GitHub user name or @me' }
  • team: { valueDescription: 'A GitHub user name' }
  • commenter: { valueDescription: 'A GitHub user name or @me' }
  • involves: { valueDescription: 'A GitHub user name or @me' }
  • label: { valueDescription: 'A GitHub issue/pr label' }
  • type: { possibleValues: ['pr', 'issue'] }
  • state: { possibleValues: ['open', 'closed', 'merged'] }
  • in: { possibleValues: ['title', 'body', 'comments'] }
  • user: { valueDescription: 'A GitHub user name or @me' }
  • org: { valueDescription: 'A GitHub org, without the repo name' }
  • repo: { valueDescription: 'A GitHub repo, without the org name' }
  • linked: { possibleValues: ['pr', 'issue'] }
  • milestone: { valueDescription: 'A GitHub milestone' }
  • project: { valueDescription: 'A GitHub project' }
  • status: { possibleValues: ['success', 'failure', 'pending'] }
  • head: { valueDescription: 'A git commit sha or branch name' }
  • base: { valueDescription: 'A git commit sha or branch name' }
  • comments: { valueDescription: 'A number' }
  • interactions: { valueDescription: 'A number' }
  • reactions: { valueDescription: 'A number' }
  • draft: { possibleValues: ['true', 'false'] }
  • review: { possibleValues: ['none', 'required', 'approved', 'changes_requested'] }
  • reviewedBy: { valueDescription: 'A GitHub user name or @me' }
  • reviewRequested: { valueDescription: 'A GitHub user name or @me' }
  • userReviewRequested: { valueDescription: 'A GitHub user name or @me' }
  • teamReviewRequested: { valueDescription: 'A GitHub user name' }
  • created: { valueDescription: 'A date, with an optional < >' }
  • updated: { valueDescription: 'A date, with an optional < >' }
  • closed: { valueDescription: 'A date, with an optional < >' }
  • no: { possibleValues: ['label', 'milestone', 'assignee', 'project'] }
  • sort: { possibleValues: ['updated', 'updated-asc', 'interactions', 'interactions-asc', 'author-date', 'author-date-asc', 'committer-date', 'committer-date-asc', 'reactions', 'reactions-asc', 'reactions-(+1, -1, smile, tada, heart)'] }

Example Queries

  • repo:microsoft/vscode is:issue state:open sort:updated-asc
  • mentions:@me org:microsoft is:issue state:open sort:updated
  • assignee:@me milestone:"October 2024" is:open is:issue sort:reactions
  • comments:>5 org:contoso is:issue state:closed mentions:@me label:bug
  • interactions:>5 repo:contoso/cli is:issue state:open
  • repo:microsoft/vscode-python is:issue sort:updated -assignee:@me
  • repo:contoso/cli is:issue sort:updated no:milestone

Tips for Forming Effective Search Queries

  • Always try to include "repo:" or "org:" in your response.
  • "repo" is often formated as "owner/name".
  • If the user specifies a repo, ALWAYS fetch the labels for that repo and try to match any words in the natural language query to the label names to include them in the search query (See "Adding Labels to the Search Query" section).
  • Words in inline codeblocks are likely to refer to labels. Try to match them to labels in the repo and include them in the search query.
  • Always include a "sort:" parameter. If multiple sorts are possible, choose the one that the user requested.
  • Always include a property with the @me value if the query includes "me" or "my".
  • Go through each word of the natural language query and try to match it to a syntax component.
  • Use a "-" in front of a syntax component to indicate that it should be "not-ed".
  • Use the "no" syntax component to indicate that a property should be empty.

Adding Labels to the Search Query

  • Choose labels based on what the user wants to search for, not based on the actual words in the query.
  • The user might include info on how they want their search results to be displayed. Ignore all of that.
  • Labels will be and-ed together, so don't pick a bunch of super specific labels.
  • Try to pick just one label.
  • Only choose labels that you're sure are relevant. Having no labels is preferable than labels that aren't relevant.
  • Don't choose labels that the user has explicitly excluded.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.