AGENT SKILL

triage

Task classification, decomposition, dependency mapping, and routing skill. Invoked by the triage-agent to break any user request into discrete, independently-routable work items with assigned priorities and agent chains.

License 许可
GPL-3.0
最近更新
2026-06-06
Stars
★ 0
Forks
0

01 前言 Front Matter

name
triage
description
Task classification, decomposition, dependency mapping, and routing skill. Invoked by the triage-agent to break any user request into discrete, independently-routable work items with assigned priorities and agent chains.

03 SKILL.md 正文

You are executing the triage skill on behalf of the triage-agent. Your job is to take a user request and produce a structured work breakdown that the triage-agent can use to orchestrate a multi-agent workflow.

Input

The calling agent passes the raw user prompt or a task description as args.

Process

Step 1 — Classify

Identify all task types present in the request:

Type Indicators Default Priority
Feature "Add X", "I want X", "we need X", new capability P1–P2
Bug Fix Crash, incorrect behavior, failing test, exception, regression P0–P1
Security Fix Auth bypass, data exposure, input validation gap, vulnerable dependency P0
TechDebt Refactor, convention violation, cleanup, performance P2–P3
Release "Ship", "release", "deploy", "publish to NuGet" —
Question Exploratory — "what would...", "how should we..." —

A single request may contain multiple types. Identify all present.

Step 2 — Decompose

For complex requests (multiple types or >1 agent needed):

  1. Identify atomic work items — each deliverable by a single, contiguous agent chain
  2. Map dependencies: which items must complete before others can begin
  3. Identify parallelization: which items share no dependency and can run concurrently
  4. Flag research dependencies — for each work item, check whether it requires external knowledge (library/API/SDK docs, unfamiliar framework, current best practices, version-migration info) or non-trivial cross-cutting code exploration. If yes, prepend a research-assistant step to that item's agent chain. The downstream specialists wait for the research findings before starting. See Step 3 routing rules for the explicit chains.
  5. Keep decomposition minimal — do not split a naturally-sequential flow into artificial fragments

For simple requests (one type, one agent, no dependencies): return a single-item plan.

Step 3 — Assign Agent Chains

For each work item, select the tightest-fitting standard chain:

New feature (scope unknown)              → requirement-analyst → software-architect → system-engineer → software-engineer → sqa-engineer
New feature (design needed)              → software-architect → system-engineer → software-engineer → sqa-engineer
New feature (ready to build)             → software-engineer → sqa-engineer
Feature needs prioritization             → product-manager → (then appropriate build chain above)
Bug fix                                  → software-engineer  (invoke fix-bug skill)
Bug fix with arch concern                → software-engineer → software-architect  (invoke architecture-review skill)
Security fix                             → /security-review skill directly
Tech debt / refactor                     → software-engineer → code-reviewer
Tech debt needs prioritization           → product-manager → software-engineer → code-reviewer
Test coverage gap                        → sqa-engineer
Low-level design question                → system-engineer
Architecture question                    → software-architect
Backlog / prioritization question        → product-manager
Release / milestone planning             → product-manager → devops-engineer (NuGet publish + GitHub Release)
Agent / skill / command lifecycle        → agent-manager
Rules / instructions / hooks change      → agent-manager
Agent memory prune / audit / refresh     → agent-manager
External knowledge / library docs needed → research-assistant → (then the appropriate chain above)
Unfamiliar framework / SDK behavior      → research-assistant → (then specialist chain)
Validate assumption before design        → research-assistant → software-architect
Deep cross-cutting codebase exploration  → research-assistant (standalone) or research-assistant → specialist

Research-prepend rule: Whenever a work item's chain involves design or implementation against external technology the team has not recently verified, prepend research-assistant as the first agent in that item's chain. The specialist receiving the work waits for the cited findings report before starting.

Step 4 — Set Priorities

Apply defaults, then check for overrides:

  • Security Fix: always P0 — never downgrade
  • Bug (regression or system blocker): P0; other bugs: P1
  • Feature: P1 by default; P2 for cosmetic or low-impact work
  • TechDebt: P2; raise to P1 only if it directly blocks a P0/P1 item

Step 5 — Flag PM Consultation Requirement

Mark whether the PM should be consulted before execution begins:

  • Yes — if any item is Feature or TechDebt
  • No — if all items are Bug Fix (P0), Security Fix, Question, or Routing

Output

Return the complete work breakdown to the triage-agent:

### Work Breakdown: <request summary>

#### Classification
<Type(s)> — <reason>

#### Work Items
| ID | Type | Priority | Description | Depends On | Parallel With | Agent Chain |
|---|---|---|---|---|---|---|
| WI-001 | Feature | P1 | Add X capability | — | — | req-analyst → sw-arch → sys-eng → sw-eng → sqa |
| WI-002 | Bug Fix | P0 | Fix Y crash in Z | — | — | software-engineer |

#### Execution Waves
- Wave 1 (parallel): WI-002 (P0 — immediate), WI-001 (pending PM priority confirmation)
- Wave 2 (after WI-001 completes): WI-003

#### PM Consultation Required
<Yes — Feature items WI-001 need prioritization before routing>
OR
<No — all items are P0 bug/security fixes, routing immediately>

04 同仓库更多 Skills

rafsanulhasan
rafsanulhasan/HypermediaEngine

write-tests

Test implementation skill for HypermediaEngine. Takes a confirmed test plan from design-test-cases and produces compilable, runnable xUnit tests following project conventions. Validates coverage quality through mutation testing. Invoked by the sqa-engineer agent after the test plan is approved.

测试与质量
★ 0
rafsanulhasan
rafsanulhasan/HypermediaEngine

write-documentation

Structured documentation writing workflow for HypermediaEngine. Writes or updates README.md files at the repo root and in each project directory (src/, tests/, samples/, etc.) based on current implementation, ADRs, and architecture decisions.

★ 0
rafsanulhasan
rafsanulhasan/HypermediaEngine

write-adr

Writes a numbered Architecture Decision Record (ADR) for a significant architectural choice in the HypermediaEngine project. Invoked by the software-architect agent whenever a consequential design decision is made or ratified. Saves the ADR to docs/architecture/decisions/.

★ 0
rafsanulhasan
rafsanulhasan/HypermediaEngine

tunit-playwright-ui-testing

Comprehensive guidance for writing coded end-to-end UI tests in C# using TUnit.Playwright. Tests inherit from PageTest — the base class manages all browser lifecycle. Covers NuGet setup, PageTest inheritance, Page Object Model, browser configuration, parallelism limiting, and CI integration. Based on the official TUnit docs at https://tunit.dev/docs/examples/playwright.

设计师测试与质量
★ 0
rafsanulhasan
rafsanulhasan/HypermediaEngine

system-design

Expert system design skill. Use PROACTIVELY to design systems, review architectures, and assist software engineers in learning design principles and implementing them in the code with design patterns.

设计师视觉设计
★ 0
rafsanulhasan
rafsanulhasan/HypermediaEngine

spec-driven-development

Manages the full lifecycle of a feature specification — from collaborative drafting to enforcement during implementation and testing.

★ 0