Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计提醒

github-issue-fetcherGitHub issue fetcher 搜索

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

564

周安装

24

GitHub Stars

31

下载量

198
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:github-issue-fetcher(GitHub issue fetcher 搜索)
来源仓库:https://github.com/rawveg/skillsforge-marketplace
仓库路径:skills/github-issue-fetcher
安装命令:
npx skills add https://github.com/rawveg/skillsforge-marketplace --skill github-issue-fetcher
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rawveg/skillsforge-marketplace --skill github-issue-fetcher

简介

用于高效检索和导出 GitHub Issue 数据。

  • 支持按状态、标签、时间等多维度筛选。
  • 可输出为 JSON、CSV 等格式供后续分析。
  • 适合做项目复盘和趋势统计使用。github-issue-fetcher 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 大量请求时请注意 API rate limit 限制。

SKILL.md

GitHub Issue Fetcher

Overview

Fetch GitHub issues from the current repository using the gh CLI tool with flexible sorting, filtering, and field extraction capabilities. This skill provides patterns for common workflows like getting the next issue to work on, extracting specific fields, and querying issues with custom criteria.

Prerequisites

This skill requires two command-line tools to be installed:

  1. GitHub CLI (gh) - Official GitHub command-line tool
  2. jq - JSON processor for parsing command output

Checking Dependencies

Before executing issue commands, verify both tools are available:

# Check if gh is installed
command -v gh >/dev/null 2>&1 || echo "gh not found"

# Check if jq is installed
command -v jq >/dev/null 2>&1 || echo "jq not found"

Installation Guidance

If a required tool is missing, provide the user with installation instructions based on their platform:

GitHub CLI (gh):

  • macOS: brew install gh
  • Linux (Debian/Ubuntu): sudo apt install gh
  • Linux (Fedora/RHEL): sudo dnf install gh
  • Windows: winget install --id GitHub.cli
  • Other: Visit https://cli.github.com/

jq:

  • macOS: brew install jq
  • Linux (Debian/Ubuntu): sudo apt-get install jq
  • Linux (Fedora/RHEL): sudo dnf install jq
  • Windows: winget install jqlang.jq
  • Other: Visit https://jqlang.github.io/jq/download/

GitHub Authentication

The gh CLI requires authentication. If the user encounters authentication errors, guide them to run:

gh auth login

This will prompt them through the authentication flow.

Core Capabilities

1. Detecting the Current Repository

To automatically determine the current repository, use git commands:

# Get the repository in owner/repo format
REPO=$(git config --get remote.origin.url | sed -E 's|.*github\.com[:/]([^/]+/[^.]+)(\.git)?|\1|')

Alternatively, let gh auto-detect by omitting the --repo flag when running from within a git repository directory.

2. Fetching the Next Issue

The "next issue" defaults to the oldest created open issue. Use gh issue list with sorting and limiting:

# Get the oldest created issue (next to work on)
gh issue list --search "sort:created-asc" --limit 1 --json number,title,body,labels,assignees,milestone,state,url

3. Extracting Specific Fields

Use jq to extract specific fields from the JSON output:

# Get just the issue number
gh issue list --search "sort:created-asc" --limit 1 --json number | jq '.[0].number'

# Get just the issue body
gh issue list --search "sort:created-asc" --limit 1 --json body | jq -r '.[0].body'

# Get just the issue title
gh issue list --search "sort:created-asc" --limit 1 --json title | jq -r '.[0].title'

# Get multiple fields in a formatted way
gh issue list --search "sort:created-asc" --limit 1 --json number,title,body | jq -r '.[0] | "Issue #\(.number): \(.title)\n\n\(.body)"'

Note: Use -r flag with jq to output raw strings without quotes.

4. Available Fields

The --json flag accepts the following fields:

  • number - Issue number
  • title - Issue title
  • body - Issue body/description
  • labels - Array of label objects
  • assignees - Array of assignee objects
  • milestone - Milestone object
  • state - Issue state (OPEN, CLOSED)
  • url - Issue URL
  • createdAt - Creation timestamp
  • updatedAt - Last update timestamp
  • closedAt - Close timestamp (if closed)
  • comments - Number of comments
  • author - Author object

5. Sorting Options

Use the --search flag with sort qualifiers:

# Oldest created (default for "next issue")
--search "sort:created-asc"

# Newest created
--search "sort:created-desc"

# Most recently updated
--search "sort:updated-desc"

# Least recently updated
--search "sort:updated-asc"

# Most commented
--search "sort:comments-desc"

# Least commented
--search "sort:comments-asc"

Note: GitHub doesn't have a native "priority" sort, but priority can be inferred from labels, milestones, or projects.

6. Filtering Options

Combine multiple filters in the --search query:

# Filter by label
--search "label:bug sort:created-asc"

# Filter by assignee
--search "assignee:username sort:created-asc"

# Filter by milestone
--search "milestone:\"v1.0\" sort:created-asc"

# Filter by state (default is open)
--search "is:open sort:created-asc"
--search "is:closed sort:created-desc"

# Combine multiple filters
--search "label:bug assignee:@me is:open sort:created-asc"

# No assignee
--search "no:assignee sort:created-asc"

# No label
--search "no:label sort:created-asc"

7. Common Patterns

Get the next issue to work on:

gh issue list --search "sort:created-asc" --limit 1 --json number,title,body

Get just the issue number for scripting:

ISSUE_NUM=$(gh issue list --search "sort:created-asc" --limit 1 --json number | jq '.[0].number')

Get the full issue body text:

gh issue list --search "sort:created-asc" --limit 1 --json body | jq -r '.[0].body'

Get the most urgent unassigned bug:

gh issue list --search "label:bug no:assignee sort:created-asc" --limit 1 --json number,title,body

List all high-priority issues:

gh issue list --search "label:priority-high sort:created-asc" --json number,title,labels

Usage Workflow

When a user requests GitHub issue information:

  1. Verify dependencies: Check that gh and jq are installed; if not, provide installation guidance
  2. Determine the repository context: Check if running in a git repository, or ask the user for the repo name
  3. Understand the request: Identify what fields they need (body, number, title, etc.)
  4. Apply appropriate sorting: Default to sort:created-asc for "next issue" requests, adjust based on user needs
  5. Apply filters if specified: Add label, assignee, or other filters to the search query
  6. Construct the command: Build the gh issue list command with appropriate flags
  7. Extract fields: Use jq to parse and extract only the requested fields
  8. Present results: Return the extracted data in the format the user needs

Examples

User request: "What's the next GitHub issue to work on?"

gh issue list --search "sort:created-asc" --limit 1 --json number,title | jq -r '.[0] | "#\(.number): \(.title)"'

User request: "Give me the body of the next GitHub issue"

gh issue list --search "sort:created-asc" --limit 1 --json body | jq -r '.[0].body'

User request: "Show me the newest bug with no assignee"

gh issue list --search "label:bug no:assignee sort:created-desc" --limit 1 --json number,title,body | jq -r '.[0] | "Issue #\(.number): \(.title)\n\n\(.body)"'

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

25.7%
按下载量换算51

Antigravity

21.11%
按下载量换算42

windsurf

18.48%
按下载量换算37

trae

13.86%
按下载量换算27

Codex

7.13%
按下载量换算14

OpenCode

3.46%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/rawveg/skillsforge-marketplace --skill github-issue-fetcher;npx skills add rawveg/skillsforge-marketplace --skill "github-issue-fetcher" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills