npx skills add ...
npx skills add microsoft/apm --skill apm-triage-panel
Use this skill to triage one microsoft/apm issue selected by the daily sweep, an advisory re-triage request, or manual dispatch, even when the request only asks whether one proposal is ready for discussion. Return one advisory recommendation and a proposed scope brief, never human approval. Do not implement the issue or manage the backlog.
npx skills add microsoft/apm --skill apm-triage-panel
Advisory only. Read assets/label-contract.json before reasoning.
The caller supplies the repository's GOVERNANCE.md and CONTRIBUTING.md:
those human policies override persona instructions. If unavailable, do
not invent authority or review contacts; flag the missing context.
An accept recommendation is not acceptance. Labels and silence are not
approval. Only a responsible human maintainer approves scope, priority,
contributor invitations, review capacity, and release targeting.
The panel is fixed at 2 mandatory specialist lenses + up to 3 conditional lenses + 1 always-active arbiter = 6 persona sections in one triage comment. You play each lens in turn from inside a single agent loop (progressive-disclosure skill model -- no sub-agent dispatch). Routing chooses which lenses execute; it never changes which headings appear in the final comment.
This skill mirrors the apm-review-panel orchestration shape on
purpose. Same single-comment discipline, same completeness gate, same
persona-pass procedure -- only the personas, the rubric, and the
output template differ.
| Agent | Persona | Always active? |
|---|---|---|
| DevX UX Expert | User-Need Reviewer | Yes |
| Supply Chain Security Expert | Risk-Surface Reviewer | Yes |
| APM CEO | Triage Arbiter | Yes (always arbitrates) |
| OSS Growth Hacker | Contributor-Tone Reviewer | Conditional (see below) |
| Python Architect | Architecture Reviewer | Conditional (see below) |
| Doc Writer | Documentation Reviewer | Conditional (see below) |
Skipped by default: CLI Logging Expert, Auth Expert. Triage operates
on issue intent, not on diffs -- those personas are invoked downstream
by apm-review-panel once a PR exists.
status/needs-design when warranted.Three personas are conditional: OSS Growth Hacker, Python Architect, and Doc Writer. Each follows the same shape: an explicit YES/NO activation rule plus an inactive-reason fallback. Maximum lenses in a single triage = 6 (2 mandatory + 3 conditional + 1 arbiter).
Activate oss-growth-hacker if either rule below matches.
Fast-path author trigger. Activate the Growth Hacker lens immediately when the issue's author meets ANY of:
author_association is FIRST_TIME_CONTRIBUTOR,
FIRST_TIMER, or NONE against microsoft/apm.microsoft/apm.Fallback self-check. If author signals are ambiguous, answer this before activating the lens:
Would the warmth, framing, or pointer-set in the reply meaningfully change if I knew this was someone's first interaction with the project? Answer YES or NO with one sentence. If unsure, answer YES.
Routing rule:
OSS Growth Hacker inactive reason: <one sentence>
in working notes; do not take the lens.Activate python-architect if either rule below matches.
Fast-path label / scope trigger. Activate the Architecture Reviewer lens immediately when ANY of:
type/architecture (current or proposed) or
the breaking-change preserved label.apm.yml, apm.lock.yaml, or apm-policy.yml.Fallback self-check. If the issue is ambiguous, answer this before activating the lens:
Does this issue, if accepted as written, require a cross-cutting design decision (interface, data model, migration boundary, or new primitive) before code can land safely? Answer YES or NO with one sentence. If unsure, answer YES.
Routing rule:
status/needs-design instead of
status/accepted.Python Architect inactive reason: <one sentence>
in working notes; do not take the lens.Activate doc-writer if either rule below matches.
Fast-path label / scope trigger. Activate the Documentation Reviewer lens immediately when ANY of:
type/docs or carries area/docs-site (current or
proposed).Fallback self-check. If the issue is ambiguous, answer this before activating the lens:
Will an implementing PR for this issue need to add or change user-facing documentation in
docs/src/content/docs/or in the README? Answer YES or NO with one sentence. If unsure, answer YES.
Routing rule:
area/docs-site should be added as a
secondary area/* so the implementing PR is reminded), and whether
the proposed comment wording is clear and grounded in the user
vocabulary used in the README and guides.Doc Writer inactive reason: <one sentence> in
working notes; do not take the lens.The CEO lens recommends exactly ONE outcome from this rubric:
accept -- direction appears clear and aligned. Propose bounded scope
for a responsible maintainer to approve; do not invite implementation.needs-design -- direction is sound but the design must be settled
before code lands. Recommend design discussion and name in the
comment exactly what must be designed (interface, data model,
migration, security boundary).decline-with-reason -- out of scope for APM as positioned by the
README spine. Suggest an alternative tool, a workaround, or the
upstream project. Always courteous, always concrete.duplicate-of #N -- propose the canonical issue. The orchestrator
must verify the link resolves before posting.defer-later -- not ready to invite work, including absent review
capacity. Recommend deferral (status/deferred if a human chooses).
NEVER map defer-later to status/accepted. A missing milestone alone
does not prevent acceptance: scope approval and release targeting differ.auto-handle -- automated noise such as a daily CLI-consistency
report PR or scheduled bot issue. Propose closing if the report has
zero unaddressed High findings; otherwise propose splitting into
individual issues with the right area/* labels and reference back
to the parent.assets/label-contract.json is the canonical label contract, including
human decision states, bot processing, legacy read aliases, and safe
rollout. Do not duplicate or expand its allowlist. Contributors need
not supply a five-axis taxonomy. Propose only useful type/area/theme
classification; null or an empty list is valid when uncertain. At most
six classification labels, with at most one type and one primary theme.
Preserve existing labels, priority, invitations, milestone, and human approval records. A conflicting classification belongs in advice, not a replacement. Legacy aliases are read-only compatibility, not permission to relabel anything. The workflow owns processing markers independently of the recommendation; this skill never chooses a human status to apply.
Every recommendation includes a concise proposed, not approved, brief:
scope, done_when, exclusions, and review_needs. State missing
information explicitly. Identify needed expertise and unresolved review
capacity, not an invented assignment or promise. Use the human roster:
core maintainers overlap project-wide; registry public API work goes to
its primary maintainer with core backup, not unrelated registry internals.
Do not require the lead to reapprove every routine decision.
No release milestone, priority, or contributor invitation is emitted as a machine-actionable field. These remain human decisions.
The caller uses scripts/triage_state.py for deterministic, read-only
selection and label planning against the contract. Run it with --help
for invocation; it reads normalized JSON from stdin, writes a JSON plan
to stdout, and reports failures on stderr with a nonzero exit. It never
calls GitHub, posts comments, or verifies human approval.
A triage comment passes when:
status/needs-design recommendation are capturedarea/docs-site secondary
label is proposed when the implementing PR will need new pages.agent.md reference file
on demand (progressive disclosure), assume that persona's lens to
produce its findings, then move to the next persona. Do NOT spawn
sub-agents (no task tool dispatch) -- the panel is a sequence of
reasoning passes inside one agent loop, not a multi-agent fan-out..agent.md files. Read each
one when you switch to that persona; do not pre-load all of them.When this skill is activated for an issue, work through these steps in order, in a single agent loop. Do not skip ahead and do not emit any output before the final step.
author_association, prior comments), supplied human governance,
and assets/label-contract.json. Do not re-fetch issue context
from inside the skill.<Persona> inactive reason: <one sentence> in working notes.<Persona> findings or <Persona> inactive reason exists (neither = incomplete; both = inconsistent
routing).../../agents/apm-ceo.agent.md) and arbitrate the collected
findings into a single recommendation, useful classification,
proposed brief, and reply tone. Still in your own context. CEO
arbitration may run only after the completeness gate has passed.duplicate-of #N, use the caller's
authenticated GitHub issue-read tool to verify the candidate exists
and is open before committing the link. If it cannot be verified,
use accept or needs-design as appropriate and mention the
suspected duplicate only in prose.assets/triage-template.md and fill it
in with the collected findings, recommendation, classification,
proposed brief, and suggested comment body.<details> sections, and the closing
triage-recommendation JSON block. If any element is missing, re-render
from the template instead of posting a hand-composed substitute.triage-recommendation
JSON tail to the caller. The workflow alone posts it via its
safe-output channel; direct callers receive advice without writes.
Never post from inside the skill or authorize implementation. This is the ONLY
output emission for the entire panel run -- no per-persona
comments, no progress comments.For each persona, run this exact procedure in your own context:
.agent.md file (linked in the roster) and
read its scope, lens, anti-patterns, and required return shape.<persona-name>: <findings> (or, for an inactive conditional
persona, <Persona> inactive reason: <one sentence>).This contract is non-negotiable -- it is the difference between a triage that lands as one cohesive comment and one that fragments into per-persona noise.
assets/triage-template.md as the comment body. Keep its
section headings exactly as written. Adapt the body of each
section to the issue. Do not invent new top-level sections or drop
existing ones.triage-recommendation is
REQUIRED. Its schema_version: 2 and advisory_only: true distinguish
it from legacy triage-decision comments. Consumers must not interpret
either format as human approval. No operative status, priority,
invitation, or milestone fields are present.[+] [!] [x] [i] [*] [>]
if status symbols are needed.assets/triage-template.md at synthesis time only (step
7 above) -- not at activation, not while collecting findings.area/*.decline-with-reason
without a courteous reason linked to the README spine, the
manifesto. Every decline names where the
user can go instead.needs-design without
naming, in the suggested comment, exactly what must be designed
(interface, data model, migration, security boundary). "We need to
think about this" is not a design-needed reason.status/needs-triage after advice;
human decision state and bot processing state are independent.*new* or *first* keyword matches alone -- always cross-check
author_association and prior interactions on microsoft/apm.
Same discipline for Python Architect (do not fire on the bare word
"refactor" in unrelated context -- check the issue's actual scope)
and Doc Writer (do not fire purely on the word "docs" appearing in
passing -- the issue must propose or imply a doc-surface change).devx-ux-expert, supply-chain-security-expert, apm-ceo,
oss-growth-hacker, python-architect, and doc-writer. Do not
create a triage-* persona; the README spine plus the label
taxonomy plus the existing CEO arbiter are sufficient grounding.assets/triage-template.md relative to the loaded SKILL.md.
Never hard-code an installation directory..agent.md for a reason -- read it when you take that lens, write
the findings, then drop the lens before moving on.