@mrciphersmith/keryx 0.4.27 → 0.4.29

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 (97) hide show
  1. package/README.md +2 -2
  2. package/dist/cli.js +105640 -105242
  3. package/dist/core.js +24 -200
  4. package/dist/keryx-general-worker-entry.js +355 -418
  5. package/package.json +3 -3
  6. package/src/gdskills/bundled/agents/work-planner.md +1 -1
  7. package/src/gdskills/bundled/install-manifest.json +4 -26
  8. package/src/gdskills/bundled/rules/core/clean-architecture.mdc +25 -153
  9. package/src/gdskills/bundled/rules/core/code-review-learned-profile.mdc +1 -2
  10. package/src/gdskills/bundled/rules/core/code-style-patterns.mdc +1 -0
  11. package/src/gdskills/bundled/rules/core/definition-of-done.mdc +0 -1
  12. package/src/gdskills/bundled/rules/core/error-handling.mdc +57 -108
  13. package/src/gdskills/bundled/rules/core/implementation-doc-mandate.mdc +4 -5
  14. package/src/gdskills/bundled/rules/core/jobs-documentation.mdc +8 -8
  15. package/src/gdskills/bundled/rules/core/skill-authoring.mdc +190 -0
  16. package/src/gdskills/bundled/rules/core/skills-storage-workflow.mdc +12 -10
  17. package/src/gdskills/bundled/rules/core/solid-principles.mdc +48 -123
  18. package/src/gdskills/bundled/skills/core/reviewer-skill-creator/SKILL.md +1 -1
  19. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.md +12 -21
  20. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.md +3 -3
  21. package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/SKILL.md +1 -1
  22. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.md +1 -1
  23. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.md +2 -2
  24. package/src/gdskills/bundled/skills/orchestration/task-implementer/input-contract.schema.json +1 -1
  25. package/src/gdskills/bundled/skills/planning/autodoc-orchestrator/SKILL.md +1 -1
  26. package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.md +1 -1
  27. package/src/gdskills/bundled/skills/planning/interview/SKILL.md +3 -4
  28. package/src/gdskills/bundled/skills/planning/interviewer/SKILL.md +1 -1
  29. package/src/gdskills/bundled/skills/quality/git-publish/SKILL.md +60 -0
  30. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.md +1 -1
  31. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.md +1 -1
  32. package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.md +3 -3
  33. package/src/gdskills/bundled/skills/review/review-architecture/SKILL.md +6 -6
  34. package/src/gdskills/bundled/skills/review/review-backend/SKILL.md +23 -25
  35. package/src/gdskills/bundled/skills/review/review-clean-code/SKILL.md +100 -421
  36. package/src/gdskills/bundled/skills/review/review-core-boundaries/SKILL.md +2 -2
  37. package/src/gdskills/bundled/skills/review/review-degradation/SKILL.md +6 -6
  38. package/src/gdskills/bundled/skills/review/review-flow-graph/SKILL.md +1 -1
  39. package/src/gdskills/bundled/skills/review/review-frontend/SKILL.md +36 -33
  40. package/src/gdskills/bundled/skills/review/review-frontend-conventions/SKILL.md +1 -1
  41. package/src/gdskills/bundled/skills/review/review-highload/SKILL.md +63 -134
  42. package/src/gdskills/bundled/skills/review/review-logic/SKILL.md +4 -5
  43. package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.detail.md +18 -20
  44. package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +12 -18
  45. package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-finding.schema.json +2 -2
  46. package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-input.schema.json +2 -10
  47. package/src/gdskills/bundled/skills/review/review-performance/SKILL.md +35 -35
  48. package/src/gdskills/bundled/skills/review/review-pr-contract/SKILL.md +4 -5
  49. package/src/gdskills/bundled/skills/review/review-premise/SKILL.md +2 -2
  50. package/src/gdskills/bundled/skills/review/review-regression/SKILL.md +2 -4
  51. package/src/gdskills/bundled/skills/review/review-security-code/SKILL.md +13 -14
  52. package/src/gdskills/bundled/skills/review/review-style/SKILL.md +41 -44
  53. package/src/gdskills/bundled/skills/review/review-testing-practices/SKILL.md +10 -10
  54. package/src/gdskills/bundled/skills/review/review-ui-ux/SKILL.md +10 -11
  55. package/src/gdskills/bundled/skills/review/review-verifier/SKILL.md +5 -5
  56. package/src/gdskills/bundled/skills/shared/git-merge-base.md +1 -1
  57. package/src/gdskills/bundled/stacks/csharp-dotnet/rules/patterns.mdc +4 -3
  58. package/src/gdskills/bundled/stacks/java-kotlin-spring/rules/coding-style.mdc +3 -3
  59. package/src/gdskills/bundled/stacks/mobx/agent-refs.json +1 -1
  60. package/src/gdskills/bundled/stacks/mobx/governance/scout.json +2 -2
  61. package/src/gdskills/bundled/stacks/mobx/skills/mobx-store-implementation/SKILL.md +2 -2
  62. package/src/gdskills/bundled/stacks/ruby-rails/rules/coding-style.mdc +4 -4
  63. package/src/gdskills/bundled/stacks/vue/governance/scout.json +1 -1
  64. package/src/gdskills/contracts/review-finding.schema.json +2 -2
  65. package/src/gdskills/bundled/rules/core/code-review-ai-assistant.mdc +0 -49
  66. package/src/gdskills/bundled/rules/core/gproject-contracts.mdc +0 -198
  67. package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.md +0 -177
  68. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.md +0 -414
  69. package/src/gdskills/bundled/skills/orchestration/job-documenter/input-contract.schema.json +0 -55
  70. package/src/gdskills/bundled/skills/orchestration/job-documenter/output-contract.schema.json +0 -58
  71. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.codex.md +0 -209
  72. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.cursor.md +0 -209
  73. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.md +0 -208
  74. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.codex.md +0 -255
  75. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.cursor.md +0 -255
  76. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.md +0 -254
  77. package/src/gdskills/bundled/skills/planning/planner/SKILL.codex.md +0 -209
  78. package/src/gdskills/bundled/skills/planning/planner/SKILL.cursor.md +0 -209
  79. package/src/gdskills/bundled/skills/planning/planner/SKILL.md +0 -208
  80. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.codex.md +0 -171
  81. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.cursor.md +0 -171
  82. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.md +0 -170
  83. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.codex.md +0 -184
  84. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.cursor.md +0 -184
  85. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.md +0 -183
  86. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.codex.md +0 -249
  87. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.cursor.md +0 -249
  88. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.md +0 -248
  89. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.codex.md +0 -199
  90. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.cursor.md +0 -199
  91. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.md +0 -198
  92. package/src/gdskills/bundled/skills/quality/commit/SKILL.md +0 -87
  93. package/src/gdskills/bundled/skills/quality/pr/SKILL.md +0 -95
  94. package/src/gdskills/bundled/skills/quality/push/SKILL.md +0 -73
  95. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.md +0 -238
  96. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.md +0 -301
  97. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.md +0 -208
@@ -15,7 +15,7 @@ triggers:
15
15
  - "check readability"
16
16
  metadata:
17
17
  author: "MrCipherSmith"
18
- version: "1.0.0"
18
+ version: "1.3.0"
19
19
  category: "review"
20
20
  compatible_harnesses: "cursor,codex,zed,opencode,claude"
21
21
  license: "MIT"
@@ -27,6 +27,20 @@ Focused style reviewer. Covers naming conventions, dead code, readability, DRY v
27
27
  import organization, comment quality, file length, cyclomatic complexity, and console noise.
28
28
  Never touches logic correctness, architecture, security, or performance. Its inputs are the reviewer payload only; session memory and earlier conversation are not inputs. It runs no command unless its payload's `allowed_tools` says `run-tests`, except the read-only `git log`, `git blame` and `git show` where its host gives a read-only child git (keryx shell does not: there the payload supplies the history).
29
29
 
30
+ ## The standard
31
+
32
+ Read `.metaproject/rules/core/solid-principles.mdc` before the diff: it is the
33
+ file the code was written against. Its **Readability thresholds** table is this
34
+ lens's thresholds and default severities; under a threshold, report nothing.
35
+
36
+ Duplication, magic literals, names and comments are rated by `review-clean-code`
37
+ from the same file. `--frontend` dispatches this lens without it, so report those
38
+ signals here at that lens's threshold and severity, never a stricter one: one
39
+ condition must not carry two outcomes.
40
+
41
+ A threshold counts only when this change crosses it: one more line in a file
42
+ already past a length limit is not a finding.
43
+
30
44
  ---
31
45
 
32
46
  ## Workflow
@@ -78,23 +92,14 @@ git diff --name-status "${BASE_SHA}" && git diff "${BASE_SHA}" && git ls-files -
78
92
 
79
93
  ### 1. Naming Conventions
80
94
 
95
+ Casing, boolean prefixes and verb names follow the language's published defaults; report a departure only where the surrounding code follows the default.
96
+
81
97
  **Variables and functions**
82
- - `camelCase` for variables, function parameters, and function names
83
- - `PascalCase` for classes, interfaces, enums, and React components
84
- - `UPPER_SNAKE_CASE` for module-level constants (truly constant values, not `let` reassigned as constants)
85
- - Boolean variables/functions prefixed with `is`, `has`, `can`, `should` (e.g., `isLoading`, `hasAccess`)
86
- - Avoid single-letter names except in short array callbacks (`arr.map(x => x.id)` acceptable; `let x = fetchUser()` is not)
87
- - Avoid abbreviations that are not universally understood (`usr`, `mgr`, `repo` vs `repository`)
88
-
89
- **Functions**
90
- - Function names are verbs or verb phrases: `getUser`, `handleSubmit`, `parseConfig`
91
- - Event handlers prefixed with `on` or `handle`: `onSubmit`, `handleClick`
92
- - Predicate functions return boolean and are named accordingly: `isValid()`, not `checkValid()`
98
+ - Single-letter names only for loop counters and short array callbacks (`arr.map(x => x.id)`); `let x = fetchUser()` is a finding (`review-clean-code`'s Name row)
93
99
 
94
100
  **Classes and interfaces**
95
- - Interface names use `I` prefix: `IUserService`, `IAuthGuard`
101
+ - Interfaces are named without an `I` prefix (`UserService`, not `IUserService`); an `I` prefix the change introduces is a finding
96
102
  - Enum members: `UPPER_SNAKE_CASE` or `PascalCase` — whichever the project uses consistently; flag inconsistency
97
- - Type alias names: `PascalCase`
98
103
 
99
104
  **Files and directories**
100
105
  - File names match the primary export: `UserService` → `user.service.ts`
@@ -109,7 +114,7 @@ Naming severity is set by the Style laws below and by the canonical rubric in `r
109
114
  - Unused variables (`const x = ...` never referenced) — flag as `minor`
110
115
  - Unused function parameters in non-interface-implementing functions — flag as `minor`
111
116
  - Unused imports — flag as `minor`; provide the removal patch
112
- - Commented-out code blocks (more than one line) — flag as `minor`; ask: "Is this intentional? If not, remove."
117
+ - Commented-out code — flag as `minor` (`review-clean-code`'s Comment row); ask: "Is this intentional? If not, remove."
113
118
  - Exported functions/classes that are never imported anywhere in the diff scope — flag as `info`
114
119
  (may be used externally; do not assume dead without evidence)
115
120
 
@@ -118,29 +123,24 @@ Naming severity is set by the Style laws below and by the canonical rubric in `r
118
123
  ### 3. Readability and Complexity
119
124
 
120
125
  **Conditions**
121
- - Overly complex boolean conditions (more than 3 clauses without parentheses grouping) — flag as `minor`; suggest extracting to a named predicate
126
+ - A boolean condition over the clause threshold — suggest extracting a named predicate
122
127
  - Double negatives (`!isNotEmpty`) — flag as `minor`; rewrite to positive form
123
128
  - Ternary chains (ternary inside ternary) — flag as `minor`; suggest `if/else` or early return
124
129
 
125
130
  **Nesting**
126
- - Functions with callback nesting deeper than 3 levels — flag as `minor`; suggest extraction or `async/await`
127
- - `if/else` trees deeper than 3 levels — flag as `minor`; suggest guard clauses (early returns)
131
+ - Callback or `if/else` nesting over the depth threshold — suggest extraction, `async/await` or guard clauses
128
132
 
129
- **Magic numbers**
130
- - Numeric or string literals used in logic without a named constant — flag as `minor`
131
- - Exception: index `0`, `1`, `-1`, empty string `""`, and HTTP status codes when the context is obvious
132
- - Suggest: `const MAX_RETRY_COUNT = 3;`
133
+ **Magic literals**
134
+ - A numeric or string literal with business meaning and no named constant, including one repeated across places — flag as `minor`; neutral values are not findings (`review-clean-code`'s Magic number row)
133
135
 
134
136
  **Cyclomatic complexity**
135
- - Functions with more than 10 decision branches (if/else/switch cases/ternary/loop) — flag as `minor`
136
- - Suggest splitting into smaller, named functions
137
+ - A function over the decision-branch threshold (if/else, switch cases, ternaries, loops) — suggest splitting into named functions
137
138
 
138
139
  ---
139
140
 
140
141
  ### 4. DRY Violations
141
142
 
142
- - Clearly duplicated logic blocks (same or near-identical code in two places within the diff) — flag as `major` if the blocks are non-trivial (>5 lines), `minor` if small
143
- - Duplicated string literals used in multiple places — flag as `info`; suggest a shared constant
143
+ - Duplicated logic block in 3 or more copies (`solid-principles.mdc` Thresholds) — flag as `minor`, one finding listing every copy; 2 copies is not a finding
144
144
  - Similar switch/if-else trees that could be a lookup map — flag as `minor`
145
145
 
146
146
  Do not flag DRY violations for code outside the diff even if legacy duplication exists.
@@ -149,10 +149,8 @@ Do not flag DRY violations for code outside the diff even if legacy duplication
149
149
 
150
150
  ### 5. Import Organization
151
151
 
152
- - Imports must be grouped (framework/library imports first, then project imports, then relative imports); blank line between groups
153
- - Imports within a group should be alphabetically sorted (or consistently ordered — match project convention)
154
152
  - Barrel imports (`import * as X from '...'`) without reason — flag as `info`
155
- - Circular imports (visible from import paths) — flag as `major`
153
+ - Circular imports (visible from import paths) — flag as `minor`; `review-architecture` owns the rating, and one that fails at runtime is its finding
156
154
  - Re-exporting something that is immediately re-used in the same file — flag as `minor` (unnecessary indirection)
157
155
 
158
156
  ---
@@ -161,25 +159,24 @@ Do not flag DRY violations for code outside the diff even if legacy duplication
161
159
 
162
160
  **Misleading or outdated comments**
163
161
  - Comment describes what the code does but the code has changed — flag as `minor`
164
- - Comment says "TODO: remove before deploy" and was merged — flag as `major`
165
- - Comment is actively wrong (incorrect description of behavior) — flag as `major`
162
+ - Comment says "TODO: remove before deploy" and was merged — flag as `minor`
163
+ - Comment is actively wrong (incorrect description of behavior) — flag as `minor` (`review-clean-code` owns comment ratings; a defect the comment caused is that defect's finding)
166
164
 
167
165
  **Missing JSDoc on public APIs**
168
166
  - Public functions/classes exported from a module should have a JSDoc comment describing purpose, params, and return value
169
167
  - Missing JSDoc on public APIs: flag as `info` (unless the project has a documented standard requiring it, in which case `minor`)
170
168
 
171
169
  **Noise comments**
172
- - `// increment i` above `i++` — flag as `info`; suggest removing
170
+ - A redundant comment (`// increment i` above `i++`) — flag as `minor` (`review-clean-code`'s Comment row); suggest removing
173
171
  - Section divider comments (`// =========`) that add no semantic value — flag as `info`
174
172
 
175
173
  ---
176
174
 
177
175
  ### 7. File Length and Structure
178
176
 
179
- - Files exceeding 500 lines (excluding generated code, test fixtures, and migration files) — flag as `info` with a suggestion to split by responsibility
180
- - Files exceeding 800 lines — flag as `minor`
181
- - Single file exporting more than 5 unrelated things — flag as `minor`; suggest splitting into focused modules
182
- - Test files: no limit enforced; complexity handled by test count and grouping
177
+ - A file over a length threshold — suggest splitting by responsibility
178
+ - A file over the unrelated-exports threshold — suggest splitting into focused modules
179
+ - A React component file whose parts are out of order (imports, interfaces, component, helpers) — flag as `minor`
183
180
 
184
181
  ---
185
182
 
@@ -211,8 +208,8 @@ boundary is the trigger-and-outcome test.
211
208
  |------|-----------|
212
209
  | Style findings are **never** `blocker` | None of the four merge-blocking shapes is reachable from a style observation. This reviewer's finding format omits `blocker` for that reason |
213
210
  | A naming issue is `minor`; it reaches `major` only when the name has already produced an observable wrong outcome at a call site you can name | Identical to `review-clean-code` law 2, deliberately: the same condition must not carry two severities |
214
- | Duplication is `minor`, reported once with every site listed | Identical to `review-clean-code` law 3 |
215
- | Never flag issues handled by the project's autoformatter (indentation, trailing spaces, bracket style) | Linter/formatter owns that; double-flagging creates noise |
211
+ | Duplication needs 3+ copies and is `minor`, reported once with every copy listed | Identical to `review-clean-code` law 3 |
212
+ | Never flag issues handled by the project's autoformatter or linter (indentation, trailing spaces, bracket style, import grouping and order) | Linter/formatter owns that; double-flagging creates noise |
216
213
  | Do not expand scope to architectural or logic concerns | Stay in style lane; hand off to the right reviewer. A circular import that fails at runtime is `review-architecture`'s finding, not a style one |
217
214
 
218
215
  ---
@@ -274,14 +271,14 @@ STATUS: DONE | DONE_WITH_CONCERNS | NEEDS_CONTEXT | BLOCKED
274
271
  ```
275
272
 
276
273
  - `DONE` — no major or above findings (minor/info only or none)
277
- - `DONE_WITH_CONCERNS` — one or more major findings (actively misleading names, circular imports, non-trivial DRY violations)
274
+ - `DONE_WITH_CONCERNS` — one or more major findings (a name that has produced a named wrong outcome at a call site)
278
275
  - `NEEDS_CONTEXT` — project naming convention unclear and no context doc provided; state what is ambiguous
279
276
  - `BLOCKED` — cannot access diff; state reason
280
277
 
281
278
  ```markdown
282
279
  # Style Review Report
283
280
 
284
- ## Verdict: APPROVE | APPROVE_WITH_SUGGESTIONS | REQUEST_CHANGES
281
+ <!-- No merge verdict: the orchestrator owns it. A standalone run summarizes findings only. -->
285
282
 
286
283
  ## Summary
287
284
  <2-3 sentences: overall naming and readability health, notable patterns found.>
@@ -299,7 +296,7 @@ STATUS: DONE | DONE_WITH_CONCERNS | NEEDS_CONTEXT | BLOCKED
299
296
  - info: N
300
297
 
301
298
  ## Major Issues
302
- <[F-NNN] findings — misleading names, circular imports, significant DRY violations>
299
+ <[F-NNN] findings — names that produced a named wrong outcome>
303
300
 
304
301
  ## Minor & Info
305
302
  <[F-NNN] findings>
@@ -314,7 +311,8 @@ STATUS: DONE | DONE_WITH_CONCERNS | NEEDS_CONTEXT | BLOCKED
314
311
 
315
312
  | Concern | This skill | Use instead |
316
313
  |---------|------------|-------------|
317
- | Naming, DRY, readability, imports, comments, file length | YES | — |
314
+ | Naming, formatting, readability, imports, file length | YES | — |
315
+ | Duplication, comments, circular imports (reported here at `minor`) | rating owned elsewhere | `review-clean-code` (duplication, comments); `review-architecture` (circular imports) |
318
316
  | Logic bugs, incorrect return values | NO | `review-logic` |
319
317
  | Architectural layer violations | NO | `review-architecture` |
320
318
  | Security vulnerabilities | NO | `review-security-code` |
@@ -347,7 +345,6 @@ If absent, infer conventions from surrounding unchanged code in the same files;
347
345
  | Rationalization | Why it is wrong |
348
346
  |----------------|-----------------|
349
347
  | "The naming is a bit odd but I understand it" | Reviewers understand their own code; the next dev won't |
350
- | "Commented-out code might be needed later" | Git history exists for that; dead comments add noise |
351
348
  | "It's only one magic number" | One `42` today becomes twelve untraceable `42`s tomorrow |
352
- | "DRY violation is minor so I'll skip it" | Non-trivial duplication is `major`; do not understate it |
349
+ | "DRY violation is minor so I'll skip it" | It is `minor` and still reported, once, with every site listed |
353
350
  | "The file is 600 lines but it's organized" | Organization doesn't prevent merge conflicts and scroll fatigue |
@@ -21,7 +21,7 @@ triggers:
21
21
  - "review testing practices"
22
22
  metadata:
23
23
  author: "MrCipherSmith"
24
- version: "1.1.0"
24
+ version: "1.3.0"
25
25
  category: "review"
26
26
  license: "MIT"
27
27
  ---
@@ -52,12 +52,13 @@ Reading a suite tells you whether it is *well written*. It does not tell you
52
52
  whether it can **fail**. Those are different questions, and the second one is the
53
53
  one this reviewer exists to answer.
54
54
 
55
- So: before the checklist, for every guard, filter, conditional or branch the diff
56
- **added or changed**, delete it, run the nearest suite, record the result, revert.
55
+ So: before the checklist, list every guard, filter, conditional or branch the diff
56
+ **added or changed** as a `mutant_candidate` (the gate deleted or inverted), and run
57
+ each one in a scratch copy, never in the reviewed tree: other reviewers read it at once.
57
58
 
58
59
  ```
59
60
  for each gate G added or changed in scope A:
60
- delete G -> run the nearest suite -> record red/green -> revert
61
+ candidate(G) -> keryx review mutate --spec <mutants.json> --test "<nearest suite>" --package <p> -> red/green
61
62
  ```
62
63
 
63
64
  **A gate whose deletion leaves the suite green is a finding**, however correct the
@@ -66,8 +67,7 @@ that separates it from the condition beside it.* It is mandatory when the gate w
66
67
  added in answer to an earlier round — that is where a regression costs most and
67
68
  where coverage is most often assumed rather than written.
68
69
 
69
- Publish the whole table, survivors and casualties both. The reds are what makes
70
- the greens mean something; a table with only survivors reads as cherry-picking.
70
+ Publish the whole table, survivors and casualties both. The reds are what makes the greens mean something; a table with only survivors reads as cherry-picking.
71
71
 
72
72
  | mutation | result |
73
73
  |---|---|
@@ -84,8 +84,8 @@ this pass the class is unreachable for the whole round.
84
84
 
85
85
  ### Bounds
86
86
 
87
- - Run mutants one at a time on gates inside **scope A**, reverting each before the
88
- next. Never leave a mutation in the tree.
87
+ - Never edit the reviewed tree, not even to revert at once. With `run-tests`, run gates inside
88
+ **scope A** only through `keryx review mutate --spec <mutants.json>` (a scratch copy; the main session writes the file from your `mutant_candidates` to `research-evidence/mutants.json`); without it, run none: list `mutant_candidates` and stop, which is complete.
89
89
  - Run the **nearest** suite, not the full one. This is not a `test:mutation`
90
90
  sweep — those are slow, opt-in, and answer a different question.
91
91
  - Propose, do not cap: `mutant_candidates` in your `REVIEW_RESULT` names a mutant (`id`, `file`, `anchor`, `replacement`,
@@ -258,7 +258,7 @@ The moment a surviving mutation is accompanied by a **reachable input that makes
258
258
 
259
259
  | Rationalization | Why it is wrong |
260
260
  |----------------|-----------------|
261
- | "The suite is green, so the tests pin the behaviour." | Green is the state before the mutation pass, not its result. Delete the gate, run the nearest suite, and report what happened — that is the one question this reviewer exists to answer. |
261
+ | "The suite is green, so the tests pin the behaviour." | Green is the state before the mutation pass, not its result. With `run-tests`, run the gate's mutant through `keryx review mutate` and report what happened; without it, list it in `mutant_candidates` and say nothing ran. |
262
262
  | "I could not run the suite, so I worked out what the mutation would do." | A predicted mutation is `info` at best and this lane has no use for one. Say which command you ran, what stopped it, and skip the pass — do not report a result you did not observe. |
263
263
  | "I only published the mutations that survived; the rest were noise." | The reds are what makes the greens mean something. A table of survivors alone reads as cherry-picking and will be discounted whole. |
264
264
  | "The fixture is named `drift-only`, so it covers the drift case." | The name is the claim under review. Open the producer and compare every field, not only the one the test pins; a fixture that carries another scenario's shape is coverage that lies. |
@@ -272,7 +272,7 @@ The moment a surviving mutation is accompanied by a **reachable input that makes
272
272
 
273
273
  Report done only once all of these hold:
274
274
 
275
- - The mutation table is published in full, survivors and casualties both, or the report says which command failed and that the pass was skipped.
275
+ - The mutation table is published in full, survivors and casualties both, or the report says the pass was skipped (which command failed, or that `run-tests` was not allowed and `mutant_candidates` lists what would run).
276
276
  - The report states the cap: how many added or previously-requested gates were mutated and how many were not reached.
277
277
  - Every finding names `file:line` and the evidence that settles it — the mutation and its result, the producer line, or the selector that names the branch.
278
278
  - Every `blocker` and `major` carries `class_scope` with `sites` and an `enumeration_method` naming the search that produced them.
@@ -17,7 +17,7 @@ triggers:
17
17
  - "ai slop check"
18
18
  metadata:
19
19
  author: "MrCipherSmith"
20
- version: "1.0.0"
20
+ version: "1.2.0"
21
21
  origin: "authored"
22
22
  category: "review"
23
23
  compatible_harnesses: "cursor,codex,zed,opencode,claude"
@@ -28,8 +28,7 @@ license: "MIT"
28
28
 
29
29
  Reviewer for what the user sees and does. Its inputs are the reviewer payload only; session memory and earlier conversation are not inputs.
30
30
 
31
- Read-only, three passes, cheapest and most objective
32
- first: deterministic checks → usability heuristics → aesthetic judgment. The tell catalog,
31
+ Read-only, three passes, cheapest and most objective first: deterministic checks → usability heuristics → aesthetic judgment. The tell catalog,
33
32
  tiers, thresholds, and slop score come from `rules/core/ui-anti-slop.mdc` — read it first.
34
33
  Never edits code; fixes are proposed, not applied.
35
34
 
@@ -57,7 +56,7 @@ review-ui-ux Progress:
57
56
  |-------|------|----------|-------------|
58
57
  | `branch` | string | no | Branch to review. Defaults to current branch. |
59
58
  | `commit_range` | string | no | Explicit range. Overrides merge-base detection. |
60
- | `url` | string | no | Running page/screen for live mode (dev server, preview, staging). |
59
+ | `url` | string | no | A running page the payload supplies for live mode (preview, staging); this reviewer never starts one. |
61
60
  | `screenshots` | string[] | no | Image paths when no URL is available. |
62
61
  | `primary_task` | string | no | The one job the screen must enable. Inferred and stated if absent. |
63
62
  | `context_doc` | string | no | Path to job context document. |
@@ -67,13 +66,14 @@ review-ui-ux Progress:
67
66
  - **Code mode** — see `.metaproject/skills/gdskills/shared/git-merge-base.md` for `BASE_SHA`; review UI files changed
68
67
  in scope (`*.tsx`, `*.jsx`, `*.vue`, `*.svelte`, `*.css`, `*.scss`, `*.html`, theme/token
69
68
  files, Tailwind config). Flag only what the diff introduced or touched.
70
- - **Live mode** — `url` or `screenshots` given, or a dev server for the changed screens can be
71
- started from the project's own scripts. Render at **1440**, **768**, **390** px; light and dark
72
- when supported.
73
- - **Both** — preferred whenever the changed screens can be rendered. Code shows intent; the render
69
+ - **Live mode** — only a `url` or `screenshots` the payload supplies; never start a dev server or
70
+ any other process. Render a supplied URL at **1440**, **768**, **390** px; light and dark when supported.
71
+ - **Both** — preferred whenever the payload supplies a render. Code shows intent; the render
74
72
  shows truth (computed contrast, actual fonts, real target sizes).
73
+ - **No render supplied** — finish the code-mode review (`DONE` / `DONE_WITH_CONCERNS`), list the live checks under
74
+ "Checks not run" and state the gap in the summary (a URL or screenshots of which screens would close it).
75
75
 
76
- If neither a diff with UI files nor a renderable surface exists, return `NEEDS_CONTEXT`.
76
+ If there is neither a diff with UI files nor a supplied render, return `NEEDS_CONTEXT`.
77
77
 
78
78
  ---
79
79
 
@@ -184,8 +184,7 @@ where its recurring conditions land under that one.
184
184
 
185
185
  ## Orchestrated Review Contract
186
186
 
187
- When dispatched by `review-orchestrator`, follow the provided
188
- `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible
187
+ When dispatched by `review-orchestrator`, follow the provided `reviewer-input.schema.json` payload. Return a `REVIEW_RESULT` object compatible
189
188
  with `.metaproject/skills/gdskills/review/review-orchestrator/reviewer-finding.schema.json`, then a
190
189
  concise markdown summary. Prefix finding ids `UX-`. Return `NEEDS_CONTEXT` instead of guessing
191
190
  when the primary task or the renderable surface is unknown and needed.
@@ -16,7 +16,7 @@ triggers:
16
16
  - "check these findings"
17
17
  metadata:
18
18
  author: "MrCipherSmith"
19
- version: "1.1.0"
19
+ version: "1.4.0"
20
20
  category: "review"
21
21
  compatible_harnesses: "cursor,codex,zed,opencode,claude"
22
22
  license: "MIT"
@@ -113,14 +113,14 @@ finding claims is broken, and see whether it breaks.**
113
113
  bun test src/review/managed.test.ts -t "refuses" # does the guard actually fire?
114
114
 
115
115
  # Finding: "this guard is asserted against a synthetic value, so it cannot fail"
116
- # Delete the guarded line and re-run. If the test stays green, the finding is CONFIRMED.
116
+ # Never edit the reviewed tree. Run the deleted-line mutant in a scratch copy (keryx review mutate
117
+ # --spec <mutants.json> --test "<cmd>" --package <p>; the mutants file is research-evidence/mutants.json, or one you write under research-evidence/, never in the reviewed tree), or ask the orchestrator for a verify-run. Green: CONFIRMED.
117
118
 
118
119
  # Finding: "the type allows undefined here"
119
120
  bun run typecheck
120
121
  ```
121
122
 
122
- Record the command and the relevant output. "I ran the tests and they passed" is
123
- not evidence; the command you ran and its output is — `bun test <file>` with
123
+ Record the command and the relevant output. "I ran the tests and they passed" is not evidence; the command you ran and its output is — `bun test <file>` with
124
124
  the counts it actually printed, not a count quoted from somewhere else. (This
125
125
  sentence used to quote a fixed number, which went stale twice in one day.)
126
126
 
@@ -296,4 +296,4 @@ Then a short markdown summary:
296
296
  | "The finding is understated; I'll bump it to blocker." | You cannot. The merge discards the whole claim and records the attempt. |
297
297
  | "Most of my verdicts are `unverifiable`, that looks bad." | It is the expected shape. TestGen-LLM discards 75% of its own output and that is why the remainder is trusted. |
298
298
  | "I also spotted something the reviewers missed." | Report it through a domain reviewer in a new round, with evidence. This pass cannot add. |
299
- | "I raised this finding, so I know best whether it holds." | That is exactly the case AC9 forbids. |
299
+ | "I raised this finding, so I know best whether it holds." | That is the case the Iron Law "Never verify your own finding" forbids, and the merge refuses it by name. |
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Purpose
4
4
  Reusable bash script for determining the review scope (merge-base) for review skills.
5
- Used by: code-ai-review, code-learned-review, code-mobx-store-review, code-style-review.
5
+ Used by: code-learned-review, review-frontend, review-style.
6
6
 
7
7
  ## Script
8
8
 
@@ -49,9 +49,10 @@ dependency injection, LINQ, and disposal. Applies only to `*.cs` files.
49
49
  `Singleton` by capturing it directly — that captures the first
50
50
  request's instance for the app's lifetime; resolve it per-use via
51
51
  `IServiceScopeFactory`/`IServiceProvider.CreateScope()` instead.
52
- - Depend on an interface (`IOrderRepository`), not a concrete
53
- implementation, at a constructor boundary that DI resolves — this is
54
- what makes the type unit-testable without a real database/HTTP call.
52
+ - Depend on an interface (`IOrderRepository`) at an I/O or substitution
53
+ boundary that DI resolves (repository, external client, clock) — this
54
+ is what makes the type unit-testable without a real database/HTTP call.
55
+ A single internal implementation gets no interface.
55
56
  - Prefer constructor injection for required dependencies; reserve
56
57
  property injection for genuinely optional dependencies with a working
57
58
  default, which is uncommon.
@@ -22,9 +22,9 @@ still comes from the common rules this file `extends`.
22
22
  dependency graph, prevents the field from being `final`/`val`, and
23
23
  makes the class impossible to construct without the Spring container in
24
24
  a plain unit test.
25
- - A class with more than 4-5 constructor dependencies is a signal the
26
- class has too many responsibilities, not a reason to fall back to field
27
- injection to make the constructor shorter.
25
+ - Overrides the `solid-principles.mdc` "Constructor dependencies" row
26
+ for Java/Kotlin: more than 4 is the threshold, a signal of too many
27
+ responsibilities, never a reason to fall back to field injection.
28
28
 
29
29
  ## Layered architecture
30
30
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "agents": [],
3
- "note": "No generated agent pair by design, matching W2's original decision: mobx has no agentProfile in pack.json, so `agents generate --stack mobx` is refused (agents-catalog-commands.test.ts pins this). code-mobx-store-review already covers MobX-specific review, and ts-js-node/react build-fix already cover the build-failure case, so a generated mobx-code-auditor/mobx-build-fixer pair would duplicate existing coverage rather than add any -- this holds regardless of gate status. Separately (R1 review round 2, PR #719, N-M1): the same realism sweep that demoted angular found mobx-store-implementation's positives were trigger-prefix near-copies too; rewritten with natural phrasing, not iterated against the router. Honest result: mobx-store-implementation's trigger accuracy dropped (TP 4/8), accepted as the true signal. mobx-observable-testing still passes cleanly. mobx's own pack.json stability is demoted to \"experimental\" -- a pack needs every skill to pass."
3
+ "note": "No generated agent pair by design, matching W2's original decision: mobx has no agentProfile in pack.json, so `agents generate --stack mobx` is refused (agents-catalog-commands.test.ts pins this). review-frontend already covers MobX-specific review (its Part B is the store checklist), and ts-js-node/react build-fix already cover the build-failure case, so a generated mobx-code-auditor/mobx-build-fixer pair would duplicate existing coverage rather than add any -- this holds regardless of gate status. Separately (R1 review round 2, PR #719, N-M1): the same realism sweep that demoted angular found mobx-store-implementation's positives were trigger-prefix near-copies too; rewritten with natural phrasing, not iterated against the router. Honest result: mobx-store-implementation's trigger accuracy dropped (TP 4/8), accepted as the true signal. mobx-observable-testing still passes cleanly. mobx's own pack.json stability is demoted to \"experimental\" -- a pack needs every skill to pass."
4
4
  }
@@ -1,11 +1,11 @@
1
1
  [
2
2
  {
3
- "query": "Use when writing or extending a MobX store: adding observable state, actions, computed getters, or reactions (autorun/reaction/when), wiring a store into React via observer and a context hook, or fixing a component that stops re-rendering after a store change. Also covers plain-language asks for the same work: keeping a piece of MobX store state automatically in sync wherever it's read, or making a store run something automatically when a value changes and stop when the store is no longer needed. Applies the makeObservable/action/runInAction/observer shape and the store's dispose lifecycle. Not for reviewing an already-written store's structure (use code-mobx-store-review) and not for plain React state/props work with no MobX involved (use react-implementation).",
3
+ "query": "Use when writing or extending a MobX store: adding observable state, actions, computed getters, or reactions (autorun/reaction/when), wiring a store into React via observer and a context hook, or fixing a component that stops re-rendering after a store change. Also covers plain-language asks for the same work: keeping a piece of MobX store state automatically in sync wherever it's read, or making a store run something automatically when a value changes and stop when the store is no longer needed. Applies the makeObservable/action/runInAction/observer shape and the store's dispose lifecycle. Not for reviewing an already-written store's structure (use review-frontend) and not for plain React state/props work with no MobX involved (use react-implementation).",
4
4
  "decision": "fork",
5
5
  "topMatch": "mobx/mobx-observable-testing",
6
6
  "recordedAt": "2026-09-25T06:28:15.470Z",
7
7
  "skillName": "mobx-store-implementation",
8
- "justification": "Top match remains this pack's own sibling mobx-observable-testing -- same domain vocabulary (store/action/computed/observable), different category (implement vs test), not a substitute: that skill only covers writing/fixing tests, never authoring store code. Description was widened (flow 318 follow-up) to also cover plain-language symptom/goal phrasings of the same implement work, not to broaden scope -- no new candidate skill/pack became a closer match after the update; review-frontend, nestjs-implementation, code-mobx-store-review, and angular-implementation remain the next nearest and are all a different stack/activity or review-only."
8
+ "justification": "Top match remains this pack's own sibling mobx-observable-testing -- same domain vocabulary (store/action/computed/observable), different category (implement vs test), not a substitute: that skill only covers writing/fixing tests, never authoring store code. Description was widened (flow 318 follow-up) to also cover plain-language symptom/goal phrasings of the same implement work, not to broaden scope -- no new candidate skill/pack became a closer match after the update; review-frontend, nestjs-implementation, and angular-implementation remain the next nearest and are all a different stack/activity or review-only."
9
9
  },
10
10
  {
11
11
  "query": "Use when writing or fixing a test for a MobX store: asserting on an async action's post-await state, waiting for a reaction/autorun to fire, testing that dispose() actually stops a store's reactions, or deciding how enforceActions should behave in the test setup. Distinct from rendering-focused React component testing and generic Node/TypeScript test-runner setup. Not for writing the store or action code itself (use mobx-store-implementation) and not for React Testing Library render/interaction patterns with no MobX involved (use react-testing).",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: mobx-store-implementation
3
- description: "Use when writing or extending a MobX store: adding observable state, actions, computed getters, or reactions (autorun/reaction/when), wiring a store into React via observer and a context hook, or fixing a component that stops re-rendering after a store change. Applies the makeObservable/action/runInAction/observer shape and the store's dispose lifecycle. Not for reviewing an already-written store's structure (use code-mobx-store-review) and not for plain React state/props work with no MobX involved (use react-implementation)."
3
+ description: "Use when writing or extending a MobX store: adding observable state, actions, computed getters, or reactions (autorun/reaction/when), wiring a store into React via observer and a context hook, or fixing a component that stops re-rendering after a store change. Applies the makeObservable/action/runInAction/observer shape and the store's dispose lifecycle. Not for reviewing an already-written store's structure (use review-frontend) and not for plain React state/props work with no MobX involved (use react-implementation)."
4
4
  triggers:
5
5
  - "add a new observable field to this MobX store"
6
6
  - "write a MobX action for this store"
@@ -32,7 +32,7 @@ This skill is for **authoring** store code — a new store, a new
32
32
  observable/action/computed on an existing store, a new reaction, or the
33
33
  `observer`/context wiring that exposes a store to components. It is not
34
34
  for auditing an already-written store's structure or accessibility
35
- modifiers (`code-mobx-store-review` does that), and it does not cover
35
+ modifiers (`review-frontend` does that), and it does not cover
36
36
  plain React component work that touches no MobX API.
37
37
 
38
38
  ## Workflow
@@ -20,10 +20,10 @@ Narrows `core-common-rules`' stack-agnostic style rules to modern Ruby
20
20
  `is_published`); a destructive/bang method that mutates in place or
21
21
  raises instead of returning nil ends in `!` and normally has a
22
22
  non-bang counterpart (`save!` alongside `save`).
23
- - Two-space indentation, no tabs; keep a method short enough to read on
24
- one screen — a model method past ~10 lines is a signal to extract a
25
- private method, a concern, or (per `rules/patterns.mdc`) a service
26
- object, not to keep growing in place.
23
+ - Two-space indentation, no tabs.
24
+ - Overrides the `solid-principles.mdc` "Function body length" row for
25
+ Ruby: a method over 10 lines is the threshold. Extract a private
26
+ method, a concern, or (per `rules/patterns.mdc`) a service object.
27
27
  - Follow the app's own file layout: `app/models`, `app/controllers`,
28
28
  `app/jobs`, `app/services` (if the app already has one) — do not
29
29
  invent a new top-level directory for one class.
@@ -21,7 +21,7 @@
21
21
  "topMatch": "react/react-code-review",
22
22
  "recordedAt": "2026-09-25T06:25:34.017Z",
23
23
  "skillName": "vue-code-review",
24
- "justification": "Overlap is with sibling vue/* skills (shared pack vocabulary) and existing review skills (review-frontend, code-mobx-store-review) that this description explicitly excludes (no MobX/React store review). This skill's scope -- Vue reactivity/prop-emit/Pinia boundary bugs in .vue diffs -- has no existing catalog equivalent. Confirmed distinct by clean trigger-accuracy eval."
24
+ "justification": "Overlap is with sibling vue/* skills (shared pack vocabulary) and existing review skills (review-frontend) that this description explicitly excludes (no MobX/React store review). This skill's scope -- Vue reactivity/prop-emit/Pinia boundary bugs in .vue diffs -- has no existing catalog equivalent. Confirmed distinct by clean trigger-accuracy eval."
25
25
  },
26
26
  {
27
27
  "query": "Use when resolving a vue-tsc template type error, an eslint-plugin-vue lint failure, or a Vite build error in a Vue 3 project -- covers template expression type mismatches, defineProps/defineEmits type errors, unresolved SFC/component imports, and Vite plugin/HMR build failures. Applies the smallest root-cause fix and never silences the checker with an any cast or an eslint-disable. Not for a generic tsc error in a .ts file with no .vue involved (use nodejs-build-fix) or a JSX/React build failure (use react-build-fix).",
@@ -319,13 +319,13 @@
319
319
  "properties": {
320
320
  "sites": {
321
321
  "type": "array",
322
- "minItems": 1,
323
322
  "items": { "type": "string" },
324
- "description": "Every location carrying the shape, including ones already correct. A single-entry list is a claim that the class has one member."
323
+ "description": "Every location carrying the shape, including ones already correct. A single-entry list is a claim that the class has one member. An empty list is the negative enumeration (the search ran and found no site); it is valid only with a non-empty enumeration_method."
325
324
  },
326
325
  "enumeration_method": {
327
326
  "type": "string",
328
327
  "minLength": 1,
328
+ "pattern": "\\S",
329
329
  "description": "How the set was derived: the grep or query run, the source-level guard that enumerates it, or why the list is exhaustive. 'I checked the others' is not a method."
330
330
  }
331
331
  }
@@ -1,49 +0,0 @@
1
- ---
2
- description: "Baseline AI code review standards for correctness, architecture, safety, and maintainability."
3
- alwaysApply: false
4
- ---
5
-
6
- # AI Code Review Assistant
7
-
8
- ## Purpose
9
- Provide strict, high-signal code reviews with actionable findings.
10
-
11
- ## When To Apply
12
- Apply when performing AI-assisted code review; loaded automatically by the code-ai-review skill.
13
-
14
- ## Verdict Labels
15
-
16
- All reviews must end with exactly one of the following verdict labels:
17
-
18
- | Verdict | Meaning |
19
- |---------|---------|
20
- | `APPROVE` | Changes accepted as-is; no outstanding issues. |
21
- | `APPROVE WITH SUGGESTIONS` | Accepted and can merge, but improvements are noted for follow-up. |
22
- | `REQUEST CHANGES` | Must fix identified issues before merge. |
23
- | `COMMENT` | Informational findings only; no blocking action required. |
24
-
25
- ## Review Output Structure
26
- 1. Verdict label (from the table above)
27
- 2. Findings by severity and category
28
- 3. Concrete fix proposals
29
- 4. Residual risks and test gaps
30
-
31
- ## Priority Categories
32
- - Correctness
33
- - Types and safety
34
- - Architecture and state boundaries
35
- - Performance
36
- - UX/A11y
37
- - Tests
38
-
39
- ## Mandatory Rules
40
- - Prioritize correctness over style.
41
- - Do not request massive refactors unless user asks.
42
- - Flag unsafe casts and hidden complexity.
43
- - Align suggestions with existing project patterns.
44
- - Keep comments specific, respectful, and actionable.
45
-
46
- ## Output Contract
47
- - Final review must be Markdown.
48
- - Code snippets/diffs must be fenced code blocks.
49
- - Response language follows user query language.