跳到正文
cccskills
免费在 GitHub 公开中文介绍

Accessing GitHub issues

本技能介绍如何使用命令行`gh`只读查看GitHub issue正文和评论,支持通过编号或URL定位,也可指定其他仓库,并说明如何提取大量评论。

原文查看原文说明

Instructions for safely viewing and accessing GitHub issues by way of command line.

carbon-language/carbon-lang星标 33,929(GitHub 33,929 + cccskills 0)
集成工具GitHub

实测评分 未实测

查看安装方法

适用场景

  • 查看issue正文和评论
  • 通过URL读取issue
  • 查看其他仓库的issue
  • 只读调查issue背景

中文介绍

功能

本技能介绍如何通过命令行工具gh查看GitHub issue。可以按编号读取正文,也可以添加--comments以获取评论和完整上下文。若issue位于其他仓库,可用-R或--repo指定仓库。收到URL时,需要从中识别所有者、仓库名和issue编号,再定位目标。评论很多时,资料还提供了使用JSON输出和jq提取评论正文的示例。

适用场景

当智能体需要调查或核对某个issue时,可以用本技能从命令行读取内容。它适合在不打开浏览器的情况下查看正文和评论,也适合查询其他仓库中的issue。

使用示例

  • “请读取这个issue编号对应的正文和评论。”
  • “请根据这个GitHub issue的URL定位并读取内容。”
  • “请显示另一个仓库中的issue,并包含评论。”

注意事项

本技能使用gh命令,只允许只读访问;禁止创建、编辑、评论、关闭或删除issue,因此不会更改issue状态。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
A良好资料仅允许view和list,禁止创建、编辑、评论、关闭或删除issue。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足资料指出使用gh命令,但未说明安装或认证步骤。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月26日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(1)

  • SKILL.md2.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Accessing GitHub issues

<!-- Part of the Carbon Language project, under the Apache License v2.0 with LLVM Exceptions. See /LICENSE for license information. SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -->

This skill provides instructions for AI assistants on how to access and view GitHub issues. Agents should strongly prefer using the command line gh tool to access and view the contents of issues rather than viewing their contents by way of a web browser.

Safety First

[!IMPORTANT] AI assistants MUST NOT modify any GitHub issue state. Only use read-only access commands like view or list. Do NOT comment, edit, create, close, or delete issues.

Accessing Issues

Agents must use this skill to access issues regardless of how they are mentioned (for example, by URL or by issue number).

Basic View

To view an issue in the current default repository (expected to be Carbon):

gh issue view <issue_number>

Including Full Context (All Comments)

To ensure the view includes the entire context of the issue, always include the --comments flag to dump all comments:

gh issue view <issue_number> --comments

[!TIP] If the issue is extremely large and comments are truncated, or you need to process comments programmatically, use the JSON output with jq:

gh issue view <issue_number> --json comments --jq '.comments[].body'

Accessing Issues in Other Repositories

To view an issue in another repository (for example, LLVM), use the -R or --repo flag to specify the repository:

gh issue view <issue_number> -R <owner>/<repo> --comments

Examples:

  • LLVM Issue:

    gh issue view 5678 -R llvm/llvm-project --comments
    
  • Carbon Issue (Explicit):

    gh issue view 1234 -R carbon-language/carbon-lang --comments
    

Mentions via URL

If an issue is mentioned via URL, parse the URL to extract the repository owner, repository name, and issue number.

  • URL pattern: https://github.com/<owner>/<repo>/issues/<number>
  • Extraction:
    • Host: github.com
    • Owner: <owner>
    • Repo: <repo>
    • Number: <number>

Run the command specifying the repository:

gh issue view <number> -R <owner>/<repo> --comments

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Agent tools

免费有简介

本技能为在 Carbon 代码库中工作的 AI 助手规定文件查看、搜索和编辑工具,并说明临时文件的存放与清理规则,以及何时可以编写和运行自定义程序。

  • 按规定工具搜索Carbon文件
  • 为文件编辑选择专用工具
  • 确认临时文件的存放与清理规则
carbon-language/carbon-lang3.4万2026年10月26日 更新

Bazel usage

免费有简介

了解如何在 Carbon 项目中通过 Bazelisk 构建、测试和运行程序,包括指定目标、启用 ASan,以及系统依赖变更后重建缓存。

  • 构建 Carbon 代码
  • 运行与修改相关的测试
  • 启动 Bazel 构建的程序
carbon-language/carbon-lang3.4万2026年10月26日 更新

Builtin functions

免费有简介

本技能介绍如何为Carbon编译器添加内置函数,包括类型注册、签名验证、常量求值、运行时LLVM IR生成、Prelude绑定,以及使用最小Prelude编写针对性测试。

  • 注册内置函数
  • 实现常量求值
  • 添加LLVM IR生成
carbon-language/carbon-lang3.4万2026年10月26日 更新

Code style

免费有简介

了解 Carbon 工具链对 Bazel、C++、Carbon、Markdown 和 Python 文件的格式规范,并查看注释、文档、命名、设计及提交说明的写作要求。

  • 整理 Carbon 代码格式
  • 检查注释和文档
  • 确认名称是否符合实际含义
carbon-language/carbon-lang3.4万2026年10月26日 更新

Diagnostics

免费有简介

本技能介绍如何在Carbon工具链中添加或修改错误和警告,包括注册诊断类型、用带类型的参数构造消息、为源码位置添加标签和上下文,以及检查措辞规范和测试覆盖。

  • 添加诊断消息
  • 为源码位置添加标签
  • 统一诊断措辞
carbon-language/carbon-lang3.4万2026年10月26日 更新

GitHub CLI usage

免费有简介

使用 `gh` 只读搜索和查看 GitHub 的议题、拉取请求、仓库与代码,并了解如何查询 REST 和 GraphQL API、翻页获取结果及筛选或整理输出。

  • 查看议题内容和状态
  • 检查拉取请求差异与检查状态
  • 搜索 GitHub 代码或仓库
carbon-language/carbon-lang3.4万2026年10月26日 更新

查看 carbon-language 的全部技能

报告此技能的问题