backlog-groom

backlog-groom is a command for Claude Code from TheLobbi/claude. It costs 0 tokens per session (2,180 once invoked), scanned A, original, MIT.

A command for cleaning up a project backlog, the list of planned work, in Jira, a tool for tracking software tasks. It looks for stories that need estimates, acceptance criteria, or smaller scope.

In plain words
What is it for?
Use it to find backlog stories missing story points, descriptions, or acceptance criteria, and to identify stories larger than eight points.
Why use it?
It helps reveal incomplete or oversized work before it is taken into development.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

Part of the claude-orchestration plugin — 6 skills, 133 commands, 9 agents, 8 hooks, 6 plugins shipped together

Good fit Use it to find backlog stories missing story points, descriptions, or acceptance criteria, and to identify stories larger than eight points.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/thelobbi/claude/backlog-groom
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/TheLobbi/claude

Made for: Claude Code.

Or install claude-orchestration, the plugin that ships this one along with the rest of its 6 skills, 133 commands, 9 agents, 8 hooks, 6 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for backlog-groom

README.md
[![agentmods](https://agentmods.dev/badge/commands/thelobbi/claude/backlog-groom.svg)](https://agentmods.dev/commands/thelobbi/claude/backlog-groom)
Your own site
<a href="https://agentmods.dev/commands/thelobbi/claude/backlog-groom"><img src="https://agentmods.dev/badge/commands/thelobbi/claude/backlog-groom.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,180 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02180
Opus 5 $0.00000 $0.01090
Sonnet 5 $0.00000 $0.00436
Haiku 4.5 $0.00000 $0.00218

Measured 7d ago against content hash d9964d7d901a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

backlog-groom scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST "$JIRA_URL/rest/api/3/search" \
.claude/commands/backlog-groom.md · 267 lines

How it starts

The opening of the file, as written. The whole thing — 267 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Backlog Grooming Command

Facilitate backlog refinement and story preparation.

Instructions

1. Setup

```bash export JIRA_URL="${JIRA_URL:-https://your-domain.atlassian.net}" export JIRA_AUTH=$(echo -n "$JIRA_EMAIL:$JIRA_API_TOKEN" | base64) ```

2. Identify Stories Needing Refinement

```bash echo "=== Stories Needing Refinement ==="

Missing estimates

echo "" echo "📊 Missing Story Points:" curl -s -X POST "$JIRA_URL/rest/api/3/search"
-H "Authorization: Basic $JIRA_AUTH"
-H "Content-Type: application/json"
-d '{ "jql": "project = GA AND type = Story AND status = Backlog AND "Story Points" is EMPTY ORDER BY rank", "fields": ["summary", "priority"], "maxResults": 20 }' | jq '.issues[] | "(.key): (.fields.summary)"'

Missing acceptance criteria

echo "" echo "📝 Missing/Short Description:" curl -s -X POST "$JIRA_URL/rest/api/3/search"
-H "Authorization: Basic $JIRA_AUTH"
-H "Content-Type: application/json"
-d '{ "jql": "project = GA AND type = Story AND status = Backlog AND (description is EMPTY OR description !~ "acceptance criteria")", "fields": ["summary"], "maxResults": 20 }' | jq '.issues[] | "(.key): (.fields.summary)"'

Large stories (>8 points)

echo "" echo "🔨 Large Stories (consider splitting):" curl -s -X POST "$JIRA_URL/rest/api/3/search"
-H "Authorization: Basic $JIRA_AUTH"
-H "Content-Type: application/json"
-d '{ "jql": "project = GA AND type = Story AND "Story Points" > 8 AND status = Backlog", "fields": ["summary", "customfield_10016"], "maxResults": 10 }' | jq '.issues[] | "(.key): (.fields.summary) ((.fields.customfield_10016) pts)"' ```

3. Review Top Backlog Items

```bash echo "" echo "=== Top 15 Backlog Items ===" curl -s -X POST "$JIRA_URL/rest/api/3/search"
-H "Authorization: Basic $JIRA_AUTH"
-H "Content-Type: application/json"
-d '{ "jql": "project = GA AND type in (Story, Bug) AND status = Backlog ORDER BY rank", "fields": ["summary", "priority", "customfield_10016", "labels"], "maxResults": 15 }' | jq '.issues[] | { key, summary: .fields.summary, priority: .fields.priority.name, points: .fields.customfield_10016, labels: .fields.labels }' ```

Read the full file on GitHub · 267 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 267 lines · 0 tokens per session scan A d9964d7d901a

Subscribe to this mod's changes

backlog-groom is a command published in the GitHub repository TheLobbi/claude (21 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,180 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.