update-dedupe
Skill313 starsChanged 6 months agoMITView on GitHub
Update the repo-local dedupe-issue-local companion skill using closed-as-duplicate signals. Use when maintainers repeatedly close issues as duplicates of the same canonical thread and that pattern should feed back into triage duplicate detection.
In this repository17 other files it gives its agents.
- bootstrap-issue-configSkill
- create-product-specSkill
- create-tech-specSkill
- dedupe-issue-localSkill
- dedupe-issueSkill
- evaluate-auto-implement-eligibilitySkill
- implement-issueSkill
- review-pr-localSkill
- review-spec-localSkill
- review-specSkill
- security-review-prSkill
- security-review-specSkill
- triage-issue-localSkill
- triage-issueSkill
- update-pr-reviewSkill
- update-triageSkill
- verify-prSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill to improve .agents/skills/dedupe-issue-local/SKILL.md from real closed-as-duplicate signals.
- Distinctive: line 33
Verify GitHub CLI auth:
- Distinctive: line 47
Read the generated JSON and look for repeated clusters:
- Very specific: line 54
Keep the core dedupe contract stable — never edit dedupe-issue/SKILL.md, never weaken the 2-candidate minimum, never change the similarity …
- Distinctive: line 58
Only encode a cluster when at least two independent closed-as-duplicate events point at the same canonical issue, or a maintainer …
- Distinctive: line 60
Do not weaken precision-over-recall for dedupe.
- Distinctive: line 65
Keep the companion concise.
- Very specific: line 66
Commit any changes on a local branch named oz-agent/update-dedupe.
- Very specific: line 67
If the updates warrant a PR, it will be opened from the pushed branch.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Update Dedupe
Use this skill to improve .agents/skills/dedupe-issue-local/SKILL.md from real closed-as-duplicate signals. The core skill at .agents/skills/dedupe-issue/SKILL.md is the cross-repo contract and is read-only from this loop.
This loop is focused exclusively on closed-as-duplicate signals. Other maintainer signals (re-labels, re-opens, follow-up comments) are handled by the separate update-triage loop.
Write surface
This self-improvement loop may only write to:
.agents/skills/dedupe-issue-local/(andSKILL.mdinside it)
It must NOT touch:
.agents/skills/dedupe-issue/SKILL.md(the core contract).agents/skills/triage-issue-local/SKILL.md(owned byupdate-triage)- any other core skill
The self-improvement runner enforces this via a git diff check against allowed prefixes before pushing. A violation aborts the run.
Inputs
- Optional repository override if you are not running from the target checkout.
- Optional time window override when you need something other than the default seven-day lookback.
Workflow
- Verify GitHub CLI auth:
gh auth status- Aggregate closed-as-duplicate signals for recently closed issues with the bundled script:
python3 .agents/skills/update-dedupe/scripts/aggregate_dedupe_feedback.pyBy default this targets the current repo and looks back 7 days. It collects only issues GitHub itself recorded as closed with the duplicate close reason (state_reason == "duplicate") and looks up the canonical issue each was closed against via the issue timeline's marked_as_duplicate event. Ad-hoc maintainer comments that merely mention another issue are intentionally ignored to avoid false positives. The script writes structured JSON to a temporary file and prints the path.
- Read the generated JSON and look for repeated clusters:
- two or more different reporters filed similar issues that maintainers closed as duplicates of the same canonical thread
- an explicit maintainer statement that a class of issue should always be treated as a duplicate of a canonical thread
- Propose the smallest edit that explains the cluster. Add or update a bullet under the "Known-duplicate clusters" section of
.agents/skills/dedupe-issue-local/SKILL.mdsummarizing the canonical thread and the distinguishing signals maintainers use to identify duplicates. - Keep the core dedupe contract stable — never edit
dedupe-issue/SKILL.md, never weaken the 2-candidate minimum, never change the similarity thresholds or the output shape.
Evidence Rules
- Only encode a cluster when at least two independent closed-as-duplicate events point at the same canonical issue, or a maintainer explicitly asks for one.
- Skip the PR when there is no repeated signal.
- Do not weaken precision-over-recall for dedupe.
Final Checks
- Re-read the updated
dedupe-issue-localcompanion skill and confirm any new clusters are explicit. - Keep the companion concise; prefer canonical links and short distinguishing notes over long prose.
- Commit any changes on a local branch named
oz-agent/update-dedupe. Do NOT push the branch; the Python entrypoint will run a write-surface guard and push only when the guard passes. - If the updates warrant a PR, it will be opened from the pushed branch. Tag
@captainsafiaas a reviewer on that PR. - Validate any temporary JSON with
jqbefore relying on it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

