github-issue-creator by google-gemini/gemini-cli
npx skills add https://github.com/google-gemini/gemini-cli --skill github-issue-creator此技能指导创建高质量的 GitHub Issue,确保其符合仓库标准并使用适当的模板。
遵循以下步骤创建 GitHub Issue:
确定 Issue 类型:判断请求是错误报告、功能请求还是其他类别。
定位模板:在 .github/ISSUE_TEMPLATE/ 目录中搜索 Issue 模板。
* `bug_report.yml`
* `feature_request.yml`
* `website_issue.yml`
* 如果未找到相关的 YAML 模板,则在同目录下查找 `.md` 模板。
3. 阅读模板:阅读已识别模板文件的内容,了解所需字段。
* 如果使用 YAML 模板(表单),请为模板中定义的每个 `id` 准备值。
* 如果使用 Markdown 模板,请严格遵循其结构。
* **默认标签**:除非用户明确要求,否则始终包含 `🔒 maintainer only` 标签。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
5. 创建 Issue:使用 gh CLI 创建 Issue。
* **关键提示:** 为避免多行 Markdown 或复杂文本的 shell 转义和格式问题,**务必**先将描述/正文写入临时文件。
对于 Markdown 模板或简单正文:
# 1. 将草拟的内容写入临时文件
# 2. 使用 --body-file 标志创建 Issue
gh issue create --title "简洁的标题" --body-file <临时文件路径> --label "🔒 maintainer only"
# 3. 删除临时文件
rm <临时文件路径>
对于 YAML 模板(表单): 虽然 gh issue create 支持 --body-file,但 YAML 表单通常期望通过标志传递键值对来绕过交互式提示。然而,对于长文本字段,确保格式得以保留的最可靠的非交互式方法是:如果表单已转换为标准正文,则使用 --body 或 --body-file;或者对于 YAML 表单,使用 --field 标志。
注意:对于使用 YAML 表单的 gemini-cli 仓库,如果自动化不要求基于特定字段的提交,通常可以将内容作为单个正文提交。
--body-file 配合临时文件,以防止换行符和特殊字符问题。每周安装量
188
仓库
GitHub 星标数
99.0K
首次出现
2026年3月1日
安全审计
安装于
opencode162
gemini-cli162
cursor162
codex162
github-copilot161
kimi-cli161
This skill guides the creation of high-quality GitHub issues that adhere to the repository's standards and use the appropriate templates.
Follow these steps to create a GitHub issue:
Identify Issue Type : Determine if the request is a bug report, feature request, or other category.
Locate Template : Search for issue templates in .github/ISSUE_TEMPLATE/.
bug_report.ymlfeature_request.ymlwebsite_issue.yml.md templates in the same directory.Read Template : Read the content of the identified template file to understand the required fields.
Draft Content : Draft the issue title and body/fields.
id defined in the template.🔒 maintainer only label unless the user explicitly requests otherwise.Create Issue : Use the gh CLI to create the issue.
For Markdown Templates or Simple Body:
# 1. Write the drafted content to a temporary file
# 2. Create the issue using the --body-file flag
gh issue create --title "Succinct title" --body-file <temp_file_path> --label "🔒 maintainer only"
# 3. Remove the temporary file
rm <temp_file_path>
For YAML Templates (Forms): While gh issue create supports --body-file, YAML forms usually expect key-value pairs via flags if you want to bypass the interactive prompt. However, the most reliable non-interactive way to ensure formatting is preserved for long text fields is to use the --body or --body-file if the form has been converted to a standard body, OR to use the --field flags for YAML forms.
Note: For thegemini-cli repository which uses YAML forms, you can often submit the content as a single body if a specific field-based submission is not required by the automation.
--body-file to prevent newline and special character issues.Weekly Installs
188
Repository
GitHub Stars
99.0K
First Seen
Mar 1, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode162
gemini-cli162
cursor162
codex162
github-copilot161
kimi-cli161
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
119,800 周安装