search-repos
Skill0 starsChanged 4 months agoMITView on GitHub
Search GitHub repositories for issues and pull requests matching user-provided keywords using the GitHub CLI. Summarize relevant findings and highlight recent activity. Use when the user wants to search across repos for specific topics, bugs, features, or discussions.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- oschina/gitee-agent-skillstheir own version, first seen Apr 27, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- oschina/gitee-agent-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- arch-auditSkill
- check-pacman-updatesSkill
- embeddings-ingestSkill
- embeddings-querySkill
- lease-hackrSkill
- perf-optimizationSkill
- pr-reviewSkill
- search-flightsSkill
- security-auditSkill
- summarize-repo-changesSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Search GitHub repository issues and pull requests using the gh CLI, summarize relevant results, and highlight recent activity.
- Distinctive: line 31
Use the user's query as-is.
- Very specific: line 32
If the query is short and common, add qualifiers like type:issue to narrow results.
- Very specific: line 65
Use date or relative date parsing to determine this.
- Distinctive: line 106
Use bold callouts for active items at the top of each repo section:
- Distinctive: line 112
If a repo has no active or recent items, note it as stale.
- Distinctive: line 116
If the user does not specify repos but mentions a known organization, ask which repos to search.
- Very specific: line 117
If a repo is private, gh will return an error — report this to the user.
- Very specific: line 119
When the query is a single word, wrap it in quotes or add in:title to avoid noise: "keyword" in:title.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Search Repos
Search GitHub repository issues and pull requests using the gh CLI, summarize relevant results, and highlight recent activity.
Prerequisites
ghCLI installed and authenticated (gh auth status)- Access to the target repositories
Usage
The user provides:
- One or more repositories in
owner/repoformat (e.g.,owner/repo-a,owner/repo-b) - A search query — keywords, phrases, or topics to match
Workflow
Step 1: Search Issues
For each repository, run:
gh search issues "QUERY" --repo owner/repo --limit 30 --json title,body,author,comments,url,updatedAt,createdAt,stateReason,reactions- Use the user's query as-is. For multi-word phrases, quote the entire phrase.
- If the query is short and common, add qualifiers like
type:issueto narrow results. - Adjust
--limitup to 100 if initial results are sparse.
Step 2: Search Pull Requests
For each repository, run:
gh search prs "QUERY" --repo owner/repo --limit 30 --json title,body,author,comments,url,updatedAt,createdAt,mergedAt,mergedBy,reviewers,reactionsStep 3: Fetch Details for Top Matches
From the search results, identify the top 5-10 most relevant items per repo (by title/body match and recency). For each, fetch the full detail to include comment context:
# For issues
gh issue view ISSUE_NUMBER --repo owner/repo --json title,body,comments,updatedAt,author,reactions
# For PRs
gh pr view PR_NUMBER --repo owner/repo --json title,body,comments,updatedAt,author,reactions,mergedAt,reviewersExtract comment snippets that add context (e.g., resolution, discussion of alternatives).
Step 4: Determine Recency
For each result, compute recency from updatedAt:
- Active — updated within the last 7 days
- Recent — updated within the last 30 days
- Stale — updated older than 30 days
Use date or relative date parsing to determine this. A quick shell check:
# Returns seconds ago (0 means today, negative means future)
echo $(( $(date +%s) - $(date -d "UPDATE_AT_TIMESTAMP" +%s) ))Or compare with these thresholds:
- 7 days = 604800 seconds
- 30 days = 2592000 seconds
Step 5: Summarize
Produce a structured summary grouped by repository. For each relevant issue or PR, include:
- Always include hyperlinks to each issue and PR using markdown link syntax
[Title](url)so the user can navigate directly to the item.
## owner/repo
### Issues
#### [Title](url)
- **Status:** Open / Closed / Merged
- **Recency:** Active (updated 2 days ago) / Recent (updated 3 weeks ago) / Stale
- **Summary:** One to two sentences capturing the core ask, bug, or discussion.
- **Activity:** N comments, N reactions
- **Key context:** Brief note from comments if relevant (e.g., "resolved by #123", "waiting on maintainer response")
### Pull Requests
#### [Title](url)
- **Status:** Open / Merged / Closed
- **Recency:** Active (updated 1 day ago) / Recent / Stale
- **Summary:** What the PR changes and its scope.
- **Activity:** N comments, N reactions, merged by @user
- **Key context:** Review feedback, merge status, linked issuesRecency Highlighting
Use bold callouts for active items at the top of each repo section:
> **Active:** 2 items updated in the last 7 daysIf a repo has no active or recent items, note it as stale.
Tips
- If the user does not specify repos but mentions a known organization, ask which repos to search.
- If a repo is private,
ghwill return an error — report this to the user. - For large codebases with thousands of issues, add
state:opento the query unless the user asks for closed items too. - When the query is a single word, wrap it in quotes or add
in:titleto avoid noise:"keyword" in:title. - Limit total summaries to the top 15-20 most relevant items across all repos unless the user asks for more.
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
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.

