create-github-issue
它能做什么
这项技能使用 GitHub 命令行工具创建 GitHub 议题。它读取代码仓库的议题模板,并填写每个部分。适合想要报告错误或提出功能请求的人。
适用场景
- ✓当你想在 GitHub 代码仓库中提交错误报告的时候。
- ✓当你想使用项目自己的模板提出功能请求的时候。
- ✓当你想在创建新议题之前,先检查是否已有相关议题的时候。
技能链接
https://github.com/tailcallhq/forgecode/blob/main/.forge/skills/create-github-issue/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“你能用他们的议题模板,在这个项目的 GitHub 上提交一份错误报告吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体列出代码仓库的议题模板,选择合适的模板,读取其中必填的字段,然后用 GitHub 命令行工具创建议题。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Create GitHub Issue
Create comprehensive GitHub issues using gh issue create by dynamically discovering and adhering to the repository's official issue templates.
Workflow
1. Discover and Select Template
CRITICAL: You must use the repository's official templates. Do not assume the structure.
- List available templates:
ls .github/ISSUE_TEMPLATE/ - Select the most appropriate template based on the issue type (e.g.,
bug_report.yml,feature_request.yml). - Read the selected template to understand its required fields, structure, and any title prefixes or default labels.
cat .github/ISSUE_TEMPLATE/<selected_template>.yml
2. Gather Context
Gather relevant information to fulfill the template requirements:
# Check current git status for context
git status
# View recent commits if related to codebase changes
git log --oneline -10
# Check if related issues exist
gh issue list --search "keyword" --limit 10
3. Generate Markdown Body
MANDATORY: Structure the issue body exactly as defined in the selected YAML template without exception.
- Map YAML fields to Markdown: Convert each field in the template (typically found under
body:) into a Markdown section. - Use Headers: Use the
labeloridfrom the YAML field as an H2 header (e.g.,## Bug Description). - Respect Validation: Ensure all fields marked as
required: truein the YAML are populated with meaningful content. - Format Correctly: Use code blocks (e.g.,
```shell,```yaml) for logs and configurations as suggested by the template'srenderattribute.
4. Choose Labels
Select labels by inspecting .github/labels.json.
- Primary Label: Always include a
type:label that matches the issue type. - Additional Labels: Add relevant
state:,work:, orpriority:labels if they exist in the configuration. - Constraint: Only use labels defined in
.github/labels.json.
5. Create Title
Follow the template's title field if it provides a prefix (e.g., "[Bug]: ").
- Be concise: Keep under 70 characters.
- Use imperative mood: "Fix authentication timeout" instead of "Authentication is timing out".
- Start with action verb: Fix, Add, Improve, Update, Refactor.
6. Execute Issue Creation
Step 1: Write body to temp file
Use the write tool to create .forge/FORGE_ISSUE_BODY.md with the structured Markdown content.
Step 2: Create issue
gh issue create \
--title "[Prefix]: Descriptive Title" \
--body-file .forge/FORGE_ISSUE_BODY.md \
--label "type: <type>, work: <complexity>"
Optional flags:
--assignee "username"--milestone "name"--draft(For proposals or research)
7. Finalize
Provide the user with the generated issue URL and a brief summary of the created issue.
Guidelines
- No Exceptions: You must follow the discovered template's structure exactly. If a template asks for "Steps to Reproduce", you must provide them.
- Dynamic Discovery: Always read the files in
.github/ISSUE_TEMPLATE/and.github/labels.jsonfirst. Never rely on hardcoded knowledge of templates or labels as they change frequently. - Cleanliness: Ensure no placeholder text (like "Describe the bug...") remains in the final body.
- Contextual Awareness: If the user provides logs or code snippets, ensure they are placed in the correct sections of the template.
Notes
- Single Source of Truth: The files in
.github/are the authoritative reference for issue structure and categorization. - Tooling: Use
ghCLI directly. It is pre-authenticated and ready for use. - Automation: Do not ask for confirmation before creating the issue if the user's intent is clear.
常见问题
我需要安装 GitHub CLI 吗?
需要。技能使用 gh 命令行工具来创建议题。
它会遵循项目的模板吗?
会。它必须使用代码仓库的官方模板,并保持其章节结构。
它会检查是否重复吗?
在创建新议题之前,它可以搜索相关的议题。
详情
作者的原始描述
Create GitHub issues using GitHub CLI with support for templates, labels, assignees, milestones, and draft issues. Use when the user asks to create a GitHub issue, file a bug report, submit a feature request, or open an issue in a GitHub repository.
repo: tailcallhq/forgecode
热度
- GitHub 星标
- 7.6k
- 排名
- #13110
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
create-agent
7.6k教你的智能体为 Forge 编程应用创建或修改自定义智能体,这些智能体以 markdown 文件保存,顶部为设置。
create-command
7.6k教你的智能体为 Forge 编程应用创建可复用的命令,以按顺序执行的 markdown 步骤编写。
create-plan
7.6k帮你的智能体在修改任何代码之前,为一项复杂任务编写详细的实施计划,包括步骤、风险和备选方案。
github-pr-comments
7.6k帮你的智能体处理 GitHub 拉取请求上的每一条行内评论,逐一完成每项要求的修改。