@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
@@ -14,7 +14,7 @@ triggers:
14
14
  - "degradation against the base branch"
15
15
  metadata:
16
16
  author: "MrCipherSmith"
17
- version: "1.0.0"
17
+ version: "1.3.0"
18
18
  category: "review"
19
19
  compatible_harnesses: "cursor,codex,zed,opencode,claude"
20
20
  origin: "authored"
@@ -65,12 +65,12 @@ minor, major or blocker carries one `evidence_kind`, and `evidence` says what yo
65
65
  |---|---|
66
66
  | `probe` | you ran the code, or a script against it, on head and on base, and the outputs differ |
67
67
  | `consumer-trace` | you followed a consumer of the changed symbol to its effect, file by file |
68
- | `merge-trace` | you merged two heads (or traced the merge) and showed what the second drops |
69
- | `red-test` | you wrote or named a test that fails on the head and passes on the base |
68
+ | `merge-trace` | two heads were merged (run: scratch copy, orchestrator, verify-run) or the merge was traced by reading both diffs, to show what the second drops |
69
+ | `red-test` | a test fails on the head and passes on the base: an existing named test, run on head and base by the orchestrator (`keryx review verify-run`), or one written and run in a scratch copy (`keryx review mutate`) |
70
70
  | `base-diff` | you read the same path on base and on head and quote both |
71
71
 
72
- `probe`, `red-test` and `merge-trace` run code, so they need `allowed_tools` to include
73
- `run-tests`. Without it, `consumer-trace` and `base-diff` are still evidence: a trigger and outcome you
72
+ `probe` runs code, so it needs `allowed_tools` to include `run-tests`. A run `red-test` or `merge-trace` also write, and never in the reviewed tree (other reviewers read it at once): they count only when the orchestrator produced them (`keryx review verify-run`) or they ran in a scratch copy (`keryx review mutate`). A merge you traced by reading both diffs is `merge-trace` too and a read-only reviewer may file it, saying in `evidence` that it was read, not run; any other unrun trace is stated in prose, labelled unrun.
73
+ Without `run-tests`, `consumer-trace` and `base-diff` are still evidence: a trigger and outcome you
74
74
  read in the code is a finding, `major` when a user who reaches it gets a wrong, lost or blocked result.
75
75
  A question is for what the code cannot answer (a backend reply, data, timing), not for what you did not run.
76
76
 
@@ -84,7 +84,7 @@ and lists it in `scope.md` under `## Degradation evidence screen` with the rule
84
84
  - the diff, and the PR description when there is one;
85
85
  - the importers of the module that holds each changed shared export (and of a barrel that re-exports it), from the code graph, under one cap shared by all exports, with what it dropped. Trace those first. If the cap dropped consumers, say so in your summary; do not imply a complete sweep.
86
86
  Where the graph lists no importers for a changed export (a barrel, a re-export, a file it has no node for), search for the users of the symbol, mark them `search-derived` in `enumeration_method`, and name in the summary the exports the graph could not answer;
87
- - the flow's frozen acceptance criteria, and the previous round's findings.
87
+ - the flow's frozen acceptance criteria (none supplied: use the PR body or issue the payload carries, else say in the summary that no criteria were supplied), and the previous round's findings.
88
88
 
89
89
  ## How to look
90
90
 
@@ -16,7 +16,7 @@ triggers:
16
16
  - "reactflow review"
17
17
  metadata:
18
18
  author: "MrCipherSmith"
19
- version: "1.0.0"
19
+ version: "1.1.0"
20
20
  category: "review"
21
21
  license: "MIT"
22
22
  ---
@@ -5,7 +5,7 @@ description: "Use when a frontend review is requested, checking React component
5
5
  triggers: ["frontend review", "component review", "ui review", "review React", "review components"]
6
6
  metadata:
7
7
  author: "MrCipherSmith"
8
- version: "1.1.0"
8
+ version: "1.5.0"
9
9
  category: "review"
10
10
  compatible_harnesses: "cursor,codex,zed,opencode,claude"
11
11
  stack_requires: "react,mobx"
@@ -19,7 +19,7 @@ license: "MIT"
19
19
 
20
20
  Validates frontend-specific patterns in the changed code of the current branch. Covers React component correctness (observer wrapping, MVVM boundary, useEffect misuse, accessibility basics, key props), full MobX store patterns (structure, member ordering, accessibility modifiers, observable collections, reactions, async actions, bidirectional sync, lifecycle, API placement), and TypeScript safety. 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).
21
21
 
22
- This skill consolidates what was previously split between `code-style-review` (frontend parts) and `code-mobx-store-review`. It supersedes both for frontend changes.
22
+ This skill consolidates what two earlier profiles (a style one and a MobX store one, both removed) used to split between them, so it is the one reviewer for frontend style, MobX and store changes.
23
23
 
24
24
  ---
25
25
 
@@ -47,7 +47,7 @@ This skill consolidates what was previously split between `code-style-review` (f
47
47
  | Cross-layer architecture (service layer design, module boundaries) | NO | `review-architecture` |
48
48
  | Security vulnerabilities (XSS, injection, auth gaps) | NO | `review-security-code` |
49
49
  | Performance bottlenecks (N+1, bundle size, re-render frequency) | NO | `review-performance` |
50
- | Code style, naming outside frontend conventions | NO | `code-style-review` |
50
+ | Code style, naming outside frontend conventions | NO | `review-style` |
51
51
 
52
52
  ---
53
53
 
@@ -67,9 +67,8 @@ boundary is the trigger-and-outcome test.
67
67
 
68
68
  ### Frontend / MobX laws
69
69
 
70
- These say what is **always reported**. What severity each carries is the
71
- conditions table under Finding Format, and it is the canonical rubric applied —
72
- not a second opinion.
70
+ These say what is **always reported**. Its severity is the conditions table under
71
+ Finding Format — the canonical rubric applied, not a second opinion.
73
72
 
74
73
  1. **Every observable mutation outside an action or `runInAction` is reported.**
75
74
  No exception for "small stores" or "simple assignments".
@@ -140,7 +139,7 @@ If no CLAUDE.md is found, proceed normally. CLAUDE.md is optional and non-blocki
140
139
 
141
140
  Flags:
142
141
  - Component reads `store.*` or `useLocalObservable` result but is not wrapped in `observer` — **major** (stale UI; not one of the four merge-blocking shapes)
143
- - `observer` applied inside another HOC wrapper instead of outside — **major**
142
+ - `observer` applied inside another HOC wrapper instead of outside — **minor** (layer-violation rule; **major** only with a named defect it causes)
144
143
 
145
144
  #### A2. MVVM Boundary (Business Logic in Store, Not Component)
146
145
 
@@ -150,8 +149,8 @@ Flags:
150
149
  - [ ] Computed/derived values MUST be `@computed` getters in the store, not inline derivations in the component body
151
150
 
152
151
  Flags:
153
- - `fetch()` / `axios` / `httpClient` call directly in component (hook or handler) — **major** (layer violation; `review-architecture` rates the same condition `major`)
154
- - Business logic (conditionals, transformations, validation) inside a component event handler instead of a store method — **major**
152
+ - `fetch()` / `axios` / `httpClient` call directly in component (hook or handler) — **minor** (layer violation; **major** only with a named defect it causes or a stated project rule; same as `review-architecture`)
153
+ - Business logic (conditionals, transformations, validation) inside a component event handler instead of a store method — **minor** (layer violation, same condition)
155
154
  - Derived value computed inline in component that could be a `@computed` getter — **minor**
156
155
 
157
156
  #### A3. useEffect Misuse
@@ -163,9 +162,9 @@ Flags:
163
162
  - [ ] Every `useEffect` that creates a subscription, timer, or listener MUST return a cleanup function
164
163
 
165
164
  Flags:
166
- - `useEffect` calls `store.loadX()`, or a child store's `init()` that the parent store owns — **major** (`store.onMount()` / `store.onUnmount()` in the bridge form is not this)
167
- - `useEffect` contains `fetch()` or IO — **major** (API in component)
168
- - `useEffect` contains business logic / state derivation — **major**
165
+ - `useEffect` calls `store.loadX()`, or a child store's `init()` that the parent store owns — **minor** (layer-violation rule, as a direct fetch in a component; **major** only with a named defect; the `onMount()` / `onUnmount()` bridge form is not this)
166
+ - `useEffect` contains `fetch()` or IO — **minor** (API in component; layer-violation rule)
167
+ - `useEffect` contains business logic / state derivation — **minor** (layer-violation rule)
169
168
  - `useEffect` creates a subscription/timer/listener with no cleanup return — **major** (memory leak)
170
169
 
171
170
  #### A4. Key Props on Lists
@@ -237,19 +236,21 @@ Decision rule for inter-store callbacks: ask "Is this called from JSX or a React
237
236
 
238
237
  Flags:
239
238
  - `public` keyword on any member — **minor** (ESLint `no-public` already fails CI; a reviewer restating a lint rule is not a merge gate)
240
- - `onChangeX`, `onFireX`, `handleX`, `syncX` without `private` — **major**
241
- - Missing `private` on internal state or helper methods — **major**
242
- - Missing `private readonly` on injected dependencies — **minor**
239
+ - `onChangeX`, `onFireX`, `handleX`, `syncX` without `private` — **minor**
240
+ - Missing `private` on internal state or helper methods — **minor**
241
+ - Missing `private readonly` on a private field that is never reassigned (injected dependencies, immutable configuration) — **minor**
243
242
 
244
243
  #### B4. Observable Collections
245
244
 
246
245
  - [ ] `IObservableArray` MUST be mutated in place using MobX methods (`.replace()`, `.push()`, `.splice()`, etc.) inside `runInAction` — never reassigned
247
246
  - [ ] `ObservableMap` MUST be mutated using `.set()`, `.delete()`, `.merge()`, `.replace()` — never reassigned
248
247
  - [ ] Deep `@observable` on a large external object/instance should use `@observable.ref` instead
248
+ - [ ] A list of plain items that is replaced whole and never mutated per element uses `@observable.shallow` (or `.ref`), not deep `@observable`
249
249
 
250
250
  Flags:
251
251
  - `IObservableArray` field reassigned instead of using `.replace()` — **major**
252
252
  - `ObservableMap` field reassigned instead of `.replace()` or `.merge()` — **major**
253
+ - Deep `@observable` on a list of plain items that is only ever replaced whole — **minor**
253
254
  - Observable mutation outside `runInAction` in async context — **major**, or **blocker** where the interleaving can corrupt persisted state (frontend law 1)
254
255
 
255
256
  #### B5. Reactions and Disposers
@@ -282,10 +283,10 @@ Flags:
282
283
  Flags:
283
284
  - Public UI method missing `@action.bound` — **major**
284
285
  - Public helper method marked `@action.bound` but does not mutate state — **minor**
285
- - Public async action doing API/IO directly instead of delegating to private — **major**
286
+ - Public async action doing API/IO directly instead of delegating to private — **minor** (layer-violation rule; **major** only with a named defect)
286
287
  - State mutation after `await` outside `runInAction` — **major**, or **blocker** where the interleaving can corrupt persisted state (frontend law 1)
287
288
  - Missing `try/catch/finally` on private async method owning loading flags — **major**
288
- - `catch (err: any)` instead of `catch (err: unknown)` — **minor**
289
+ - `catch (err: any)` — rated by `.metaproject/rules/core/error-handling.mdc` (**Review severities**)
289
290
 
290
291
  #### B7. Inter-Store Callbacks and Internal Handlers
291
292
 
@@ -301,8 +302,8 @@ Patterns that MUST be `private` unless called from JSX:
301
302
  The test: "Is this method called from JSX or passed as a React event handler prop?" If NO — it is `private`, full stop.
302
303
 
303
304
  Flags:
304
- - Public method matching `onChangeX`, `onFireX`, `handleX`, `syncX` naming not called from components — **major**
305
- - Inter-store callback without `private` — **major**
305
+ - Public method matching `onChangeX`, `onFireX`, `handleX`, `syncX` naming not called from components — **minor**
306
+ - Inter-store callback without `private` — **minor**
306
307
  - `@action.bound` on a `private` method that is not passed as a callback reference — **minor**
307
308
 
308
309
  #### B8. Bidirectional Sync Bounce Protection
@@ -310,8 +311,8 @@ Flags:
310
311
  When two stores synchronize state in both directions, at least one direction MUST have an equality guard (`if (newValue !== currentValue)`) before writing to the other store. Without this, changes bounce indefinitely.
311
312
 
312
313
  Flags:
313
- - Bidirectional store sync without equality guard — **blocker** (unbounded update loop: the render hangs)
314
- - Store A writes to Store B in a callback from Store B without `!==` check — **blocker**
314
+ - Bidirectional store sync without equality guard — **blocker** only when a named trigger reaches the loop and it kills the render (crash); **major** for a reachable hang; **info** with no path shown
315
+ - Store A writes to Store B in a callback from Store B without `!==` check — same condition as the line above
315
316
  - Truthy guard (`if (value)`) on optional/nullable field instead of equality check in sync logic — **major**
316
317
 
317
318
  #### B9. API Calls Placement
@@ -321,8 +322,8 @@ Flags:
321
322
  - [ ] Components MUST NOT call APIs directly (fetch, axios, httpClient, service.callX) — even inside `useEffect`
322
323
 
323
324
  Flags:
324
- - API call inside a public `@action.bound` method body — **major**
325
- - API call in a component (hook, handler, useEffect) — **major** (frontend law 3)
325
+ - API call inside a public `@action.bound` method body — **minor** (layer-violation rule; **major** only with a named defect)
326
+ - API call in a component (hook, handler, useEffect) — **minor** (frontend law 3; layer-violation rule)
326
327
 
327
328
  #### B10. Lifecycle Initialization and Disposal
328
329
 
@@ -332,7 +333,7 @@ Flags:
332
333
  - [ ] Store `dispose()` MUST set `this.disposed = true` before canceling async work
333
334
 
334
335
  Flags:
335
- - Component `useEffect` calls `store.loadX()`, or a child store's `init()` / `onMount()` that the parent store owns — **major**. Do not flag the bridge `useEffect(() => { store.onMount(); return () => store.onUnmount(); }, [store])`
336
+ - Component `useEffect` calls `store.loadX()`, or a child store's `init()` / `onMount()` that the parent store owns — **minor** (as above). Do not flag the bridge `useEffect(() => { store.onMount(); return () => store.onUnmount(); }, [store])`
336
337
  - Parent store does not call `child.dispose()` in `onUnmount()` / `dispose()` — **major**
337
338
  - Missing `disposed` flag in store with async operations — **major**
338
339
 
@@ -343,15 +344,16 @@ Flags:
343
344
  - [ ] No `any` type in changed code — use `unknown` + type guards or specific types
344
345
  - [ ] No `as any` or `as unknown as T` unsafe double-cast without a comment explaining why
345
346
  - [ ] No `!` non-null assertion without a comment proving the value cannot be null/undefined at that point
346
- - [ ] Props interface MUST use `I` prefix: `interface IMyComponentProps { ... }`
347
+ - [ ] Props interface named without an `I` prefix: `interface MyComponentProps { ... }`
347
348
  - [ ] Prefer optional chaining (`?.`) and nullish coalescing (`??`) over `!` assertions
349
+ - [ ] A store's state and its public API are typed with explicit interfaces/types, not inferred object literals or `any`
348
350
  - [ ] `catch (err: unknown)` — typed error handling, not `catch (err)` or `catch (err: any)`
349
351
 
350
352
  Flags:
351
- - `any` type in new code — **major**
353
+ - `any` type in new code — **minor** (**major** only with a named input and the wrong value it lets through)
352
354
  - `!` non-null assertion without justification comment — **minor**
353
- - Props interface without `I` prefix — **minor**
354
- - `catch (err: any)` — **minor**
355
+ - Props interface with an `I` prefix introduced by the change — **minor**
356
+ - Store state or public API left to an inferred object-literal type — **minor**
355
357
 
356
358
  ---
357
359
 
@@ -457,7 +459,7 @@ This is the correct lifecycle bridge — do not flag it under A3 or B10. Those r
457
459
 
458
460
  Distinction:
459
461
  - `useEffect(() => { store.onMount(); return () => store.onUnmount(); }, [store])` — correct lifecycle bridge — **do not flag**
460
- - `useEffect(() => { store.loadData(); }, [])` or `useEffect(() => { store.childStore.init(); }, [])` — data trigger, or a child store's lifecycle the parent store owns, run from the component — **major** (A3 / B10, regardless of project conventions)
462
+ - `useEffect(() => { store.loadData(); }, [])` or `useEffect(() => { store.childStore.init(); }, [])` — data trigger, or a child store's lifecycle the parent store owns, run from the component — **minor** (A3 / B10, regardless of project conventions); **major** only with a named defect (trigger and wrong outcome)
461
463
 
462
464
  #### D7. JSX and Naming Conventions
463
465
 
@@ -559,7 +561,8 @@ conditions land under that rubric, not a second rubric.
559
561
  | A render path that throws on an input the change admits | `blocker` | Crash |
560
562
  | Missing `observer()` on a component that reads observables | `major` | Named trigger (the observable changes) and named outcome (the UI does not update). Stale UI is not a crash, data loss, vulnerability, or missing acceptance criterion |
561
563
  | Observable mutation outside an action or `runInAction` | `major` — `blocker` only where the interleaving can corrupt persisted state | Same wording as `review-logic` and `review-highload` for a race: the outcome decides |
562
- | API/IO call in a component | `major` | Layer violation. Identical to `review-architecture`'s rule for the same condition, which previously called it `major` while this file called it `blocker` |
564
+ | API/IO call in a component; business logic in a component | `minor` — `major` only with a named defect it causes (trigger and outcome) or a stated project rule | Layer violation: structural. Identical to `review-architecture`'s rule for the same condition |
565
+ | Bidirectional sync without an equality guard | `blocker` when a named trigger reaches the loop and the render dies; `major` for a reachable hang; `info` with no path | The outcome and its reachability decide, not the pattern |
563
566
  | `useState` for store-managed state; `useMemo` for a derived store value; a store constructed in the component body | `major` | Named trigger (a re-render) and named outcome (state lost or recreated) |
564
567
  | `public` on a class member; `useCallback` around a store method; a store created with `useMemo` instead of `useLocalObservable`; an unprivate inter-store callback | `minor` | The code behaves correctly. A lint rule that fails CI is caught by the machine, not by a reviewer, and the cost is to the next editor |
565
568
  | Observation with no concrete bug | `info` | Shared laws 1 and 2 |
@@ -573,13 +576,13 @@ Stop and re-read these rules if you are thinking:
573
576
  | Rationalization | Why it's wrong |
574
577
  |---|---|
575
578
  | "The store is small, no need for full observer wrapping" | Missing `observer()` is reported regardless of store size — frontend law 2. It is `major`, not `blocker`: stale UI is not one of the four shapes |
576
- | "The mutation happens in a non-async method, so runInAction isn't needed" | Mutations outside action/runInAction are always at least `major` — frontend law 1 |
577
- | "I'll mark the API call in component as minor to avoid friction" | API in a component is `major`, never `minor` — frontend law 3, and the same severity `review-architecture` gives it |
579
+ | "The mutation happens in a non-async method, so runInAction isn't needed" | Mutations outside action/runInAction are always reported — frontend law 1; the conditions table sets the level |
580
+ | "I'll skip the API call in component to avoid friction" | API in a component is always reported — frontend law 3; `minor` unless a named defect or a stated project rule makes it `major`, as in `review-architecture` |
578
581
  | "The `public` keyword is just a style issue, I'll call it minor" | It is `minor` — but still reported. The linter fails CI on it, which is why a reviewer does not need to block merge on it too |
579
582
  | "This inter-store callback works fine as public" | Frontend law 5: if it is not called from JSX, it must be `private` |
580
583
  | "No spec compliance check needed for this skill" | Correct — this skill covers Stage 2 (code quality) only; spec compliance is handled by the orchestrator or review-logic |
581
584
  | "I can suggest adding useCallback everywhere for safety" | With MobX+observer, useCallback is rarely needed and adds noise; only flag when concretely justified |
582
- | "The bidirectional sync looks fine, no equality guard needed" | Bidirectional sync without equality guard is a blocker — infinite loop risk |
585
+ | "The bidirectional sync looks fine, no equality guard needed" | Bidirectional sync without an equality guard is always reported; its level follows the conditions table (reachability decides) |
583
586
 
584
587
  ---
585
588
 
@@ -14,7 +14,7 @@ description: |
14
14
  triggers: ["frontend conventions", "local frontend rules", "CLAUDE frontend", "review frontend conventions"]
15
15
  metadata:
16
16
  author: "MrCipherSmith"
17
- version: "1.0.0"
17
+ version: "1.1.0"
18
18
  category: "review"
19
19
  stack_requires: "react,mobx"
20
20
  overlap_group: "frontend"