跳到正文
Skillpedia
任务与项目70k · #3146

issue-management

它能做什么

这个技能用于创建和编辑 GitHub 议题之间的关系,例如父议题与子议题的关联,以及相互阻塞的依赖。适合在 GitHub Issues 中组织工作的团队。

适用场景

  • ✓当一个新的 GitHub 议题应该归属于某个父议题时。
  • ✓当一个议题被另一个议题阻塞,需要记录这种关系时。
  • ✓当有人想查看或删除议题之间的关联关系的时候。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/remotion-dev/remotion/blob/main/.agents/skills/issue-management/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我把这三个 GitHub 议题设为我们规划议题的子议题,并把 API 议题设为被 auth 议题阻塞。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先检查已安装的 GitHub CLI 是否支持这些关系参数,然后设置父议题、子议题或阻塞关系,并核实结果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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.
常见问题

一个议题可以有多个父议题吗?

不可以。该技能说明,一个子议题只能有一个父议题。

可以跨仓库关联议题吗?

可以。跨仓库的关系需要使用议题的完整 URL。

如果缺少这些参数怎么办?

该技能说明应先更新 GitHub CLI,而不是改用旧的命令。

详情

作者的原始描述

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

repo: remotion-dev/remotion

热度

GitHub 星标
70k
排名
#3146
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能