dedupe-issue

A workflow for checking whether a newly filed GitHub issue describes the same problem or request as existing candidate issues.

In plain words
What is it for?
It compares issue titles and descriptions, identifies likely duplicates, and continues triage when no comparison candidates are available.
Why use it?
It reduces duplicate issue reports and avoids handling the same request multiple times.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/terry-mao/aicodingflow/dedupe-issue
Any agent
npx skills add Terry-Mao/AICodingFlow --skill dedupe-issue
Clone the repo
git clone --depth 1 https://github.com/Terry-Mao/AICodingFlow

Made for: Claude Code, Codex.

Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 908 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00027 $0.00908
Opus 5 $0.00014 $0.00454
Sonnet 5 $0.00005 $0.00182
Haiku 4.5 $0.00003 $0.00091

Measured 2d ago against content hash 75ca811ac9ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dedupe-issue scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/dedupe-issue/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Detect duplicate issues

Compare a newly filed GitHub issue against candidate issues provided by the workflow and identify likely duplicates by similarity of title and description.

Inputs

Expect the prompt to include:

  • the incoming issue's number, title, and description
  • candidate issues prepared by the outer workflow
  • the repository owner/name as context

Duplicate detection procedure

  1. Use the candidate issues prepared by the outer workflow as the comparison set.
  2. If no candidate issues are available, report that duplicate checking could not be verified in summary or issue_body, leave duplicate_of empty, and continue triage from the available local inputs.
  3. Normalize the incoming issue's title and description by lowercasing, stripping leading/trailing whitespace, and collapsing runs of whitespace into single spaces.
  4. For each candidate issue in the comparison set: a. Compute title similarity: compare the incoming title to the candidate title. Consider them title-similar when they share the same core noun phrases or intent after stripping common prefixes like "bug:", "feature:", "[request]", emoji, and markdown formatting. b. Compute description similarity: compare the key symptoms, error messages, reproduction steps, and requested behavior between the incoming and candidate descriptions. Ignore boilerplate template sections (e.g., "## Environment", "## Steps to Reproduce" headers with empty content) that do not carry diagnostic signal. c. A candidate is a likely duplicate when both of the following hold:
    • The titles convey the same problem, feature request, or question (not merely sharing a common keyword).
    • The descriptions overlap on at least one substantive detail: a shared error message, the same failing behavior, the same requested capability, or an equivalent reproduction scenario.
  5. Rank candidates by overall similarity (title weight ≈ 40%, description weight ≈ 60%) and select the top matches.
  6. Only flag an issue as a duplicate when 2 or more existing issues are identified as likely duplicates. A single weak match is not sufficient — the evidence must be corroborated across multiple existing issues to reduce false positives.

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 73 lines · 27 tokens per session scan A 75ca811ac9ed

Subscribe to this mod's changes

dedupe-issue is a skill published in the GitHub repository Terry-Mao/AICodingFlow (165 stars, last pushed 5d ago), licensed MIT. It adds 27 tokens to every session and 908 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.