← 返回
未分类 Key 中文

issue-hunter

Analyze, triage, and select the best issues to work on from GitHub repositories. Scores issues by reproducibility, scope, complexity, and community signal. P...
{ "answer": "分析、筛选 GitHub 仓库中的最佳议题。依据可复现性、范围、复杂度和社区信号评分。" }
sliverp sliverp 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 375
下载
💾 0
安装
1
版本
#latest

概述

Issue Hunter — Issue Analysis & Selection

Overview

Systematically analyze open issues in target repositories, score them by fixability, and select the best candidates to work on. Produces a structured analysis document with root cause hypotheses and fix approaches.

Use cases: Open-source contribution targeting, sprint planning, backlog grooming, bug triage.

Prerequisites

GitHub CLI must be authenticated — issue fetching relies on gh API calls:

gh auth status   # Must show "Logged in"

If not configured, ask the user to provide:

  1. GitHub username
  2. GitHub token — run gh auth login or set export GH_TOKEN=

Without auth, API rate limits will block bulk issue fetching.

Workflow

Step 1: Fetch Issues

For each target repository, fetch open issues:

# Fetch bug-labeled issues
gh issue list --repo {owner}/{repo} --label bug --state open --limit 30 \
    --json number,title,body,labels,comments,createdAt,updatedAt

# Also check these labels
gh issue list --repo {owner}/{repo} --label "good first issue" --state open --limit 10 \
    --json number,title,body,labels,comments,createdAt

gh issue list --repo {owner}/{repo} --label "help wanted" --state open --limit 10 \
    --json number,title,body,labels,comments,createdAt

If no label filtering works, fetch recent open issues:

gh issue list --repo {owner}/{repo} --state open --limit 50 \
    --json number,title,body,labels,comments,createdAt

Step 2: Score Each Issue

Rate each issue on these factors:

Factor3 (High)2 (Medium)1 (Low)
--------------------------------------
ReproducibilityClear repro steps, stack tracePartial descriptionVague "doesn't work"
ScopeSingle module/file2-3 filesCross-cutting concern
ComplexityLogic bug, missing checkAlgorithm issueArchitecture redesign
Community signalMultiple reports, 👍Some engagementSingle report, no reaction
FreshnessRecent, no PR attemptsModerate ageOld, multiple failed PRs
TestabilityCan write automated testPartially testableManual testing only

Total score = sum of all factors (max 18).

Step 3: Select Candidates

Selection criteria (in priority order):

  1. Clearly a bug (not a feature request in disguise)
  2. Self-contained (fixable without deep domain knowledge)
  3. Testable (can write automated tests to verify)
  4. No existing PR addressing it
  5. Score ≥ 12/18

Red flags — skip issues if:

  • Already has an open PR (check with gh pr list --repo owner/repo --search "fixes #{number}")
  • Requires access to proprietary services/APIs
  • Involves native/platform-specific code you can't test
  • Maintainer has said "won't fix" or "by design"

Step 4: Deep-Dive Selected Issues

For each selected issue:

  1. Read the full thread — comments often contain root cause hints or partial fixes
  2. Identify relevant source files — search the codebase for keywords from the issue
  3. Draft a root cause hypothesis — "I believe X happens because Y"
  4. Draft a fix approach — "I'll modify Z to handle the W case"
  5. Estimate effort — Low (< 1 hour), Medium (1-4 hours), High (4+ hours)

Step 5: Produce Analysis Document

Write {workspace}/issue-analysis.md:

# Issue Analysis — {Repository/Campaign Name}

> Generated: {date}

## Summary

| # | Repository | Issue | Title | Score | Effort | Status |
|---|-----------|-------|-------|-------|--------|--------|
| 1 | owner/repo | #123 | Bug title | 16/18 | Low | Selected |
| 2 | owner/repo | #456 | Bug title | 12/18 | Medium | Selected |
| 3 | owner/repo | #789 | Bug title | 8/18 | High | Skipped |

---

## Detailed Analysis

### owner/repo — Selected: #123 — Bug title

- **Score**: 16/18 (Repro: 3, Scope: 3, Complexity: 3, Signal: 2, Fresh: 3, Testable: 2)
- **Root cause**: {hypothesis}
- **Fix approach**: {description}
- **Files to modify**: `path/to/file.py`, `tests/test_file.py`
- **Effort estimate**: Low (< 1 hour)
- **Risk**: Low — straightforward null check
- **Dependencies**: None

### owner/repo — Skipped: #789 — Bug title
- **Reason**: Requires architecture redesign, score 8/18

Output

  • {workspace}/issue-analysis.md — Per-repo issue analysis with selections

Tips

  • Pairs naturally with repo-scout (upstream) and repo-setup / dev-test (downstream).
  • For sprint planning: use the scoring system on your own project's issues to prioritize.
  • For backlog grooming: run periodically to re-score issues as new information appears.
  • When analyzing a single repo, skip the summary table and go straight to detailed analysis.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 08:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,419

repo-setup

sliverp
叉取、克隆并设置 GitHub 仓库用于开发或贡献。处理叉取创建、带认证的克隆、上游远程配置等。
★ 0 📥 411
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 325,845