triage-find-issues

triage-find-issues is a command for Claude Code from allxsmith/bestax. It costs 18 tokens per session (1,747 once invoked), scanned A, original, MIT.

A command that searches open GitHub issues to find ones a pull request may address. A pull request is a proposed code change submitted for review.

In plain words
What is it for?
Use it when reviewing a pull request to report likely resolved or related issues for a separate publishing step.
Why use it?
It helps connect a pull request with relevant issues without posting comments itself.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/render-triage-comment.mjs --mode=render \.

Good fit Use it when reviewing a pull request to report likely resolved or related issues for a separate publishing step.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/allxsmith/bestax
agentmods
npx agentmods add commands/allxsmith/bestax/triage-find-issues

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 triage-find-issues

README.md
[![agentmods](https://agentmods.dev/badge/commands/allxsmith/bestax/triage-find-issues/github.svg)](https://agentmods.dev/commands/allxsmith/bestax/triage-find-issues)
Your own site
<a href="https://agentmods.dev/commands/allxsmith/bestax/triage-find-issues"><img src="https://agentmods.dev/badge/commands/allxsmith/bestax/triage-find-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 triage-find-issues

Your own site · 80×15
<a href="https://agentmods.dev/commands/allxsmith/bestax/triage-find-issues"><img src="https://agentmods.dev/badge/commands/allxsmith/bestax/triage-find-issues.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,747 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.00018 $0.01747
Opus 5.5 $0.00007 $0.00699
Sonnet 5.5 $0.00004 $0.00349
Haiku 4.5 $0.00002 $0.00175

Measured 3mo ago against content hash b320d6a854e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

triage-find-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 3mo 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.

.claude/commands/triage-find-issues.md · 143 lines

How it starts

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

Find OPEN issues the target PR likely resolves or relates to, and REPORT them. Context from the caller: REPO, NUMBER (the target PR), and TRIGGER (opened/labeled). If NUMBER is missing, ask.

You do not post anything. You have no comment tool. Your findings go out as a structured payload on this command's TRIAGE-RESULT: line, and scripts/render-triage-comment.mjs renders and publishes the comment — it owns the marker, the Fixes #N block, and the decision to comment at all.

Pre-checks (each exit is a skip, never a comment)

  1. gh pr view NUMBER --repo REPO --json state,title,body,comments — if the PR is not open, stop and report skip (not open).
  2. Marker check — a comment authored by bestaxbot or a bot account whose LAST non-empty line is <!-- ai-triage:find-issues --> (match marker + that author class, never one specific login — the workflow posts as bestaxbot today; older comments are from github-actions[bot] or claude[bot]): A comment COUNTS only when the marker is its LAST non-empty line — the same predicate the publisher and the auto-close cron use. Matching it here matters: a bot reply that merely QUOTES a triage comment carries the marker verbatim, so a looser "contains" test would report already triaged and skip the search while the publisher saw no triage comment at all, leaving the item silently un-triaged.
    • TRIGGER=opened and marker present → stop, report skip (already triaged). This is a cost gate that saves the fan-out below; the publisher independently refuses to overwrite an existing triage comment on an opened run.
    • TRIGGER=labeled → continue regardless; the publisher refreshes its own marker comment in place.
  3. Note every issue already referenced in the PR body (#N, Fixes #N, Closes #N, full URLs) — those are EXCLUDED from the results.

Search — 5 parallel agents

Read the PR title, body, and gh pr diff NUMBER --repo REPO (never check out or execute its code). Extract signals, then fan out FIVE Task agents in a single message, one strategy each.

Read the full file on GitHub · 143 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. 3mo ago First seen · 143 lines · 18 tokens per session scan A b320d6a854e9

Subscribe to this mod's changes

triage-find-issues is a command published in the GitHub repository allxsmith/bestax (15 stars, last pushed today), licensed MIT. It adds 18 tokens to every session and 1,747 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-30.

Related

triage-find-issues compared with commands from other repositories

triage-find-issues next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
triage-find-issuesallxsmith/bestaxCommand15todayMITA18Claude Code
review-blocksbartstc/vite-ts-react-templateCommand1242d agoMITA0Claude Code
e2e-testingJNTMTMTM/eIslandCommand362yesterdayGPL-3.0A0Claude Code
security-auditRewritingTheCode/workshopCommand124d agoMITA17Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code