Agent Skills
› openai/plugins
› test-triage
test-triage
GitHub用于 macOS 测试分类,支持 Xcode 和 SwiftPM。通过缩小范围、精确分类失败类型(如构建错误、断言失败、崩溃等)并智能重跑,帮助用户区分环境问题与回归缺陷,避免将测试失败误判为产品 Bug。
Trigger Scenarios
需要分析 macOS 测试失败原因
区分编译错误与测试执行失败
排查 iOS 或模拟器特定行为问题
识别测试抖动或非确定性失败
Install
npx skills add openai/plugins --skill test-triage -g -y
SKILL.md
Frontmatter
{
"name": "test-triage",
"description": "Triage macOS tests across Xcode and SwiftPM. Use when narrowing failures, explaining assertions or crashes, or separating setup from regressions."
}
Test Triage
Quick Start
Use this skill to run the smallest meaningful test scope first, classify failures precisely, and avoid treating every test failure like a product bug.
Workflow
-
Detect the test harness.
- Use
xcodebuild testfor Xcode-based projects. - Use
swift testfor SwiftPM packages.
- Use
-
Narrow the scope.
- If the user gave a target, product, or test filter, use it.
- If not, prefer the smallest likely failing target before a full suite.
-
Classify the result.
- Build failure
- Assertion failure
- Crash or signal
- Async timing or flake
- Environment or fixture setup issue
- Missing entitlement or host app issue
-
Rerun intelligently.
- Use focused reruns when a specific case fails.
- Avoid burning time on full-suite reruns without new information.
-
Summarize clearly.
- What command ran
- Which tests failed
- What kind of failure it was
- The best next proof step or fix path
Guardrails
- Distinguish compilation failures from test execution failures.
- Call out when a test appears to assume iOS-only or simulator-only behavior.
- Mark likely flakes as such instead of overstating confidence.
Output Expectations
Provide:
- the command used
- the smallest failing scope
- the top failure category
- a concise explanation of the likely cause
- the next rerun or fix step
Version History
- 11c74d6 Current 2026-07-19 09:29


