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/majiayu000/claude-skill-registry/tree/main/skills/data/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
pwsh -File .codex/skills/dotnet-test-triage/scripts/run-test-triage.ps1
Optional: pass arguments through to dotnet test:
bash .codex/skills/dotnet-test-triage/scripts/run-test-triage.sh ./src/Incursa.slnx --no-restore
pwsh -File .codex/skills/dotnet-test-triage/scripts/run-test-triage.ps1 ./src/Incursa.slnx --no-restore
Optional: override the default command (useful for repo-specific defaults):
DOTNET_TEST_CMD="dotnet test ./src/Incursa.slnx --no-restore" \
bash .codex/skills/dotnet-test-triage/scripts/run-test-triage.sh
$env:DOTNET_TEST_CMD = "dotnet test ./src/Incursa.slnx --no-restore"
pwsh -File .codex/skills/dotnet-test-triage/scripts/run-test-triage.ps1
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.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?