create-github-issue
Skill này làm gì
Skill này tạo một issue GitHub bằng công cụ dòng lệnh GitHub. Nó đọc mẫu issue của kho lưu trữ và điền từng mục. Skill dành cho người muốn báo lỗi hoặc đề xuất tính năng.
Khi nào nên dùng
- ✓Khi bạn muốn tạo báo cáo lỗi trong một kho lưu trữ GitHub.
- ✓Khi bạn muốn yêu cầu tính năng theo mẫu của dự án.
- ✓Khi bạn muốn kiểm tra issue có sẵn trước khi tạo một issue mới.
Liên kết skill
https://github.com/tailcallhq/forgecode/blob/main/.forge/skills/create-github-issue/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể tạo báo cáo lỗi trên GitHub của dự án này, theo mẫu issue của họ không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent liệt kê các mẫu issue của kho lưu trữ, chọn mẫu phù hợp, đọc các trường bắt buộc, rồi tạo issue bằng công cụ dòng lệnh GitHub.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Tôi có cần cài GitHub CLI không?
Có. Skill dùng công cụ dòng lệnh gh để tạo issue.
Nó có theo mẫu của dự án không?
Có. Nó phải dùng mẫu chính thức của kho lưu trữ và giữ nguyên cấu trúc các phần.
Nó có kiểm tra trùng lặp không?
Nó có thể tìm các issue liên quan trước khi tạo một issue mới.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 7.6k
- Vị trí xếp hạng
- #13110
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
create-agent
7.6kDạy agent của bạn tạo hoặc chỉnh sửa agent tùy chỉnh cho ứng dụng lập trình Forge, lưu dưới dạng file markdown với thiết lập ở đầu.
create-command
7.6kDạy agent của bạn tạo lệnh tái sử dụng cho ứng dụng lập trình Forge, viết dưới dạng các bước markdown chạy theo thứ tự.
create-plan
7.6kGiúp agent của bạn viết một kế hoạch triển khai chi tiết cho tác vụ phức tạp, gồm các bước, rủi ro và phương án thay thế, trước khi sửa code.
github-pr-comments
7.6kGiúp agent của bạn xử lý từng bình luận nội tuyến trên pull request GitHub, thực hiện từng thay đổi được yêu cầu một cách tuần tự.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.