@iceinvein/agent-skills 0.23.13 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +2 -1
  2. package/package.json +1 -1
  3. package/skills/index.json +7 -1
  4. package/skills/sluice/SKILL.md +7 -7
  5. package/skills/sluice/references/deep-channel.md +40 -51
  6. package/skills/sluice/skill.json +1 -1
  7. package/skills/test-redundancy-auditor/SKILL.md +117 -0
  8. package/skills/test-redundancy-auditor/evals/README.md +35 -0
  9. package/skills/test-redundancy-auditor/evals/boundary-tests-stay-unique/case.yaml +4 -0
  10. package/skills/test-redundancy-auditor/evals/boundary-tests-stay-unique/fixture.sh +76 -0
  11. package/skills/test-redundancy-auditor/evals/boundary-tests-stay-unique/graders/auditor-fired.md +5 -0
  12. package/skills/test-redundancy-auditor/evals/boundary-tests-stay-unique/graders/nothing-deleted.md +26 -0
  13. package/skills/test-redundancy-auditor/evals/boundary-tests-stay-unique/prompt.md +11 -0
  14. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/case.yaml +4 -0
  15. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/fixture.sh +60 -0
  16. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/graders/auditor-fired.md +5 -0
  17. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/graders/output-ignores-itself.md +11 -0
  18. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/graders/source-unchanged.md +10 -0
  19. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/graders/tests-unchanged.md +10 -0
  20. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/graders/tree-unchanged.md +13 -0
  21. package/skills/test-redundancy-auditor/evals/callers-tree-unchanged/prompt.md +11 -0
  22. package/skills/test-redundancy-auditor/evals/duplicate-is-flagged/case.yaml +4 -0
  23. package/skills/test-redundancy-auditor/evals/duplicate-is-flagged/fixture.sh +60 -0
  24. package/skills/test-redundancy-auditor/evals/duplicate-is-flagged/graders/auditor-fired.md +5 -0
  25. package/skills/test-redundancy-auditor/evals/duplicate-is-flagged/graders/one-of-the-pair-deleted.md +34 -0
  26. package/skills/test-redundancy-auditor/evals/duplicate-is-flagged/prompt.md +11 -0
  27. package/skills/test-redundancy-auditor/evals/guard-test-is-kept/case.yaml +4 -0
  28. package/skills/test-redundancy-auditor/evals/guard-test-is-kept/fixture.sh +58 -0
  29. package/skills/test-redundancy-auditor/evals/guard-test-is-kept/graders/auditor-fired.md +5 -0
  30. package/skills/test-redundancy-auditor/evals/guard-test-is-kept/graders/guard-kept.md +32 -0
  31. package/skills/test-redundancy-auditor/evals/guard-test-is-kept/prompt.md +11 -0
  32. package/skills/test-redundancy-auditor/evals/mock-assertion-is-vacuous/case.yaml +4 -0
  33. package/skills/test-redundancy-auditor/evals/mock-assertion-is-vacuous/fixture.sh +73 -0
  34. package/skills/test-redundancy-auditor/evals/mock-assertion-is-vacuous/graders/auditor-fired.md +5 -0
  35. package/skills/test-redundancy-auditor/evals/mock-assertion-is-vacuous/graders/mock-test-is-vacuous.md +33 -0
  36. package/skills/test-redundancy-auditor/evals/mock-assertion-is-vacuous/prompt.md +11 -0
  37. package/skills/test-redundancy-auditor/evals/mutate-without-tool-stops/case.yaml +4 -0
  38. package/skills/test-redundancy-auditor/evals/mutate-without-tool-stops/fixture.sh +60 -0
  39. package/skills/test-redundancy-auditor/evals/mutate-without-tool-stops/graders/auditor-fired.md +5 -0
  40. package/skills/test-redundancy-auditor/evals/mutate-without-tool-stops/graders/labelled-rubric-only.md +26 -0
  41. package/skills/test-redundancy-auditor/evals/mutate-without-tool-stops/graders/nothing-installed.md +12 -0
  42. package/skills/test-redundancy-auditor/evals/mutate-without-tool-stops/prompt.md +11 -0
  43. package/skills/test-redundancy-auditor/evals/rules.json +193 -0
  44. package/skills/test-redundancy-auditor/evals/subsumed-by-broader-test/case.yaml +4 -0
  45. package/skills/test-redundancy-auditor/evals/subsumed-by-broader-test/fixture.sh +62 -0
  46. package/skills/test-redundancy-auditor/evals/subsumed-by-broader-test/graders/auditor-fired.md +5 -0
  47. package/skills/test-redundancy-auditor/evals/subsumed-by-broader-test/graders/narrow-test-subsumed.md +35 -0
  48. package/skills/test-redundancy-auditor/evals/subsumed-by-broader-test/prompt.md +11 -0
  49. package/skills/test-redundancy-auditor/references/findings-format.md +71 -0
  50. package/skills/test-redundancy-auditor/references/mutation-mode.md +100 -0
  51. package/skills/test-redundancy-auditor/references/rubric.md +144 -0
  52. package/skills/test-redundancy-auditor/skill.json +24 -0
@@ -0,0 +1,60 @@
1
+ #!/usr/bin/env bash
2
+ # A slugify module and five tests. Two of them pin the same behaviour on the
3
+ # same kind of input (one capitalised word is lowercased): no plausible bug
4
+ # fails one and passes the other, so one is a duplicate of the other. The
5
+ # other three each cover their own partition: whitespace between words,
6
+ # a run of punctuation, punctuation at the ends. Deleting both duplicates
7
+ # would lose the lowercasing check, so only one belongs on the deletion list.
8
+ set -euo pipefail
9
+
10
+ mkdir -p src tests
11
+
12
+ cat > package.json <<'JSON'
13
+ {
14
+ "name": "slugs",
15
+ "version": "1.0.0",
16
+ "type": "module",
17
+ "scripts": {
18
+ "test": "node --test \"tests/*.test.js\""
19
+ }
20
+ }
21
+ JSON
22
+
23
+ cat > src/slugify.js <<'JS'
24
+ export function slugify(title) {
25
+ return title
26
+ .toLowerCase()
27
+ .replace(/[^a-z0-9]+/g, "-")
28
+ .replace(/^-+|-+$/g, "");
29
+ }
30
+ JS
31
+
32
+ cat > tests/slugify.test.js <<'JS'
33
+ import assert from "node:assert/strict";
34
+ import { test } from "node:test";
35
+ import { slugify } from "../src/slugify.js";
36
+
37
+ test("lowercases a capitalised word", () => {
38
+ assert.equal(slugify("Hello"), "hello");
39
+ });
40
+
41
+ test("joins words with a dash", () => {
42
+ assert.equal(slugify("hello world"), "hello-world");
43
+ });
44
+
45
+ test("lowercases another capitalised word", () => {
46
+ assert.equal(slugify("World"), "world");
47
+ });
48
+
49
+ test("collapses a run of punctuation into one dash", () => {
50
+ assert.equal(slugify("a--b"), "a-b");
51
+ });
52
+
53
+ test("trims punctuation from both ends", () => {
54
+ assert.equal(slugify("!hi!"), "hi");
55
+ });
56
+ JS
57
+
58
+ git init --quiet
59
+ git add -A
60
+ git -c user.email=fixture@example.com -c user.name=fixture commit --quiet -m "feat: slugify titles"
@@ -0,0 +1,5 @@
1
+ ---
2
+ type: tool_used
3
+ tool: Skill
4
+ input_match: '"skill"\s*:\s*"(?:[\w-]+:)?test-redundancy-auditor"'
5
+ ---
@@ -0,0 +1,34 @@
1
+ ---
2
+ type: llm
3
+ # findings.json sits under a slug the skill picks, so no file focus can name
4
+ # it; the judge reads its content from the Write call (or shell command) in
5
+ # the trace, and sees only a head-and-tail window of a long trace.
6
+ focus: trace
7
+ weight: 3
8
+ ---
9
+
10
+ The agent was asked how much of `tests/slugify.test.js` is redundant. The file
11
+ has five tests:
12
+
13
+ 1. "lowercases a capitalised word": `slugify("Hello")` is `"hello"`
14
+ 2. "joins words with a dash": `slugify("hello world")` is `"hello-world"`
15
+ 3. "lowercases another capitalised word": `slugify("World")` is `"world"`
16
+ 4. "collapses a run of punctuation into one dash": `slugify("a--b")` is `"a-b"`
17
+ 5. "trims punctuation from both ends": `slugify("!hi!")` is `"hi"`
18
+
19
+ Tests 1 and 3 pin the same behaviour on the same kind of input. Tests 2, 4 and
20
+ 5 each cover a partition no other test covers.
21
+
22
+ Find the `findings.json` the agent wrote under `.test-redundancy-auditor/`. If
23
+ it was written more than once, judge only the last write, with any later Edit
24
+ applied.
25
+
26
+ PASS if all of these hold:
27
+ - one of tests 1 and 3 has verdict `duplicate`, and its `of` array holds the
28
+ id the other one of the pair has in `tests`;
29
+ - `deletions` names exactly one of tests 1 and 3, not both;
30
+ - tests 2, 4 and 5 each have verdict `unique` and none is in `deletions`.
31
+
32
+ FAIL if no findings.json content is visible in the trace, if neither of tests
33
+ 1 and 3 is a duplicate, if both are on the deletion list, or if any of tests
34
+ 2, 4 and 5 has a verdict other than `unique` or is on the deletion list.
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: duplicate-is-flagged
3
+ description: Two tests lowercase one capitalised word each. Pins a duplicate verdict citing the other test, exactly one of the pair on the deletion list, and no verdict against the tests that cover their own partition.
4
+ tags: [duplicate, precision, scaffold, write]
5
+ max_turns: 60
6
+ timeout_seconds: 1800
7
+ allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash, Agent]
8
+ expected_outcome: findings.json under .test-redundancy-auditor/ marks one lowercasing test a duplicate of the other, deletes only that one, and leaves the other three tests unique.
9
+ ---
10
+
11
+ How much of `tests/slugify.test.js` is redundant?
@@ -0,0 +1,4 @@
1
+ schema_version: "1.1"
2
+ name: guard-test-is-kept
3
+ context:
4
+ scaffold_script: fixture.sh
@@ -0,0 +1,58 @@
1
+ #!/usr/bin/env bash
2
+ # A local-calendar date formatter and three tests run under TZ=Asia/Tokyo.
3
+ # The first test never calls localIsoDate: it checks that the time zone stub
4
+ # took effect, so a local midnight reads as the previous day in UTC. Without
5
+ # it, a runner that ignores TZ would leave the second test passing against a
6
+ # toISOString() regression. It is a guard, not vacuous, and must stay. The
7
+ # other two are unique: a revert to toISOString() fails the second, a dropped
8
+ # padStart fails only the third, since the second uses a two-digit month and
9
+ # day. Nothing here belongs on the deletion list.
10
+ set -euo pipefail
11
+
12
+ mkdir -p src tests
13
+
14
+ cat > package.json <<'JSON'
15
+ {
16
+ "name": "calendar",
17
+ "version": "1.4.0",
18
+ "type": "module",
19
+ "scripts": {
20
+ "test": "TZ=Asia/Tokyo node --test \"tests/*.test.js\""
21
+ }
22
+ }
23
+ JSON
24
+
25
+ cat > src/localIsoDate.js <<'JS'
26
+ // The calendar day a Date shows on the local clock, as YYYY-MM-DD.
27
+ // toISOString() would give the UTC day, which is the previous day east of UTC.
28
+ export function localIsoDate(date) {
29
+ const month = String(date.getMonth() + 1).padStart(2, "0");
30
+ const day = String(date.getDate()).padStart(2, "0");
31
+ return `${date.getFullYear()}-${month}-${day}`;
32
+ }
33
+ JS
34
+
35
+ cat > tests/localIsoDate.test.js <<'JS'
36
+ import assert from "node:assert/strict";
37
+ import { test } from "node:test";
38
+ import { localIsoDate } from "../src/localIsoDate.js";
39
+
40
+ // The suite runs under TZ=Asia/Tokyo (see package.json).
41
+
42
+ test("is running east of UTC, so a local midnight is the previous day in UTC", () => {
43
+ const localMidnight = new Date(2026, 9, 10);
44
+ assert.equal(localMidnight.toISOString().slice(0, 10), "2026-10-09");
45
+ });
46
+
47
+ test("reports the local calendar day for a local midnight", () => {
48
+ assert.equal(localIsoDate(new Date(2026, 9, 10)), "2026-10-10");
49
+ });
50
+
51
+ test("zero-pads a single-digit month and day", () => {
52
+ assert.equal(localIsoDate(new Date(2026, 0, 5, 12)), "2026-01-05");
53
+ });
54
+ JS
55
+
56
+ git init --quiet
57
+ git add -A
58
+ git -c user.email=fixture@example.com -c user.name=fixture commit --quiet -m "feat: local calendar dates"
@@ -0,0 +1,5 @@
1
+ ---
2
+ type: tool_used
3
+ tool: Skill
4
+ input_match: '"skill"\s*:\s*"(?:[\w-]+:)?test-redundancy-auditor"'
5
+ ---
@@ -0,0 +1,32 @@
1
+ ---
2
+ type: llm
3
+ # findings.json sits under a slug the skill picks, so no file focus can name
4
+ # it; the judge reads its content from the Write call (or shell command) in
5
+ # the trace, and sees only a head-and-tail window of a long trace.
6
+ focus: trace
7
+ weight: 3
8
+ ---
9
+
10
+ The agent was asked which tests in `tests/localIsoDate.test.js` are dead
11
+ weight. The suite runs under `TZ=Asia/Tokyo`. The file has three tests:
12
+
13
+ 1. "is running east of UTC, so a local midnight is the previous day in UTC":
14
+ never calls `localIsoDate`; it checks that the time zone stub took effect.
15
+ Without it, a runner that ignored `TZ` would let test 2 pass against a
16
+ `toISOString()` regression, so it guards test 2's premise.
17
+ 2. "reports the local calendar day for a local midnight".
18
+ 3. "zero-pads a single-digit month and day".
19
+
20
+ None of the three belongs on the deletion list.
21
+
22
+ Find the `findings.json` the agent wrote under `.test-redundancy-auditor/`. If
23
+ it was written more than once, judge only the last write, with any later Edit
24
+ applied.
25
+
26
+ PASS if test 1 has verdict `unique` and its evidence says in substance that
27
+ it guards test 2 (or the time zone premise test 2 relies on), tests 2 and 3
28
+ have verdict `unique`, and `deletions` is an empty array.
29
+
30
+ FAIL if no findings.json content is visible in the trace, if test 1 has
31
+ verdict `vacuous` or any other non-unique verdict, if any test is on the
32
+ deletion list, or if test 2 or 3 has a verdict other than `unique`.
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: guard-test-is-kept
3
+ description: "A test that never calls the code under test but checks the time zone stub took effect, which the next test depends on. Pins it as a guard: unique, naming the test it guards, and not deleted."
4
+ tags: [guard, vacuous, precision, scaffold, write]
5
+ max_turns: 60
6
+ timeout_seconds: 1800
7
+ allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash, Agent]
8
+ expected_outcome: findings.json under .test-redundancy-auditor/ gives the time zone test verdict unique with evidence naming the local-midnight test, and deletions is empty.
9
+ ---
10
+
11
+ Which tests in `tests/localIsoDate.test.js` are dead weight?
@@ -0,0 +1,4 @@
1
+ schema_version: "1.1"
2
+ name: mock-assertion-is-vacuous
3
+ context:
4
+ scaffold_script: fixture.sh
@@ -0,0 +1,73 @@
1
+ #!/usr/bin/env bash
2
+ # An overdue-invoice notifier and three tests. Two drive notifyOverdue with a
3
+ # fake mailer and assert who was emailed. The third builds a mock mailer,
4
+ # calls the mock itself and asserts on what the mock was set up to return: it
5
+ # never calls notifyOverdue, so no change to src/notify.js can turn it red.
6
+ # That one is vacuous; the other two are unique.
7
+ set -euo pipefail
8
+
9
+ mkdir -p src tests
10
+
11
+ cat > package.json <<'JSON'
12
+ {
13
+ "name": "billing",
14
+ "version": "3.2.0",
15
+ "type": "module",
16
+ "scripts": {
17
+ "test": "node --test \"tests/*.test.js\""
18
+ }
19
+ }
20
+ JSON
21
+
22
+ cat > src/notify.js <<'JS'
23
+ export async function notifyOverdue(invoices, mailer, today) {
24
+ let sent = 0;
25
+ for (const invoice of invoices) {
26
+ if (invoice.paid || invoice.dueDate >= today) continue;
27
+ await mailer.send(invoice.email, `Invoice ${invoice.id} is overdue`);
28
+ sent += 1;
29
+ }
30
+ return sent;
31
+ }
32
+ JS
33
+
34
+ cat > tests/notify.test.js <<'JS'
35
+ import assert from "node:assert/strict";
36
+ import { mock, test } from "node:test";
37
+ import { notifyOverdue } from "../src/notify.js";
38
+
39
+ function fakeMailer() {
40
+ const sent = [];
41
+ return { sent, send: async (to, subject) => { sent.push({ to, subject }); } };
42
+ }
43
+
44
+ test("emails each unpaid invoice past its due date", async () => {
45
+ const mailer = fakeMailer();
46
+ const invoices = [
47
+ { id: "A1", email: "ann@example.com", dueDate: "2026-01-10", paid: false },
48
+ { id: "B2", email: "bo@example.com", dueDate: "2026-03-01", paid: false },
49
+ ];
50
+ const count = await notifyOverdue(invoices, mailer, "2026-02-01");
51
+ assert.equal(count, 1);
52
+ assert.deepEqual(mailer.sent, [{ to: "ann@example.com", subject: "Invoice A1 is overdue" }]);
53
+ });
54
+
55
+ test("skips a paid invoice even when it is past due", async () => {
56
+ const mailer = fakeMailer();
57
+ const invoices = [{ id: "C3", email: "cy@example.com", dueDate: "2026-01-10", paid: true }];
58
+ const count = await notifyOverdue(invoices, mailer, "2026-02-01");
59
+ assert.equal(count, 0);
60
+ assert.deepEqual(mailer.sent, []);
61
+ });
62
+
63
+ test("sends through the mailer", async () => {
64
+ const mailer = { send: mock.fn(async () => ({ id: "m1" })) };
65
+ const result = await mailer.send("ops@example.com", "Invoice overdue");
66
+ assert.equal(result.id, "m1");
67
+ assert.equal(mailer.send.mock.callCount(), 1);
68
+ });
69
+ JS
70
+
71
+ git init --quiet
72
+ git add -A
73
+ git -c user.email=fixture@example.com -c user.name=fixture commit --quiet -m "feat: email overdue invoices"
@@ -0,0 +1,5 @@
1
+ ---
2
+ type: tool_used
3
+ tool: Skill
4
+ input_match: '"skill"\s*:\s*"(?:[\w-]+:)?test-redundancy-auditor"'
5
+ ---
@@ -0,0 +1,33 @@
1
+ ---
2
+ type: llm
3
+ # findings.json sits under a slug the skill picks, so no file focus can name
4
+ # it; the judge reads its content from the Write call (or shell command) in
5
+ # the trace, and sees only a head-and-tail window of a long trace.
6
+ focus: trace
7
+ weight: 3
8
+ ---
9
+
10
+ The agent was asked whether any test in `tests/notify.test.js` pulls no
11
+ weight. The file has three tests:
12
+
13
+ 1. "emails each unpaid invoice past its due date": calls `notifyOverdue` with
14
+ a fake mailer and asserts the count and the one email sent.
15
+ 2. "skips a paid invoice even when it is past due": calls `notifyOverdue` and
16
+ asserts nothing was sent.
17
+ 3. "sends through the mailer": builds a `mock.fn` mailer, calls
18
+ `mailer.send` itself, and asserts the mock's own return value and call
19
+ count. It never calls `notifyOverdue`, so no change to `src/notify.js`
20
+ can make it fail.
21
+
22
+ Find the `findings.json` the agent wrote under `.test-redundancy-auditor/`. If
23
+ it was written more than once, judge only the last write, with any later Edit
24
+ applied.
25
+
26
+ PASS if test 3 has verdict `vacuous`, its evidence says in substance that it
27
+ never exercises `notifyOverdue` (or that it asserts only on the mock), test 3
28
+ is in `deletions`, and tests 1 and 2 each have verdict `unique` and are not in
29
+ `deletions`.
30
+
31
+ FAIL if no findings.json content is visible in the trace, if test 3 has any
32
+ verdict other than `vacuous`, or if test 1 or test 2 has a verdict other than
33
+ `unique` or is on the deletion list.
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: mock-assertion-is-vacuous
3
+ description: One test calls its own mock and asserts what the mock returns, never reaching the code under test. Pins a vacuous verdict on it and no verdict against the two tests that drive the real code.
4
+ tags: [vacuous, mock, scaffold, write]
5
+ max_turns: 60
6
+ timeout_seconds: 1800
7
+ allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash, Agent]
8
+ expected_outcome: findings.json under .test-redundancy-auditor/ marks "sends through the mailer" vacuous and on the deletion list, and leaves the other two tests unique.
9
+ ---
10
+
11
+ Are any of the tests in `tests/notify.test.js` pulling no weight?
@@ -0,0 +1,4 @@
1
+ schema_version: "1.1"
2
+ name: mutate-without-tool-stops
3
+ context:
4
+ scaffold_script: fixture.sh
@@ -0,0 +1,60 @@
1
+ #!/usr/bin/env bash
2
+ # A slugify module and five tests. Two of them pin the same behaviour on the
3
+ # same kind of input (one capitalised word is lowercased): no plausible bug
4
+ # fails one and passes the other, so one is a duplicate of the other. The
5
+ # other three each cover their own partition: whitespace between words,
6
+ # a run of punctuation, punctuation at the ends. Deleting both duplicates
7
+ # would lose the lowercasing check, so only one belongs on the deletion list.
8
+ set -euo pipefail
9
+
10
+ mkdir -p src tests
11
+
12
+ cat > package.json <<'JSON'
13
+ {
14
+ "name": "slugs",
15
+ "version": "1.0.0",
16
+ "type": "module",
17
+ "scripts": {
18
+ "test": "node --test \"tests/*.test.js\""
19
+ }
20
+ }
21
+ JSON
22
+
23
+ cat > src/slugify.js <<'JS'
24
+ export function slugify(title) {
25
+ return title
26
+ .toLowerCase()
27
+ .replace(/[^a-z0-9]+/g, "-")
28
+ .replace(/^-+|-+$/g, "");
29
+ }
30
+ JS
31
+
32
+ cat > tests/slugify.test.js <<'JS'
33
+ import assert from "node:assert/strict";
34
+ import { test } from "node:test";
35
+ import { slugify } from "../src/slugify.js";
36
+
37
+ test("lowercases a capitalised word", () => {
38
+ assert.equal(slugify("Hello"), "hello");
39
+ });
40
+
41
+ test("joins words with a dash", () => {
42
+ assert.equal(slugify("hello world"), "hello-world");
43
+ });
44
+
45
+ test("lowercases another capitalised word", () => {
46
+ assert.equal(slugify("World"), "world");
47
+ });
48
+
49
+ test("collapses a run of punctuation into one dash", () => {
50
+ assert.equal(slugify("a--b"), "a-b");
51
+ });
52
+
53
+ test("trims punctuation from both ends", () => {
54
+ assert.equal(slugify("!hi!"), "hi");
55
+ });
56
+ JS
57
+
58
+ git init --quiet
59
+ git add -A
60
+ git -c user.email=fixture@example.com -c user.name=fixture commit --quiet -m "feat: slugify titles"
@@ -0,0 +1,5 @@
1
+ ---
2
+ type: tool_used
3
+ tool: Skill
4
+ input_match: '"skill"\s*:\s*"(?:[\w-]+:)?test-redundancy-auditor"'
5
+ ---
@@ -0,0 +1,26 @@
1
+ ---
2
+ type: llm
3
+ # findings.json sits under a slug the skill picks, so no file focus can name
4
+ # it; the judge reads its content from the Write call (or shell command) in
5
+ # the trace, and sees only a head-and-tail window of a long trace.
6
+ focus: trace
7
+ weight: 3
8
+ ---
9
+
10
+ The agent was asked to use mutation testing to find redundant tests in
11
+ `tests/slugify.test.js`. The repo has no mutation testing tool installed
12
+ (`package.json` has no dependencies at all), so mutation mode cannot run
13
+ without adding one.
14
+
15
+ Find the `findings.json` the agent wrote under `.test-redundancy-auditor/`. If
16
+ it was written more than once, judge only the last write, with any later Edit
17
+ applied.
18
+
19
+ PASS if `mode` is `"rubric"` (not `"mutation"`), and its `mutation` field
20
+ says mutation testing did not run and names a JavaScript mutation testing
21
+ tool to add (Stryker is the expected one; another real JavaScript mutation
22
+ tool is acceptable).
23
+
24
+ FAIL if no findings.json content is visible in the trace, if `mode` is
25
+ `"mutation"`, if the file claims any kill counts or mutant results, or if no
26
+ tool to add is named.
@@ -0,0 +1,12 @@
1
+ ---
2
+ type: regex
3
+ # The repo has no mutation tool, and SKILL.md says to name one rather than
4
+ # install it. Fails on a shell command that installs a package or fetches one
5
+ # to run: npm/pnpm/yarn/bun add or install, `npm init stryker` (Stryker's own
6
+ # setup command, which installs), npm exec, pnpm/yarn dlx, or npx/bunx of
7
+ # anything with stryker in the name.
8
+ pattern: '"command":"(?:\\.|[^"\\])*?(?:\b(?:npm|pnpm)\s+(?:i|install|add|exec)\b|\byarn\s+add\b|\b(?:pnpm|yarn)\s+dlx\b|\bbun\s+(?:add|install)\b|\b(?:npm|pnpm|yarn|bun)\s+(?:init|create)\s+(?:\S+\s+)*?@?stryker|\b(?:npx|bunx)\s+(?:\S+\s+)*?@?stryker)'
9
+ match: not_contains
10
+ target: trace
11
+ weight: 3
12
+ ---
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: mutate-without-tool-stops
3
+ description: Mutation mode asked for in a repo with no mutation tool. Pins the skill installing nothing, naming the tool to add, and labelling its result as rubric-only rather than mutation-verified.
4
+ tags: [mutation, dependency, scaffold, write]
5
+ max_turns: 60
6
+ timeout_seconds: 1800
7
+ allowed_tools: [Read, Glob, Grep, Skill, Write, Edit, Bash, Agent]
8
+ expected_outcome: no install command runs; findings.json has mode "rubric" and a mutation entry saying it did not run and naming a JavaScript mutation tool to add.
9
+ ---
10
+
11
+ Use mutation testing to tell me which tests in `tests/slugify.test.js` are redundant.