sweep-issues

sweep-issues is a skill for Claude Code from nirecom/agents. It costs 32 tokens per session (1,132 once invoked), scanned A, original, MIT.

A tool for sorting through open GitHub Issues, which are tracked work items in a repository. It closes certain completed parent issues automatically and can perform a deeper, approval-based check for stale issues.

In plain words
What is it for?
Use it to preview or sweep finished meta-issues, identify references to missing test files, and—with deep mode and approval—close confirmed stale issues.
Why use it?
It reduces backlog clutter while requiring human approval before closing issues that may only appear outdated because related test files have not been built yet.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

Good fit Use it to preview or sweep finished meta-issues, identify references to missing test files, and—with deep mode and approval—close confirmed stale issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirecom/agents/sweep-issues
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.

Any agent
npx skills add nirecom/agents --skill sweep-issues
Clone the repo
git clone --depth 1 https://github.com/nirecom/agents

Made for: Claude Code.

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 sweep-issues

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirecom/agents/sweep-issues/github.svg)](https://agentmods.dev/skills/nirecom/agents/sweep-issues)
Your own site
<a href="https://agentmods.dev/skills/nirecom/agents/sweep-issues"><img src="https://agentmods.dev/badge/skills/nirecom/agents/sweep-issues/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sweep-issues

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirecom/agents/sweep-issues"><img src="https://agentmods.dev/badge/skills/nirecom/agents/sweep-issues.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,132 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00032 $0.01132
Opus 5.5 $0.00013 $0.00453
Sonnet 5.5 $0.00006 $0.00226
Haiku 4.5 $0.00003 $0.00113

Measured 11d ago against content hash 9743b093b881, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sweep-issues scanned grade A with 0 findings 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 11d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sweep-issues/SKILL.md · 52 lines

How it starts

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

Sweeps the open-issue backlog.

  • tier 1 — meta parents whose sub-issues are all closed. Closed on every run.
  • tier 2 — issues whose referenced repository paths all no longer exist. Listed on every run; closed only under --deep, one at a time with the user's approval.

The user types at most --deep and --dry-run. Passes 2 and 3 are this skill's own calls (SI-5, SI-7) — the user never supplies a TSV path.

Procedure

Read rules/github-issues.md before SI-1 — on-demand-only, never auto-injected; it owns the close paths, the status:migrated / status:cancelled labels, and meta-parent handling.

SI-1. Run bash "$AGENTS_MAIN_ROOT/bin/sweep-issues.sh" forwarding the user's other flags verbatim (pass 1). SI-2. Print stdout verbatim. Do not summarize or filter. SI-3. Stop here when the output carries no <<<TIER2-GATE-SI3 block. SI-4. With the block: use AskUserQuestion to separate false positives (artifact not built yet) from real staleness. Write the survivors to ${WORKFLOW_PLANS_DIR:-$HOME/.workflow-plans}/<session-id>-sweep-issues-survivors.tsv. Columns: number / tokens_csv / class. Copy columns 1-2 from the gate template rows. class ∈ resolved | refactored-away | duplicate | obsolete | partial. SI-5. Re-run with --verify-candidates <survivors.tsv> --deep (pass 2) and print every EVIDENCE- line verbatim. SI-6. Present the <<<TIER2-GATE-SI5 candidates plus their evidence in one batched AskUserQuestion. Write only the approved rows to <session-id>-sweep-issues-decisions.tsv. Columns: number / action / arg / rationale. arg is the surviving issue for migrated, else -. SI-7. Emit <<WORKFLOW_ISSUE_CLOSE_VERIFIED: sweep-issues batch triage>>, re-run with --decisions <decisions.tsv> --deep (pass 3), then emit <<WORKFLOW_ISSUE_CLOSE_VERIFIED_END: sweep-issues batch triage done>>. Report every PARTIAL: line verbatim.

Rules

  • Applies by default; --dry-run suppresses tier-1 closes too.
  • --deep never changes the write mode, and never widens the candidate set — SI-2 scans identically with and without it. It decides only whether the tier-2 candidates reach the human gate or are dropped after being listed.
  • --verify-candidates / --decisions are this skill's protocol with the script, not user flags. Never surface them in a suggestion to the user; never expect the user to pass one.
  • Pass --deep on every tier-2 call (SI-5 and SI-7); omitting it exits 2.
  • The flagless run is non-interactive. Never place AskUserQuestion on the default path.
  • Pair --deep with a small band (e.g. --band-size 20) — SI-5 runs real tests and large bands do not finish in usable time.
  • pass-1 scans every band by default; the loop runs in the script, not here. pass-2/3 have no band concept.
  • --deep aggregates all-bands candidates into one gate block; total candidates scale linearly with open-issue count. To bound the gate size, use --max-bands N, not --band-size.
  • Under --dry-run, SI-5 reports the test it would run instead of running it; running a repository script is an effect.
  • A pass-1 run exits non-zero when any sub-step failed. Treat a non-zero exit as "this band was not swept", never as "nothing to do".
  • --repo must name the working tree's own repository; pass --repo-root DIR when sweeping a repository checked out elsewhere, or the run aborts.
  • Close only through the existing helpers. Never call gh issue close directly.
  • The judgement axis table's SSOT is the header of bin/sweep-issues/close-batch.sh; it is not restated here.
  • SI-5 evidence never rests on the issue body's own claims.
  • Write both intermediate TSVs outside the repo, under ${WORKFLOW_PLANS_DIR} — in-repo writes are blocked by enforce-worktree.js.
  • After a run that closed several tier-1 children of one parent, recommend /issue-reconcile: parent-body-update.sh can lose an update between concurrent closes.
  • This skill sets no context: fork, unlike its sweep siblings, because its human gates need the parent conversation.

Read the full file on GitHub · 52 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. 11d ago Changed 9743b093b881
  2. 17d ago Changed f1e1a5cd84c4
  3. 27d ago Changed · +2 lines a0ad2b184b2d
  4. 1mo ago First seen · 50 lines · 32 tokens per session scan A 3a7249b2d34c

Subscribe to this mod's changes

sweep-issues is a skill published in the GitHub repository nirecom/agents (3 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 1,132 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories