鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

github-discussion-query

支持对 GitHub 讨论内容进行高效检索与结构化过滤,能够获取讨论数据的模式信息或指定范围的完整列表,并通过条件筛选实现按作者、分类、标签等维度提取目标内容,适用于代码仓库的协作分析与信息挖掘场景。

开发运维
访问 GitHub
文档Skills.MD
name
github-discussion-query
description
Query GitHub discussions efficiently with jq argument support for filtering

GitHub Discussion Query Skill

This skill provides efficient querying of GitHub discussions with built-in jq filtering support.

Important: jq Parameter is Optional

The --jq parameter is optional. When called without --jq, this skill returns schema and data size information instead of the full data. This prevents overwhelming responses with large datasets and helps you understand the data structure before querying.

Use --jq '.' to get all data, or use a more specific filter for targeted results.

Usage

Use this skill to query discussions from the current repository or any specified repository.

Basic Query (Returns Schema Only)

To list discussions from the current repository:

▼
bash
复制代码
./query-discussions.sh # Returns schema and data size, not full data

Get All Data

To get all discussion data:

▼
bash
复制代码
./query-discussions.sh --jq '.'

With Repository

To query a specific repository:

▼
bash
复制代码
./query-discussions.sh --repo owner/repo

With jq Filtering

Use the --jq argument to filter and transform the output:

▼
bash
复制代码
# Get discussion numbers and titles ./query-discussions.sh --jq '.[] | {number, title}' # Get discussions by a specific author ./query-discussions.sh --jq '.[] | select(.author.login == "username")' # Get discussions in a specific category ./query-discussions.sh --jq '.[] | select(.category.name == "Ideas")' # Get answered discussions ./query-discussions.sh --jq '.[] | select(.answer != null)' # Count discussions by category ./query-discussions.sh --jq 'group_by(.category.name) | map({category: .[0].category.name, count: length})'

Common Options

  • --limit: Maximum number of discussions to fetch. Default: 30
  • --repo: Repository in owner/repo format. Default: current repo
  • --jq: (Optional) jq expression for filtering/transforming output. If omitted, returns schema info

Example Queries

Find discussions with many comments:

▼
bash
复制代码
./query-discussions.sh --jq '.[] | select(.comments.totalCount > 5) | {number, title, comments: .comments.totalCount}'

Get unanswered discussions:

▼
bash
复制代码
./query-discussions.sh --jq '.[] | select(.answer == null) | {number, title, category: .category.name}'

List discussions with their labels:

▼
bash
复制代码
./query-discussions.sh --jq '.[] | {number, title, labels: [.labels[].name]}'

Find discussions by category:

▼
bash
复制代码
./query-discussions.sh --jq '.[] | select(.category.name == "Q&A") | {number, title, author: .author.login}'

Get recently updated discussions:

▼
bash
复制代码
./query-discussions.sh --jq 'sort_by(.updatedAt) | reverse | .[0:10] | .[] | {number, title, updatedAt}'

Output Format

The script outputs JSON by default, making it easy to pipe through jq for additional processing.

Requirements

  • GitHub CLI (gh) authenticated
  • jq for filtering (installed by default on most systems)
开发运维

快捷安装

复制到终端去安装 Skill

npxskillsaddgithubnext/gh-aw--skill"github-discussion-query"
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
朱雀AI检测助手朱雀AI检测助手
零感AI零感AI
Skills 推荐
retrieving-developer-knowledge
retrieving-developer-knowledge 用于搜索、获取和整合 Google 官方开发者文档,覆盖 Google Cloud、AI/Gemini、Android、Chrome、Web、Flutter、Go、Firebase 等平台,适用于查询 gcloud CLI 命令、API 语法、IAM 权限或架构对比等场景。
diff-intake
diff-intake 读取 PR 或分支差异,生成结构化 YAML 变更摘要,用于下游 analytics instrumentation 技能。适用于用户提交 PR 链接、分支对比或原始 diff 后需理解变更内容、评估分析覆盖或启动埋点流程的场景。
load-balancer-configurator
根据用户需求自动生成各类负载均衡器的生产级配置,覆盖 ALB、NLB、Nginx 和 HAProxy 等主流类型,适配不同协议、端口、健康检查及后端服务拓扑,支持直接集成到基础设施即代码流程中。
implement
实现 Linus Dashboard 的功能开发与集成,基于 TypeScript 和 Python 构建前后端组件,遵循严格的代码规范与架构模式,完成视图、卡片、服务及传感器等模块的创建与验证,确保高质量交付并兼容 Home Assistant 生态。
cloud-scheduler-job-creator
自动处理 Google Cloud Platform 中的云调度任务创建,提供符合最佳实践的配置方案与生产级代码生成,支持计算、存储、大数据及机器学习服务的集成部署。