github-trackinglisted
Install: claude install-skill rterakedis/leanwheel-skills
# GitHub Tracking (Composable)
Reference library of tracking operations called by other skills at marked points.
Directly invocable: `/github-tracking setup` (one-time) | `/github-tracking backfill` (retroactive) | `/github-tracking sync` (reconcile labels/state).
**Deterministic ops live in `scripts/gh-track.sh`.** The label mechanics — moving an issue between mutually-exclusive status labels (and *stripping the stale one*), closing, and reconciling — are byte-identical every run and must not be reconstructed in-model (that's where label drift like "two status labels on one issue" comes from). This skill is the **policy layer**: it decides *when* to transition and owns the interactive SETUP/BACKFILL/SYNC confirmation gates; the *how* is one shell call. If `scripts/gh-track.sh` is absent (older project not yet upgraded), fall back to the raw `gh` commands documented per-op below.
## Prerequisites Check
Before composable ops (ENSURE-MILESTONE, CREATE-ISSUE, TRANSITION, CLOSE-ISSUE):
- `gh auth status` + `gh repo view --json nameWithOwner`
- Both pass: proceed. Either fails in composable call: skip silently, warn once.
- Either fails in SETUP/BACKFILL: handle auth inline.
---
## SETUP (one-time)
1. Check auth: `gh auth status`. If no, run `gh auth login` (interactive).
2. Verify auth succeeded: `gh auth status`.
3. Verify repo: `gh repo view --json nameWithOwner`. Fail if no remote.
4. Create labels: `backlog`, `ready-for-dev`, `in-progress`, `review`, `done` with `--fo