本技能为在 Carbon 代码库中工作的 AI 助手规定文件查看、搜索和编辑工具,并说明临时文件的存放与清理规则,以及何时可以编写和运行自定义程序。
- 按规定工具搜索Carbon文件
- 为文件编辑选择专用工具
- 确认临时文件的存放与清理规则
本技能介绍如何使用命令行`gh`只读查看GitHub issue正文和评论,支持通过编号或URL定位,也可指定其他仓库,并说明如何提取大量评论。
Instructions for safely viewing and accessing GitHub issues by way of command line.
实测评分 未实测
查看安装方法本技能介绍如何通过命令行工具gh查看GitHub issue。可以按编号读取正文,也可以添加--comments以获取评论和完整上下文。若issue位于其他仓库,可用-R或--repo指定仓库。收到URL时,需要从中识别所有者、仓库名和issue编号,再定位目标。评论很多时,资料还提供了使用JSON输出和jq提取评论正文的示例。
当智能体需要调查或核对某个issue时,可以用本技能从命令行读取内容。它适合在不打开浏览器的情况下查看正文和评论,也适合查询其他仓库中的issue。
本技能使用gh命令,只允许只读访问;禁止创建、编辑、评论、关闭或删除issue,因此不会更改issue状态。
本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。
AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。
不计入评分。 由 AI(OpenAI Codex)于 2026年10月26日 评估。仅供参考,安装前请同时查看原文。
安装前可以查看交给 AI 代理的指令内容。
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.
[!IMPORTANT] AI assistants MUST NOT modify any GitHub issue state. Only use read-only access commands like
vieworlist. Do NOT comment, edit, create, close, or delete issues.
Agents must use this skill to access issues regardless of how they are mentioned (for example, by URL or by issue number).
To view an issue in the current default repository (expected to be Carbon):
gh issue view <issue_number>
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'
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
If an issue is mentioned via URL, parse the URL to extract the repository owner, repository name, and issue number.
https://github.com/<owner>/<repo>/issues/<number>github.com<owner><repo><number>Run the command specifying the repository:
gh issue view <number> -R <owner>/<repo> --comments
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
本技能为在 Carbon 代码库中工作的 AI 助手规定文件查看、搜索和编辑工具,并说明临时文件的存放与清理规则,以及何时可以编写和运行自定义程序。
了解如何在 Carbon 项目中通过 Bazelisk 构建、测试和运行程序,包括指定目标、启用 ASan,以及系统依赖变更后重建缓存。
本技能介绍如何为Carbon编译器添加内置函数,包括类型注册、签名验证、常量求值、运行时LLVM IR生成、Prelude绑定,以及使用最小Prelude编写针对性测试。
了解 Carbon 工具链对 Bazel、C++、Carbon、Markdown 和 Python 文件的格式规范,并查看注释、文档、命名、设计及提交说明的写作要求。
本技能介绍如何在Carbon工具链中添加或修改错误和警告,包括注册诊断类型、用带类型的参数构造消息、为源码位置添加标签和上下文,以及检查措辞规范和测试覆盖。
使用 `gh` 只读搜索和查看 GitHub 的议题、拉取请求、仓库与代码,并了解如何查询 REST 和 GraphQL API、翻页获取结果及筛选或整理输出。