← 返回
AI智能 中文

Overlap Check

Check for existing issues and PRs before creating new ones. Fires automatically when agent intends to file an issue, open a PR, or comment on a thread. Searc...
在创建新问题或PR前检查现有条目。当代理意图提交问题、开启PR或评论时自动触发。搜索...
semmyt
AI智能 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 1,145
下载
💾 15
安装
1
版本
#latest

概述

Overlap Check

Before creating a new issue or PR, search the target repo for existing threads that cover the same topic.

When This Fires

  • You are about to run gh issue create
  • You are about to run gh pr create
  • The user asks you to "file an issue", "open a PR", "report this bug", or "submit a fix"
  • You are drafting a comment on an issue or PR you haven't read yet

What to Do

1. Identify the target repo and your topic

Figure out which repo you're targeting. If you're inside a cloned repo, run:

gh repo view --json nameWithOwner -q .nameWithOwner

Summarize what your issue or PR is about in a few keywords.

2. Search for existing threads

Run both searches. Drop filler words (the, a, is, for, with, this, that, when, not, but, and, from) from your keywords.

gh search issues --repo OWNER/REPO "KEYWORDS" --limit 5 --json number,title,state,comments
gh search prs --repo OWNER/REPO "KEYWORDS" --limit 5 --json number,title,state,comments

3. Evaluate matches

Read the titles and comment counts. If any look related:

  • Open the thread: gh issue view NUMBER --repo OWNER/REPO or gh pr view NUMBER
  • Read enough to understand whether your topic is already covered
  • Check if the thread is active, stale, or closed

4. Decide

SituationAction
-------------------
Existing open thread covers your exact topicComment there instead of creating a new one
Existing closed thread solved itDon't reopen — link to it if relevant
Existing thread is related but differentProceed with new issue/PR, reference the related thread
No matchesProceed normally

5. If you find duplicates, tell the user

Show what you found before proceeding:

Found existing threads that may cover this:
  #13738 — WSL2 clipboard paste broken (16 comments, open)
  #14635 — Paste not working in WSL (3 comments, open)

Should I comment on an existing thread or create a new one?

What NOT to Do

  • Don't skip this check because you're confident your topic is new
  • Don't create a new issue just because existing ones use slightly different wording
  • Don't run expensive analysis — two gh search calls is enough
  • Don't block the user — if they insist on creating a new thread after seeing duplicates, do it

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 08:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,058 📥 797,053
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 710 📥 243,602
productivity

Upstream Recon

semmyt
在与开源项目(如提交PR、Issue或评论)互动前,先对其进行调研。适用于:提交Issue、提交PR或发表评论之前。
★ 0 📥 1,046