一键导入
gh-read-issue-context
Read context from GitHub issue including body and comments. Use before starting implementation work or when prior context is needed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Read context from GitHub issue including body and comments. Use before starting implementation work or when prior context is needed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run section orchestrators to coordinate multi-component workflows. Use when starting work on a section.
Validate agent YAML frontmatter and configuration. Use before committing agent changes or in CI.
Reply to PR review comments using the correct GitHub API endpoint. Use when responding to inline code review feedback (not gh pr comment).
Run Mojo tests using mojo test command. Use when executing tests or verifying test coverage.
Track implementation progress against plan. Use to monitor component delivery and identify blockers.
Check agent configuration coverage across hierarchy levels and phases. Use to ensure complete agent system coverage.
| name | gh-read-issue-context |
| description | Read context from GitHub issue including body and comments. Use before starting implementation work or when prior context is needed. |
| category | github |
Retrieve all context from a GitHub issue before starting work.
# Get issue details
gh issue view <number>
# Get issue with all comments (implementation history)
gh issue view <number> --comments
# Get structured JSON for parsing
gh issue view <number> --json title,body,comments,labels,assignees,milestone,state
# Get specific field
gh issue view <number> --json body --jq '.body'
# Get linked PRs
gh pr list --search "issue:<number>"
# Get issue timeline
gh api repos/{owner}/{repo}/issues/<number>/timeline
gh issue view <number>gh issue view <number> --commentsgh pr list --search "issue:<number>"# 1. Read issue #123
gh issue view 123
# 2. Check for prior work
gh issue view 123 --comments
# 3. See if any PRs exist
gh pr list --search "issue:123"
# 4. Get machine-readable data if needed
gh issue view 123 --json title,body,labels,state
# Title only
gh issue view <number> --json title --jq '.title'
# Body content
gh issue view <number> --json body --jq '.body'
# Labels as list
gh issue view <number> --json labels --jq '.labels[].name'
# Comment bodies
gh issue view <number> --json comments --jq '.comments[].body'
# Comment count
gh issue view <number> --json comments --jq '.comments | length'
# Find design decisions
gh issue view <number> --json comments --jq '.comments[].body' | grep -i "design decision"
# Find blockers
gh issue view <number> --json comments --jq '.comments[].body' | grep -i "blocked\|blocker"
# Find completed items
gh issue view <number> --json comments --jq '.comments[].body' | grep -i "completed\|done"
# Check if open or closed
gh issue view <number> --json state --jq '.state'
# Check closure reason
gh issue view <number> --json stateReason --jq '.stateReason'
# Check assignees
gh issue view <number> --json assignees --jq '.assignees[].login'
# Find PRs that close this issue
gh pr list --search "closes:#<number>"
# Find mentions in other issues
gh issue list --search "in:body #<number>"
# Find commits referencing issue
gh api search/commits?q=repo:{owner}/{repo}+<number>
| Problem | Solution |
|---|---|
| Issue not found | Check issue number, may be in different repo |
| No comments | Issue may be new or have minimal discussion |
| Auth error | Run gh auth status to verify |
| Rate limited | Wait or use authenticated requests |
.claude/shared/github-issue-workflow.md for complete workflow