Command Palette

Search for a command to run...

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

git-triage

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

Backlog sweep over open issues and PRs — staleness, cross-links, close/merge recommendations, no code changes. Use when grooming the backlog, deciding what to…

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

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

/git:triage

Unified issue and PR triage: scan, categorize, cross-link, and optionally act.

When to Use This Skill

Use this skill when... Use another skill instead when...
Grooming the backlog periodically (weekly/monthly) Addressing one specific issue → /git:issue
Cutting a release and want to merge anything green Fixing a single failing PR → /git:fix-pr
Cleaning up after a busy week of PRs and issues Applying review feedback on one PR → /git:pr-feedback
Auditing what's still relevant across the queue Creating new sub-issue hierarchy → /git:issue-hierarchy
Deciding which issues are "quick wins" next Administrative ops on one issue → /git:issue-manage
Producing a report on the backlog Bringing a growing backlog down and capping its inflow → git-plugin:git-issue-converge

Context

  • Repo remote: !git remote -v
  • Repo toplevel: !git rev-parse --show-toplevel
  • Current branch: !git branch --show-current
  • Recent merged PRs: !git log --merges --format='%h %s' --max-count=15

Parameters

Parse these from $ARGUMENTS (all optional):

Flag Default Description
--type issues|prs|both both What to triage
--batch N 10 Max items fetched per type — the N most recently created open items
--repo owner/name current repo (from origin) Target repository
--days-stale-issue N 90 Age threshold for stale issues
--days-stale-pr N 30 Age threshold for stale PRs
--auto-close off Close implemented / stale issues (asks confirmation first)
--auto-merge off Merge ready-to-merge PRs (asks confirmation first)
--oldest-first on Process the fetched batch chronologically by updatedAt; never changes which items were fetched

Writes are disabled by default. --auto-close and --auto-merge still require a per-batch AskUserQuestion confirmation before any gh issue close or gh pr merge.

Execution

Execute this triage workflow:

Step 1: Resolve target repo and gather batches

Run the data-gathering script. It fetches issue/PR batches, computes age in days per item, categorizes each PR via the pure first-match table (over isDraft, mergeable, mergeStateStatus, reviewDecision, and statusCheckRollup[].conclusion), flags stale-candidate issues, carries each issue's title, reports per-issue progress, and extracts each PR's closing keywords:

bash "${CLAUDE_SKILL_DIR}/scripts/git-triage.sh" --home-dir "$HOME" --type "$TYPE" --batch "$BATCH" --days-stale-issue "$STALE_ISSUE" --days-stale-pr "$STALE_PR"

Read the coverage keys first:

Key Meaning
ISSUES_FETCHED / PRS_FETCHED Items in this batch — the count to report
ISSUES_TOTAL / PRS_TOTAL Unbounded open count, or unknown when it could not be read
ISSUES_TRUNCATED / PRS_TRUNCATED true when the total exceeds the batch
TRUNCATED Roll-up over both halves: true beats unknown beats false

--batch caps each fetch, and gh returns the N most recently created open items, so the default batch is the newest slice of the backlog. It therefore leaves out the oldest items, which are exactly the stale candidates. When TRUNCATED=true, say "triaged N of M" wherever the report states a count, and re-run with --batch set to the _TOTAL value for a full sweep. When TRUNCATED=unknown, report the coverage as unverified rather than complete. --oldest-first reorders only the fetched batch.

When GraphQL answers with the "GraphQL is not available" 403 (Claude Code cloud sessions), the collector falls back to the REST API and emits GRAPHQL_BLOCKED=true. The coverage keys then come from search counts, and two keys degrade: REST_FALLBACK_UNKNOWN=MERGED_PRS (every ISSUE_<n>_MERGED_PRS reads unknown) and REST_FALLBACK_APPROXIMATED=REVIEW (PR_<n>_REVIEW is the latest review per reviewer, not branch protection's review decision). Say so in the report. Details: REFERENCE.md.

STATUS=, ISSUE_COUNT=, and the ISSUES: block are the collector's own diagnostics (for example, a fetch that returned non-JSON), not GitHub issues: ISSUE_COUNT=0 beside ten issue blocks means the collector hit no problems. Read STATUS= to decide whether the data can be trusted, and the ISSUES: rows (present only when ISSUE_COUNT is above 0) for why.

Per item it emits ISSUE_<n>_TITLE / ISSUE_<n>_AGE_DAYS / ISSUE_<n>_REFS / ISSUE_<n>_COMMENTS / ISSUE_<n>_STALE_CANDIDATE, the Step 2 progress keys, and PR_<n>_CATEGORY / PR_<n>_AGE_DAYS / PR_<n>_CLOSES (plus the underlying enum fields). It also rolls up SYSTEMATIC_FAILURE_* groups (see Step 4). If --repo was provided, pass it through; the script reads the current repo from origin otherwise. Sort each set by age (oldest first if --oldest-first) a

Полный SKILL.md на GitHub

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

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

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

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

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

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

Bash(bash *)
Bash(python3 *)
Bash(gh issue *)
Bash(gh pr *)
Bash(gh api *)
Bash(gh repo *)
Bash(git log *)
Bash(rg *)
Read
Grep
Glob
AskUserQuestion

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

REFERENCE.mdreferences/commands.mdreferences/guarded-writes.mdreferences/issue-triage-workflow.mdreferences/pr-categories.mdreferences/report-template.mdscripts/git-triage.shworkflows/issue-triage-sweep.workflow.js

FAQ

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

Backlog sweep over open issues and PRs — staleness, cross-links, close/merge recommendations, no code changes. Use when grooming the backlog, deciding what to close, or pre-release cleanup.

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

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

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

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

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

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