Agent skill

Issue Triage

by mono in mono/SkiaSharp

Triage a SkiaSharp GitHub issue or PR into structured JSON with classification (type, area, platform, severity), suggested response, automatable actions, and companion Markdown/HTML reports.

MITAuto-check passedDevelopment

Install Issue Triage

skills CLI
$ npx skills add mono/SkiaSharp --skill issue-triage -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mono/SkiaSharp issue-triage --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mono/SkiaSharp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/issue-triage .claude/skills/issue-triage && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
issue-triage
GitHub stars
5.6k
Token cost
~3.4k tokens
SKILL.md length
1,309 words
Files
18 (incl. scripts, references)
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

Triage a SkiaSharp GitHub issue or PR into structured JSON with classification (type, area, platform, severity), suggested response, automatable actions, and companion Markdown/HTML reports.

  • Works in 6 steps: Setup → Investigate → Analyze → …
  • Tasks that involve Issue triage
  • SKILL.md covers ⛔ MANDATORY FIRST STEPS (do…, Phase 1 — Setup, Phase 2 — Investigate and Phase 3 — Analyze, plus 5 more sections
  • Runs Python scripts from its folder; calls gh, python3 and pip3

What it does

Issue Triage is an agent skill from mono/SkiaSharp. Triage a SkiaSharp GitHub issue or PR into structured JSON with classification (type, area, platform, severity), suggested response, automatable actions, and companion Markdown/HTML reports. Triggers: "triage 123", "triage issue", "classify issue", "analyze issue", "what's this issue about". Also triggered when an issue number is given after the issue-triage skill is already mentioned.

Its SKILL.md is about 3.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 20 other files, including scripts and reference files (for example `evals/evals.json`, `references/anti-patterns.md` and `references/labels.md`).

It sits in Development, covering Issue triage. It works with GitHub and Model Context Protocol. The repository describes itself as: SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile… The licence is MIT.

When your agent uses it

  • Tasks that involve Issue triage

Example prompts

  • “triage 123”
  • “triage issue”
  • “classify issue”
  • “/issue-triage”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Setup
  2. Investigate
  3. Analyze
  4. Workarounds
  5. Validate
  6. Persist & Present

What it can do on your machine

Read from SKILL.md and the folder at commit 51e2097. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 6 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • gh
    • python3
    • pip3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh and pip3, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Issue Triage loads about 3.4k tokens when it runs, and up to ~26k if it reads all its reference files. Until then it costs about 101 tokens; SKILL.md has 1,309 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~101
When it runs · the whole SKILL.md, loaded when a task matches
~3.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~26k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from mono/SkiaSharp at commit 51e2097, republished under its MIT licence (© mono). 1,309 words, ~3,395 tokens.

Download SKILL.mdSave it as .claude/skills/issue-triage/SKILL.md (or your agent's skills folder). This skill also uses 17 other files; get the full folder from GitHub.
name
issue-triage
description
Triage a SkiaSharp GitHub issue or PR into structured JSON with classification (type, area, platform, severity), suggested response, automatable actions, and companion Markdown/HTML reports. Triggers: "triage #123", "triage issue", "classify issue", "analyze issue", "what's this issue about". Also triggered when an issue number is given after the issue-triage skill is already mentioned.

Triage Issue

Issue pipeline: Step 1 of 3 (Triage). See documentation/dev/issue-pipeline.md.

Analyze a SkiaSharp GitHub issue and produce a structured, schema-validated triage JSON.

⛔ MANDATORY FIRST STEPS (do not skip)

  1. Read THIS entire SKILL.md before any investigation
  2. Read references/schema-cheatsheet.md for required fields and enums
  3. Read references/anti-patterns.md for critical rules

These 3 reads are REQUIRED. Do not proceed to Phase 1 until all three are loaded.

Quick flow:

  1. Load issue data from GitHub (prefer gh, or GitHub MCP when available)
  2. Read references: schema-cheatsheet, labels, triage-examples, anti-patterns
  3. Create brief plan (5-10 lines)
  4. Investigate code — READ-ONLY, never edit source files
  5. Generate JSON
  6. Validate with script
  7. Persist JSON + Markdown + HTML reports
Data sources

Primary source: GitHub itself. Prefer gh CLI for repeatable issue/PR fetches and searches. If the environment exposes GitHub MCP issue/PR lookup tools, those are also valid. Do not set up or depend on a cache worktree or cache branch for this skill.

Phase 1 (Setup) → Phase 2 (Investigate) → Phase 3 (Analyze) → Phase 4 (Workarounds) → Phase 5 (Validate) → Phase 6 (Persist & Render)

Phase 1 — Setup

Run once per session:

bash
pip3 install -r .agents/skills/issue-triage/scripts/requirements.txt --quiet
python3 --version  # Requires 3.9+
python3 -c "import jinja2; print('jinja2', jinja2.__version__)"  # pip3 install jinja2
gh --version
gh auth status

If gh is unavailable or unauthenticated, use the GitHub MCP issue/PR retrieval and search tools available in the environment.


Phase 2 — Investigate

1. Read the issue
bash
gh issue view {number} --repo mono/SkiaSharp \
  --json number,title,body,labels,comments,state,createdAt,updatedAt,closedAt,author,milestone \
  > /tmp/{number}.issue.json

GitHub MCP issue/PR retrieval tools are equally valid if the environment exposes them.

2. Code Investigation (MANDATORY)

Scope: READ code, don't WRITE code. Grep, read files, trace call chains. Never create files, compile, or execute.

Before ANY classification, search the source code for the types, methods, APIs, or behaviors mentioned in the issue. Read the relevant files. Record every finding in analysis.codeInvestigation as {file, finding, relevance} (with optional lines).

Do NOT classify until you have examined source code. For bugs, include at least one codeInvestigation entry. Close-* actions should include at least two.

Steps:

  1. Grep for the types/methods/APIs mentioned in the issue
  2. Read the relevant source files (platform handlers, core APIs, etc.)
  3. Check if the reported behavior matches current code
  4. For bugs: trace the code path — does the issue still exist?
  5. For feature requests: has it been implemented since filing?
  6. For questions: does the source confirm or contradict the assumption?
  7. Search for related issues AND PRs — use gh CLI or GitHub MCP directly:
    bash
    # Search issues (finds duplicates, prior reports, related discussions)
    gh search issues "{keywords from issue}" --repo mono/SkiaSharp --limit 10 \
      --json number,title,state,url
    # Search PRs (finds fixes, prior attempts, reverted changes)
    gh pr list --search '{keywords from issue}' --state all --repo mono/SkiaSharp --limit 10 --json number,title,state,mergedAt
    Include ALL related issues and PRs in evidence.reproEvidence.repoLinks — both duplicate/related issues AND closed/unmerged PRs, as they reveal prior reports and maintainer decisions. Duplicate issues are especially important for close-as-duplicate classification.
3. Additional Research
Signal in issueSource to consult
NativeAssets, DllNotFoundException, container, WASMdocumentation/dev/packages.md
Platform quirks, common trapsreferences/skia-patterns.md
Specific SkiaSharp types or methodsC# /// comments and compiler XML from a matching package; use Microsoft Learn for published reference
How-to about drawing, paths, bitmapsdocumentation/docfx/guides/ and samples/
Non-SkiaSharp tech (MAUI, Blazor, WPF)mslearn/microsoft_docs_search MCP tool

Pre-flight — confirm before analyzing:

Reminder: Triage is READ-ONLY. Do NOT edit any source files (.cs, .cpp, .csproj, .json).

Phase 3 — Analyze

First triage in session

Read references/labels.md for valid label values and cardinality, references/triage-examples.md for calibration, and references/schema-cheatsheet.md for required fields.

Classify and generate JSON

Write brief internal analysis (3–5 sentences), classify the type, then read references/research-by-type.md for type-specific research. Conduct the research, then generate the JSON. Write to /tmp/{number}.json. Use this exact literal path structure, do NOT substitute $TMPDIR or any other variable. Do NOT use mkdir — write directly to /tmp/.

⚠️ Schema Compliance:

  1. Read references/schema-cheatsheet.md — This is the authoritative source for structure, fields, and enums.
  2. Review references/labels.md — Use only valid label values.
  3. Follow these critical constraints:
    • meta.schemaVersion must be "1.0"
    • Optional fields: OMIT entirely if not applicable. Do NOT set to null.
    • String Arrays: platforms, backends, tenets, perf are simple string arrays (no confidence wrapper). Any perf/* value implies tenet/performance — include it in tenets.
    • Investigation: analysis.codeInvestigation is MANDATORY. At least one entry for bugs, two for close-* actions.
    • Rationale: analysis.rationale is a single summary string (not per-field).
    • Validation: No extra properties allowed (additionalProperties: false).
JSON Groups Overview
GroupContent
summaryOne-sentence description of the issue (top-level string, required).
metaVersion "1.0", issue number, repo, analyzedAt (ISO 8601).
classificationtype and area (required objects with confidence). platforms, backends (optional string arrays).
evidencebugSignals (for bugs), reproEvidence (all attachments/links), regression (if claimed), fixStatus (if fixed).
analysissummary (required), codeInvestigation (findings from Phase 2), keySignals (quotes), rationale (decision summary), resolution (proposals).
outputactionability (suggested action + suggestedReproPlatform) and actions (automatable tasks).

Refer to the cheatsheet for the exact field structure and enum values.


Show full SKILL.md (542 more words)Show less

Phase 4 — Workarounds

For bugs, questions, and feature requests: actively search for workarounds the reporter can use now. Follow references/workaround-search.md — 9 sources in priority order (existing triages → closed issues → known patterns → source code → docs → web).

  • Set proposal category to "workaround" / "fix" / "alternative" / "investigation"
  • Include codeSnippet on any proposal with copy-paste-ready code

Skip this phase for duplicates and abandoned issues (omit analysis.resolution).

Validate Code in Proposals

If any proposal includes a codeSnippet or the add-comment comment contains code: you must validate it with 3 parallel agents per references/workaround-validation.md. Do not suggest code that has not been checked.

Agents (parallel explore type, GPT-5.6 Luna model):

  1. API correctness — do the SK* types/methods exist with correct signatures?
  2. Behavioral correctness — disposal, null-checks, threading, does it solve the problem?
  3. Platform safety — will it work on the reporter's platform?

Synthesis: All pass → validated: "yes". Any warn → add caveats to comment, reduce confidence. Any fail → fix or strip code, set validated: "no".

If no proposals contain code, set validated: "untested".


Phase 5 — Validate

🛑 PHASE GATE: You CANNOT proceed to Phase 6 without passing validation. Skipping validation = INVALID triage. The task is incomplete.

bash
python3 .agents/skills/issue-triage/scripts/validate-triage.py /tmp/{number}.json
  • Exit 0 = ✅ valid → proceed to Phase 6
  • Exit 1 = ❌ fix the errors listed in the output, then re-run. Repeat up to 3 times.
  • Exit 2 = fatal error, stop and report

⚠️ NEVER hand-roll your own validation. NEVER assume it passes. RUN THE SCRIPT.


Phase 6 — Persist & Present

🛑 PHASE GATE: Phase 5 validator MUST have printed ✅ before you reach this step. If you have not run the validation script, GO BACK and run it now.

1. Persist

Copy the validated JSON to output/ai-triage/ for collection, then render companion Markdown and HTML reports that wrap the same JSON data.

bash
python3 .agents/skills/issue-triage/scripts/persist-triage.py /tmp/{number}.json

This produces:

  • output/ai-triage/{number}/triage.json
  • output/ai-triage/{number}/triage.md
  • output/ai-triage/{number}/triage.html
2. Present summary
✅ Triage: ai-triage/{number}/triage.json
✅ Report: ai-triage/{number}/triage.md
✅ Viewer: ai-triage/{number}/triage.html

Type:     type/bug (0.98)     Area: area/SkiaSharp
Severity: critical            Action: needs-investigation

Actions:
  labels-1   update-labels   [low]  Add type/bug, area/SkiaSharp
  comment-1  add-comment     [high] ⚠️ requires human edit
  link-1     link-related    [low]  Cross-ref #1234

Pipeline hint:

  • If classification.type.value == "type/bug" and output.actionability.suggestedAction == "needs-investigation": next step is issue-repro (ai-repro/{number}/repro.json).
  • If classification.type.value is type/enhancement or type/feature-request and suggestedAction == "needs-investigation": next step is also issue-repro, but repro will use confirmed/not-confirmed instead of reproduced/not-reproduced.
  • output.actionability.suggestedReproPlatform tells CI which runner to use for reproduction:
    • macos — for os/iOS, os/macOS, os/tvOS, os/watchOS issues
    • windows — for os/Windows-Classic, os/Windows-WinUI, os/Windows-Universal-UWP, os/Windows-Nano-Server issues
    • linux — for everything else (os/Linux, os/WASM, os/Android, os/Tizen, or no platform specified)
    • Note: For platform-independent API bugs (e.g., SVG output, stream handling), prefer linux even if the reporter tests on other platforms.
  • If repro already exists and reproduces: next step is issue-fix (consume both JSONs).

If add-comment exists, show comment in a copy-paste block. ⚠️ NEVER post via GitHub API.


Anti-Patterns

See references/anti-patterns.md — read this file on first triage in session.

#0 (CRITICAL): Triage is READ-ONLY. If you edit a source file during triage, you have FAILED. See the anti-patterns reference for the full list.

#1 (CRITICAL): NEVER use store_memory during triage. Triage produces JSON artifacts, not memories. Storing unverified facts pollutes all future sessions.

#2 (CRITICAL): NEVER skip the validation script. You MUST run validate-triage.py and see ✅ before persisting. Mentally checking fields is not validation. If the script isn't run, the triage is invalid.


Scripts

  • scripts/validate-triage.py <triage.json> — Validate against schema + rationale coverage + action integrity
  • scripts/persist-triage.py <triage.json> — Copy validated JSON to output/ai-triage/{number}/ and invoke renderer
  • scripts/render-triage-report.py <triage.json> — Render validated triage JSON → .md + .html (uses Jinja2 template for markdown)
  • scripts/triage-report.md.jinja2 — Jinja2 template for the Markdown report
  • scripts/viewer.html — Bootstrap 5 HTML template for the interactive viewer

© mono, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 17 other files (scripts, references) in .agents/skills/issue-triage of mono/SkiaSharp.

  • SKILL.md
  • evals/evals.json
  • references/anti-patterns.md
  • references/labels.md
  • references/research-by-type.md
  • references/response-guidelines.md
  • references/schema-cheatsheet.md
  • references/skia-patterns.md
  • references/triage-examples.md
  • references/triage-schema.json
  • references/workaround-search.md
  • references/workaround-validation.md
  • scripts/persist-triage.py
  • scripts/render-triage-report.py
  • scripts/requirements.txt
  • scripts/triage-report.md.jinja2
  • scripts/validate-triage.py
  • scripts/viewer.html

Open the folder on GitHubat commit 51e2097

Compare with similar skills

Issue Triage next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Issue Triage compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Issue Triage this skillmono/SkiaSharp5.6k—~3.4kAutomated safety check: PassMIT
Herdr Issue Triageherdrdev/herdr43k—~517Automated safety check: PassApache-2.0
Issue Triage Loopcobusgreyling/loop-engineering11k—~522Automated safety check: PassMIT
Triagearcee-ai/nac280—~2kAutomated safety check: PassApache-2.0
TMDb Backlog Triageradamayoung/TMDb178—~5kAutomated safety check: PassApache-2.0
GitHub IssuesCybereason-Public/owLSM280—~1.8kAutomated safety check: PassGPL-2.0

Similar skills

  • Herdr Issue Triage

    herdrdev/herdr

    Triages open herdr GitHub issues into a short decision-first Markdown table with a priority light, recommendation, age, reactions and a reason for each.

    43k GitHub stars~517 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Issue Triage Loop

    cobusgreyling/loop-engineering

    Scans open GitHub issues and discussions, flags duplicates, scores priority and proposes labels into issue-triage-state.md without ever labeling or closing.

    11k GitHub stars~522 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Triage

    arcee-ai/nac

    Triage a GitHub repository's open issues by finding exact duplicates, rejecting evidenceably off-base requests, requesting concrete clarification, applying only existing labels, and opening a linked…

    280 GitHub stars~2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • TMDb Backlog Triager

    adamayoung/TMDb

    Grooms the Backlog column of a GitHub project board by re-verifying each issue against current main, closing dead ones, promoting actionable ones to Ready and naming the decision the rest need.

    178 GitHub stars~5k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • GitHub Issues

    Cybereason-Public/owLSM

    Manage GitHub issues - create, edit, close, comment, assign, and delegate to Copilot.

    280 GitHub stars~1.8k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Agent skill for issue-tracker - invoke with $agent-issue-tracker

    74k GitHub starsUsed in 3 repos~2.4k tokens
    DevelopmentAuto-check passed

More from mono/SkiaSharp

All 21 skills in this repo
  • Issue Fix

    mono/SkiaSharp

    Fix bugs in SkiaSharp C bindings. An agent skill from mono/SkiaSharp.

    5.6k GitHub stars~5.1k tokensUpdated yesterday
    Auto-check passed
  • Issue Repro

    mono/SkiaSharp

    Reproduce a SkiaSharp issue systematically and capture structured reproduction results.

    5.6k GitHub stars~4.7k tokensUpdated yesterday
    Auto-check passed
  • Update native dependencies (libpng, libexpat, zlib, libwebp, harfbuzz, freetype, libjpeg-turbo, etc.) in SkiaSharp's Skia fork.

    5.6k GitHub stars~4.1k tokensUpdated yesterday
    Auto-check passed
  • Review Skia Update

    mono/SkiaSharp

    Review a Skia upstream merge PR in mono/skia. An agent skill from mono/SkiaSharp.

    5.6k GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Sample Scout

    mono/SkiaSharp

    Scout Skia GM (golden master) samples in the externals/skia submodule to find demos worth porting to the SkiaSharp Gallery.

    5.6k GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • Skia Analyst

    mono/SkiaSharp

    Analyze Skia features for SkiaSharp - produces a unified analysis of what shipped (upstream engine benefits, PR links, migration guides) and what's missing (impact/priority/effort scoring, hidden…

    5.6k GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Issue Triage

What does Issue Triage do?

Triage a SkiaSharp GitHub issue or PR into structured JSON with classification (type, area, platform, severity), suggested response, automatable actions, and companion Markdown/HTML reports. Issue Triage is an agent skill from mono/SkiaSharp. Triage a SkiaSharp GitHub issue or PR into structured JSON with classification (type, area, platform, severity), suggested response, automatable actions, and companion Markdown/HTML reports.

When should I use Issue Triage?

Issue Triage fits situations like: tasks that involve Issue triage.

How do I install Issue Triage in Claude Code?

Run `npx skills add mono/SkiaSharp --skill issue-triage -a claude-code`. Or copy the skill folder (.agents/skills/issue-triage in mono/SkiaSharp) into .claude/skills/issue-triage in your project. Claude Code loads it when a task matches its description.

How do I install Issue Triage in Codex?

Run `npx skills add mono/SkiaSharp --skill issue-triage -a codex`. Or copy the skill folder (.agents/skills/issue-triage in mono/SkiaSharp) into .agents/skills/issue-triage in your project. Codex loads it when a task matches its description.

Can I use Issue Triage in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mono/SkiaSharp --skill issue-triage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/issue-triage, .gemini/skills/issue-triage, .github/skills/issue-triage and .opencode/skills/issue-triage in your project.

What does Issue Triage need to run?

Going by SKILL.md and its folder, Issue Triage needs Python for the scripts in its folder and the command-line tools its instructions call (gh, python3 and pip3). Our summary lists: Python 3.

Does Issue Triage access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Issue Triage safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Issue Triage use?

Issue Triage is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Issue Triage use?

About 3.4k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 22k tokens, read only when the agent opens those files.

What are the alternatives to Issue Triage?

Skills that share tags, products or a category with Issue Triage: Herdr Issue Triage (herdrdev/herdr, 43k stars), Issue Triage Loop (cobusgreyling/loop-engineering, 11k stars), Triage (arcee-ai/nac, 280 stars) and TMDb Backlog Triager (adamayoung/TMDb, 178 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Issue Triage?

mono (a GitHub organization) maintains it in mono/SkiaSharp, which has 5,585 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 8, 2026.

Source: mono/SkiaSharp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.