AgentSkillsCN

test-triage

诊断 pytest 或 CI 失败原因,定位根本问题,并实施最小化修复方案。适用于测试失败或 CI 报告错误时使用。

SKILL.md
--- frontmatter
name: test-triage
description: "Diagnose pytest or CI failures, identify root cause, and implement the minimal fix. Use when tests fail or CI reports errors."

Test Triage

Workflow

  • Run the requested test command (or metta pytest --changed if none is provided).
  • Read failure output and identify the first actionable frame.
  • Inspect relevant code paths and determine root cause.
  • Implement the smallest sensible fix; avoid unrelated refactors.
  • Re-run the same target only if requested and report results.