Use when reviewing a PR's test quality via mutation testing. Runs Stryker on the diff, triages surviving mutants, and posts findings as a PR comment with inline annotations on changed lines.
75
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Review a pull request's test quality by running mutation testing on the changed files and triaging the survivors.
The workflow forwards these as environment variables via --env-file:
PR — the pull request numberREPO — the repository as owner/nameGH_TOKEN — GitHub token for posting comments and inline annotationsnpm install to bootstrap the project.npm run mutate:diff to mutation-test the files changed by this PR. A
non-zero exit is expected when mutants survive — do not treat it as failure.reports/mutation/mutation.json. If the file does not exist, the PR
changed no mutatable source — post nothing and stop.Survived and NoCoverage. For each one,
decide:
<!-- mutation-review -->. Include the diff mutation score, a markdown table
of survivors worth attention (columns: location file:line, the mutation,
why it matters / the assertion that would kill it), and a closing line:
"Advisory only — not a merge gate. Comment @mutation-review to run this
again." If every mutant was killed, post a one-line comment with the marker,
the score, and a nod that the tests held.git diff --merge-base origin/main), post inline review comments at the
exact file:line — up to 5, highest value first — naming the assertion that
would kill the mutant. Survivors on unchanged lines go in the top-level table
only.Use gh CLI for all GitHub interactions. The head commit is
git rev-parse HEAD.
gh pr comment "$PR" --body-file <file>gh api repos/$REPO/pulls/$PR/comments -f body=... -f commit_id=<sha> -f path=<file> -F line=<n> -f side=RIGHTDo exactly one pass. Do not edit code. Do not re-run mutation testing.
b5a3eaf
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.