Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

git-issue

БесплатноЗапускает вложенные скриптыНе проверен

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…

laurigatesот laurigates★ 61 звезда на GitHub

Об этом скилле

When to Use This Skill

Use this skill when... Use X instead when...
Implementing a fix for one or more open issues with TDD and PR creation Performing administrative ops (transfer, pin, lock, bulk edit) on issues (/git:issue-manage)
Picking issues from the backlog to work on, optionally in parallel Periodically grooming open issues and PRs to close stale or completed ones (/git:triage)
Going from an issue number to a merged-ready PR end-to-end Hierarchical sub-issue planning and tracking (/git:issue-hierarchy)

Context

  • Git remotes: !git remote -v
  • Current branch: !git branch --show-current
  • Working tree clean: !git status --porcelain=v2

Open issues, open PRs, and available labels are fetched during execution (requires a configured git remote).

Parameters

Parse these parameters from the command:

Parameter Description
<issues...> One or more issues as bare numbers, #N, or full GitHub issue URLs (https://github.com/<owner>/<repo>/issues/<N>), in any space- or comma-separated mix (see Step 0)
--auto Claude selects and prioritizes issues
--filter <label> Filter issues by label
--limit <n> Maximum number of issues to process
--parallel Process parallel groups simultaneously using Task agents
--labels <label1,label2> Apply labels to created PRs (defaults to issue's labels)

Your Task

Process GitHub issues using a TDD workflow, cutting each issue's branch from origin/main — except verification-only issues, which are verified and evidenced first (Step 2, item 4).


Mode Detection

Step 0: Normalize issue references

Before counting tokens or detecting mode, normalize every non-flag token in $ARGUMENTS into a (number, repo) pair. Accept these forms, in any space- or comma-separated mix:

Input form Extract
123 number 123, repo = current remote
#123 number 123, repo = current remote
https://github.com/<owner>/<repo>/issues/123 number 123, repo = <owner>/<repo>
.../issues/123#issuecomment-... number 123 (drop the #... fragment), repo = <owner>/<repo>

Rules:

  1. Split on whitespace and commas; strip a leading #; strip a URL #... fragment after the number.
  2. A token is an issue ref only if, after stripping, it is all digits or matches the /issues/<digits> URL shape (require trailing digits — a /pull/<N>, /discussions/<N>, or bare /issues list URL is not a ref). Leave --flag tokens and their values (e.g. --filter bug,enhancement) untouched — never split a flag's comma-separated value into refs.
  3. For a URL whose <owner>/<repo> differs from the current remote (Context git remote -v), record it as cross-repo and carry -R <owner>/<repo> on every gh call for that issue (gh issue view <N> -R …, gh api repos/<owner>/<repo>/…, gh pr edit … -R …). PR creation for a cross-repo issue needs a branch in that repo — if the current checkout is not that repo, surface it with AskUserQuestion rather than pushing to the wrong remote.
  4. After normalization, dedupe and count refs: 0 → No-Arguments interactive; 1 → Single; ≥2 → Multiple.

With 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/selection-modes.md for the question options and each mode's steps.

Single Issue (/git:issue 123)

Process directly with standard TDD workflow.


Issue Analysis Engine

Before processing multiple issues, run the blocker check, conflict detection, confidence scoring, and parallel-work detection described in REFERENCE.md. Never silently work on a blocked issue, and surface a sub-70% confidence score to the user rather than guessing.


Execution Workflow

Step 1: Prepare Working Directory

  1. Ensure clean working directory (commit or stash if needed)
  2. Fetch the remote: git fetch origin — never rely on local main being current

Step 2: For Each Issue (or Parallel Group)

Standard Flow (Sequential or Single Issue)

  1. Fetch issue details AND the comment thread: gh issue view $N --json title,body,state,assignees,labels,comments The comments field is not optional — the body is the opening position, not the decision. Scope from git-plugin:git-issue-scoping, which carries the full protocol (re-verify cited evidence at HEAD; a later comment may have narrowed, reversed, or already resolved the ask).
  2. Capture issue labels for later PR creation
  3. Identify requirements and a
Полный SKILL.md на GitHub

Установить git-issue в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

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

Вложенные файлы

REFERENCE.mdreferences/parallel-execution.mdreferences/selection-modes.mdreferences/verification-only.mdworkflows/issue-group-wave.workflow.jsworkflows/issue-triage.workflow.js

FAQ

Что делает скилл git-issue?

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.

Как установить скилл git-issue?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл git-issue запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить git-issue с