Agents-for-net: Command for GitHub Copilot

.github/prompts/issue-triage.md

issue-triage is a command for GitHub Copilot from microsoft/Agents-for-net. It costs 0 tokens per session (1,377 once invoked), scanned A, original, MIT.

An automated GitHub issue-triage command that runs in GitHub Actions, GitHub's built-in automation service. It reads an issue and its comments, then responds with comments or labels rather than creating branches or pull requests.

In plain words
What is it for?
Use it to classify repository issues, post an evidence-based response, and provide a ready-to-apply patch for a human when a fix is needed.
Why use it?
It keeps issue handling consistent and prevents the automation from changing code or opening pull requests when the repository allows comments only.

Command for GitHub Copilot ✓ vendor

Written for GitHub Copilot: a Copilot chat mode or prompt.

This is microsoft/Agents-for-net's own configuration. It tells GitHub Copilot how to work on Agents-for-net itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Agents-for-net configures →

About the project

Microsoft 365 Agents SDK is a C# and .NET software development kit for building agents that interact with users across Microsoft 365, Teams, Copilot Studio, Webchat, and selected third-party services. Developers use it to handle conversations, coordinate requests, generate responses, and enable collaboration between agents. The catalogue entries provide coding-agent instructions and agents for working with this SDK.

microsoft/Agents-for-net · 183 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/Agents-for-net. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/Agents-for-net/main/.github/prompts/issue-triage.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/Agents-for-net

Made for: GitHub Copilot.

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 issue-triage

README.md
[![agentmods](https://agentmods.dev/badge/commands/microsoft/agents-for-net/issue-triage/github.svg)](https://agentmods.dev/commands/microsoft/agents-for-net/issue-triage)
Your own site
<a href="https://agentmods.dev/commands/microsoft/agents-for-net/issue-triage"><img src="https://agentmods.dev/badge/commands/microsoft/agents-for-net/issue-triage/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 issue-triage

Your own site · 80×15
<a href="https://agentmods.dev/commands/microsoft/agents-for-net/issue-triage"><img src="https://agentmods.dev/badge/commands/microsoft/agents-for-net/issue-triage.svg" alt="Reviewed on agentmods" width="80" 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 1,377 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.00000 $0.01377
Opus 5.5 $0.00000 $0.00551
Sonnet 5.5 $0.00000 $0.00275
Haiku 4.5 $0.00000 $0.00138

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

Security

Grade A, and why

issue-triage 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 1mo 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.

.github/prompts/issue-triage.md · 115 lines

How it starts

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

Issue Triage Agent

You are an automated issue-triage engineer for the repository ${REPO}. You are running non-interactively inside a GitHub Actions workflow. Complete the task end-to-end without asking questions, then exit.

Inputs

  • Repository: ${REPO}
  • Issue number: #${ISSUE_NUMBER}
  • Issue title: ${ISSUE_TITLE}
  • Triggering event: ${EVENT_NAME} (issues = the ai-triage label was just added; issue_comment = someone commented on an already-labeled issue)

Read the full issue (title, body, labels, and ALL existing comments) with: gh issue view ${ISSUE_NUMBER} --repo ${REPO} --comments

Every comment you post must begin with the line > _Automated triage by GitHub Copilot._ so readers know it is generated, and so this workflow can skip its own comments and avoid an infinite loop.

Important constraint — comments only

This repository does not permit automation to create branches or pull requests. Never run git push, gh pr create, or otherwise open/modify a PR. Your only outputs are issue comments (and labels). When you have a fix, deliver it inside a comment as a ready-to-apply patch that a human can apply later — do not commit it.

What to do

Use the gh CLI for all GitHub operations. Read source files with the tools available to ground your analysis in the actual code. Follow the repository's .github/copilot-instructions.md for build/test/convention context.

A. First run — the ai-triage label was just added (${EVENT_NAME} == issues)

  1. Analyze the issue. Determine the type (bug, feature request, question, docs), the affected area of the codebase, and severity. Inspect relevant source files to ground your analysis in the actual code.

  2. Insufficient information? If the issue lacks the details needed to analyze or reproduce it (no repro steps, no error text, no version, ambiguous ask), then:

    • Post exactly ONE comment addressed to the reporter that (a) thanks them, (b) briefly summarizes your current understanding of the issue, (c) lists the specific missing information as a checklist, and (d) explains why each item is needed.
    • Add the label needs-info (gh issue edit ${ISSUE_NUMBER} --repo ${REPO} --add-label needs-info).
    • Stop here.

Read the full file on GitHub · 115 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. 1mo ago First seen · 115 lines · 0 tokens per session scan A 367b72f888d6

Subscribe to this mod's changes

issue-triage is a command published in the GitHub repository microsoft/Agents-for-net (183 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,377 tokens. 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-09-10.