Agent skill
dotnet-test-triage
Run dotnet test, capture failed test cases, and generate a rerun filter plus a markdown failure summary. Use when test runs fail and you need a focused rerun command or a compact failure report.
Install this agent skill to your Project
npx add-skill https://github.com/incursa/workbench/tree/main/.codex/skills/dotnet-test-triage
SKILL.md
dotnet-test-triage
Run dotnet test, collect failed test cases, and write a compact failure report plus a rerun filter.
Outputs
artifacts/codex/test-failures.mdartifacts/codex/test-filter.txt
Run
bash .codex/skills/dotnet-test-triage/scripts/run-test-triage.sh
Optional: pass arguments through to dotnet test:
bash .codex/skills/dotnet-test-triage/scripts/run-test-triage.sh ./Workbench.slnx --no-restore
Optional: override the default command (useful for repo-specific defaults):
DOTNET_TEST_CMD="dotnet test ./Workbench.slnx --no-restore" \
bash .codex/skills/dotnet-test-triage/scripts/run-test-triage.sh
Rerun recommendations
- Basic rerun of failures:
dotnet test --filter "$(cat artifacts/codex/test-filter.txt)"
- More output:
dotnet test --filter "$(cat artifacts/codex/test-filter.txt)" -v normaldotnet test --filter "$(cat artifacts/codex/test-filter.txt)" -v diag
- Capture blame for crashes/hangs:
dotnet test --filter "$(cat artifacts/codex/test-filter.txt)" --blamedotnet test --filter "$(cat artifacts/codex/test-filter.txt)" --blame-hang --blame-hang-timeout 10m
- Disable parallelization if needed:
dotnet test --filter "$(cat artifacts/codex/test-filter.txt)" --no-parallel
Notes
- The filter file is empty when no failing tests are detected.
- The failure report contains the test name and a short error snippet from the TRX logs.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
workbench-github
GitHub workflows for Workbench CLI. Use when creating pull requests from work items or wiring GitHub-specific actions.
workbench-architecture
Architecture and ADR workflows for Workbench CLI. Use when documenting system design, decisions, tradeoffs, or rationale that must be tracked over time.
dotnet-build-diagnostics
Capture dotnet environment and CI-style build diagnostics with binlog and summary output.
dotnet-symbol-grep-recipes
Quick ripgrep recipes for common C# navigation tasks in this repo.
workbench-docs
Documentation workflows for Workbench CLI. Use when creating or updating specs, ADRs, runbooks, guides, or general docs, and when syncing backlinks or change notes.
workbench-work-items
Work item management for Workbench CLI. Use when creating, updating, linking, or closing work items and tracking execution status.
Didn't find tool you were looking for?