Skills Plugins MCP Prompt Model 博客 我的中心

github-cli-usage

Instructions for using the `gh` command to query and inspect GitHub state safely.

DeepseekModel 官方收录技能 质量 优秀 · 90 v1.0.0

获取

https://deepseekmodel.com/api/download.php?id=carbon-language-carbon-lang-agents-skills-github-cli-skill-md&format=skill
下载 .skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name GitHub CLI usage description Instructions for using the `gh` command to query and inspect GitHub state safely. GitHub CLI usage This skill provides instructions for using the GitHub CLI ( gh ) to query, inspect, and search GitHub state (issues, pull requests, repositories) for the Carbon project. Safety First: Read-Only Usage [!IMPORTANT] AI assistants MUST NOT use the gh tool to modify any GitHub project state. Do NOT run commands that create, edit, delete, label, comment on, or merge issues, pull requests, releases, or any other resources. Allowed Verbs list view search status api (Only with GET requests) Prohibited Verbs create edit delete merge reopen close comment label Repository Configuration The gh tool interacts with a default repository when run within a local check out. For this project, the default repository is expected to be carbon-language/carbon-lang . Verifying Default Repository To verify the current default repository configuration: gh repo view The output should indicate the repository is carbon-language/carbon-lang . Correcting Misconfigurations If the default repository is misconfigured (for example, pointing to a personal fork or a different repository), the human operator must correct it. [!IMPORTANT] AI Assistants MUST NOT attempt to mutate gh configuration or run commands that change the default repository (such as gh repository set-default ). Instruct the human operator to run the following command to select the correct default repository: gh repo set-default The operator will be prompted to select the correct repository (e.g., carbon-language/carbon-lang ) from the available remotes. Common Query Commands Issues List issues : gh issue list View specific issue : gh issue view <number> Search issues : gh issue search "<query>" Example: gh issue search "crash" --state open Pull Requests List PRs : gh pr list View specific PR : gh pr view <number> View PR diff : gh pr diff <number> Check PR status : gh pr status Search Search code : gh search code "<query>" Search repositories : gh search repos "<query>" Advanced Usage: GitHub API For queries that are not supported by standard gh commands, you can use the gh api command to query the GitHub REST or GraphQL APIs. REST API Query the REST API using paths relative to the API root. List contributors : gh api repos/carbon-language/carbon-lang/contributors List issue comments : gh api repos/carbon-language/carbon-lang/issues/<issue_number>/comments GraphQL API For complex queries, use GraphQL to fetch exactly the data needed. Get repository information : gh api graphql -f query= ' query { repository(owner: "carbon-language", name: "carbon-lang") { description stargazerCount } } ' Pagination Use the --paginate flag to automatically fetch all pages of results. gh api --paginate repos/carbon-language/carbon-lang/issues Filtering and Formatting Use --json to request JSON output, and --jq or --template to filter or format the results. List PR titles and authors : gh pr list --json title,author --jq '.[] | "\(.title) by \(.author.login)"' Format with Go templates : gh issue list --template '{{range .}}{{.number}} - {{.title}}{{"\n"}}{{end}}' Documentation References GitHub CLI Manual : cli.github.com/manual GitHub REST API Documentation : docs.github.com/en/rest GitHub GraphQL API Documentation : docs.github.com/en/graphql
Agent 识别该技能的关键词,点击任意一个即可复制。

该技能未提供触发词。

下载的 .skill 包内含以下字段。
字段 说明
format格式标识(skill/v1)
skill_id技能唯一 ID
name技能名称
version版本号
description技能描述
category所属分类(数组)
trigger_words触发词列表
tags标签列表
source来源标识
source_url来源链接(本页地址)
exported_at导出时间(每次下载生成)
system_prompt系统提示词正文
model_config模型参数:provider / model / temperature / max_tokens / top_p
examples示例
install_guide各平台导入说明(Coze / Dify / Claude / 自定义框架)
同一份技能可按不同平台格式导出。
.skill 标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用 下载
.skillpro 增强格式,额外含脚本 / 工具 / 依赖 / 钩子占位 下载
.json 纯 JSON 导出,只含 system_prompt 与模型参数 下载
Coze 带 frontmatter 的 Markdown,Coze 平台导入用 下载
Dify Dify DSL,创建应用后直接导入 下载

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。