/rumor-linear:hygiene [mine | team <name> | project <name> | person <name> | all] [--dry-run] [--yes] [--days N]from rumor-linear
Sweep Rumor's Linear board and put every ticket in the status it should be in, from evidence: which PRs are merged, deployed to UAT, promoted to prod, and whether a feature flag hides them. Moves forward on proof, asks before anything backward, and produces per-person reminders (stale work, missing links, untracked PRs, waiting on QA or a promote). Use when someone says 'linear hygiene', 'clean up Linear', 'sweep the board', 'are my tickets in the right status', 'what's stuck', or runs /rumor-linear:hygiene.
Ships in rumor-linear. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Make Linear tell the truth. Every ticket ends the run in the status its code has actually reached, and every person gets a short list of what only they can fix.
Accuracy beats coverage. A wrong move is worse than a missed one: it hides work, or tells a host something is live when it isn't. So: move only on proof, never on a hunch, and when the proof is missing say exactly what's missing.
Read these before the first evaluation — they hold the rules, this file holds the procedure:
references/workflow.md — the status ladder, what proves each status, override
labels, feature flags, per-repo deploy caveats.references/checks.md — every check, and whether it's MOVE, ASK or REMIND.| Arg | Scope |
|---|---|
(none) or mine | tickets assigned to the person running it |
team <name or key> | one team: Rumor/RUM, Services/SERVE, Pod 1 (Supply)/SUP, Pod 2 (Demand)/DEM, Platform/PLAT, Design |
project <name> | one project |
person <name or email> | one teammate's tickets |
all | every team — use subagents (step 3) |
--dry-run | report only, change nothing |
--yes | apply the MOVE batch without the confirmation prompt (ASKs still ask) |
--days N | look-back for recently-shipped tickets and untracked PRs (default 7) |
linear): you need list_issues, get_issue, list_issue_statuses,
list_teams, list_users, save_issue, save_comment. No Linear tools →
stop: "connect the Linear connector, then rerun".gh auth status must show access to Rumor-Group-Corporation;
jq must exist. Without them there is no evidence → stop.list_issue_statuses for each team in scope. Confirm every name
in references/workflow.md exists. A missing or renamed state → stop and
report it; the rules would be wrong.get_user me → name, email. "mine" means this person.posthog. The PostHog connector is one
exec tool; its default project is Rumor-UAT (471885). Flag state for
status purposes must come from Rumor-Prod (471884) — switch project before
reading a flag, and say which project every reading came from. No PostHog →
flag-gated tickets get REMINDs instead of moves.linear-code[bot] comments). While that rule is live, any In Review
move this sweep makes can be undone on the next PR event. Detect it: in the
enriched tickets, count stateHistory entries where In Review lasted < 60 s
and was followed by In Progress. If any, put this at the top of the
report: "Linear is bouncing PRs out of In Review (N tickets, e.g. RUM-10525).
Fix in Linear → Settings → Team → Workflow → GitHub/Git automations (a team
admin's call). Until then In Review moves won't stick." Still propose the A5
moves, but mark them "may bounce".gh api user --jq .login (it is not the
Linear name).Scripts live next to this file. Resolve their absolute path from this skill's directory and call them by full path:
scripts/where-is-pr.sh <pr-url>... → one JSON line per PR: state,
surfaces, uat, prod (yes/no/n/a/unknown), evidence, caveats.scripts/untracked-prs.sh [days] [github-login] → PRs with no ticket key.Pull, for the scope, with fields set to keep responses small
(title,status,statusType,team,assignee,project,labels,updatedAt,priority,dueDate,parentId,cycleId,createdBy)
and limit: 250, paginating with cursor until hasNextPage is false.
list_issues takes ONE state per call, so this is several calls:
state: started — In Progress, In Review, In Preview, In UAT.state: Approved by name — Linear types Approved as completed, so the
started pull misses it, and an Approved ticket stuck for weeks is exactly
what B5 exists to catch. No date filter.state: unstarted and state: backlog, updatedAt: -P30D (A5/A6: a PR
opened on a Todo ticket).updatedAt: -P<days>D — only for A7
(marked live too early). Skip their B–D checks; they're done.Never fetch or touch canceled / duplicate types.
Write the candidate list to a scratch file (id, title, status, team, assignee, updatedAt). Say the count before going further: "142 tickets in scope: 61 started, 53 to-do, 28 recently done."
For each candidate, get_issue <id>. includeRelations: true returns
blocks / related / duplicates but not parent or children, so for D-checks
build the parent map from the step-1 parentId field, and call
list_issues {parentId} only for tickets that some other candidate names as
its parent (or whose title says "parent"). Keep:
attachments → the GitHub PR urls (github.com/Rumor-Group-Corporation/*/pull/*)stateHistory → when it entered its current status (for stale thresholds)labels → override labels, feature-flagged, retired delivery labelsdescription → flag keys, PRs mentioned but not attachedThen call where-is-pr.sh once with every distinct PR url (it caches deploy
heads per call — one call with 80 urls is far cheaper than 80 calls). Save the
JSON lines to scratch and join them back to tickets.
For untracked-prs.sh, run it once for the scope's people (or everyone for
team/all), then drop any PR whose url appears as an attachment on any ticket.
More than ~60 tickets (common even for mine — an active engineer can have 200):
split by team, or by assignee / status for one big team, ~40 tickets per slice,
and give each slice to a subagent. Each subagent must call where-is-pr.sh once
for its whole slice (it runs 8 PRs in parallel; ~4s per PR serially would blow
the 10-minute Bash timeout on a big slice) with a Bash timeout of 600000. Each subagent gets:
the absolute path of this skill directory, its slice of ticket ids, the status
name→ID map for its team, and the instruction "do steps 2 and 4 only; return the
plan rows as JSON; change nothing". You merge the plans and do steps 5–8 yourself
so there is one approval and one report.
For each ticket, in this order (first matching rule wins for the status target):
In Review; any OPEN draft → In Progressuat: no → stays where it is if ≥ In Reviewuat: yes, any prod: no → In UATprod: yes → In Production (or the flag variant, workflow.md → flags)unknown at the deciding step → no move; REMIND with the caveat textApproved and target is In UAT → nothing (Approved outranks it;
never remove an approval)references/checks.md and record the
findings with their class and the person they're for.Each plan row: ticket, title, assignee, current → target, class, reason, where
reason names the proof: "grapevine#451 live on therumor.com (deploy
648b19c, 10-02); backend#5293 in release/prod-8f4c8ef". A row with no concrete
reason is a bug — drop it.
One message, scannable, in this order:
RUM-10508 Tastemaker counts — In UAT → In Production · backend#5293 in release/prod-8f4c8ef, grapevine#451 liveunknown, with
the exact thing a human must confirm.If --dry-run, stop here.
--yes, ask once: "Apply these N moves?" (yes / no / let me pick).
"Let me pick" → multi-select by ticket.save_issue {id, state: <target name>}.
Then save_comment on the ticket, one short line with the proof:
Status → In Production. backend#5293 is in release/prod-8f4c8ef (10-02) and grapevine#451 is live on therumor.com. (Linear hygiene sweep)
save_issue {id, links:[{url,title}]}), add to current cycle.AskUserQuestion call).
Apply only what was answered yes. Same re-read-then-write rule.Approved, set design/PRD statuses, touch a terminal ticket, remove labels.Ask how to deliver the reminders (default: just the report):
@displayName) with the one-line action. Additive, but it notifies
people: confirm the count first ("post 31 comments to 7 people?").Re-read every ticket you moved and confirm the status stuck. Then report:
where-is-pr.sh output for an attached PR.
A commit message, a comment saying "shipped", or a ticket's age is not proof.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub rumor-group-corporation/rumor-plugins --plugin rumor-linear