Skill站外收录 @skilllib/skill-2117939930272413894
github-issue-reader
获取 GitHub问题的完整上下文信息,涵盖标题、描述、全部评论、标签、负责人、里程碑,以及关联的 PR 和交叉引用问题,为制定修复方案、理解需求细节和开展实施工作提供全面依据。
开发运维 AI 技能
Skills.MD
# GitHub Issue Reader
## Overview
Fetch complete GitHub issue information to provide context for planning and implementation. This skill retrieves all relevant data from a GitHub issue including the description, all comments and discussion, metadata (labels, assignees, milestones), and related items (linked pull requests and cross-referenced issues).
## When to Use This Skill
Use this skill when:
- Creating a plan to fix or implement an issue
- Understanding the full context and discussion around an issue
- Gathering requirements from an issue before starting work
- Reviewing an issue's history and related work
- Analyzing cross-references and linked pull requests
## Quick Start
Fetch issue information using the `fetch_issue.py` script with any of these formats:
```bash
# Current repository issue by number
scripts/fetch_issue.py 123
# Specific repository issue
scripts/fetch_issue.py owner/repo#456
# Issue by full URL
scripts/fetch_issue.py https://github.com/owner/repo/issues/789
```
The script outputs formatted markdown containing all issue information.
## Usage Instructions
### Prerequisites
Ensure the GitHub CLI (`gh`) is installed and authenticated:
```bash
gh auth status
```
If not authenticated, run:
```bash
gh auth login
```
### Fetching Issue Information
Execute the `fetch_issue.py` script with an issue reference. The script accepts three formats:
1. **Issue number** (for current repository): `123`
2. **Owner/repo format**: `owner/repo#123`
3. **Full URL**: `https://github.com/owner/repo/issues/123`
The script will fetch and output:
- Issue number, title, and URL
- Current state (open/closed)
- Author and timestamps (created, updated, closed)
- Labels, assignees, and milestone
- Full issue description
- All comments with authors and timestamps
- Cross-referenced issues
- Linked pull requests
### Example Output Structure
```markdown
# Issue #123: Add new feature for X
**URL**: https://github.com/owner/repo/issues/123
**State**: open
**Author**: username
**Created**: 2024-10-15T10:30:00Z
**Labels**: enhancement, priority-high
**Assignees**: developer1, developer2
## Description
[Full issue description]
## Comments (3)
### Comment 1 by user1 (2024-10-16T09:00:00Z)
[Comment body]
## Linked Pull Requests
- PR #124 - Fix for issue #123
## Cross-Referenced Issues
- #120 - Related issue
```
### Integration with Planning Workflows
When using this skill as part of a planning workflow:
1. Invoke the skill with the issue reference
2. Review the complete issue context provided
3. Use the information to create an accurate implementation plan
4. Reference specific comments or requirements from the issue
5. Check linked PRs for existing work or context
### Error Handling
The script handles common errors:
- **gh CLI not found**: Install GitHub CLI from https://cli.github.com
- **Not authenticated**: Run `gh auth login`
- **Issue not found**: Verify the issue number and repository
- **Rate limiting**: Wait and retry, or check GitHub API rate limits
## Resources
### scripts/fetch_issue.py
Python script that uses the GitHub CLI to fetch comprehensive issue data. Can be executed directly without loading into context.
**Usage**: `scripts/fetch_issue.py <issue-reference>`
**Returns**: Formatted markdown with complete issue information
**Requirements**:
- GitHub CLI (`gh`) installed and authenticated
- Python 3.6+
- Internet connection
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「github-issue-reader」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次