@olegkoval/agent-skills 1.93.0 → 1.94.1

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 (48) hide show
  1. package/.github/prompts/wrap-up.prompt.md +44 -3
  2. package/.kiro/steering/wrap-up.md +44 -3
  3. package/.windsurf/rules/wrap-up.md +44 -3
  4. package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/conventions.md +1 -1
  5. package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/implementation.md +5 -12
  6. package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/prover.md +1 -1
  7. package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/quality.md +2 -12
  8. package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/triage-logic.md +2 -2
  9. package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/triage-quality.md +5 -12
  10. package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/verifier.md +2 -6
  11. package/adapters/claude/olko-github-pr/skills/lekker-review/references/output-format.md +2 -2
  12. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-consistency.md +1 -1
  13. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-conventions.md +3 -5
  14. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-implementation.md +13 -28
  15. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-quality.md +3 -13
  16. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-test-quality.md +2 -15
  17. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/profile.md +17 -196
  18. package/adapters/claude/olko-reflection/skills/wrap-up/SKILL.md +45 -2
  19. package/adapters/cursor/olko-reflection/skills/wrap-up/SKILL.md +45 -2
  20. package/adapters/grok/olko-reflection/skills/wrap-up/SKILL.md +45 -2
  21. package/catalog/skills.json +1 -1
  22. package/package.json +1 -1
  23. package/plugins/olko-apple-kit/.claude-plugin/plugin.json +1 -1
  24. package/plugins/olko-creative/.claude-plugin/plugin.json +1 -1
  25. package/plugins/olko-garmin-kit/.claude-plugin/plugin.json +1 -1
  26. package/plugins/olko-git-tools/.claude-plugin/plugin.json +1 -1
  27. package/plugins/olko-github-pr/.claude-plugin/plugin.json +1 -1
  28. package/plugins/olko-github-pr/skills/lekker-review/references/agents/conventions.md +1 -1
  29. package/plugins/olko-github-pr/skills/lekker-review/references/agents/implementation.md +5 -12
  30. package/plugins/olko-github-pr/skills/lekker-review/references/agents/prover.md +1 -1
  31. package/plugins/olko-github-pr/skills/lekker-review/references/agents/quality.md +2 -12
  32. package/plugins/olko-github-pr/skills/lekker-review/references/agents/triage-logic.md +2 -2
  33. package/plugins/olko-github-pr/skills/lekker-review/references/agents/triage-quality.md +5 -12
  34. package/plugins/olko-github-pr/skills/lekker-review/references/agents/verifier.md +2 -6
  35. package/plugins/olko-github-pr/skills/lekker-review/references/output-format.md +2 -2
  36. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-consistency.md +1 -1
  37. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-conventions.md +3 -5
  38. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-implementation.md +13 -28
  39. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-quality.md +3 -13
  40. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-test-quality.md +2 -15
  41. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/profile.md +17 -196
  42. package/plugins/olko-obsidian/.claude-plugin/plugin.json +1 -1
  43. package/plugins/olko-product/.claude-plugin/plugin.json +1 -1
  44. package/plugins/olko-reflection/.claude-plugin/plugin.json +1 -1
  45. package/plugins/olko-reflection/skills/wrap-up/SKILL.md +45 -2
  46. package/plugins/olko-release/.claude-plugin/plugin.json +1 -1
  47. package/plugins/olko-skill-meta/.claude-plugin/plugin.json +1 -1
  48. package/plugins/olko-web-ops/.claude-plugin/plugin.json +1 -1
@@ -9,20 +9,13 @@ Axes to cover (Critical/Important only):
9
9
  - Security: auth bypass, injection, missing permission checks, secrets in logs
10
10
  - Data Integrity: missing transactions, silent data loss, partial-failure no rollback
11
11
  - Error Handling: unhandled rejections, empty catch blocks, missing retries
12
- - Schema/Migration: NOT NULL without default, pgtyped invalidated
12
+ - Schema/Migration: NOT NULL without default, stale generated database bindings
13
13
  - Env vars: dead vars, leaked in logs
14
- - TypeScript type safety (TS-1): any cast (`as X`) or `any` usage: Critical,
15
- set `rule: "TS-1"`
16
- - No JS files (TS-2): `.js` file added to non-Liquid-theme repo: Critical,
17
- set `rule: "TS-2"`
18
- - GraphQL pagination (GQL-1): nodes connection without pageInfo, or missing
19
- multi-page fetch, or page size != 250 without comment: Critical/Important,
20
- set `rule: "GQL-1"` when Critical
14
+ - GraphQL pagination: when the consumer requires a complete result, verify that
15
+ the query exposes continuation metadata and the caller follows it. Check
16
+ page-size limits against the target API's contract.
21
17
 
22
- Setting rule tags the finding as a house hard rule: it keeps its Critical
23
- severity only after rule-specific validation and skips runtime challenges. Only set it for a genuine
24
- TS-1/TS-2/GQL-1 violation: never to shield an ordinary finding from
25
- verification.
18
+ Set `rule` to the ID of a configured hard rule only when the diff demonstrates a violation.
26
19
 
27
20
  CI_STATUS: read key "ciStatus" from the JSON file CONTEXT_FILE.
28
21
  If CI_STATUS shows failing build/test: report it as Critical.
@@ -64,11 +64,7 @@ For all other non-empty `rule` tags, run exactly two checks:
64
64
  grep "^+" "$DIFF_FILE" | grep "<snippet>"
65
65
  ```
66
66
  2. **Rule applicability**: read the exact `HOUSE_RULES_FILE` path from the task
67
- message, then confirm the code really violates the rule as written there --
68
- e.g. an `as const` is not a type cast in
69
- the TS-1 sense; a `nodes` query that legitimately fetches a single known
70
- node with a documented comment may satisfy GQL-1; a `.js` file inside a
71
- Liquid theme repo is exempt from TS-2.
67
+ message, then confirm the code really violates the rule as written in the configured house rules, including any stated exception.
72
68
 
73
69
  Outcome: both checks pass -> `confirmed` at Critical, with `reasoning` naming
74
70
  the rule and quoting the violating snippet. Either check fails -> `dropped`,
@@ -297,7 +293,7 @@ Critical finding
297
293
  Common failure modes here:
298
294
  - Assuming how a `your org's shared internal` package behaves without reading the source
299
295
  - Assuming the DB schema based on the model name rather than the Prisma schema
300
- - Assuming the Shopify API behaviour from memory rather than the docs
296
+ - Assuming an external API’s behavior from memory rather than the docs
301
297
  - Assuming a variable is always truthy/falsy without checking where it is set
302
298
 
303
299
  If any assumption is unverified -> resolve it now (read the source, check the
@@ -61,9 +61,9 @@ Cover, in roughly this order:
61
61
  - **The problem / goal: why this PR exists.** What was broken, missing, or
62
62
  needed? Pull this from the Linear ticket (the AC_LIST and ticket summary),
63
63
  not just the diff. State the user-facing or business outcome the change is
64
- reaching for ("Client can create ERP contacts automatically from Shopify instead
64
+ reaching for ("The integration can sync contact records automatically instead
65
65
  of hand-keying them", "unblocks the PUT/update flow that depends on the
66
- metafield being populated").
66
+ required metadata being populated").
67
67
  - **What it does: the mechanism, in plain terms.** The shape of the solution:
68
68
  the key entry points, the data flow, the gating/safety mechanisms, and how the
69
69
  pieces fit. Name the design choices and *why each one was made*: kill switch
@@ -17,7 +17,7 @@ exclude, retry/fail) is made in two code paths that can both run for the same
17
17
  input. The usual shapes:
18
18
 
19
19
  - a client-side guard and the server-side validator behind it (a checkout UI
20
- extension and the Shopify Function, a form check and the API handler);
20
+ extension and the downstream handler, a form check and the API handler);
21
21
  - a UI filter and the query that feeds it;
22
22
  - a webhook handler and the cron reconciler that backfills the same state;
23
23
  - a feature flag read in two clients that must agree on the same gate;
@@ -32,15 +32,13 @@ Axes to cover:
32
32
  - Generated code (org-conventions §6): a changed `.sql` / `.graphql` /
33
33
  `.json` schema / `prisma/schema.prisma` whose generated artifact is absent
34
34
  from the diff (or the reverse) - major. Raise NO naming, comment, or
35
- complexity finding inside a `generated/` directory. A hand-rolled `fetch` to
36
- the Shopify Admin GraphQL endpoint instead of the genql client - major.
37
- - Commits (org-conventions §5): non-conventional or vague commit subjects, and
38
- any Claude Code / assistant mention in the commit or PR text.
35
+ complexity finding inside a `generated/` directory.
36
+ - Commits: apply the conventions documented in the project profile.
39
37
  - Type-system idioms:
40
38
  * A hand-written interface/type that duplicates an existing Zod schema -
41
39
  should be `z.infer<typeof zSchema>` so the schema stays the single source
42
40
  of truth. (Grep for a matching z-schema in the same feature folder.)
43
- * Raw `string` used for a Shopify GID or an entity id where a branded
41
+ * Raw `string` used for an external identifier or entity ID where a branded
44
42
  `ID<'Customer'>` (or similar) type exists and is used elsewhere.
45
43
  * A union typed as `as readonly string[]` / a hand-rolled `is...` guard where
46
44
  a `z.enum([...])` + `z.infer` would give validation, narrowing, and the
@@ -41,36 +41,21 @@ Axes to cover:
41
41
  missing DB indexes for new query patterns.
42
42
  - Time/Space Complexity: O(n²) where linear exists, large payloads in memory,
43
43
  sort/dedup on large arrays that could be done at DB level.
44
- - Integration Contracts: Shopify API misuse, BC API assumptions, webhook
44
+ - Integration Contracts: unsupported external API assumptions, webhook
45
45
  idempotency, external API pagination not handled.
46
- - GraphQL pagination (GQL-1): for every GraphQL query in the diff that uses a
47
- nodes connection (`nodes { ... }`):
48
- (a) Check that `pageInfo { hasNextPage endCursor }` is present alongside nodes - if missing, critical.
49
- (b) Check that all pages are fetched (a loop or recursion using endCursor) - a single-page fetch is a bug, critical.
50
- (c) Check the page size: must be 250 (Shopify max). If any other size is used without a code comment explaining why, flag as major.
51
- Title any critical finding under this axis `[GQL-1] ...`.
52
- - Feature-flag rollout (Reflag repos ONLY): first check the repo actually uses
53
- Reflag - a `package.json` (any depth, excluding node_modules) depending on
54
- `@reflag/node-sdk`. If it does not, SKIP this
55
- axis entirely and raise nothing; a repo with no flag client cannot act on the
56
- finding. Where it does apply, ask whether the change should ship behind a flag:
57
- (a) a client should validate it before everyone sees it; (b) it changes data
58
- shape or what gets written; (c) it touches orders, money, or fulfilment; (d) it
59
- cannot be verified without real client data or volume. Do NOT raise it for pure
60
- UI/copy with no data change, a bug fix that is strictly better and obviously
61
- correct, internal/admin-only surfaces, or work fully covered by tests and
62
- verifiable in staging. Tie-breaker: if you would not be comfortable fixing it
63
- forward at 2am, it needs a flag. Name which of (a)-(d) applies.
64
- Severity: major at most, usually minor - this is a rollout judgement call, not
65
- a defect. NEVER title this with a bracketed hard-rule tag (that would force
66
- critical and imply a policy violation). Never invent a concrete flag key as
67
- though it exists: flag keys must be confirmed against Reflag, so say a flag is
68
- needed without naming one.
69
- Also raise as a structural concern (severity major) when a diff BOTH adds a
70
- column/table AND changes what is read or written - the SOP requires splitting
71
- that into expand / migrate / read-switch / contract PRs. Name the split.
46
+ - GraphQL pagination: when the consumer requires a complete result, verify that
47
+ the query exposes continuation metadata and the caller follows it. Check
48
+ page-size limits against the target API's contract.
49
+ - Feature flags: when the repository has a rollout mechanism and a changed
50
+ path introduces a risky write or changes externally visible behavior, check
51
+ for a guard or a documented rollback plan. Trace the actual write through
52
+ its callers and configuration before reporting an omission. Refer to the
53
+ repository's own guidance for exemptions and avoid proposing invented flag keys.
54
+ Rollout advice on its own is noncritical. Reserve hard-rule tags for proven
55
+ violations of configured project rules.
72
56
 
73
- GQL-1's full rule text lives in `{{PROFILE}}` - read it there before applying it.
57
+
58
+ Start the finding title with the bracketed rule ID when it violates a configured hard rule in `{{PROFILE}}`.
74
59
 
75
60
  Rules:
76
61
  - Every finding must trace to a `+` line in the diff, with one exception: an
@@ -27,7 +27,7 @@ Axes to cover:
27
27
  silent AND still escapes. Do not accept "it reports correctly" as covering the
28
28
  block; the report and the control flow are separate claims.
29
29
  - Schema/Migration: NOT NULL without default, rename without two-step,
30
- pgtyped queries invalidated, Prisma client out of sync.
30
+ stale generated database bindings.
31
31
  - Naming/Typos: wrong casing convention, mixed conventions in same scope,
32
32
  misspelled identifiers (these are bugs-in-waiting).
33
33
  - Derived-value consistency: when the diff introduces a transform of some input
@@ -44,13 +44,6 @@ Axes to cover:
44
44
 
45
45
  - Env vars: dead vars, renamed without migration, wrong fallback operator
46
46
  (?? vs ||), type mismatch, leaked in logs.
47
- - TypeScript type safety (TS-1): flag every type cast (`as X`, `<X>expr`)
48
- and every use of `any`. Test files: only flag blatantly omitted types
49
- (e.g. `any[]` on a clearly-typed list). All others: critical. Quote the
50
- cast, explain the correct type, show the fix. Ask if they're Harry Potter.
51
- Title the finding `[TS-1] ...`.
52
- - No JavaScript files (TS-2): if the diff adds any `.js` file to a non-Liquid
53
- theme repo, flag as critical - must be `.ts`. Title the finding `[TS-2] ...`.
54
47
  - Dependency changes. Skip this axis entirely unless the diff touches
55
48
  `package.json`, a lockfile, or a vendored dependency. Where it applies:
56
49
  (a) A version bump is a behaviour change nobody in this PR wrote. If neither
@@ -65,13 +58,10 @@ Axes to cover:
65
58
  explanation, is critical: the lockfile is what actually ships.
66
59
  (d) A new direct dependency that duplicates something already in the stack is
67
60
  major. Name the existing thing that already solves it.
68
- Raise NO naming, comment, complexity, or TS-1 finding inside a lockfile or a
61
+ Raise NO naming, comment, complexity, or project-convention finding inside a lockfile or a
69
62
  `node_modules` path.
70
63
 
71
- Hard rules are defined in full in `{{PROFILE}}`
72
- (read it there before applying either). A finding for one of them MUST have its
73
- title start with the bracketed tag, e.g. `[TS-1] ...` or `[TS-2] ...`, so the
74
- caller can recognize it as a policy violation rather than an ordinary finding.
64
+ When the finding violates a configured hard rule in `{{PROFILE}}`, start its title with the bracketed rule ID, such as `[EXAMPLE-1]`.
75
65
 
76
66
  CI status, Sentry signals, and existing reviews may be present in `{{CONTEXT}}` -
77
67
  read what is there before forming an opinion, and skip anything that is absent
@@ -131,21 +131,8 @@ g) Mock smell - test the behavior, not the way it's built
131
131
  banner that appears only when the fetch rejects). Even then, prefer an
132
132
  injected simple fake over a module-level spy, and assert what the user sees.
133
133
 
134
- h) Team test conventions
135
- Read `{{PROFILE}}` and apply its §4 (test conventions) to every test file in
136
- the diff: `__tests__/` placement beside the source, `.test.ts` vs
137
- `.test.tsx`, English-sentence test names, `describe` nesting <= 2,
138
- `afterEach(cleanup)`, `retry: false` on the test QueryClient (major - its
139
- absence hangs the suite on a failing query), the getByRole → getByLabelText
140
- → getByText → getByTestId priority, module-boundary mocking, `safeParse` for
141
- Zod schemas, and the typed `it.each` matrix with AC tags plus the
142
- exhaustiveness assertion whenever behaviour depends on 3+ independent inputs.
143
- A `vi.mock('@lib/common/…')` inside `common/` is major, not style: the
144
- alias resolves only from `web/`, so the mock silently does nothing and the
145
- test passes against the real module. Quote the line, give the relative path
146
- as the fix.
147
- A comment explaining WHY a test exists (a captured past bug, a subtle
148
- contract) is sanctioned - never flag it as over-commenting.
134
+ h) Project test conventions
135
+ Apply the test conventions documented in `{{PROFILE}}` to the changed tests.
149
136
 
150
137
  Report each per-line issue as:
151
138
  `test-file:line - <concise description of the gap or weakness>`
@@ -1,209 +1,30 @@
1
- # Project profile
1
+ # Project review profile
2
2
 
3
- This file is handed to revmux as `{{PROFILE}}` for the lekker-medium and
4
- lekker-deep review profiles. It ships with generic default conventions only.
5
- Put your team's own hard rules (always Critical) in `references/house-rules.md`
6
- and, if you use revmux, add them to the top of this file as well, each with an
7
- ID such as `TS-1` so findings can cite it. Where this file disagrees with a
8
- reviewer's general taste, this file wins.
3
+ Use this profile to give reviewers the repository's review rules and conventions.
4
+ The default profile declares no project-specific requirements. Add explicit
5
+ rules to `references/house-rules.md` and include them here when using revmux.
6
+ Use a stable rule ID so a finding can cite the governing rule and evidence.
9
7
 
10
- ---
8
+ ## 1. Naming
11
9
 
12
- # Default conventions (styling, naming, comments, tests, hygiene)
10
+ Check new names against established names for equivalent concepts in the target repository.
13
11
 
14
- These are default house-style conventions. A review that misses them lets the
15
- same nits come back from the human reviewer.
12
+ ## 2. Comments
16
13
 
17
- Severity ceiling: everything here is **idiomatic** unless a row says otherwise.
18
- Cite a precedent from the codebase where the row asks for one, and never
19
- inflate a style deviation into Critical.
14
+ Look for explanations of invariants, workarounds, and surprising constraints.
20
15
 
21
- ---
16
+ ## 3. Debug artifacts
22
17
 
23
- ## 1. Naming matrix
18
+ Flag debug output, breakpoints, and temporary files when the diff would ship them unintentionally.
24
19
 
25
- Flag a name the diff INTRODUCES that breaks a row. Renaming is cheap in the
26
- diff, expensive later - but a rename is still a cost, so leave conforming
27
- names alone.
20
+ ## 4. Tests
28
21
 
29
- ### Values
22
+ Apply the target repository's test conventions and check that assertions exercise observable behavior.
30
23
 
31
- | Kind | Convention | Example |
32
- |---|---|---|
33
- | boolean | `is` prefix, no negatives (`has`/`can`/`should` for possession/permission/policy) | `isFrozen` |
34
- | array | plural noun (value plural, type stays singular) | `variantIds` |
35
- | keyed lookup | `…ById` suffix | `toneByStatus` |
36
- | id | `Id` / `Ids` suffix | `shipmentId` |
37
- | timestamp | `At` suffix | `scheduledAt` |
38
- | duration | unit suffix | `timeoutMs` |
39
- | count | `Count` suffix | `lineCount` |
40
- | casing | camelCase values · PascalCase types/components · `CONSTANT_CASE` constants | |
24
+ ## 5. Commits
41
25
 
42
- ### Verbs - one per job, chosen by cost + purity
26
+ Apply commit conventions declared by the project or demonstrated by comparable changes.
43
27
 
44
- `get` cheap/sync · `fetch` async I/O · `create` new persisted entity ·
45
- `build` assembles in memory (pure) · `derive` pure value from existing state ·
46
- `parse` raw → typed · `format` value → display string · `update` change a
47
- persisted entity · `validate` returns validity · `assert` throws · `ensure`
48
- idempotently makes state hold.
28
+ ## 6. Generated code
49
29
 
50
- A `getX` that does network I/O is a finding (`fetchX`). A `createX` that
51
- mutates an existing row is a finding (`updateX`).
52
-
53
- ### Effect affixes - put the surprise in the name
54
-
55
- `…OrThrow` · `…OrDefault` · `upsert` · `…ForUpdate` (row lock) ·
56
- `…SkipLocked` · `try…` (returns result, doesn't throw) · `with…`
57
- (acquire→run→release) · `…Sync` · `…Cached` · `unsafe…`.
58
-
59
- A function that takes a row lock, throws on miss, or returns a cached value
60
- without saying so in its name is a finding - that surprise is exactly what the
61
- next caller will miss.
62
-
63
- ### React & types
64
-
65
- - React: `use` hook · `handle` (impl) / `on` (prop) · `Props` type · `with` HOC
66
- · components PascalCase and **domain-prefixed when collidable**
67
- (`AdjustmentStatusBadge`, not `StatusBadge`).
68
- - Types: `Input` / `Output` · `Result` (ok/err) · `Schema` (Zod) ·
69
- `Brand<string,'X'>` for ids · PascalCase noun, no `I-` prefix, never
70
- pluralize a type.
71
-
72
- ### Bare generic nouns
73
-
74
- `line`, `item`, `node`, `record`, `entry`, `group`, `row`, `value`, `key` are
75
- findings when the surrounding domain has two or more qualified variants in
76
- scope (arrival line vs receipt line; source node vs target node). Qualify with
77
- the domain role - variables, params, fields, type aliases, **type params**
78
- (`TLine` → `TReceiptLine`), and the functions built on the noun.
79
-
80
- ### NEVER flag a rename at a boundary
81
-
82
- DB table/column names (and any `Row`/`Dto` mirroring them), GraphQL / oRPC /
83
- OpenAPI contract fields, enum string values, route strings, wire/JSON keys.
84
- Something outside the diff reads them. The app-layer alias may be renamed
85
- (`createdAt @map("created_at")`); the boundary name may not. A "rename this
86
- column" finding is a false positive - say the boundary name is bad and leave
87
- it to a human if it matters.
88
-
89
- ---
90
-
91
- ## 2. Comment policy
92
-
93
- **Default: a comment should not exist.** It earns its place only by saying
94
- something the code *cannot*, and then in as few words as possible. Flag each
95
- offending comment the diff ADDED as its own `idiomatic` finding with the
96
- deletion as the `fix` - never a vague "too many comments". Pre-existing
97
- comments are out of scope.
98
-
99
- Flag a comment that:
100
-
101
- - restates the next line (`// increment counter` over `counter += 1`);
102
- - narrates a step or captions a block ("first we fetch, then we map…");
103
- - **narrates a whole function or type** - JSDoc restating a well-named
104
- signature, its params, or its return shape. A doc comment earns its place
105
- only for a non-obvious *contract*;
106
- - explains obvious syntax or a well-known API;
107
- - repeats a rationale stated elsewhere in the diff (keep ONE canonical place);
108
- - is changelog/AI noise - ticket IDs (`PROJ-123`), person names, multi-paragraph
109
- "why we chose X" essays. A single `@see PROJ-123` JSDoc tag is fine;
110
- - **references what the reader cannot see** - a removed line or a prior
111
- approach ("no longer using the old Y"). Source shows what the code *is*;
112
- - **documents invisible coupling** - "ordered this way because some other code
113
- does X". The fix is clearer structure, not a comment enshrining it;
114
- - **says what a name or type could say** - then the code should carry it (this
115
- is a naming finding per §1, not a comment to keep).
116
-
117
- KEEP (do not flag): an external-system quirk, an ordering/concurrency
118
- constraint, a bug workaround, a footgun, a "looks wrong but is correct
119
- because…" causal chain, a directive, a license header, and every lint/type
120
- pragma (`eslint-disable`, `@ts-expect-error`, `prettier-ignore`).
121
-
122
- Heuristic: a comment about as long as the code it sits on, naming no real
123
- gotcha, is noise. Code is type-checked; prose is not.
124
-
125
- ---
126
-
127
- ## 3. Hygiene & debug artifacts - severity is fixed, do not soften
128
-
129
- Scan `+` lines only (added by this diff; pre-existing occurrences are out of
130
- scope).
131
-
132
- | Artifact | Severity |
133
- |---|---|
134
- | `console.log(` / `console.debug(` added to non-CLI production code | important |
135
- | `debugger;` | critical |
136
- | `.only` on a test (`it.only`, `describe.only`, `fit(`, `fdescribe(`) - silently skips the rest of the suite | critical |
137
- | new `TODO:` / `FIXME:` / `HACK:` / `XXX:` with no ticket reference | idiomatic |
138
- | commented-out code block > 3 lines | idiomatic |
139
- | hardcoded URL / endpoint that belongs in an env var | important |
140
- | hardcoded magic number that should be a named constant | idiomatic |
141
- | unreachable code after `return`/`throw` | important |
142
-
143
- `console.error`/`console.warn` on a real error path is not a finding unless the
144
- repo has a logger idiom - then cite it.
145
-
146
- ---
147
-
148
- ## 4. Test conventions
149
-
150
- These are on top of the mutation/mock analysis the test-quality agent already
151
- does. Each is an `idiomatic` finding with the corrected code as the `fix`.
152
-
153
- - **Placement:** tests live in `__tests__/` **next to** the source file.
154
- `.test.ts` for pure logic, `.test.tsx` when JSX is needed. A test parked in a
155
- top-level `test/` dir or beside the source without `__tests__/` is a finding.
156
- - **Names read as English sentences:** `'returns false when name is null'`, not
157
- `'should return false'`.
158
- - **`describe` nesting max 2 levels;** flat `it()` blocks are fine for small
159
- functions. Grouping that adds no clarity is a finding.
160
- - **`afterEach(cleanup)`** in every RTL test file.
161
- - **`new QueryClient({ defaultOptions: { queries: { retry: false } } })`** in
162
- every hook/component test wrapper. Missing `retry: false` silently hangs the
163
- test on a failing query - flag it as `important`, not idiomatic.
164
- - **Query priority:** `getByRole` → `getByLabelText` → `getByText` →
165
- `getByTestId` (last resort only). A `getByTestId` where a role query works is
166
- a finding.
167
- - **Mock paths are RELATIVE, never the `@lib/common` alias.** The alias
168
- resolves only from `web/`; inside `common/` it is silently ignored and the
169
- mock has no effect - the test then passes against the real module. Flag any
170
- `vi.mock('@lib/common/…')` inside `common/` as `important`.
171
- - **Mock at the module boundary,** not `vi.spyOn(mod, '_internal')`.
172
- - **Zod schemas:** test via `safeParse` and assert `result.success`, not
173
- try/catch around `parse`.
174
- - **Matrix tests:** when behaviour depends on 3+ independent boolean/enum
175
- inputs, drive `it.each` from a typed matrix, tag each row with the AC it
176
- verifies, and include the exhaustiveness assertion
177
- (`expect(matrix).toHaveLength(N * M * K)`). A hand-picked subset of a
178
- combinatorial space is a coverage-gap finding.
179
- - **Comment the non-obvious scenario:** a test capturing a past bug explains
180
- *why* (this is a sanctioned comment - never flag it under §2).
181
-
182
- ---
183
-
184
- ## 5. Commit & PR hygiene
185
-
186
- Beyond PR-1 (hard rule). All `idiomatic` - a squash fixes them and they never
187
- block.
188
-
189
- - Conventional commits: `<type>(<scope>): <description>` with type in
190
- `feat|fix|refactor|test|docs|chore|style|perf|build|ci`; description
191
- lowercase, imperative, no trailing period.
192
- - Vague subjects (`fix`, `update`, `wip`, `changes`, `stuff`) - flag, recommend
193
- a rewrite.
194
- - Many WIP commits - recommend a squash before merge, in one line, once.
195
- - Never mention Claude Code / the assistant in commit or PR text; a
196
- `Co-Authored-By: Claude` trailer or "Generated with Claude Code" footer in
197
- the commit log is a finding.
198
-
199
- ---
200
-
201
- ## 6. Generated code - check the source, not the artifact
202
-
203
- When a source file changes and the artifact generated from it does not (or
204
- vice versa), that is an `important` finding: for example a changed `.sql`,
205
- `.graphql`, JSON schema or ORM schema without its regenerated output, or a
206
- migration missing for a schema change.
207
-
208
- Never review the *content* of a generated file as if it were hand-written - no
209
- naming, comment, or complexity findings inside `generated/`. Review the source.
30
+ Check that a source change includes its required generated output. Review the source for quality findings.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "olko-obsidian",
3
3
  "description": "Keep an Obsidian vault in sync with work: PR sync, task rollover, morning routine.",
4
- "version": "1.93.0",
4
+ "version": "1.94.1",
5
5
  "author": {
6
6
  "name": "Oleg Koval"
7
7
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "olko-product",
3
3
  "description": "Take a product idea to a shippable build: MVP passes, full-stack scaffolds, UX/UI quality loops, launch plans.",
4
- "version": "1.93.0",
4
+ "version": "1.94.1",
5
5
  "author": {
6
6
  "name": "Oleg Koval"
7
7
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "olko-reflection",
3
3
  "description": "Look back and improve: self-critique, retrospectives, performance review, rapid learning.",
4
- "version": "1.93.0",
4
+ "version": "1.94.1",
5
5
  "author": {
6
6
  "name": "Oleg Koval"
7
7
  },
@@ -4,6 +4,8 @@ description: >
4
4
  Close out a small change or multi-step task by checking its original objective, running applicable
5
5
  quality gates, auditing the diff and task-owned artifacts, and preparing an evidence-backed handoff.
6
6
  Use when work is believed done, the user asks to wrap up or clean up, or before handing work off.
7
+ Also checks whether the session produced a repeatable workflow that deserves a skill, with a second
8
+ opinion from Jev, and suggests creating it only when both agree.
7
9
  For a retro over repository history use retro-analysis; for agent operations use agent-ops-retro.
8
10
  license: MIT
9
11
  compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, Grok, and other Agent Skills compatible tools.
@@ -51,7 +53,45 @@ Before cleanup, when a completed task used a team and its applicable checks are
51
53
  - For confirmed safe targets, propose `git worktree remove -- 'path with spaces'` or `git branch -d -- 'topic/branch'` with the actual argument shell-quoted, including embedded quotes. Use `--` to end options; never interpolate untrusted names as raw shell text. Use `git fetch --prune` only when network access and remote cleanup are appropriate. Force deletion requires explicit approval.
52
54
  - Read-only inspection and configured non-destructive checks may run automatically. Ask before committing, pushing, creating or updating a PR, deleting any file, branch, or worktree, or modifying external systems. Existing explicit authorization for the task still applies.
53
55
 
54
- ## 5. Handoff
56
+ ## 5. Check for a skill worth creating
57
+
58
+ Stay silent unless something qualifies. This step must never add noise to a small task.
59
+
60
+ **Own pass.** Look at what the session actually did, not at what was asked. A workflow is a candidate only when all four hold:
61
+
62
+ - It ran as a sequence of at least three distinct steps with recognisable inputs and outputs, for example: gather facts from two sources, produce an artifact, draft the message that goes with it.
63
+ - It repeated in this session (the same sequence for a second item), or the user corrected or re-asked for the same shape of work, or the user called it a standing process ("again", "for each", "next one").
64
+ - No installed skill already covers most of it. Check the skills listed in your context and a find-skills skill where available. If the skip rules in "Second opinion from Jev" allow Jev, also run `jev pick-skill --turn "<abstract>"` (an empty list means nothing fits; a `fail_open` reply means unknown, not none). If a skill covers most of it, report that skill to use or extend and skip the creation assessment.
65
+ - It is a procedure, not a fact. A gotcha, preference or project rule belongs in memory or a knowledge entry, not in a skill.
66
+
67
+ For the strongest candidate only, write a name, trigger phrases, the steps, inputs, outputs, side effects that need approval, and the plugin it would live in.
68
+
69
+ **Second opinion from Jev.** Run it only when the own pass found a candidate. Jev is an outside service: send a short abstract, never session content. The abstract is at most eight lines: the goal, the steps, the tools or sources used, how many times it repeated, how many times the user corrected it. Leave out names, emails, ids, quotes, URLs, file paths, client or candidate details, and secrets. If you cannot write it without those, skip Jev and report "second opinion skipped: sensitive session". Also skip when `jev` is not installed or a project rule forbids outside services.
70
+
71
+ ```bash
72
+ echo '{"state": "<abstract>", "questions": [
73
+ {"id": "reusable", "type": "noul",
74
+ "instructions": "This workflow will recur and a written procedure would save real effort"},
75
+ {"id": "shape", "type": "choice", "instructions": "What is the best form for capturing it?",
76
+ "criteria": {"skill": "A multi-step skill", "memory": "A remembered preference or rule",
77
+ "checklist": "A short checklist or a hook", "none": "Not worth capturing"}}]}' | ~/.local/bin/jev ask
78
+ ```
79
+
80
+ Read `reusable` at 0.6 or higher as yes (a starting value; adjust it with experience). A Jev error or `fail_open` is no opinion, not a no.
81
+
82
+ **Combine the two results.**
83
+
84
+ | Own pass | Jev | Do |
85
+ |---|---|---|
86
+ | Candidate, not covered | reusable and shape `skill` | Suggest creating the skill: name, a one-sentence trigger description, at most six steps, inputs and outputs, approvals, plugin. Ask whether to create it; never create it unprompted. |
87
+ | Candidate, an existing skill covers most | any | Name the skill to use or extend instead. |
88
+ | Candidate, not covered | not reusable, or shape other than `skill` | One line: "possible skill, Jev disagrees (reason)". Suggest nothing. If the shape is `memory`, propose that memory entry instead. |
89
+ | Candidate, not covered | no opinion or skipped | Report that Jev gave no opinion or was skipped; do not suggest creating a skill. |
90
+ | None | not run | Silent: the report says "Skill check: none". |
91
+
92
+ Report at most one suggestion, the strongest.
93
+
94
+ ## 6. Handoff
55
95
 
56
96
  Use the report below, keeping it brief for a small change and adding detail only where evidence or risk warrants it. State what was executed and what still needs confirmation. If a PR is appropriate, draft its motivation, changes, testing evidence, rollout and rollback considerations, and reviewer notes; do not publish it without authorization. Suggest a conventional commit message without committing.
57
97
 
@@ -94,6 +134,9 @@ Use the report below, keeping it brief for a small change and adding detail only
94
134
  - Updated: <files or none>
95
135
  - Not needed: <reason or none>
96
136
 
137
+ **Skill check**
138
+ - <none | suggestion: name, why, own-pass and Jev result | extend <existing skill> | second opinion skipped: reason>
139
+
97
140
  **Risks and follow-ups**
98
141
  - <remaining risk, blocked gate, or next action; include delivery state if relevant>
99
142
 
@@ -101,5 +144,5 @@ Use the report below, keeping it brief for a small change and adding detail only
101
144
  `type(scope): concise imperative summary`
102
145
 
103
146
  **Handoff**
104
- <2–5 sentences with the evidence and next step a teammate needs>
147
+ <2 to 5 sentences with the evidence and next step a teammate needs>
105
148
  ```
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "olko-release",
3
3
  "description": "Ship a release: semantic-release setup, changelogs, store listing copy, release-day routine.",
4
- "version": "1.93.0",
4
+ "version": "1.94.1",
5
5
  "author": {
6
6
  "name": "Oleg Koval"
7
7
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "olko-skill-meta",
3
3
  "description": "Author and maintain agent skills and the AI toolchain itself.",
4
- "version": "1.93.0",
4
+ "version": "1.94.1",
5
5
  "author": {
6
6
  "name": "Oleg Koval"
7
7
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "olko-web-ops",
3
3
  "description": "Operate a website: WAF rules, search console audits, analytics bootstrap, docs indexes.",
4
- "version": "1.93.0",
4
+ "version": "1.94.1",
5
5
  "author": {
6
6
  "name": "Oleg Koval"
7
7
  },