Chuyển đến nội dung
Skillpedia
Công việc và dự án70k · #3146

issue-management

Skill này làm gì

Skill này tạo và chỉnh sửa quan hệ giữa các issue GitHub, như liên kết cha và con, và các phụ thuộc chặn. Nó dành cho các đội tổ chức công việc trong GitHub Issues.

Khi nào nên dùng

  • ✓Khi một issue GitHub mới nên nằm dưới một issue cha.
  • ✓Khi một issue bị chặn bởi issue khác và quan hệ đó nên được ghi lại.
  • ✓Khi ai đó muốn xem hoặc gỡ các quan hệ giữa các issue.

Liên kết skill

https://github.com/remotion-dev/remotion/blob/main/.agents/skills/issue-management/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/remotion-dev/remotion/blob/main/.agents/skills/issue-management/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể biến ba issue GitHub này thành sub-issue của issue lập kế hoạch của chúng tôi, và đánh dấu issue API bị chặn bởi issue xác thực không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent kiểm tra GitHub CLI đã cài có hỗ trợ các cờ quan hệ không. Sau đó nó thiết lập liên kết cha, sub-issue hoặc blocked-by và xác minh kết quả.

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.

Use this skill when creating, editing, inspecting, or removing relationships between GitHub issues.

These commands use the Issues 2.0 gh issue support added in GitHub CLI PR cli/cli#13057. Because this feature is new, first confirm the installed gh supports it:

gh issue create --help | grep -E -- '--parent|--blocked-by|--blocking'
gh issue edit --help | grep -E -- '--parent|--add-sub-issue|--add-blocked-by|--add-blocking'

If those flags are missing, update gh before trying to manage issue relationships. Do not invent older commands.

Issue reference format

Relationship flags accept issue numbers or issue URLs.

Use a number for an issue in the current repository:

gh issue edit 123 --parent 100

Use a full issue URL for a cross-repository relationship:

gh issue edit 123 --blocked-by https://github.com/remotion-dev/remotion/issues/456

Multiple related issues can be passed as a comma-separated list:

gh issue edit 123 --add-blocked-by 200,201

Parent and sub-issue relationships

A sub-issue has exactly one parent issue.

To create a new issue directly under a parent:

gh issue create \
  --title 'Docs: Add issue management skill' \
  --body-file /tmp/remotion-issue-body.md \
  --parent 100

To set or change the parent of an existing child issue:

gh issue edit <child-number> --parent <parent-number-or-url>

To remove the parent from a child issue:

gh issue edit <child-number> --remove-parent

To manage children from the parent issue:

gh issue edit <parent-number> --add-sub-issue <child-number-or-url>
gh issue edit <parent-number> --remove-sub-issue <child-number-or-url>

--add-sub-issue moves the child to the new parent if it already has another parent. Do not use --add-sub-issue while editing multiple parent issues in one command; one child cannot be added ambiguously to several parents.

Blocked-by and blocking relationships

Use blocked-by when the issue being edited is waiting on another issue.

# Issue 123 is blocked by issue 200.
gh issue edit 123 --add-blocked-by 200

# Remove that relationship.
gh issue edit 123 --remove-blocked-by 200

Use blocking when the issue being edited blocks another issue.

# Issue 123 is blocking issues 300 and 301.
gh issue edit 123 --add-blocking 300,301

# Remove one blocking relationship.
gh issue edit 123 --remove-blocking 300

Equivalent mental model:

gh issue edit A --add-blocking B

means the same relationship as:

gh issue edit B --add-blocked-by A

Choose the command based on which issue you are already editing.

When creating an issue, set relationships immediately:

gh issue create \
  --title 'Studio: Add timeline validation' \
  --body-file /tmp/remotion-issue-body.md \
  --blocked-by 200,201 \
  --blocking 300

Inspecting relationships

Human-readable view shows parent, sub-issues, blocked-by, and blocking metadata when present:

gh issue view <number>

Raw non-TTY output includes stable relationship lines:

gh issue view <number> | grep -E '^(parent|sub-issues|sub-issues-completed|blocked-by|blocking):'

For scripts, request the JSON fields explicitly:

gh issue view <number> \
  --json parent,subIssues,subIssuesSummary,blockedBy,blocking

subIssues, blockedBy, and blocking are connection objects with nodes and totalCount. subIssuesSummary contains completion counts.

Safe workflow

  1. Create any new issue bodies with --body-file, not inline multiline shell strings.
  2. Link the relationship using the appropriate gh issue create or gh issue edit flag.
  3. Verify with gh issue view <number> or gh issue view <number> --json parent,subIssues,subIssuesSummary,blockedBy,blocking.
  4. If editing a PR or parent issue body afterward, replace vague checklist text with concrete issue numbers.
Câu hỏi thường gặp

Một issue có thể có nhiều cha không?

Không. Skill cho biết một sub-issue chỉ có đúng một issue cha.

Tôi có thể liên kết issue giữa các repository không?

Có. Dùng URL đầy đủ của issue cho quan hệ giữa các repository.

Nếu thiếu cờ thì sao?

Skill yêu cầu cập nhật GitHub CLI trước, thay vì dùng lệnh cũ hơn.

Chi tiết

Mô tả gốc của tác giả

Manage GitHub Issues 2.0 relationships with gh CLI: parent issues, sub-issues, blocked-by, and blocking links.

repo: remotion-dev/remotion

Độ phổ biến

Sao GitHub
70k
Vị trí xếp hạng
#3146
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự