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…
by 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
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'sskills/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
$ARGUMENTSempty: 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, thecheckstable (fired/of,noisy,unmeasuredwhere a row carries it, everynot-measuredwith itsreason) andmetricsfrom it. Every number in your output comes from this file, never from memory. - Quote
taxonomy.sourcewhen present. The checker reads the target rule withgit show origin/main:.claude/rules/gitlab-labels.md. Labels come from backticks in the second column of the firstAchsetable. The checker and the Lead maintenance helper read the same rule onorigin/mainand use itsTyprow. The checker also acceptsTypeand reads backticked labels with surrounding text. The Lead helper accepts onlyTypand 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 reportsTyp-Achse nicht messbarwhen 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:
- Ready issues with a
warnfinding (ready.no-acceptance,ready.no-pointer). link.dependency-closedandstatus.review-mr-merged.epic.all-children-closed.size.too-bigon 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
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
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…