[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C5YSM8ZFRCCQGMA6EW6T8H":3,"skill-same:01M6C5YSM8ZFRCCQGMA6EW6T8H":122},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":54,"linkOnly":55,"markdownContent":56,"markdownBody":57,"frontMatter":58,"refName":65,"commitSha":66,"skillDirectory":67,"forksCount":68,"repositoryHtmlUrl":69,"repositoryHomepageUrl":17,"ownerHtmlUrl":70,"ownerBlogUrl":17,"ownerDescription":71,"updatedAt":72,"install":73,"resources":85},"01M6C5YSM8ZFRCCQGMA6EW6T8H","git-issue","GitHub 议题到 PR 端到端处理","GitHub issue to PR end-to-end — branch, TDD implementation, PR — one issue or several in parallel. Use when asked to work on an issue, fix issue #N, or batch-process several.","从 GitHub 议题到 PR 的端到端流程——创建分支、TDD 实现、提交 PR——可处理单个议题或多个并行议题。在被要求处理议题、修复议题 #N 或批量处理多个议题时使用。","laurigates\u002Fclaude-plugins","laurigates","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13014001?v=4","01M6C59YHWS9C7KMXKSRX1YXNP","Lauri Gates","01M6C59YP2APG9YAM4DWYQYGFJ",60,"MIT",null,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fgit-plugin\u002Fskills\u002Fgit-issue\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],"git","git issue","issue","when","labels","stash","URL","number","2025","end","issue to pr","api","commit","Bash","workflow","auto","MCP","issues","fix","gh pr","work on","branch","fetch","2026-11-10 10:12:30",false,"---\ncreated: 2025-12-16\nmodified: 2026-11-12\nreviewed: 2026-09-02\nallowed-tools: Bash(git status *), Bash(git diff *), Bash(git log *), Bash(git add *), Bash(git commit *), Bash(git push *), Bash(git switch *), Bash(git fetch *), Bash(git pull *), Bash(git stash *), Bash(gh issue *), Bash(gh pr *), Bash(gh repo *), Bash(gh label *), Bash(gh api *), Bash(gh workflow *), Bash(gh run *), Bash(pre-commit *), Read, Edit, Write, Grep, Glob, TodoWrite, AskUserQuestion, Task, mcp__github__create_pull_request, mcp__github__issue_read, mcp__github__list_issues\ndescription: \"GitHub issue to PR end-to-end — branch, TDD implementation, PR — one issue or several in parallel. Use when asked to work on an issue, fix issue #N, or batch-process several.\"\nargs: \"[issues... (number | #N | URL)] [--auto] [--filter \u003Clabel>] [--limit \u003Cn>] [--parallel] [--labels \u003Cl1,l2>]\"\nargument-hint: \"[issues... (number | #N | URL)] [--auto] [--filter \u003Clabel>] [--limit \u003Cn>] [--parallel] [--labels \u003Cl1,l2>]\"\ndisable-model-invocation: true\nname: git-issue\n---\n\n\u003C!-- skill-size-exception: scripts\u002Fplugin-compliance-check.sh check_skill_body (git-issue blocks, #3061) -->\n\n## When to Use This Skill\n\n| Use this skill when... | Use X instead when... |\n|------------------------|----------------------|\n| Implementing a fix for one or more open issues with TDD and PR creation | Performing administrative ops (transfer, pin, lock, bulk edit) on issues (`\u002Fgit:issue-manage`) |\n| Picking issues from the backlog to work on, optionally in parallel | Periodically grooming open issues and PRs to close stale or completed ones (`\u002Fgit:triage`) |\n| Going from an issue number to a merged-ready PR end-to-end | Hierarchical sub-issue planning and tracking (`\u002Fgit:issue-hierarchy`) |\n\n## Context\n\n- Git remotes: !`git remote -v`\n- Current branch: !`git branch --show-current`\n- Working tree clean: !`git status --porcelain=v2`\n\nOpen issues, open PRs, and available labels are fetched during execution (requires a configured git remote).\n\n## Parameters\n\nParse these parameters from the command:\n\n| Parameter | Description |\n|-----------|-------------|\n| `\u003Cissues...>` | One or more issues as bare numbers, `#N`, or full GitHub issue URLs (`https:\u002F\u002Fgithub.com\u002F\u003Cowner>\u002F\u003Crepo>\u002Fissues\u002F\u003CN>`), in any space- or comma-separated mix (see Step 0) |\n| `--auto` | Claude selects and prioritizes issues |\n| `--filter \u003Clabel>` | Filter issues by label |\n| `--limit \u003Cn>` | Maximum number of issues to process |\n| `--parallel` | Process parallel groups simultaneously using Task agents |\n| `--labels \u003Clabel1,label2>` | Apply labels to created PRs (defaults to issue's labels) |\n\n## Your Task\n\nProcess GitHub issues using a TDD workflow, cutting each issue's branch **from `origin\u002Fmain`** — except verification-only issues, which are verified and evidenced first (Step 2, item 4).\n\n---\n\n## Mode Detection\n\n### Step 0: Normalize issue references\n\nBefore counting tokens or detecting mode, normalize every non-flag token in\n`$ARGUMENTS` into a `(number, repo)` pair. Accept these forms, in any space- or\ncomma-separated mix:\n\n| Input form | Extract |\n|------------|---------|\n| `123` | number `123`, repo = current remote |\n| `#123` | number `123`, repo = current remote |\n| `https:\u002F\u002Fgithub.com\u002F\u003Cowner>\u002F\u003Crepo>\u002Fissues\u002F123` | number `123`, repo = `\u003Cowner>\u002F\u003Crepo>` |\n| `...\u002Fissues\u002F123#issuecomment-...` | number `123` (drop the `#...` fragment), repo = `\u003Cowner>\u002F\u003Crepo>` |\n\nRules:\n\n1. Split on whitespace **and** commas; strip a leading `#`; strip a URL\n   `#...` fragment after the number.\n2. A token is an issue ref only if, after stripping, it is all digits **or**\n   matches the `\u002Fissues\u002F\u003Cdigits>` URL shape (require trailing digits — a\n   `\u002Fpull\u002F\u003CN>`, `\u002Fdiscussions\u002F\u003CN>`, or bare `\u002Fissues` list URL is **not** a\n   ref). Leave `--flag` tokens and their values (e.g. `--filter bug,enhancement`)\n   untouched — never split a flag's comma-separated value into refs.\n3. For a URL whose `\u003Cowner>\u002F\u003Crepo>` differs from the current remote (Context\n   `git remote -v`), record it as **cross-repo** and carry `-R \u003Cowner>\u002F\u003Crepo>`\n   on every `gh` call for that issue (`gh issue view \u003CN> -R …`,\n   `gh api repos\u002F\u003Cowner>\u002F\u003Crepo>\u002F…`, `gh pr edit … -R …`). PR creation for a\n   cross-repo issue needs a branch in that repo — if the current checkout is not\n   that repo, surface it with `AskUserQuestion` rather than pushing to the wrong\n   remote.\n4. After normalization, dedupe and count refs: 0 → No-Arguments interactive;\n   1 → Single; ≥2 → Multiple.\n\nWith no issue refs, prompt via `AskUserQuestion`; with two or more, analyse and group them before processing; with `--auto`, run the already-implemented check against merged work, then score, recommend, and wait for approval. See [references\u002Fselection-modes.md](references\u002Fselection-modes.md) for the question options and each mode's steps.\n\n### Single Issue (`\u002Fgit:issue 123`)\n\nProcess directly with standard TDD workflow.\n\n---\n\n## Issue Analysis Engine\n\nBefore processing multiple issues, run the blocker check, conflict detection,\nconfidence scoring, and parallel-work detection described in\n[REFERENCE.md](REFERENCE.md). Never silently work on a blocked issue, and\nsurface a sub-70% confidence score to the user rather than guessing.\n\n---\n\n## Execution Workflow\n\n### Step 1: Prepare Working Directory\n\n1. **Ensure clean working directory** (commit or stash if needed)\n2. **Fetch the remote**: `git fetch origin` — never rely on local `main` being current\n\n### Step 2: For Each Issue (or Parallel Group)\n\n#### Standard Flow (Sequential or Single Issue)\n\n1. **Fetch issue details AND the comment thread**:\n   `gh issue view $N --json title,body,state,assignees,labels,comments`\n   The `comments` field is not optional — the body is the opening position, not the\n   decision. Scope from `git-plugin:git-issue-scoping`, which carries the full protocol\n   (re-verify cited evidence at HEAD; a later comment may have narrowed, reversed, or\n   already resolved the ask).\n2. **Capture issue labels** for later PR creation\n3. **Identify requirements** and acceptance criteria. A part the issue itself\n   defers until a condition in the source comes true (\"if the list ever grows\n   past ten…\") becomes a tripwire test in this PR (`testing-plugin:test-tripwire`),\n   not an unfinished part left on the issue.\n4. **Classify the criteria before any branch exists.** Criteria that are\n   observations — a run passes, a value appears, a prerequisite PR has landed —\n   make the issue **verification-only**: take the\n   [Verification-Only Flow](references\u002Fverification-only.md) — confirm the\n   prerequisite PR via `state,mergedAt`, post evidence with `--body-file`, close\n   with `--reason completed` — and cut no branch unless a check fails. Criteria\n   that need a code change (or a mix) continue here.\n5. **Plan the implementation** approach\n6. **Cut the branch from `origin\u002Fmain`**: `git switch -c fix\u002Fissue-$N origin\u002Fmain`\n\nBase the branch on `origin\u002Fmain`, never on local `main` — local `main` may carry\nunpushed commits that would ride into this issue's PR (see\n`git-branch-pr-workflow` § \"Branch Comparison: Always Use origin\u002Fmain\").\n\n#### TDD Workflow\n\n1. **RED phase**: Write failing tests first\n   - Create test file if needed\n   - Write tests that define expected behavior\n   - Run tests to verify they fail\n\n2. **GREEN phase**: Implement fix\n   - Write minimal code to make tests pass\n   - Run tests to verify they pass\n\n3. **REFACTOR phase**: Improve code quality\n   - Clean up implementation\n   - Ensure tests still pass\n\n#### Commit and Push\n\n1. **Stage changes**: `git add -u` and `git add \u003Cnew-files>`\n2. **Run pre-commit** if configured\n3. **Commit on the issue branch** with message format:\n\n```\n\u003Ctype>: \u003Cdescription>\n\n\u003Coptional body explaining the change>\n\nFixes #N\n```\n\n4. **Verify the branch carries only this issue's commits**: `git log --oneline origin\u002Fmain..HEAD`\n5. **Push the issue branch**: `git push -u origin fix\u002Fissue-$N`\n\n#### Create PR\n\nUse `mcp__github__create_pull_request` with:\n- `head`: `fix\u002Fissue-$N`\n- `base`: `main`\n- `title`: From issue title with `fix:` prefix\n- `body`: Include `Fixes #$N` to auto-link\n\nAfter PR creation, apply labels:\n```bash\ngh pr edit \u003Cpr-number> --add-label \"\u003Clabels>\"\n```\n\n### Step 3: Parallel Execution (--parallel flag)\n\nWhen `--parallel` is set, spawn one agent per parallel group as described in [references\u002Fparallel-execution.md](references\u002Fparallel-execution.md): each cuts its branch from `origin\u002Fmain`, gets the issue title and body verbatim, and reads the full comment thread itself.\n\n---\n\n## Workflow harness (template)\n\nTwo templates ship beside this skill.\n`workflows\u002Fissue-group-wave.workflow.js` covers the `--parallel` path only.\n`workflows\u002Fissue-triage.workflow.js` is the read-only pre-pass before it: one\nassessor per caller batch classifies each issue by whether an agent can finish it\nunattended and re-verifies its evidence at `origin\u002Fmain`, then one slicing agent\ngroups the `autonomous` issues into conflict-free slices. It returns `waves`, each\n`{ units, standalone }`, and lands nothing. A wave with `standalone: false` holds\n2–5 units and its `units` is a valid `args.units` for\n`workflow-orchestration-plugin:workflow-implement-verify`. A wave with\n`standalone: true` holds one unit, which implement-verify would abort below its\nfloor of two, so implement it through this skill's single-issue flow.\n**Each is a TEMPLATE to adapt, not a script to run verbatim.**\nRead it, then rewrite it for the work in front of you.\n\n**Adapt freely:** the grouping, assessment, slicing and implementation agent\nprompts, the default wave width, the conflict heuristics, the deferral\nvocabulary, the per-project meaning of each triage class (`args.classes`, an\nobject `{ \u003Cclass>: \"\u003Cwhat it also means here>\" }`; an array aborts as\n`bad-classes`), and the\nproject-specific test and commit commands.\n\n**Preserve across any adaptation:** (a) the loop bound is `args.issues` — the\nrefs Step 0 normalised — and the grouping agent **partitions** that set, never\nextends it: the template validates the returned partition against the input,\ndiscards invented issues, keeps the first placement of a duplicate, and\nre-dispatches an omitted issue standalone rather than dropping it; (b) the\n`GROUP_SCHEMA` shape, where every input issue lands in exactly one group **or**\nin `deferred` with a closed `blocked|low-confidence|cross-repo|not-open` reason,\nplus `IMPL_SCHEMA`'s `implemented|no-change|failed` outcome — so \"skipped it\" is\nnot expressible, and an issue already fixed at HEAD stays distinguishable from a\nfailed one; (c) the Group stage is a real barrier — conflict detection is\npairwise over the whole set (file overlap, opposing requirements, `blocked_by`\nchains, sub-issue ordering), so no group can be dispatched until every issue has\nbeen read, and you cannot partition work by a partition the work itself\ndiscovers, which is why the grouping lane is always ONE agent. For\n`issue-triage`, also preserve: (d) the closed class enum\n`autonomous|needs_human|decision_needed|needs_env|already_done|too_large|stale`,\nwhere only `autonomous` is ever sliced and an environment need is `needs_env` plus\na reason, never a new class; (e) the Slice stage is ONE agent over every batch's\nassessments, because two issues assessed in different batches can touch one\nfile; (f) the plain-JS steps around it: before slicing, an `autonomous` issue\nwhose assessment names an overlapping open PR or a blocker is deferred as\n`overlaps-open-pr` or `blocked`, on every path including the single-issue one\nthat runs no slicer; after it, the projection validates the partition, adds\na dependency between any two slices that share a file, defers a dependency cycle,\ndefers as `blocked` a slice that depends on a slice whose issues were all\ndeferred, and splits each layer evenly between implement-verify's floor of two\nand cap of five (6 slices → 3 + 3, not 5 + 1), so only a one-slice layer yields a\n`standalone` wave — and no wave can hand two units the same file, whatever the\nslicer returned.\n\n**Agent budget:** 1 + groups — `issue-group-wave`: one grouping agent plus one\nimplementation agent per issue group; `issue-triage`: one slicing agent plus one\nassessment agent per caller batch (its groups are `args.batches`). The wave width\nbounds concurrency, not the total. The scale guard asks before every run, because\nthe list comes from the caller at runtime.\n\n`issue-group-wave` stops at commit-local branches with no independent check. To have\neach group verified by a fresh agent and repaired once before its PR opens, pass\nthe partition as `units` to `workflow-orchestration-plugin:workflow-implement-verify`.\n\n**Skip the harness when:** a single issue was supplied — the modal case — or the\npartition collapses to one group because every issue conflicts with every other;\nthat is a linear pass and the harness is pure overhead (the template aborts\nbelow two issues, and returns the partition rather than dispatching when only\none group survives). Skip `issue-triage` when the caller has one batch — one agent\ncan assess and slice it in a single pass, and the template aborts below two\nbatches; pass `git-triage.sh` output as `args.progress` rather than asking its\nassessors to re-derive merged-PR links. The steps above remain the authoritative description of\n*what* each stage must produce; the harness only fixes *how* the work is split.\n\nOne thing the harness changes rather than splits: `AskUserQuestion` cannot run\ninside a workflow, so the blocked-issue and sub-70%-confidence prompts above\nbecome **deferrals** the caller adjudicates — the issue is neither silently\nattempted nor silently dropped.\n\nTwo clauses `issue-group-wave` carries. Both are unconditional there — every\nfanned-out group runs in its own worktree, and this skill's deliverable is a PR.\n`issue-triage` dispatches no worktree agent and lands nothing:\n\n> Never `Workflow({resumeFromRunId})` to retry a few failed worktree agents — a\n> resume re-runs agents that already succeeded and opens duplicate PRs (#1868).\n> Re-dispatch the failed units fresh and sequentially after checking\n> `gh pr list --head \u003Cbranch> --state all --json number,state`.\n\n> Push and PR creation happen **only** in the single sequential finalise stage,\n> never inside a fanned-out agent. Under the harness the Execution Workflow's\n> \"Commit and Push\" and \"Create PR\" steps move there: each agent commits on\n> `fix\u002Fissue-\u003Cn>` inside its own worktree, and the returned `finalisePlan` is\n> what the orchestrator pushes and opens PRs from, one at a time.\n\n## Summary Report\n\nAfter processing, report the issues processed, PRs created, conflicts detected,\nand issues skipped — see [REFERENCE.md](REFERENCE.md) for the table shape.\n\n---\n\n## Resuming work on an existing PR branch\n\nWhen a follow-up request continues an issue whose branch already has a PR, invoke\n`\u002Fgit:pr-sync-check` before adding commits. A `pr_merged` verdict means the PR\nalready landed — start a fresh branch off the updated default rather than building\non the merged branch; a `behind` verdict means a teammate \u002F agent \u002F CI auto-fix\npushed under you, so reconcile first. See `.claude\u002Frules\u002Fpr-branch-sync.md`.\n\n## See Also\n\n- **git-pr-sync-check** skill to confirm a PR branch is live and in sync before building on it\n- **git-branch-pr-workflow** skill for workflow patterns\n- **test-tier-selection** skill for test strategy\n- **git-cli-agentic** skill for optimized git commands\n- **gh-cli-agentic** skill for optimized GitHub CLI commands\n\nFor the issue-analysis heuristics (blocker check, conflict detection, confidence\nscoring, parallel-work detection), commit-message formats, the branch-from-remote\npattern, and the summary-report table, see [REFERENCE.md](REFERENCE.md).\n","\u003C!-- skill-size-exception: scripts\u002Fplugin-compliance-check.sh check_skill_body (git-issue blocks, #3061) -->\n\n## When to Use This Skill\n\n| Use this skill when... | Use X instead when... |\n|------------------------|----------------------|\n| Implementing a fix for one or more open issues with TDD and PR creation | Performing administrative ops (transfer, pin, lock, bulk edit) on issues (`\u002Fgit:issue-manage`) |\n| Picking issues from the backlog to work on, optionally in parallel | Periodically grooming open issues and PRs to close stale or completed ones (`\u002Fgit:triage`) |\n| Going from an issue number to a merged-ready PR end-to-end | Hierarchical sub-issue planning and tracking (`\u002Fgit:issue-hierarchy`) |\n\n## Context\n\n- Git remotes: !`git remote -v`\n- Current branch: !`git branch --show-current`\n- Working tree clean: !`git status --porcelain=v2`\n\nOpen issues, open PRs, and available labels are fetched during execution (requires a configured git remote).\n\n## Parameters\n\nParse these parameters from the command:\n\n| Parameter | Description |\n|-----------|-------------|\n| `\u003Cissues...>` | One or more issues as bare numbers, `#N`, or full GitHub issue URLs (`https:\u002F\u002Fgithub.com\u002F\u003Cowner>\u002F\u003Crepo>\u002Fissues\u002F\u003CN>`), in any space- or comma-separated mix (see Step 0) |\n| `--auto` | Claude selects and prioritizes issues |\n| `--filter \u003Clabel>` | Filter issues by label |\n| `--limit \u003Cn>` | Maximum number of issues to process |\n| `--parallel` | Process parallel groups simultaneously using Task agents |\n| `--labels \u003Clabel1,label2>` | Apply labels to created PRs (defaults to issue's labels) |\n\n## Your Task\n\nProcess GitHub issues using a TDD workflow, cutting each issue's branch **from `origin\u002Fmain`** — except verification-only issues, which are verified and evidenced first (Step 2, item 4).\n\n---\n\n## Mode Detection\n\n### Step 0: Normalize issue references\n\nBefore counting tokens or detecting mode, normalize every non-flag token in\n`$ARGUMENTS` into a `(number, repo)` pair. Accept these forms, in any space- or\ncomma-separated mix:\n\n| Input form | Extract |\n|------------|---------|\n| `123` | number `123`, repo = current remote |\n| `#123` | number `123`, repo = current remote |\n| `https:\u002F\u002Fgithub.com\u002F\u003Cowner>\u002F\u003Crepo>\u002Fissues\u002F123` | number `123`, repo = `\u003Cowner>\u002F\u003Crepo>` |\n| `...\u002Fissues\u002F123#issuecomment-...` | number `123` (drop the `#...` fragment), repo = `\u003Cowner>\u002F\u003Crepo>` |\n\nRules:\n\n1. Split on whitespace **and** commas; strip a leading `#`; strip a URL\n   `#...` fragment after the number.\n2. A token is an issue ref only if, after stripping, it is all digits **or**\n   matches the `\u002Fissues\u002F\u003Cdigits>` URL shape (require trailing digits — a\n   `\u002Fpull\u002F\u003CN>`, `\u002Fdiscussions\u002F\u003CN>`, or bare `\u002Fissues` list URL is **not** a\n   ref). Leave `--flag` tokens and their values (e.g. `--filter bug,enhancement`)\n   untouched — never split a flag's comma-separated value into refs.\n3. For a URL whose `\u003Cowner>\u002F\u003Crepo>` differs from the current remote (Context\n   `git remote -v`), record it as **cross-repo** and carry `-R \u003Cowner>\u002F\u003Crepo>`\n   on every `gh` call for that issue (`gh issue view \u003CN> -R …`,\n   `gh api repos\u002F\u003Cowner>\u002F\u003Crepo>\u002F…`, `gh pr edit … -R …`). PR creation for a\n   cross-repo issue needs a branch in that repo — if the current checkout is not\n   that repo, surface it with `AskUserQuestion` rather than pushing to the wrong\n   remote.\n4. After normalization, dedupe and count refs: 0 → No-Arguments interactive;\n   1 → Single; ≥2 → Multiple.\n\nWith no issue refs, prompt via `AskUserQuestion`; with two or more, analyse and group them before processing; with `--auto`, run the already-implemented check against merged work, then score, recommend, and wait for approval. See [references\u002Fselection-modes.md](references\u002Fselection-modes.md) for the question options and each mode's steps.\n\n### Single Issue (`\u002Fgit:issue 123`)\n\nProcess directly with standard TDD workflow.\n\n---\n\n## Issue Analysis Engine\n\nBefore processing multiple issues, run the blocker check, conflict detection,\nconfidence scoring, and parallel-work detection described in\n[REFERENCE.md](REFERENCE.md). Never silently work on a blocked issue, and\nsurface a sub-70% confidence score to the user rather than guessing.\n\n---\n\n## Execution Workflow\n\n### Step 1: Prepare Working Directory\n\n1. **Ensure clean working directory** (commit or stash if needed)\n2. **Fetch the remote**: `git fetch origin` — never rely on local `main` being current\n\n### Step 2: For Each Issue (or Parallel Group)\n\n#### Standard Flow (Sequential or Single Issue)\n\n1. **Fetch issue details AND the comment thread**:\n   `gh issue view $N --json title,body,state,assignees,labels,comments`\n   The `comments` field is not optional — the body is the opening position, not the\n   decision. Scope from `git-plugin:git-issue-scoping`, which carries the full protocol\n   (re-verify cited evidence at HEAD; a later comment may have narrowed, reversed, or\n   already resolved the ask).\n2. **Capture issue labels** for later PR creation\n3. **Identify requirements** and acceptance criteria. A part the issue itself\n   defers until a condition in the source comes true (\"if the list ever grows\n   past ten…\") becomes a tripwire test in this PR (`testing-plugin:test-tripwire`),\n   not an unfinished part left on the issue.\n4. **Classify the criteria before any branch exists.** Criteria that are\n   observations — a run passes, a value appears, a prerequisite PR has landed —\n   make the issue **verification-only**: take the\n   [Verification-Only Flow](references\u002Fverification-only.md) — confirm the\n   prerequisite PR via `state,mergedAt`, post evidence with `--body-file`, close\n   with `--reason completed` — and cut no branch unless a check fails. Criteria\n   that need a code change (or a mix) continue here.\n5. **Plan the implementation** approach\n6. **Cut the branch from `origin\u002Fmain`**: `git switch -c fix\u002Fissue-$N origin\u002Fmain`\n\nBase the branch on `origin\u002Fmain`, never on local `main` — local `main` may carry\nunpushed commits that would ride into this issue's PR (see\n`git-branch-pr-workflow` § \"Branch Comparison: Always Use origin\u002Fmain\").\n\n#### TDD Workflow\n\n1. **RED phase**: Write failing tests first\n   - Create test file if needed\n   - Write tests that define expected behavior\n   - Run tests to verify they fail\n\n2. **GREEN phase**: Implement fix\n   - Write minimal code to make tests pass\n   - Run tests to verify they pass\n\n3. **REFACTOR phase**: Improve code quality\n   - Clean up implementation\n   - Ensure tests still pass\n\n#### Commit and Push\n\n1. **Stage changes**: `git add -u` and `git add \u003Cnew-files>`\n2. **Run pre-commit** if configured\n3. **Commit on the issue branch** with message format:\n\n```\n\u003Ctype>: \u003Cdescription>\n\n\u003Coptional body explaining the change>\n\nFixes #N\n```\n\n4. **Verify the branch carries only this issue's commits**: `git log --oneline origin\u002Fmain..HEAD`\n5. **Push the issue branch**: `git push -u origin fix\u002Fissue-$N`\n\n#### Create PR\n\nUse `mcp__github__create_pull_request` with:\n- `head`: `fix\u002Fissue-$N`\n- `base`: `main`\n- `title`: From issue title with `fix:` prefix\n- `body`: Include `Fixes #$N` to auto-link\n\nAfter PR creation, apply labels:\n```bash\ngh pr edit \u003Cpr-number> --add-label \"\u003Clabels>\"\n```\n\n### Step 3: Parallel Execution (--parallel flag)\n\nWhen `--parallel` is set, spawn one agent per parallel group as described in [references\u002Fparallel-execution.md](references\u002Fparallel-execution.md): each cuts its branch from `origin\u002Fmain`, gets the issue title and body verbatim, and reads the full comment thread itself.\n\n---\n\n## Workflow harness (template)\n\nTwo templates ship beside this skill.\n`workflows\u002Fissue-group-wave.workflow.js` covers the `--parallel` path only.\n`workflows\u002Fissue-triage.workflow.js` is the read-only pre-pass before it: one\nassessor per caller batch classifies each issue by whether an agent can finish it\nunattended and re-verifies its evidence at `origin\u002Fmain`, then one slicing agent\ngroups the `autonomous` issues into conflict-free slices. It returns `waves`, each\n`{ units, standalone }`, and lands nothing. A wave with `standalone: false` holds\n2–5 units and its `units` is a valid `args.units` for\n`workflow-orchestration-plugin:workflow-implement-verify`. A wave with\n`standalone: true` holds one unit, which implement-verify would abort below its\nfloor of two, so implement it through this skill's single-issue flow.\n**Each is a TEMPLATE to adapt, not a script to run verbatim.**\nRead it, then rewrite it for the work in front of you.\n\n**Adapt freely:** the grouping, assessment, slicing and implementation agent\nprompts, the default wave width, the conflict heuristics, the deferral\nvocabulary, the per-project meaning of each triage class (`args.classes`, an\nobject `{ \u003Cclass>: \"\u003Cwhat it also means here>\" }`; an array aborts as\n`bad-classes`), and the\nproject-specific test and commit commands.\n\n**Preserve across any adaptation:** (a) the loop bound is `args.issues` — the\nrefs Step 0 normalised — and the grouping agent **partitions** that set, never\nextends it: the template validates the returned partition against the input,\ndiscards invented issues, keeps the first placement of a duplicate, and\nre-dispatches an omitted issue standalone rather than dropping it; (b) the\n`GROUP_SCHEMA` shape, where every input issue lands in exactly one group **or**\nin `deferred` with a closed `blocked|low-confidence|cross-repo|not-open` reason,\nplus `IMPL_SCHEMA`'s `implemented|no-change|failed` outcome — so \"skipped it\" is\nnot expressible, and an issue already fixed at HEAD stays distinguishable from a\nfailed one; (c) the Group stage is a real barrier — conflict detection is\npairwise over the whole set (file overlap, opposing requirements, `blocked_by`\nchains, sub-issue ordering), so no group can be dispatched until every issue has\nbeen read, and you cannot partition work by a partition the work itself\ndiscovers, which is why the grouping lane is always ONE agent. For\n`issue-triage`, also preserve: (d) the closed class enum\n`autonomous|needs_human|decision_needed|needs_env|already_done|too_large|stale`,\nwhere only `autonomous` is ever sliced and an environment need is `needs_env` plus\na reason, never a new class; (e) the Slice stage is ONE agent over every batch's\nassessments, because two issues assessed in different batches can touch one\nfile; (f) the plain-JS steps around it: before slicing, an `autonomous` issue\nwhose assessment names an overlapping open PR or a blocker is deferred as\n`overlaps-open-pr` or `blocked`, on every path including the single-issue one\nthat runs no slicer; after it, the projection validates the partition, adds\na dependency between any two slices that share a file, defers a dependency cycle,\ndefers as `blocked` a slice that depends on a slice whose issues were all\ndeferred, and splits each layer evenly between implement-verify's floor of two\nand cap of five (6 slices → 3 + 3, not 5 + 1), so only a one-slice layer yields a\n`standalone` wave — and no wave can hand two units the same file, whatever the\nslicer returned.\n\n**Agent budget:** 1 + groups — `issue-group-wave`: one grouping agent plus one\nimplementation agent per issue group; `issue-triage`: one slicing agent plus one\nassessment agent per caller batch (its groups are `args.batches`). The wave width\nbounds concurrency, not the total. The scale guard asks before every run, because\nthe list comes from the caller at runtime.\n\n`issue-group-wave` stops at commit-local branches with no independent check. To have\neach group verified by a fresh agent and repaired once before its PR opens, pass\nthe partition as `units` to `workflow-orchestration-plugin:workflow-implement-verify`.\n\n**Skip the harness when:** a single issue was supplied — the modal case — or the\npartition collapses to one group because every issue conflicts with every other;\nthat is a linear pass and the harness is pure overhead (the template aborts\nbelow two issues, and returns the partition rather than dispatching when only\none group survives). Skip `issue-triage` when the caller has one batch — one agent\ncan assess and slice it in a single pass, and the template aborts below two\nbatches; pass `git-triage.sh` output as `args.progress` rather than asking its\nassessors to re-derive merged-PR links. The steps above remain the authoritative description of\n*what* each stage must produce; the harness only fixes *how* the work is split.\n\nOne thing the harness changes rather than splits: `AskUserQuestion` cannot run\ninside a workflow, so the blocked-issue and sub-70%-confidence prompts above\nbecome **deferrals** the caller adjudicates — the issue is neither silently\nattempted nor silently dropped.\n\nTwo clauses `issue-group-wave` carries. Both are unconditional there — every\nfanned-out group runs in its own worktree, and this skill's deliverable is a PR.\n`issue-triage` dispatches no worktree agent and lands nothing:\n\n> Never `Workflow({resumeFromRunId})` to retry a few failed worktree agents — a\n> resume re-runs agents that already succeeded and opens duplicate PRs (#1868).\n> Re-dispatch the failed units fresh and sequentially after checking\n> `gh pr list --head \u003Cbranch> --state all --json number,state`.\n\n> Push and PR creation happen **only** in the single sequential finalise stage,\n> never inside a fanned-out agent. Under the harness the Execution Workflow's\n> \"Commit and Push\" and \"Create PR\" steps move there: each agent commits on\n> `fix\u002Fissue-\u003Cn>` inside its own worktree, and the returned `finalisePlan` is\n> what the orchestrator pushes and opens PRs from, one at a time.\n\n## Summary Report\n\nAfter processing, report the issues processed, PRs created, conflicts detected,\nand issues skipped — see [REFERENCE.md](REFERENCE.md) for the table shape.\n\n---\n\n## Resuming work on an existing PR branch\n\nWhen a follow-up request continues an issue whose branch already has a PR, invoke\n`\u002Fgit:pr-sync-check` before adding commits. A `pr_merged` verdict means the PR\nalready landed — start a fresh branch off the updated default rather than building\non the merged branch; a `behind` verdict means a teammate \u002F agent \u002F CI auto-fix\npushed under you, so reconcile first. See `.claude\u002Frules\u002Fpr-branch-sync.md`.\n\n## See Also\n\n- **git-pr-sync-check** skill to confirm a PR branch is live and in sync before building on it\n- **git-branch-pr-workflow** skill for workflow patterns\n- **test-tier-selection** skill for test strategy\n- **git-cli-agentic** skill for optimized git commands\n- **gh-cli-agentic** skill for optimized GitHub CLI commands\n\nFor the issue-analysis heuristics (blocker check, conflict detection, confidence\nscoring, parallel-work detection), commit-message formats, the branch-from-remote\npattern, and the summary-report table, see [REFERENCE.md](REFERENCE.md).\n",{"args":59,"name":5,"created":60,"modified":61,"reviewed":62,"description":7,"allowed-tools":63,"argument-hint":59,"disable-model-invocation":64},"[issues... (number | #N | URL)] [--auto] [--filter \u003Clabel>] [--limit \u003Cn>] [--parallel] [--labels \u003Cl1,l2>]",1765843200000,1794441600000,1788307200000,"Bash(git status *), Bash(git diff *), Bash(git log *), Bash(git add *), Bash(git commit *), Bash(git push *), Bash(git switch *), Bash(git fetch *), Bash(git pull *), Bash(git stash *), Bash(gh issue *), Bash(gh pr *), Bash(gh repo *), Bash(gh label *), Bash(gh api *), Bash(gh workflow *), Bash(gh run *), Bash(pre-commit *), Read, Edit, Write, Grep, Glob, TodoWrite, AskUserQuestion, Task, mcp__github__create_pull_request, mcp__github__issue_read, mcp__github__list_issues",true,"main","b47840019d190aa9afa1fd8d6d42ddd584a45641","git-plugin\u002Fskills\u002Fgit-issue",6,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins","https:\u002F\u002Fgithub.com\u002Flaurigates","Linux enthusiast, cloud engineer, neovim addict, electronics hobbyist.","2026-11-15 03:36:11",{"source":9,"skillName":5,"commands":74,"prompt":84,"zipAvailable":64},[75,78,81],{"tool":76,"command":77},"npx","npx skills add laurigates\u002Fclaude-plugins --skill git-issue",{"tool":79,"command":80},"bunx","bunx skills add laurigates\u002Fclaude-plugins --skill git-issue",{"tool":82,"command":83},"pnpm","pnpm dlx skills add laurigates\u002Fclaude-plugins --skill git-issue","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fgit-plugin\u002Fskills\u002Fgit-issue\u002FSKILL.md",[86,92,96,100,104,110,114,118],{"path":87,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"REFERENCE.md","REFERENCE","参考文档",4557,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fgit-plugin\u002Fskills\u002Fgit-issue\u002FREFERENCE.md",{"path":93,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fparallel-execution.md",1000,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fgit-plugin\u002Fskills\u002Fgit-issue\u002Freferences\u002Fparallel-execution.md",{"path":97,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fselection-modes.md",2295,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fgit-plugin\u002Fskills\u002Fgit-issue\u002Freferences\u002Fselection-modes.md",{"path":101,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Fverification-only.md",1485,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fgit-plugin\u002Fskills\u002Fgit-issue\u002Freferences\u002Fverification-only.md",{"path":105,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002Ftests\u002Frun-issue-triage.mjs","SCRIPT","脚本",22961,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fgit-plugin\u002Fskills\u002Fgit-issue\u002Fscripts\u002Ftests\u002Frun-issue-triage.mjs",{"path":111,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":112,"sourceHtmlUrl":113},"scripts\u002Ftests\u002Ftest-issue-triage.sh",1976,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fgit-plugin\u002Fskills\u002Fgit-issue\u002Fscripts\u002Ftests\u002Ftest-issue-triage.sh",{"path":115,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":116,"sourceHtmlUrl":117},"workflows\u002Fissue-group-wave.workflow.js",16467,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fgit-plugin\u002Fskills\u002Fgit-issue\u002Fworkflows\u002Fissue-group-wave.workflow.js",{"path":119,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":120,"sourceHtmlUrl":121},"workflows\u002Fissue-triage.workflow.js",27866,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fgit-plugin\u002Fskills\u002Fgit-issue\u002Fworkflows\u002Fissue-triage.workflow.js",[123,131,156,177,193,215],{"skillNo":124,"name":125,"nameZh":17,"description":126,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":130},"01M7DS1CAJ1ESDX08PENF01J0S","session-workflow-capture","Workflow-tool scripts and workflow friction from this session, filed as issues here or in the plugins repo. Use when a session ran Workflow scripts.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fsession-plugin\u002Fskills\u002Fsession-workflow-capture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":132,"name":133,"nameZh":17,"description":134,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":54},"01M70PFHMH9ADY0CRE6047Y4B2","kitty-show-image","Show the user an image with a note on what to judge, via a file send or a labelled kitty tab. Use when the user must see an image, or icat fails with no \u002Fdev\u002Ftty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-show-image\u002FSKILL.md",[],[138,139,140,141,142,143,144,145,146,147,148,34,44,149,150,151,152,153,154,155],"show","kitty show image","image","kitty","show image","ls","get","send","open","dev","use","file","text","with","xdg","via","2026","read",{"skillNo":157,"name":158,"nameZh":17,"description":159,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":54},"01M70PFEN18HKQ4RCQ1VPGMPTB","kitty-session-persistence","Snapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-session-persistence\u002FSKILL.md",[],[141,163,164,165,166,167,34,44,168,169,170,154,155,171,172,173,174,175,176,148],"kitty session persistence","session","persistence","false","snapshots","uname","reboot","terminal","write","edit","snapshot","macos","sessions","restore",{"skillNo":178,"name":179,"nameZh":17,"description":180,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":181,"categories":182,"keywords":183,"publishedAt":54},"01M70PFC77XGXCVQ1543VGZHYR","kitty-remote-control","Safe kitty remote control from an agent — read panes with kitty @ ls\u002Fget-text, notify, and never mutate the live terminal unasked. Use when running inside kitty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-remote-control\u002FSKILL.md",[],[184,185,141,186,187,143,188,189,144,190,191,148,34,192,44,150,151,170,154,155],"kitty remote control","remote","control","remote control","running","never","panes","notify","query",{"skillNo":194,"name":195,"nameZh":17,"description":196,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":197,"categories":198,"keywords":199,"publishedAt":54},"01M70P6WVMCT5JG4SACTM69AF9","docs-reference-check","Dangling doc-reference gate: flag markdown naming repo paths or relative links that no longer exist. Use when docs cite moved\u002Fdeleted files, or wiring a doc-drift lint.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fdocumentation-plugin\u002Fskills\u002Fdocs-reference-check\u002FSKILL.md",[],[200,201,202,203,204,205,206,207,208,46,148,34,44,209,149,210,211,212,213,214],"docs reference check","check","reference check","reference","docs","links","python3","repo","files","drift","lint","wiring","chezmoi","references","cp",{"skillNo":216,"name":217,"nameZh":218,"description":219,"descriptionZh":220,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":221,"categories":222,"keywords":229,"publishedAt":54},"01M6C6NDE7DAQGNWSF22J5CJ0Z","youtube-upload","YouTube 视频上传与编辑","Upload a video to YouTube via the Data API v3 and edit its title, description, tags or thumbnail afterwards. Use when publishing or retitling a YouTube video.","通过 Data API v3 将视频上传到 YouTube，并在之后编辑其标题、描述、标签或缩略图。适用于发布 YouTube 视频或修改其标题。","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fyoutube-plugin\u002Fskills\u002Fyoutube-upload\u002FSKILL.md",[223,226],{"categoryNo":224,"categoryName":225,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98WRP4APE9VKKKKJ6FV","社交媒体与内容平台管理",{"categoryNo":227,"categoryName":228,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",[230,231,232,233,206,234,155,235,172,236,237,238,148,44,149,42,239,34,240,241,242,153,154],"youtube upload","upload","youtube","Video","run","uv run","publishing","data","uv","v3","tags","id","title"]