substrate: Skill for Claude Code

.agents/skills/triage-issues/SKILL.md

triage-issues is a skill for Claude Code, Codex from agent-substrate/substrate. It costs 66 tokens per session (2,858 once invoked), scanned A, original, Apache-2.0.

A workflow for sorting open GitHub issues by applying labels from a defined taxonomy. It requires proposing label changes for approval first and creating a script that can undo approved changes.

In plain words
What is it for?
Use it to review unlabeled issues, correct clearly wrong labels, and organize issue types or areas. It helps decide labels from the issue discussion, apply approved changes with GitHub tools, and preserve a record for reversal.
Why use it?
It reduces an unorganized issue backlog without silently changing labels that people have already added. The approval step and undo script make the changes reviewable and reversible.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is agent-substrate/substrate's own configuration. It tells Claude Code and Codex how to work on substrate 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 substrate configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash /tmp/triage-issues-undo-20260904-140312.sh.

About the project

Agent Substrate is a runtime system for running many isolated applications or AI agents on shared computing infrastructure. It manages agent sandboxes throughout their lifecycle, places them on available workers, and routes traffic to them while using technologies such as Kubernetes, microVMs, and gVisor. Its catalogue skills and instructions support operating and developing workflows around this agent runtime.

agent-substrate/substrate · 1,780 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to agent-substrate/substrate. 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/agent-substrate/substrate/main/.agents/skills/triage-issues/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/agent-substrate/substrate

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/agent-substrate/substrate/triage-issues.svg)](https://agentmods.dev/skills/agent-substrate/substrate/triage-issues)
Your own site
<a href="https://agentmods.dev/skills/agent-substrate/substrate/triage-issues"><img src="https://agentmods.dev/badge/skills/agent-substrate/substrate/triage-issues.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,858 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.00066 $0.02858
Opus 5 $0.00033 $0.01429
Sonnet 5 $0.00013 $0.00572
Haiku 4.5 $0.00007 $0.00286

Measured yesterday against content hash 2929030cb14d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

triage-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 yesterday.

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.

.agents/skills/triage-issues/SKILL.md · 276 lines

How it starts

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

Triage Issues

Triage means: read each issue, decide the right labels from the taxonomy below, and apply them with gh issue edit. Do not remove labels a human has already added unless they are clearly wrong. Do not add priority labels unless the issue body or discussion makes the priority obvious.

Two hard rules govern every run:

  1. Propose before applying. Classify everything first and present the full set of proposed changes as a summary for the user to validate. Apply nothing — no labels, no label creation — until the user approves.
  2. Record an undo. While applying approved changes, build an undo script that reverses exactly what this run did, and hand the user the command to run it.

Label taxonomy

Every issue should have at least one kind/ label and at least one area/ label. Priority and status labels are optional.

kind/ — what the issue is

Label When to apply
kind/bug Something is broken or behaves incorrectly. The current behavior is wrong.
kind/feature A new capability that does not exist today. Includes enhancements to existing features.
kind/cleanup Code quality improvements that do not change behavior: refactors, naming, dead code removal, small inconsistencies.
kind/docs Documentation only — missing, outdated, or incorrect docs.
kind/design Design discussions, investigations, research, and open questions that must be resolved before implementation. Includes "Design discussion:", "Identify what X should be", "Measure/benchmark X", "Explore options".

If any label in this taxonomy does not exist on the repo yet, include its creation in the proposal and create it during the apply step with:

gh label create "<label>" \
  --repo agent-substrate/substrate \
  --description "<short description matching the taxonomy table>" \
  --color "c5def5"

area/ — which part of the codebase

Apply all areas that are touched. Most issues need one or two; a few need more.

Read the full file on GitHub · 276 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. yesterday First seen · 276 lines · 66 tokens per session scan A 2929030cb14d

Subscribe to this mod's changes

triage-issues is a skill published in the GitHub repository agent-substrate/substrate (1,780 stars, last pushed yesterday), licensed Apache-2.0. It adds 66 tokens to every session and 2,858 once invoked, about $0.0003 per session on Opus 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-09-05.