Command Palette

Search for a command to run...

Back to skills
skill № 31019

backlog

Use when a repository's issue backlog needs refinement so agents can start work without asking back. Measures the tracker with scripts/backlog-refine.mjs…

FreeNo executable scripts
Kanevryby Kanevry★ 53 GitHub stars

Install backlog in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Backlog

Plugin root: ${CLAUDE_PLUGIN_ROOT}. Claude Code replaces this with the plugin's absolute path when it loads this file. Where it appears unreplaced — in a file this skill reads with the Read tool, or on Codex, Cursor or Pi — the plugin root is the directory that contains this skill's skills/ folder (two levels above the folder of this SKILL.md). Write that absolute path literally into every command that starts a plugin script: the Bash tool has no plugin variable, and shell variables do not survive between tool calls.

Is each issue written and cut so that an agent can begin without asking back? The checker measures; this skill judges and applies. The contract (checks, thresholds, report schema, CLI, ceilings, rules) is docs/backlog-refinement.md — read its "Rules for the skill", "The checks", "How epics are represented", "CLI" and "Ceilings" before the first run, and do not restate them here.

The invocation arguments are: $ARGUMENTS

The checker is advisory. It never gates work, and a finding is a proposal, not a verdict.

Phase 0: Gates

Read skills/_shared/bootstrap-gate.md and execute the gate check. If GATE_CLOSED, invoke skills/bootstrap/SKILL.md and wait; there is no bypass. Read Session Config per skills/_shared/config-reading.md (needed for issue-budget and vcs).

The parallel-session preamble (skills/_shared/parallel-aware-preamble.md) passes through without a question: backlog is in the always-ok class of scripts/lib/exclusivity-matrix.mjs, like discovery, because it never writes to the working copy. Tracker writes in Phase 5 are per issue and approval-gated. Never touch working-copy files in this skill; its only local write is the report under .orchestrator/tmp/.

Phase 1: Resolve the target

  • $ARGUMENTS empty: the repository at the current directory.
  • A directory path: the checkout there.
  • group/name: that project on the current repository's GitLab host. --host <host> overrides the host.

A foreign checkout is read only if the host's fleet boundary allows it. If a fleet or navigator boundary rule is in force, it decides; otherwise proceed.

GitHub targets are not supported in v1 (contract § Ceilings). Say so and stop. Do not fall back to a hand count through gh.

Phase 2: Measure

mkdir -p .orchestrator/tmp
node "${CLAUDE_PLUGIN_ROOT}/scripts/backlog-refine.mjs" [--repo <path|group/name>] [--host <host>] --json --out .orchestrator/tmp/backlog-refine-report.json
  • Exit 2 means the checker could not read its inputs or write its report, or the fetched count disagrees with X-Total. Report the stderr reason and stop.
  • Read stderr on exit 0 for any list whose pagination completeness could not be measured.
  • Exit 1 is a usage error: fix the arguments and rerun.
  • Read the report file. Quote population, the checks table (fired / of, noisy, unmeasured where a row carries it, every not-measured with its reason) and metrics from it. Every number in your output comes from this file, never from memory.
  • Quote taxonomy.source when present. The checker reads the target rule with git show origin/main:.claude/rules/gitlab-labels.md. Labels come from backticks in the second column of the first Achse table. The checker and the Lead maintenance helper read the same rule on origin/main and use its Typ row. The checker also accepts Type and reads backticked labels with surrounding text. The Lead helper accepts only Typ and reports cells with surrounding text as ambiguous, as measured on 2026-11-19 using the fleet's only rule file. With no source, the checker uses the legacy type heuristic and the Lead helper reports the axis as not measurable. The checker reports Typ-Achse nicht messbar when the rule file is present and the type row is missing, empty or ambiguous.

Phase 3: Present

Lead with what blocks agents today, in this order, each with issue number, title, URL and the finding's detail:

  1. Ready issues with a warn finding (ready.no-acceptance, ready.no-pointer).
  2. link.dependency-closed and status.review-mr-merged.
  3. epic.all-children-closed.
  4. size.too-big on ready issues.

Then the remaining warn findings by check, counts first. A check marked noisy: true gets one line (fired / of), not a list. Close with a "Not measured" block: every check in not-measured state and its reason (for example family-not-used, lookup-cap), every row with unmeasured > 0 (single lookups that failed: those issues are neither hits nor clean), plus the standing ceilings that matter for this run (no duplicate detection, references read from descriptions only). A zero on a not-measured check is not a clean result; say so.

Phase 4: Judgment pass

The part code cannot do. Take at most 10 issues per run, in this order: too-big ready issues, epic candidate clusters, ready issues without acceptance. S

Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the backlog skill do?

Use when a repository's issue backlog needs refinement so agents can start work without asking back. Measures the tracker with scripts/backlog-refine.mjs (labels, readiness of status:ready issues, size, dependencies, epics, closed-issue hygiene), then proposes splits, epics, merges, fills and closings for approval and applies them through gitlab-ops. Triggered by /backlog [repo], "refine the backlog", "is the backlog ready for agents", "Backlog aufräumen". Not for finding code defects (use discovery), not for cross-repo dashboards (use portfolio), and not for creating issues from scratch.

How do I install the backlog skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the backlog skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare backlog with