AGENT SKILL

示例问题分诊处理

triage-sample-issue

暂无简介

License 许可
MIT
最近更新
2026-11-14
Stars
★ 31
Forks
19

02 资源文件 12

03 SKILL.md 正文

Skill: Triage a samples GitHub issue

When to use: any issue labeled area:samples, or whose body references samples/.

Preconditions: you have read samples/AGENTS.md.

Inputs

  • Issue title, body, labels, author, linked items.
  • Read access to samples/.

Procedure

  1. Determine request kind.
    • new-topic — issue asks for a topic that does not exist under samples/.
    • fix-topic — issue references an existing path under samples/.
  2. Identify target. Area (ISV), sub-grouping (Employee / Manager / Extended / flat), topic folder name. Verify the path actually exists for fix-topic.
  3. Required-info check.
    • New topic must include:
      • Target area / ISV.
      • Proposed topic folder name (or enough context to derive one).
      • User scenario / expected behavior.
      • At least 2 sample user utterances.
      • Required inputs/outputs or referenced API/system of record.
    • Fix topic must include:
      • Target path under samples/ (folder or file).
      • Current behavior (what is wrong).
      • Expected behavior or example.
  4. Duplicate check. Before classifying, search open issues for overlap:
    • Query open issues with label area:samples plus keywords from the title and any samples/ path referenced in the body.
    • For fix-topic, also search by the exact target path under samples/.
    • For new-topic, also search by area/ISV + proposed topic folder name.
    • Treat as a duplicate when another open issue targets the same path (fix) or the same area + topic intent (new). Record the matching issue number.
  5. Classify into exactly one of:
    • actionable-new-topic
    • actionable-fix
    • needs-clarification — required info missing.
    • blocked — depends on something outside repo control.
    • duplicate — another open issue covers it.
    • out-of-scope — not about samples/, or asks for renames, deletions, cross-area refactors, or changes outside samples/.
    • not-actionable — spam/empty.
  6. Act on the classification:
    • actionable-new-topic / actionable-fix → apply agent:eligible, hand off to create-or-update-sample-topic.
    • needs-clarification → apply agent:needs-info, post a comment listing the specific missing fields. Do not modify files.
    • blocked → apply agent:blocked, post a short comment naming the external dependency and referencing samples/AGENTS.md. Do not modify files.
    • out-of-scope → apply agent:out-of-scope, post a short comment referencing the relevant rule in samples/AGENTS.md (safety boundaries or area scope). Do not modify files.
    • duplicate → apply the stock duplicate label, post a short comment linking the original issue (Duplicate of #<n>). Do not modify files. (No dedicated agent:duplicate label is defined.)
    • not-actionable → do not apply any label. Stop without commenting; optionally flag for human review. Do not modify files.

Outputs

  • Classification label.
  • Target path (for actionable cases).
  • Either: handoff packet to the next skill, OR a posted comment, OR a labeled stop.

Stop conditions

  • Stop and ask if the area, sub-grouping, or topic folder is ambiguous.
  • Stop if the request would touch anything outside samples/.
  • Stop if the request asks to rename or delete existing files/folders.

04 同仓库更多 Skills