agentleFS
milad-ahmdmilad-ahmd/agent-skills/skills/issue-triage/SKILL.md

issue-triage

Skill7 starsChanged 4 days agoMITView on GitHub

Triages open GitHub issues like a maintainer, changing nothing without approval. Use when asked to triage issues or a backlog, find duplicates, stale issues or bug reports missing repro steps, or label and prioritise.

67 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use meeting-notes-and-actions, pr-review-ci-fix and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ComposioHQSkill

    meeting-notes-and-actions

    Turn meeting transcripts or rough notes into crisp summaries with decisions, risks, and owner-tagged action items; use for Zoom/Meet/Teams transcripts, call notes, or long meeting chats to generate share-ready outputs.

    Also in 4 projects that use this

  • ComposioHQSkill

    pr-review-ci-fix

    Automated PR review and CI auto-fix for GitHub and GitLab using the Composio CLI. Pulls diffs, fetches failing job logs, posts review comments, and loops fix commits until checks go green.

    Also in 4 projects that use this

  • FlorianBruniauxSkill

    tdd-rust

    Also in 3 projects that use this

  • GitHubSkill

    phoenix-cli

    Debug LLM applications using the Phoenix CLI. Fetch traces, analyze errors, structure trace review with open coding and axial coding, inspect datasets, review experiments, query annotation configs, and use the GraphQL API. Use whenever the user is analyzing traces or spans, investigating LLM/agent failures, deciding what to do after instrumenting an app, building failure taxonomies, choosing what evals to write, or asking "what's going wrong", "what kinds of mistakes", or "where do I focus" — even without naming a technique.

    Also in 3 projects that use this

  • petestewartSkill

    datadog-logs

    Query Datadog logs via the Logs Search API v2. Use when the user asks to "check the logs", "search logs", "find errors in Datadog", "look up logs for", "show me production logs", "check for errors", "search Datadog", or any request involving log search, error investigation, or production debugging that requires Datadog log data.

    Also in 3 projects that use this

  • ufodev-ioSkill

    security-guardian

    Comprehensive security layer for all interactions with Claude: audits code, dependencies, commands, configs, and AI-generated output for vulnerabilities. Protects against prompt injection, data leaks, unsafe advice, and social engineering. Works in Cursor, Claude Code, claude.ai, and API contexts. Use always as a background security protocol in any Claude-powered environment.

    Also in 3 projects that use this

  • +6 more from ComposioHQ

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 55 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Call something a duplicate from the score alone, or close the older, better issue in favour of a newer one.

    line 61
  2. Distinctive:

    Create labels, milestones or projects, or @mention people, unless the user agreed to it.

    line 62

“Common” is measured: kept by at least 6 in 10 of the 55 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Issue Triage

Triage means sorting the open issues so maintainers spend time where it matters: merge duplicates, get repro details for real bugs, nudge or flag stale threads, label, and rank. The script finds candidates. You confirm each one by reading the issue, and the user approves every write.

1. Collect the issues (read-only)

python3 scripts/triage.py --repo OWNER/NAME            # runs gh issue list itself, prints the report
python3 scripts/triage.py --repo OWNER/NAME --json     # full data for every issue
gh issue list --repo OWNER/NAME --state open --limit 500 \
  --json number,title,body,labels,comments,reactionGroups,createdAt,updatedAt,author,url > issues.json
python3 scripts/triage.py issues.json --days 60 --threshold 0.4
gh label list --repo OWNER/NAME --limit 200            # the labels this repo actually uses

gh names the reactions field reactionGroups; --json reactions is rejected. The script also reads files that use reactions (GraphQL groups or a REST {"total_count": N}), user instead of author, or a comment count. Options: --days (stale after, default 30), --threshold (duplicate score, default 0.35; lower it for small repos), --top (attention list length), --max (lines per text section), --now. A warning on stderr means --limit was reached and older issues are missing.

Exit codes: 0 report printed · 2 bad JSON, unreadable file, or gh failed (not installed, not logged in, no access). The script never writes to GitHub.

2. Check every candidate by reading it

The report is keyword and similarity based. Before you put anything in the triage report, open the issue: gh issue view N --repo OWNER/NAME --comments.

Duplicates. Two issues are duplicates when they share a root cause, not just an area. Two crashes in the same command can have different causes. Keep the older issue as the original, or the one with the repro and the discussion. A pair that shares only generic terms is a false positive, so drop it.

Missing info. This applies to real bugs only. The detail may sit in a screenshot or a linked gist the script can't read. Ask only for what is really missing, in the project's own terms: acme --version rather than "your version".

Stale. "waiting on reporter" means a maintainer asked something and got no answer. "never answered" and "waiting on maintainers" are the project's debt. They go in the attention list, never in a close list.

Labels. Map each suggestion to a name from gh label list, since feature may be called enhancement or kind/feature there. If the repo has no matching label, say it would need creating.

Priority. P1 is a severe bug (crash, data loss, security, regression) or a bug that many people hit. P2 has real impact or demand; a much-wanted feature tops out here. P3 is the rest. When the text says more than the score, adjust it and say why.

3. Write the triage report

Start with the needs-attention list: issue, priority and a one-line reason. Then the confirmed duplicates (#117 duplicates #102) with the evidence you read, the bugs that need a repro with what is missing, the stale issues split into waiting-on-reporter and unanswered, and the labels to add or remove.

End with one drafted reply per issue that needs a comment. Keep it short and polite. Thank the reporter, say what is needed or where the discussion continues, and promise no dates or fixes. A nudge on a stale issue asks whether the problem still happens on the latest release.

4. Apply only what the user approves

Group writes into batches (labels, comments, closes) and show the exact commands first:

gh issue edit 117 108 --repo OWNER/NAME --add-label "enhancement"
gh issue comment 108 --repo OWNER/NAME --body-file replies/108.md
gh issue close 117 --repo OWNER/NAME --duplicate-of 102     # only if the user asked to close duplicates

Run a batch only after the user says yes to that batch; approval of one batch does not cover the next. Write reply bodies to files and use --body-file so quoting can't break them. If gh issue close --help has no --duplicate-of (older gh), comment with the link to the original and close with --reason "not planned". After running, list what changed with links.

Do not

  • Close, lock, transfer or delete issues, or remove labels, unless the user approved that exact batch.
  • Close a stale issue on your own. A stale issue still waiting on maintainers is the project's debt.
  • Call something a duplicate from the score alone, or close the older, better issue in favour of a newer one.
  • Create labels, milestones or projects, or @mention people, unless the user agreed to it.
  • Promise fixes, timelines or releases in drafted replies.
  • Debug the bug itself here; triage ends at a well-described, labelled, ranked issue.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.