[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M698SJJZNRZ6W6AMVP94EVJJ":3,"skill-same:01M698SJJZNRZ6W6AMVP94EVJJ":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":51,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M698SJJZNRZ6W6AMVP94EVJJ","tag-duplicate-prs-issues","重复 PR\u002FIssue 检索与标记","Use gitcrawl to search duplicate OpenClaw PRs\u002Fissues, group related work in prtags, and sync duplicate state to GitHub.","使用 gitcrawl 搜索重复的 OpenClaw PR\u002Fissue，在 prtags 中对相关工作进行分组，并将重复状态同步到 GitHub。","openclaw\u002Fopenclaw","openclaw","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F252820863?v=4","01M698P3FSAZ6B4R928ZF19KPT","01M698PDMDRVH56MV30D253NFP",394452,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftag-duplicate-prs-issues\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理","SCENARIO","使用场景",[30,31,32,33,10,34,35,36,37,38,39,40],"tag duplicate prs issues","issues","duplicate","prs","gitcrawl","github","sync","state","search","work","use","2026-11-10 10:12:30",false,"---\nname: tag-duplicate-prs-issues\ndescription: Use gitcrawl to search duplicate OpenClaw PRs\u002Fissues, group related work in prtags, and sync duplicate state to GitHub.\n---\n\n# Tag Duplicate PRs and Issues\n\nUse this skill when a maintainer needs to decide whether a pull request or issue is a duplicate of existing work.\n\nThis skill is for maintainer triage and grouping.\nIt is not for reviewing the implementation quality of a PR.\n\n## Required Setup\n\nDo not write duplicate groups or annotations until this setup is complete.\nRead-only discovery can still proceed with `gitcrawl` and live `gh`.\n\n### Companion Skills\n\nUse `$gitcrawl` first for local candidate discovery.\nUse the `prtags` skill from the `prtags` repo at `skills\u002Fprtags\u002FSKILL.md` when it is available.\n\n### Install the CLIs\n\nInstall `prtags` from the pinned release below.\nDo not rely on an old local build unless the maintainer explicitly wants to test unreleased behavior.\n\n`prtags` CLI install path:\n\n```bash\nGOBIN=\"$HOME\u002F.local\u002Fbin\" go install github.com\u002Fdutifuldev\u002Fprtags\u002Fcmd\u002Fprtags@v0.1.2\n```\n\n`prtags` lives outside the OpenClaw organization, so this install stays pinned to a reviewed\nversion that the Go module proxy resolves and the public checksum database verifies. `GOBIN` keeps\nthe installed executable in the same user-local directory as the previous installer, so an existing\n`$HOME\u002F.local\u002Fbin` `PATH` continues to resolve the newly installed version.\nDo not install it by piping a remote script into a shell, and do not point the install at a branch:\neither one executes whatever that third party serves at run time, with the maintainer's own\nprivileges. Moving to a newer `prtags` release is a reviewed change to this file, not a mid-task step.\n\n### Authenticate prtags\n\n`prtags` should be logged in with the maintainer's own GitHub account through OAuth device flow.\nDo not use a shared maintainer token for interactive triage.\n\n```bash\nprtags auth login\nprtags auth status\n```\n\nThe expected outcome is that `prtags` stores the logged-in maintainer identity locally and uses that account for authenticated writes.\n\n## Missing-Setup Rule\n\nDo not require an up-front preflight before starting the workflow.\nProceed with the normal steps until you actually need a tool or account state.\n\nAs soon as you discover that `prtags` is missing or not logged in at the write step, stop immediately.\nDo not continue in a partial write mode after that point.\n\nIf `prtags` is missing, ask the user to run the pinned install command from\n[Install the CLIs](#install-the-clis).\nKeep that section as the single source of the installed version; do not improvise another install path.\n\nIf `prtags auth status` shows that the user is not logged in, ask the user to run:\n\n```bash\nprtags auth login\n```\n\nResume only after the missing tool or login state has been fixed.\n\n## Read-Path Default\n\nFor candidate discovery in this workflow, use `gitcrawl` first.\nTreat it as the local history and clustering layer for related issues, duplicate attempts, and closed threads.\n\nUse live `gh` or `gh api` for the target thread and for any candidate before making an actionable judgment.\nUse live GitHub when `gitcrawl` is missing or stale for a concrete reason, such as:\n\n- the target or candidate is not present yet\n- the local data is clearly stale or incomplete for the decision you need to make\n- `gitcrawl` errors, times out, or lacks the needed neighbor\u002Fsearch data\n\nWhen you fall back to live GitHub search, note that you did so and why.\n\nIf a later `prtags` target-level write fails because its own mirror has not caught up, stop and report that the curation backend is missing the target object instead of forcing a fallback write.\n\n## Goal\n\nFor each target PR or issue:\n\n1. gather duplicate evidence\n2. decide whether it is a real duplicate\n3. create or reuse one `prtags` group for that duplicate cluster\n4. save the maintainer judgment in `prtags`\n5. rely on normal `prtags` group writes to drive GitHub comment sync when that integration is configured\n\n## Tool Roles\n\nUse the tools with these boundaries:\n\n- `gitcrawl` is candidate generation and historical context\n  - use it first for local title\u002Fbody search, neighbors, clusters, and closed-thread discovery\n  - treat every candidate as a lead until live GitHub confirms it\n- `gh` is live GitHub truth\n  - use it for target state, body, comments, reviews, files, linked issues, and current open\u002Fclosed\u002Fmerged status\n  - use `gh search` only when `gitcrawl` is stale, missing data, or cannot express the needed query\n- `prtags` is the maintainer curation layer\n  - use it to create or reuse one duplicate group\n  - use it to save the duplicate status, confidence, rationale, and group summary\n  - use it as the source of truth for the GitHub-facing group comment\n\n## Working Rules\n\n- Do not call something a duplicate only because the titles are similar.\n- Do not call something a duplicate only because the same files changed.\n- A duplicate cluster should be based on the same user-facing problem, the same intent, and substantially overlapping implementation or investigation context.\n\n## One-Group Rule\n\nTreat duplicate groups as exclusive.\nA PR or issue should belong to at most one duplicate group at a time.\n\nThat means:\n\n- before creating a new group, search for an existing group that already represents the same duplicate story\n- if the target already appears to belong to a different duplicate group, stop and resolve that conflict first\n- do not create a second group for the same target just because the wording is slightly different\n- if two plausible existing groups overlap and you cannot safely merge the judgment, stop and ask the maintainer\n\nThis rule matters more than speed.\nThe skill should keep one coherent duplicate cluster per problem, not many near-duplicate clusters.\n\n## What A Good Duplicate Group Represents\n\nA duplicate group should describe the underlying problem and the intended fix direction.\nDo not group items only because they share a keyword.\n\nGood group shape:\n\n- same user-facing bug or same maintainer-facing task\n- same subsystem or code surface\n- same intended change direction\n- same likely duplicate-resolution path\n\nBad group shape:\n\n- “all PRs that touch Slack”\n- “all issues mentioning retry”\n- “all auth-related items”\n\nThe group title should name the real problem.\nThe group description should summarize the intent and the code surface.\n\nExamples:\n\n- `gateway: startup regression from channel status bootstrap`\n- `whatsapp: QR preflight timeout handling`\n- `release: cross-OS validation handoff gaps`\n\n## Evidence Checklist\n\nBefore declaring a duplicate, gather evidence from at least two categories.\n`gitcrawl` neighbors, search hits, and cluster membership count as candidate generation, not as enough proof by themselves.\n\nFor PRs:\n\n- same or nearly same problem statement\n- same changed files or overlapping file ranges\n- same fix direction\n- same subsystem and failure mode\n- same linked issue or same user-visible symptom\n\nFor issues:\n\n- same user-visible problem\n- same reproduction story or same failure mode\n- same likely fix area\n- same PRs already linked or discussed\n- same maintainers already steering toward the same duplicate grouping\n\nIf you only have wording similarity, that is not enough.\n\n## Step 1: Read The Target\n\nStart by reading the target itself.\nUse live GitHub for current target state.\n\nFor a PR:\n\n```bash\ngh pr view \u003Cnumber> --json number,title,state,mergedAt,body,closingIssuesReferences,files,comments,reviews,statusCheckRollup\n```\n\nFor an issue:\n\n```bash\ngh issue view \u003Cnumber> --json number,title,state,body,comments,closedAt\n```\n\nRecord:\n\n- target type and number\n- title\n- problem statement\n- proposed intent\n- subsystem\n- whether it is open, closed, or merged\n- whether there is already a likely duplicate thread mentioned by humans\n\n## Step 2: Search Broadly With Gitcrawl\n\nUse `gitcrawl` first because it is the local OpenClaw history and clustering source.\nDo not switch to broad live GitHub search unless `gitcrawl` is missing data, stale, or failing.\n\nStart with the target and nearby threads:\n\n```bash\ngitcrawl threads openclaw\u002Fopenclaw --numbers \u003Cissue-or-pr-number> --include-closed --json\ngitcrawl neighbors openclaw\u002Fopenclaw --number \u003Cissue-or-pr-number> --limit 20 --json\n```\n\nThen search key phrases and subsystem terms:\n\n```bash\ngitcrawl search openclaw\u002Fopenclaw --query \"\u003Ckey phrase from title or body>\" --mode hybrid --limit 20 --json\ngitcrawl search openclaw\u002Fopenclaw --query \"\u003Csubsystem or error phrase>\" --mode hybrid --limit 20 --json\n```\n\nInspect likely clusters:\n\n```bash\ngitcrawl cluster-detail openclaw\u002Fopenclaw --id \u003Ccluster-id> --member-limit 20 --body-chars 280 --json\n```\n\nFor PRs, verify likely code overlap with live file data:\n\n```bash\ngh pr view \u003Ccandidate-pr> --json number,title,state,mergedAt,files,body,comments,reviews\n```\n\nFor issues, verify likely duplicate issue state and comments live:\n\n```bash\ngh issue view \u003Ccandidate-issue> --json number,title,state,body,comments,closedAt\n```\n\n## Step 3: Use Live GitHub Search For Gaps\n\nUse targeted live GitHub search after `gitcrawl` when:\n\n- the target is too new for the local store\n- comments or reviews matter and the local store lacks them\n- the exact phrase did not appear in local results but the issue\u002FPR is current enough that GitHub should know it\n\n```bash\ngh search prs --repo openclaw\u002Fopenclaw --match title,body --limit 50 -- \"\u003Ckey phrase>\"\ngh search issues --repo openclaw\u002Fopenclaw --match title,body --limit 50 -- \"\u003Ckey phrase>\"\ngh search issues --repo openclaw\u002Fopenclaw --match comments --limit 50 -- \"\u003Cerror or maintainer phrase>\"\n```\n\n## Step 4: Decide The Outcome\n\nChoose one of these outcomes:\n\n- `not_duplicate`\n- `duplicate_needs_judgment`\n- `duplicate_confirmed`\n\nUse `duplicate_confirmed` only when the evidence is strong enough that the maintainer could safely close or retag the duplicate item.\n\nUse `duplicate_needs_judgment` when:\n\n- the problem looks the same but the implementation goal differs\n- the code overlap is weak\n- the issue wording is ambiguous\n- there may be two valid duplicate group interpretations\n- the target appears to intersect two existing duplicate groups\n\n## Step 5: Reuse Or Create One prtags Group\n\nBefore creating a group, search `prtags` for an existing one.\n\nStart with text search over groups:\n\n```bash\nprtags search text -R openclaw\u002Fopenclaw \"\u003Cproblem phrase>\" --types group --limit 10\nprtags search similar -R openclaw\u002Fopenclaw \"\u003Cproblem summary>\" --types group --limit 10\nprtags group list -R openclaw\u002Fopenclaw\n```\n\nInspect likely groups:\n\n```bash\nprtags group get \u003Cgroup-id>\nprtags group get \u003Cgroup-id> --include-metadata\n```\n\nReuse an existing group when:\n\n- it represents the same problem\n- it already contains clearly related members\n- adding the target would keep the group coherent\n\nDo not widen an existing group just because `gitcrawl` placed several PRs or issues near each other.\nConfirm that the actual implementation path and maintainer intent still match before adding the new member.\n\nCreate a new group only when no existing group clearly fits.\n\nCreate the group with a problem-based title and an intent-based description:\n\n```bash\nprtags group create -R openclaw\u002Fopenclaw \\\n  --kind mixed \\\n  --title \"\u003Cproblem-centered title>\" \\\n  --description \"\u003Csame intent, subsystem, and duplicate-resolution path>\" \\\n  --status open\n```\n\nThen attach the target and any known duplicate members:\n\n```bash\nprtags group add-pr \u003Cgroup-id> \u003Cpr-number>\nprtags group add-issue \u003Cgroup-id> \u003Cissue-number>\n```\n\nIf a target appears to already belong to another duplicate group and you cannot safely reuse that group, stop.\nDo not create a second group.\n\n## Step 6: Ensure The Annotation Fields Exist\n\nUse `field ensure` so the skill is idempotent.\n\nRecommended target-level fields:\n\n```bash\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_status --scope pull_request --type enum --enum-values not_duplicate,candidate,confirmed --filterable\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_status --scope issue --type enum --enum-values not_duplicate,candidate,confirmed --filterable\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_confidence --scope pull_request --type enum --enum-values low,medium,high --filterable\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_confidence --scope issue --type enum --enum-values low,medium,high --filterable\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_rationale --scope pull_request --type text --searchable\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_rationale --scope issue --type text --searchable\n```\n\nRecommended group-level fields:\n\n```bash\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_confidence --scope group --type enum --enum-values low,medium,high --filterable\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_rationale --scope group --type text --searchable\nprtags field ensure -R openclaw\u002Fopenclaw --name cluster_summary --scope group --type text --searchable\n```\n\n## Step 7: Save The Maintainer Judgment In prtags\n\nFor a PR:\n\n```bash\nprtags annotation pr set -R openclaw\u002Fopenclaw \u003Cpr-number> \\\n  duplicate_status=confirmed \\\n  duplicate_confidence=high \\\n  duplicate_rationale=\"\u003Csame problem, same fix direction, overlapping files and comments>\"\n```\n\nFor an issue:\n\n```bash\nprtags annotation issue set -R openclaw\u002Fopenclaw \u003Cissue-number> \\\n  duplicate_status=confirmed \\\n  duplicate_confidence=high \\\n  duplicate_rationale=\"\u003Csame user-visible problem and same intended fix path>\"\n```\n\nFor the group:\n\n```bash\nprtags annotation group set \u003Cgroup-id> \\\n  duplicate_confidence=high \\\n  cluster_summary=\"\u003Cone-sentence problem summary>\" \\\n  duplicate_rationale=\"\u003Cwhy these items belong in one duplicate cluster>\"\n```\n\nWhen the evidence is incomplete, set `duplicate_status=candidate` and lower the confidence.\n\nIf a per-PR or per-issue annotation write fails because `prtags` cannot resolve the target, do not force a fallback write path.\nKeep the group state you were able to write, report that the curation backend is still missing the target object, and defer the target-level annotation until `prtags` catches up.\n\n## Step 8: Let prtags Sync The Group Comment\n\nDo not tell the agent to create a GitHub comment directly.\n`prtags` owns the outbound GitHub comment as a derived projection of group state.\n\nIn the normal case, do not manually trigger comment sync.\nWhen comment sync is configured, group writes already enqueue the derived comment projection automatically.\n\nUse manual sync only as a repair or retry path:\n\n```bash\nprtags group sync-comments \u003Cgroup-id>\n```\n\nIf the maintainer needs to see which groups still need attention, use:\n\n```bash\nprtags group list-comment-sync-targets -R openclaw\u002Fopenclaw\n```\n\nThe skill should treat the GitHub comment as a consequence of correct `prtags` group state.\nIt should not treat manual comment authoring as part of the normal duplicate workflow.\nIt should also not treat `sync-comments` as a required step for every duplicate decision.\n\n## Output Format\n\nReturn a short maintainer report with these sections:\n\n```text\nDecision: duplicate_confirmed | duplicate_needs_judgment | not_duplicate\nTarget: PR #\u003Cn> | Issue #\u003Cn>\nConfidence: high | medium | low\n\nEvidence:\n- ...\n- ...\n- ...\n\nprtags actions:\n- reused group \u003Cgroup-id> | created group \u003Cgroup-id>\n- added members: ...\n- annotations written: ...\n- comment sync: automatic if configured | manual repair triggered for \u003Cgroup-id>\n```\n\n## Stop Conditions\n\nStop and escalate instead of forcing a duplicate decision when:\n\n- the target appears to belong to two different duplicate groups\n- the duplicate grouping is unclear\n- the wording matches but the implementation goals differ\n- two PRs touch the same files for different reasons\n- two issues describe similar symptoms but likely different root causes\n\nThe maintainer should get one clean duplicate judgment or an explicit “needs judgment” result.\nDo not blur the line.\n","# Tag Duplicate PRs and Issues\n\nUse this skill when a maintainer needs to decide whether a pull request or issue is a duplicate of existing work.\n\nThis skill is for maintainer triage and grouping.\nIt is not for reviewing the implementation quality of a PR.\n\n## Required Setup\n\nDo not write duplicate groups or annotations until this setup is complete.\nRead-only discovery can still proceed with `gitcrawl` and live `gh`.\n\n### Companion Skills\n\nUse `$gitcrawl` first for local candidate discovery.\nUse the `prtags` skill from the `prtags` repo at `skills\u002Fprtags\u002FSKILL.md` when it is available.\n\n### Install the CLIs\n\nInstall `prtags` from the pinned release below.\nDo not rely on an old local build unless the maintainer explicitly wants to test unreleased behavior.\n\n`prtags` CLI install path:\n\n```bash\nGOBIN=\"$HOME\u002F.local\u002Fbin\" go install github.com\u002Fdutifuldev\u002Fprtags\u002Fcmd\u002Fprtags@v0.1.2\n```\n\n`prtags` lives outside the OpenClaw organization, so this install stays pinned to a reviewed\nversion that the Go module proxy resolves and the public checksum database verifies. `GOBIN` keeps\nthe installed executable in the same user-local directory as the previous installer, so an existing\n`$HOME\u002F.local\u002Fbin` `PATH` continues to resolve the newly installed version.\nDo not install it by piping a remote script into a shell, and do not point the install at a branch:\neither one executes whatever that third party serves at run time, with the maintainer's own\nprivileges. Moving to a newer `prtags` release is a reviewed change to this file, not a mid-task step.\n\n### Authenticate prtags\n\n`prtags` should be logged in with the maintainer's own GitHub account through OAuth device flow.\nDo not use a shared maintainer token for interactive triage.\n\n```bash\nprtags auth login\nprtags auth status\n```\n\nThe expected outcome is that `prtags` stores the logged-in maintainer identity locally and uses that account for authenticated writes.\n\n## Missing-Setup Rule\n\nDo not require an up-front preflight before starting the workflow.\nProceed with the normal steps until you actually need a tool or account state.\n\nAs soon as you discover that `prtags` is missing or not logged in at the write step, stop immediately.\nDo not continue in a partial write mode after that point.\n\nIf `prtags` is missing, ask the user to run the pinned install command from\n[Install the CLIs](#install-the-clis).\nKeep that section as the single source of the installed version; do not improvise another install path.\n\nIf `prtags auth status` shows that the user is not logged in, ask the user to run:\n\n```bash\nprtags auth login\n```\n\nResume only after the missing tool or login state has been fixed.\n\n## Read-Path Default\n\nFor candidate discovery in this workflow, use `gitcrawl` first.\nTreat it as the local history and clustering layer for related issues, duplicate attempts, and closed threads.\n\nUse live `gh` or `gh api` for the target thread and for any candidate before making an actionable judgment.\nUse live GitHub when `gitcrawl` is missing or stale for a concrete reason, such as:\n\n- the target or candidate is not present yet\n- the local data is clearly stale or incomplete for the decision you need to make\n- `gitcrawl` errors, times out, or lacks the needed neighbor\u002Fsearch data\n\nWhen you fall back to live GitHub search, note that you did so and why.\n\nIf a later `prtags` target-level write fails because its own mirror has not caught up, stop and report that the curation backend is missing the target object instead of forcing a fallback write.\n\n## Goal\n\nFor each target PR or issue:\n\n1. gather duplicate evidence\n2. decide whether it is a real duplicate\n3. create or reuse one `prtags` group for that duplicate cluster\n4. save the maintainer judgment in `prtags`\n5. rely on normal `prtags` group writes to drive GitHub comment sync when that integration is configured\n\n## Tool Roles\n\nUse the tools with these boundaries:\n\n- `gitcrawl` is candidate generation and historical context\n  - use it first for local title\u002Fbody search, neighbors, clusters, and closed-thread discovery\n  - treat every candidate as a lead until live GitHub confirms it\n- `gh` is live GitHub truth\n  - use it for target state, body, comments, reviews, files, linked issues, and current open\u002Fclosed\u002Fmerged status\n  - use `gh search` only when `gitcrawl` is stale, missing data, or cannot express the needed query\n- `prtags` is the maintainer curation layer\n  - use it to create or reuse one duplicate group\n  - use it to save the duplicate status, confidence, rationale, and group summary\n  - use it as the source of truth for the GitHub-facing group comment\n\n## Working Rules\n\n- Do not call something a duplicate only because the titles are similar.\n- Do not call something a duplicate only because the same files changed.\n- A duplicate cluster should be based on the same user-facing problem, the same intent, and substantially overlapping implementation or investigation context.\n\n## One-Group Rule\n\nTreat duplicate groups as exclusive.\nA PR or issue should belong to at most one duplicate group at a time.\n\nThat means:\n\n- before creating a new group, search for an existing group that already represents the same duplicate story\n- if the target already appears to belong to a different duplicate group, stop and resolve that conflict first\n- do not create a second group for the same target just because the wording is slightly different\n- if two plausible existing groups overlap and you cannot safely merge the judgment, stop and ask the maintainer\n\nThis rule matters more than speed.\nThe skill should keep one coherent duplicate cluster per problem, not many near-duplicate clusters.\n\n## What A Good Duplicate Group Represents\n\nA duplicate group should describe the underlying problem and the intended fix direction.\nDo not group items only because they share a keyword.\n\nGood group shape:\n\n- same user-facing bug or same maintainer-facing task\n- same subsystem or code surface\n- same intended change direction\n- same likely duplicate-resolution path\n\nBad group shape:\n\n- “all PRs that touch Slack”\n- “all issues mentioning retry”\n- “all auth-related items”\n\nThe group title should name the real problem.\nThe group description should summarize the intent and the code surface.\n\nExamples:\n\n- `gateway: startup regression from channel status bootstrap`\n- `whatsapp: QR preflight timeout handling`\n- `release: cross-OS validation handoff gaps`\n\n## Evidence Checklist\n\nBefore declaring a duplicate, gather evidence from at least two categories.\n`gitcrawl` neighbors, search hits, and cluster membership count as candidate generation, not as enough proof by themselves.\n\nFor PRs:\n\n- same or nearly same problem statement\n- same changed files or overlapping file ranges\n- same fix direction\n- same subsystem and failure mode\n- same linked issue or same user-visible symptom\n\nFor issues:\n\n- same user-visible problem\n- same reproduction story or same failure mode\n- same likely fix area\n- same PRs already linked or discussed\n- same maintainers already steering toward the same duplicate grouping\n\nIf you only have wording similarity, that is not enough.\n\n## Step 1: Read The Target\n\nStart by reading the target itself.\nUse live GitHub for current target state.\n\nFor a PR:\n\n```bash\ngh pr view \u003Cnumber> --json number,title,state,mergedAt,body,closingIssuesReferences,files,comments,reviews,statusCheckRollup\n```\n\nFor an issue:\n\n```bash\ngh issue view \u003Cnumber> --json number,title,state,body,comments,closedAt\n```\n\nRecord:\n\n- target type and number\n- title\n- problem statement\n- proposed intent\n- subsystem\n- whether it is open, closed, or merged\n- whether there is already a likely duplicate thread mentioned by humans\n\n## Step 2: Search Broadly With Gitcrawl\n\nUse `gitcrawl` first because it is the local OpenClaw history and clustering source.\nDo not switch to broad live GitHub search unless `gitcrawl` is missing data, stale, or failing.\n\nStart with the target and nearby threads:\n\n```bash\ngitcrawl threads openclaw\u002Fopenclaw --numbers \u003Cissue-or-pr-number> --include-closed --json\ngitcrawl neighbors openclaw\u002Fopenclaw --number \u003Cissue-or-pr-number> --limit 20 --json\n```\n\nThen search key phrases and subsystem terms:\n\n```bash\ngitcrawl search openclaw\u002Fopenclaw --query \"\u003Ckey phrase from title or body>\" --mode hybrid --limit 20 --json\ngitcrawl search openclaw\u002Fopenclaw --query \"\u003Csubsystem or error phrase>\" --mode hybrid --limit 20 --json\n```\n\nInspect likely clusters:\n\n```bash\ngitcrawl cluster-detail openclaw\u002Fopenclaw --id \u003Ccluster-id> --member-limit 20 --body-chars 280 --json\n```\n\nFor PRs, verify likely code overlap with live file data:\n\n```bash\ngh pr view \u003Ccandidate-pr> --json number,title,state,mergedAt,files,body,comments,reviews\n```\n\nFor issues, verify likely duplicate issue state and comments live:\n\n```bash\ngh issue view \u003Ccandidate-issue> --json number,title,state,body,comments,closedAt\n```\n\n## Step 3: Use Live GitHub Search For Gaps\n\nUse targeted live GitHub search after `gitcrawl` when:\n\n- the target is too new for the local store\n- comments or reviews matter and the local store lacks them\n- the exact phrase did not appear in local results but the issue\u002FPR is current enough that GitHub should know it\n\n```bash\ngh search prs --repo openclaw\u002Fopenclaw --match title,body --limit 50 -- \"\u003Ckey phrase>\"\ngh search issues --repo openclaw\u002Fopenclaw --match title,body --limit 50 -- \"\u003Ckey phrase>\"\ngh search issues --repo openclaw\u002Fopenclaw --match comments --limit 50 -- \"\u003Cerror or maintainer phrase>\"\n```\n\n## Step 4: Decide The Outcome\n\nChoose one of these outcomes:\n\n- `not_duplicate`\n- `duplicate_needs_judgment`\n- `duplicate_confirmed`\n\nUse `duplicate_confirmed` only when the evidence is strong enough that the maintainer could safely close or retag the duplicate item.\n\nUse `duplicate_needs_judgment` when:\n\n- the problem looks the same but the implementation goal differs\n- the code overlap is weak\n- the issue wording is ambiguous\n- there may be two valid duplicate group interpretations\n- the target appears to intersect two existing duplicate groups\n\n## Step 5: Reuse Or Create One prtags Group\n\nBefore creating a group, search `prtags` for an existing one.\n\nStart with text search over groups:\n\n```bash\nprtags search text -R openclaw\u002Fopenclaw \"\u003Cproblem phrase>\" --types group --limit 10\nprtags search similar -R openclaw\u002Fopenclaw \"\u003Cproblem summary>\" --types group --limit 10\nprtags group list -R openclaw\u002Fopenclaw\n```\n\nInspect likely groups:\n\n```bash\nprtags group get \u003Cgroup-id>\nprtags group get \u003Cgroup-id> --include-metadata\n```\n\nReuse an existing group when:\n\n- it represents the same problem\n- it already contains clearly related members\n- adding the target would keep the group coherent\n\nDo not widen an existing group just because `gitcrawl` placed several PRs or issues near each other.\nConfirm that the actual implementation path and maintainer intent still match before adding the new member.\n\nCreate a new group only when no existing group clearly fits.\n\nCreate the group with a problem-based title and an intent-based description:\n\n```bash\nprtags group create -R openclaw\u002Fopenclaw \\\n  --kind mixed \\\n  --title \"\u003Cproblem-centered title>\" \\\n  --description \"\u003Csame intent, subsystem, and duplicate-resolution path>\" \\\n  --status open\n```\n\nThen attach the target and any known duplicate members:\n\n```bash\nprtags group add-pr \u003Cgroup-id> \u003Cpr-number>\nprtags group add-issue \u003Cgroup-id> \u003Cissue-number>\n```\n\nIf a target appears to already belong to another duplicate group and you cannot safely reuse that group, stop.\nDo not create a second group.\n\n## Step 6: Ensure The Annotation Fields Exist\n\nUse `field ensure` so the skill is idempotent.\n\nRecommended target-level fields:\n\n```bash\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_status --scope pull_request --type enum --enum-values not_duplicate,candidate,confirmed --filterable\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_status --scope issue --type enum --enum-values not_duplicate,candidate,confirmed --filterable\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_confidence --scope pull_request --type enum --enum-values low,medium,high --filterable\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_confidence --scope issue --type enum --enum-values low,medium,high --filterable\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_rationale --scope pull_request --type text --searchable\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_rationale --scope issue --type text --searchable\n```\n\nRecommended group-level fields:\n\n```bash\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_confidence --scope group --type enum --enum-values low,medium,high --filterable\nprtags field ensure -R openclaw\u002Fopenclaw --name duplicate_rationale --scope group --type text --searchable\nprtags field ensure -R openclaw\u002Fopenclaw --name cluster_summary --scope group --type text --searchable\n```\n\n## Step 7: Save The Maintainer Judgment In prtags\n\nFor a PR:\n\n```bash\nprtags annotation pr set -R openclaw\u002Fopenclaw \u003Cpr-number> \\\n  duplicate_status=confirmed \\\n  duplicate_confidence=high \\\n  duplicate_rationale=\"\u003Csame problem, same fix direction, overlapping files and comments>\"\n```\n\nFor an issue:\n\n```bash\nprtags annotation issue set -R openclaw\u002Fopenclaw \u003Cissue-number> \\\n  duplicate_status=confirmed \\\n  duplicate_confidence=high \\\n  duplicate_rationale=\"\u003Csame user-visible problem and same intended fix path>\"\n```\n\nFor the group:\n\n```bash\nprtags annotation group set \u003Cgroup-id> \\\n  duplicate_confidence=high \\\n  cluster_summary=\"\u003Cone-sentence problem summary>\" \\\n  duplicate_rationale=\"\u003Cwhy these items belong in one duplicate cluster>\"\n```\n\nWhen the evidence is incomplete, set `duplicate_status=candidate` and lower the confidence.\n\nIf a per-PR or per-issue annotation write fails because `prtags` cannot resolve the target, do not force a fallback write path.\nKeep the group state you were able to write, report that the curation backend is still missing the target object, and defer the target-level annotation until `prtags` catches up.\n\n## Step 8: Let prtags Sync The Group Comment\n\nDo not tell the agent to create a GitHub comment directly.\n`prtags` owns the outbound GitHub comment as a derived projection of group state.\n\nIn the normal case, do not manually trigger comment sync.\nWhen comment sync is configured, group writes already enqueue the derived comment projection automatically.\n\nUse manual sync only as a repair or retry path:\n\n```bash\nprtags group sync-comments \u003Cgroup-id>\n```\n\nIf the maintainer needs to see which groups still need attention, use:\n\n```bash\nprtags group list-comment-sync-targets -R openclaw\u002Fopenclaw\n```\n\nThe skill should treat the GitHub comment as a consequence of correct `prtags` group state.\nIt should not treat manual comment authoring as part of the normal duplicate workflow.\nIt should also not treat `sync-comments` as a required step for every duplicate decision.\n\n## Output Format\n\nReturn a short maintainer report with these sections:\n\n```text\nDecision: duplicate_confirmed | duplicate_needs_judgment | not_duplicate\nTarget: PR #\u003Cn> | Issue #\u003Cn>\nConfidence: high | medium | low\n\nEvidence:\n- ...\n- ...\n- ...\n\nprtags actions:\n- reused group \u003Cgroup-id> | created group \u003Cgroup-id>\n- added members: ...\n- annotations written: ...\n- comment sync: automatic if configured | manual repair triggered for \u003Cgroup-id>\n```\n\n## Stop Conditions\n\nStop and escalate instead of forcing a duplicate decision when:\n\n- the target appears to belong to two different duplicate groups\n- the duplicate grouping is unclear\n- the wording matches but the implementation goals differ\n- two PRs touch the same files for different reasons\n- two issues describe similar symptoms but likely different root causes\n\nThe maintainer should get one clean duplicate judgment or an explicit “needs judgment” result.\nDo not blur the line.\n",{"name":5,"description":7},"main","f1c93577085244aa96aa87b53a2df9b59d293bd7",".agents\u002Fskills\u002Ftag-duplicate-prs-issues",82888,"https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw","https:\u002F\u002Fopenclaw.ai","https:\u002F\u002Fgithub.com\u002Fopenclaw","Your personal, open source AI assistant.","2026-11-15 03:04:02",{"source":9,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add openclaw\u002Fopenclaw --skill tag-duplicate-prs-issues",{"tool":61,"command":62},"bunx","bunx skills add openclaw\u002Fopenclaw --skill tag-duplicate-prs-issues",{"tool":64,"command":65},"pnpm","pnpm dlx skills add openclaw\u002Fopenclaw --skill tag-duplicate-prs-issues","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftag-duplicate-prs-issues\u002FSKILL.md",true,[69],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"agents\u002Fopenai.yaml","REFERENCE","参考文档",423,"https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftag-duplicate-prs-issues\u002Fagents\u002Fopenai.yaml",[76,84,91,98,110,140],{"skillNo":77,"name":78,"nameZh":16,"description":79,"descriptionZh":16,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":83},"01M7B4NEF2VK8CEA28F9Z2089W","creative-project","Design or revise branding, visual identities, logos, posters, illustrations, and social-media assets using project artwork or image references. Inspect the existing visual language, choose references, and iterate on named candidates.","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw\u002Fblob\u002Fmain\u002Fskills\u002Fcreative-project\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":85,"name":86,"nameZh":16,"description":87,"descriptionZh":16,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":83},"01M7B4N421S0C6YTWSFK6AMK2W","ios-e2e","iOS app on the simulator - build, run, pair with an isolated Gateway, drive the UI, screenshots, logs and crashes, focused tests, and end-to-end proof.","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fios-e2e\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":16,"description":94,"descriptionZh":16,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":83},"01M78JA0MX5ED6CKZPST23E8T8","labs-graduation","Move a feature out of Control UI Labs, either on by default or still off by default. Use when asked to promote, graduate or ship a Labs feature.","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flabs-graduation\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":101,"description":16,"descriptionZh":102,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":103,"categories":104,"keywords":109,"publishedAt":41},"01M698VP84FNM6G9MR1HPX7MF7","lobster","Lobster 自动化工作流编排","","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw\u002Fblob\u002Fmain\u002Fextensions\u002Flobster\u002FSKILL.md",[105,106],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":107,"categoryName":108,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH2SFTXSGVVGVBMDTMWK","桌面自动化与界面操作",[100],{"skillNo":111,"name":112,"nameZh":113,"description":114,"descriptionZh":115,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":116,"categories":117,"keywords":124,"publishedAt":41},"01M698YY8QGQ7S8TJNKJG6VTPH","xurl","X 平台 CLI 操作","xurl CLI for authenticated X posts, replies, reads\u002Fsearch, DMs, media upload, followers, auth status, or raw v2 API calls.","xurl CLI 工具，用于经过身份验证的 X（原 Twitter）发帖、回复、读取\u002F搜索、私信（DM）、媒体上传、关注者管理、认证状态查看，或原始 v2 API 调用。","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw\u002Fblob\u002Fmain\u002Fskills\u002Fxurl\u002FSKILL.md",[118,121],{"categoryNo":119,"categoryName":120,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD6C0J544QTJ9R38Z7ZG","营销专员",{"categoryNo":122,"categoryName":123,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQV98WRP4APE9VKKKKJ6FV","社交媒体与内容平台管理",[112,125,126,127,128,129,130,131,132,133,134,38,135,136,137,138,139],"cli","npm","status","install","node","replies","api","upload","tap","calls","for","auth","Media","posts","brew",{"skillNo":141,"name":142,"nameZh":143,"description":144,"descriptionZh":145,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":146,"categories":147,"keywords":154,"publishedAt":41},"01M698YWT1CJ0WK88WB909R9RT","weather","天气查询与预报","Current weather and forecasts with web_fetch, falling back to wttr.in curl for locations, rain, temperature, travel planning.","使用 web_fetch 获取当前天气和天气预报，在涉及地点、降雨、温度、出行规划等场景时回退到通过 curl 调用 wttr.in。","https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw\u002Fblob\u002Fmain\u002Fskills\u002Fweather\u002FSKILL.md",[148,151],{"categoryNo":149,"categoryName":150,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TRAEZFJ43R95HPEBJYG","知识工作者",{"categoryNo":152,"categoryName":153,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRK8296DVQW3GCBXC89NVG","网页搜索与信息研究",[142,155,156,128,157,158,135,159,160,161,162,163,164,165,139],"back","travel","https","help","travel planning","planning","web","curl","temperature","fetch","with"]