@olegkoval/agent-skills 1.87.2 → 1.87.3
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.
- package/.github/prompts/crash-course.prompt.md +1 -1
- package/.github/prompts/obsidian-pr-sync.prompt.md +6 -6
- package/.kiro/steering/crash-course.md +1 -1
- package/.kiro/steering/obsidian-pr-sync.md +6 -6
- package/.windsurf/rules/crash-course.md +1 -1
- package/.windsurf/rules/obsidian-pr-sync.md +6 -6
- package/adapters/claude/olko-github-pr/skills/lekker-review/SKILL.md +1 -1
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/github-post.md +0 -2
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/output-format.md +1 -1
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-conventions.md +10 -10
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-implementation.md +2 -2
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-quality.md +2 -2
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-simplification.md +2 -2
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-test-quality.md +3 -3
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/profile.md +19 -175
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/profiles/lekker-deep.md +5 -6
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/profiles/lekker-medium.md +5 -6
- package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/fixtures/revmux-report.json +1 -1
- package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/risk-paths.mjs +5 -14
- package/adapters/claude/olko-obsidian/skills/obsidian-pr-sync/SKILL.md +6 -6
- package/adapters/claude/olko-reflection/skills/crash-course/SKILL.md +1 -1
- package/adapters/cursor/olko-obsidian/skills/obsidian-pr-sync/SKILL.md +6 -6
- package/adapters/cursor/olko-reflection/skills/crash-course/SKILL.md +1 -1
- package/adapters/grok/olko-obsidian/skills/obsidian-pr-sync/SKILL.md +6 -6
- package/adapters/grok/olko-reflection/skills/crash-course/SKILL.md +1 -1
- package/docs/superpowers/specs/2026-10-27-self-critique-v2-spec.md +1 -1
- package/package.json +1 -1
- package/plugins/olko-apple-kit/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-creative/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-garmin-kit/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-git-tools/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-github-pr/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-github-pr/skills/lekker-review/SKILL.md +1 -1
- package/plugins/olko-github-pr/skills/lekker-review/references/github-post.md +0 -2
- package/plugins/olko-github-pr/skills/lekker-review/references/output-format.md +1 -1
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-conventions.md +10 -10
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-implementation.md +2 -2
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-quality.md +2 -2
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-simplification.md +2 -2
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-test-quality.md +3 -3
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/profile.md +19 -175
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/profiles/lekker-deep.md +5 -6
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/profiles/lekker-medium.md +5 -6
- package/plugins/olko-github-pr/skills/lekker-review/scripts/fixtures/revmux-report.json +1 -1
- package/plugins/olko-github-pr/skills/lekker-review/scripts/risk-paths.mjs +5 -14
- package/plugins/olko-obsidian/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-obsidian/skills/obsidian-pr-sync/SKILL.md +6 -6
- package/plugins/olko-product/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-reflection/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-reflection/skills/crash-course/SKILL.md +1 -1
- package/plugins/olko-release/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-skill-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-web-ops/.claude-plugin/plugin.json +1 -1
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/phase4-comparison.md +0 -40
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/phase4-comparison.md +0 -40
|
@@ -24,7 +24,7 @@ Two things make this skill better than pasting a prompt into a chat window:
|
|
|
24
24
|
Never teach from memory alone. First pin the topic, then go read the ground truth.
|
|
25
25
|
|
|
26
26
|
1. **Confirm scope in one line.** What exactly are we learning, to what depth, and
|
|
27
|
-
why? If the request is vague ("learn the
|
|
27
|
+
why? If the request is vague ("learn the Example project"), ask one clarifying
|
|
28
28
|
question, then proceed. Do not over-interview.
|
|
29
29
|
|
|
30
30
|
2. **Gather real sources** appropriate to the topic. Spend a few minutes here; it
|
|
@@ -21,7 +21,7 @@ Before running, confirm:
|
|
|
21
21
|
- `VAULT_PEOPLE`: derive as `${vault_path}/Lead/People`
|
|
22
22
|
- `SELF_EMAIL`: the user's calendar email address, used to exclude the user from attendee processing
|
|
23
23
|
- `GH_USERNAME`: GitHub login to exclude self-authored PRs (e.g. `oleg-koval`)
|
|
24
|
-
- `ORG_PREFIX`: org name to group as "Work" (e.g. `
|
|
24
|
+
- `ORG_PREFIX`: org name to group as "Work" (e.g. `acme-org`); everything else goes to "Personal"
|
|
25
25
|
|
|
26
26
|
If not specified by the user, infer from context (git config, existing vault files).
|
|
27
27
|
|
|
@@ -60,9 +60,9 @@ For each unique author login, resolve a display name for the Obsidian wiki-link:
|
|
|
60
60
|
gh api /users/<login> --jq '.name // .login'
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
If the API returns a name, use it (e.g. `
|
|
64
|
-
back to the login with first letter uppercased. This gives `[[
|
|
65
|
-
`[[
|
|
63
|
+
If the API returns a name, use it (e.g. `Sam Roe`). If it returns null, fall
|
|
64
|
+
back to the login with first letter uppercased. This gives `[[Sam Roe]]` or
|
|
65
|
+
`[[Alexdoe]]`.
|
|
66
66
|
|
|
67
67
|
Batch these lookups: run them in parallel if possible to keep the sync fast.
|
|
68
68
|
|
|
@@ -94,7 +94,7 @@ Rules:
|
|
|
94
94
|
|
|
95
95
|
**Example line:**
|
|
96
96
|
```
|
|
97
|
-
- [ ] [
|
|
97
|
+
- [ ] [PROJ-108] Image sync from the PIM by [[Alex Doe]] (12 days old ⚠️)
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
## Step 6: Write to today's daily note
|
|
@@ -196,7 +196,7 @@ next-1-1:
|
|
|
196
196
|
|
|
197
197
|
- [[Lead/Daily/<TODAY>]] - <Event title>
|
|
198
198
|
|
|
199
|
-
<!-- Classify:
|
|
199
|
+
<!-- Classify: example.com email → Peers or Reports · external email → Stakeholders -->
|
|
200
200
|
```
|
|
201
201
|
|
|
202
202
|
Do not add `## Code Review Signals`; that section is for direct reports only.
|
|
@@ -23,7 +23,7 @@ Two things make this skill better than pasting a prompt into a chat window:
|
|
|
23
23
|
Never teach from memory alone. First pin the topic, then go read the ground truth.
|
|
24
24
|
|
|
25
25
|
1. **Confirm scope in one line.** What exactly are we learning, to what depth, and
|
|
26
|
-
why? If the request is vague ("learn the
|
|
26
|
+
why? If the request is vague ("learn the Example project"), ask one clarifying
|
|
27
27
|
question, then proceed. Do not over-interview.
|
|
28
28
|
|
|
29
29
|
2. **Gather real sources** appropriate to the topic. Spend a few minutes here; it
|
|
@@ -20,7 +20,7 @@ Before running, confirm:
|
|
|
20
20
|
- `VAULT_PEOPLE`: derive as `${vault_path}/Lead/People`
|
|
21
21
|
- `SELF_EMAIL`: the user's calendar email address, used to exclude the user from attendee processing
|
|
22
22
|
- `GH_USERNAME`: GitHub login to exclude self-authored PRs (e.g. `oleg-koval`)
|
|
23
|
-
- `ORG_PREFIX`: org name to group as "Work" (e.g. `
|
|
23
|
+
- `ORG_PREFIX`: org name to group as "Work" (e.g. `acme-org`); everything else goes to "Personal"
|
|
24
24
|
|
|
25
25
|
If not specified by the user, infer from context (git config, existing vault files).
|
|
26
26
|
|
|
@@ -59,9 +59,9 @@ For each unique author login, resolve a display name for the Obsidian wiki-link:
|
|
|
59
59
|
gh api /users/<login> --jq '.name // .login'
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
If the API returns a name, use it (e.g. `
|
|
63
|
-
back to the login with first letter uppercased. This gives `[[
|
|
64
|
-
`[[
|
|
62
|
+
If the API returns a name, use it (e.g. `Sam Roe`). If it returns null, fall
|
|
63
|
+
back to the login with first letter uppercased. This gives `[[Sam Roe]]` or
|
|
64
|
+
`[[Alexdoe]]`.
|
|
65
65
|
|
|
66
66
|
Batch these lookups: run them in parallel if possible to keep the sync fast.
|
|
67
67
|
|
|
@@ -93,7 +93,7 @@ Rules:
|
|
|
93
93
|
|
|
94
94
|
**Example line:**
|
|
95
95
|
```
|
|
96
|
-
- [ ] [
|
|
96
|
+
- [ ] [PROJ-108] Image sync from the PIM by [[Alex Doe]] (12 days old ⚠️)
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
## Step 6: Write to today's daily note
|
|
@@ -195,7 +195,7 @@ next-1-1:
|
|
|
195
195
|
|
|
196
196
|
- [[Lead/Daily/<TODAY>]] - <Event title>
|
|
197
197
|
|
|
198
|
-
<!-- Classify:
|
|
198
|
+
<!-- Classify: example.com email → Peers or Reports · external email → Stakeholders -->
|
|
199
199
|
```
|
|
200
200
|
|
|
201
201
|
Do not add `## Code Review Signals`; that section is for direct reports only.
|
|
@@ -22,7 +22,7 @@ Two things make this skill better than pasting a prompt into a chat window:
|
|
|
22
22
|
Never teach from memory alone. First pin the topic, then go read the ground truth.
|
|
23
23
|
|
|
24
24
|
1. **Confirm scope in one line.** What exactly are we learning, to what depth, and
|
|
25
|
-
why? If the request is vague ("learn the
|
|
25
|
+
why? If the request is vague ("learn the Example project"), ask one clarifying
|
|
26
26
|
question, then proceed. Do not over-interview.
|
|
27
27
|
|
|
28
28
|
2. **Gather real sources** appropriate to the topic. Spend a few minutes here; it
|
|
@@ -19,7 +19,7 @@ Before running, confirm:
|
|
|
19
19
|
- `VAULT_PEOPLE`: derive as `${vault_path}/Lead/People`
|
|
20
20
|
- `SELF_EMAIL`: the user's calendar email address, used to exclude the user from attendee processing
|
|
21
21
|
- `GH_USERNAME`: GitHub login to exclude self-authored PRs (e.g. `oleg-koval`)
|
|
22
|
-
- `ORG_PREFIX`: org name to group as "Work" (e.g. `
|
|
22
|
+
- `ORG_PREFIX`: org name to group as "Work" (e.g. `acme-org`); everything else goes to "Personal"
|
|
23
23
|
|
|
24
24
|
If not specified by the user, infer from context (git config, existing vault files).
|
|
25
25
|
|
|
@@ -58,9 +58,9 @@ For each unique author login, resolve a display name for the Obsidian wiki-link:
|
|
|
58
58
|
gh api /users/<login> --jq '.name // .login'
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
-
If the API returns a name, use it (e.g. `
|
|
62
|
-
back to the login with first letter uppercased. This gives `[[
|
|
63
|
-
`[[
|
|
61
|
+
If the API returns a name, use it (e.g. `Sam Roe`). If it returns null, fall
|
|
62
|
+
back to the login with first letter uppercased. This gives `[[Sam Roe]]` or
|
|
63
|
+
`[[Alexdoe]]`.
|
|
64
64
|
|
|
65
65
|
Batch these lookups: run them in parallel if possible to keep the sync fast.
|
|
66
66
|
|
|
@@ -92,7 +92,7 @@ Rules:
|
|
|
92
92
|
|
|
93
93
|
**Example line:**
|
|
94
94
|
```
|
|
95
|
-
- [ ] [
|
|
95
|
+
- [ ] [PROJ-108] Image sync from the PIM by [[Alex Doe]] (12 days old ⚠️)
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
## Step 6: Write to today's daily note
|
|
@@ -194,7 +194,7 @@ next-1-1:
|
|
|
194
194
|
|
|
195
195
|
- [[Lead/Daily/<TODAY>]] - <Event title>
|
|
196
196
|
|
|
197
|
-
<!-- Classify:
|
|
197
|
+
<!-- Classify: example.com email → Peers or Reports · external email → Stakeholders -->
|
|
198
198
|
```
|
|
199
199
|
|
|
200
200
|
Do not add `## Code Review Signals`; that section is for direct reports only.
|
|
@@ -306,7 +306,7 @@ Never interpolate PR-controlled paths into shell source. Alternatively pipe
|
|
|
306
306
|
Do not continue on classifier failure; report risk classification unavailable.
|
|
307
307
|
|
|
308
308
|
The classifier detects configured path patterns for CI workflows, auth,
|
|
309
|
-
billing, installers/setup
|
|
309
|
+
billing, and installers/setup. These are path
|
|
310
310
|
heuristics, not complete detection of auth/billing behavior in generic files;
|
|
311
311
|
reviewers still inspect that behavior in the diff. Whenever
|
|
312
312
|
`needsHumanReview: true`, always put `NEEDS HUMAN REVIEW: <categories>` in the
|
|
@@ -143,8 +143,6 @@ Rules:
|
|
|
143
143
|
- Do NOT prefix the body with a banner like "## Lekker review". Do NOT praise the
|
|
144
144
|
PR or describe what it does well: no "solid", "handled well", "clean", "nice".
|
|
145
145
|
State the risk and the asks only.
|
|
146
|
-
- We use **Linear**, not Jira. Never write "Jira" in any comment or body; refer
|
|
147
|
-
to Linear ticket IDs (e.g. DUBO-201) directly.
|
|
148
146
|
|
|
149
147
|
---
|
|
150
148
|
|
|
@@ -61,7 +61,7 @@ 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 ("
|
|
64
|
+
reaching for ("Client can create ERP contacts automatically from Shopify instead
|
|
65
65
|
of hand-keying them", "unblocks the PUT/update flow that depends on the
|
|
66
66
|
metafield being populated").
|
|
67
67
|
- **What it does: the mechanism, in plain terms.** The shape of the solution:
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: deviations from
|
|
2
|
+
description: deviations from the team's own codebase conventions - the "strong teammate" non-blocking lens
|
|
3
3
|
---
|
|
4
4
|
## Lens: lekker-conventions
|
|
5
5
|
|
|
6
|
-
Review the change for deviations from
|
|
6
|
+
Review the change for deviations from the team's established codebase
|
|
7
7
|
conventions and idioms. This is the "strong teammate" lens: the suggestions a
|
|
8
|
-
senior
|
|
8
|
+
senior engineer on the team leaves - non-blocking, but they make the code match how
|
|
9
9
|
the rest of the codebase is written. Look beyond the diff only for
|
|
10
10
|
convention-specific precedent and reuse searches. Other lenses may inspect the
|
|
11
11
|
runtime context they need for their own cross-file checks.
|
|
12
12
|
|
|
13
|
-
Read `{{PROFILE}}` now, before forming any opinion - it carries the
|
|
13
|
+
Read `{{PROFILE}}` now, before forming any opinion - it carries the team's
|
|
14
14
|
conventions text. Its §1 (naming matrix), §2 (comment policy), §5 (commit
|
|
15
15
|
hygiene) and §6 (generated code) are yours - they are the house style, so a
|
|
16
16
|
deviation needs NO codebase precedent beyond that file (the file IS the
|
|
17
|
-
precedent; cite the section, e.g. "
|
|
17
|
+
precedent; cite the section, e.g. "org-conventions §1 verbs").
|
|
18
18
|
Everything else in this lens still requires a cited precedent from the code.
|
|
19
19
|
|
|
20
20
|
Axes to cover:
|
|
21
|
-
- Naming (
|
|
21
|
+
- Naming (org-conventions §1): every symbol the diff INTRODUCES against the
|
|
22
22
|
matrix - boolean without `is`/`has`, async I/O named `get`, a row lock or a
|
|
23
23
|
throw-on-miss or a cache read absent from the name (`…ForUpdate`,
|
|
24
24
|
`…OrThrow`, `…Cached`), a collidable component without its domain prefix, a
|
|
25
25
|
bare generic noun (`line`, `node`, `row`) where the domain has two variants in
|
|
26
26
|
scope. NEVER flag a boundary name (DB column, GraphQL/oRPC field, enum value,
|
|
27
27
|
route string, wire key) - renaming it breaks callers outside the diff.
|
|
28
|
-
- Comments (
|
|
28
|
+
- Comments (org-conventions §2): one finding per over-commenting offender the
|
|
29
29
|
diff ADDED, with the deletion as the fix. Never a vague "too many comments",
|
|
30
30
|
never a pre-existing comment, never a lint/type pragma or a genuine
|
|
31
31
|
non-obvious "why".
|
|
32
|
-
- Generated code (
|
|
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
35
|
complexity finding inside a `generated/` directory. A hand-rolled `fetch` to
|
|
36
36
|
the Shopify Admin GraphQL endpoint instead of the genql client - major.
|
|
37
|
-
- Commits (
|
|
37
|
+
- Commits (org-conventions §5): non-conventional or vague commit subjects, and
|
|
38
38
|
any Claude Code / assistant mention in the commit or PR text.
|
|
39
39
|
- Type-system idioms:
|
|
40
40
|
* A hand-written interface/type that duplicates an existing Zod schema -
|
|
@@ -49,7 +49,7 @@ Axes to cover:
|
|
|
49
49
|
infers.
|
|
50
50
|
* A GID validated/parsed inline where a shared helper exists (e.g.
|
|
51
51
|
`zNamespacedGid`). Grep the shared libs and the repo before asserting.
|
|
52
|
-
- Reuse (search the worktree AND sibling
|
|
52
|
+
- Reuse (search the worktree AND sibling repos before flagging):
|
|
53
53
|
* Inline fetch/client logic that should reuse - or be promoted into - a
|
|
54
54
|
shared client (e.g. a company-switcher client) that already exists or that
|
|
55
55
|
the codebase clearly wants.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: correctness, scalability and integration issues -
|
|
2
|
+
description: correctness, scalability and integration issues - hard rules from the profile included
|
|
3
3
|
---
|
|
4
4
|
## Lens: lekker-implementation
|
|
5
5
|
|
|
@@ -51,7 +51,7 @@ Axes to cover:
|
|
|
51
51
|
Title any critical finding under this axis `[GQL-1] ...`.
|
|
52
52
|
- Feature-flag rollout (Reflag repos ONLY): first check the repo actually uses
|
|
53
53
|
Reflag - a `package.json` (any depth, excluding node_modules) depending on
|
|
54
|
-
`@reflag/node-sdk
|
|
54
|
+
`@reflag/node-sdk`. If it does not, SKIP this
|
|
55
55
|
axis entirely and raise nothing; a repo with no flag client cannot act on the
|
|
56
56
|
finding. Where it does apply, ask whether the change should ship behind a flag:
|
|
57
57
|
(a) a client should validate it before everyone sees it; (b) it changes data
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: quality, security and data-integrity issues -
|
|
2
|
+
description: quality, security and data-integrity issues - hard rules from the profile included
|
|
3
3
|
---
|
|
4
4
|
## Lens: lekker-quality
|
|
5
5
|
|
|
@@ -68,7 +68,7 @@ Axes to cover:
|
|
|
68
68
|
Raise NO naming, comment, complexity, or TS-1 finding inside a lockfile or a
|
|
69
69
|
`node_modules` path.
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
Hard rules are defined in full in `{{PROFILE}}`
|
|
72
72
|
(read it there before applying either). A finding for one of them MUST have its
|
|
73
73
|
title start with the bracketed tag, e.g. `[TS-1] ...` or `[TS-2] ...`, so the
|
|
74
74
|
caller can recognize it as a policy violation rather than an ordinary finding.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: over-engineering and DRY violations, plus
|
|
2
|
+
description: over-engineering and DRY violations, plus the profile's debug-artifact hygiene table
|
|
3
3
|
---
|
|
4
4
|
## Lens: lekker-simplification
|
|
5
5
|
|
|
@@ -16,7 +16,7 @@ Look for:
|
|
|
16
16
|
be plain if/else or async/await.
|
|
17
17
|
- Config spread: same magic constant defined in multiple files.
|
|
18
18
|
- Debug artifacts and hygiene: apply the fixed severity table in §3 of
|
|
19
|
-
`{{PROFILE}}` (
|
|
19
|
+
`{{PROFILE}}` (its conventions section) - `debugger` and
|
|
20
20
|
`.only`/`fit`/`fdescribe` are critical, an added `console.log`/`console.debug`
|
|
21
21
|
in production code and a hardcoded URL are major, an unreferenced
|
|
22
22
|
TODO/FIXME and a >3-line commented-out block are minor. Those severities
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: whether tests actually catch bugs - mutation-slip analysis, mock smell,
|
|
2
|
+
description: whether tests actually catch bugs - mutation-slip analysis, mock smell, team test conventions
|
|
3
3
|
---
|
|
4
4
|
## Lens: lekker-test-quality
|
|
5
5
|
|
|
@@ -77,7 +77,7 @@ f) Test-to-code ratio signal
|
|
|
77
77
|
|
|
78
78
|
g) Mock smell - test the behavior, not the way it's built
|
|
79
79
|
(House standard: Notion "To mock or not to mock" -
|
|
80
|
-
https://
|
|
80
|
+
https://martinfowler.com/articles/mocksArentStubs.html)
|
|
81
81
|
Flag tests coupled to *how* the code is built rather than *what* it does for
|
|
82
82
|
the user. For each smell, do NOT just criticize: give the concrete no-mock
|
|
83
83
|
refactor. The default fix is almost always the same shape - pull the logic
|
|
@@ -131,7 +131,7 @@ 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)
|
|
134
|
+
h) Team test conventions
|
|
135
135
|
Read `{{PROFILE}}` and apply its §4 (test conventions) to every test file in
|
|
136
136
|
the diff: `__tests__/` placement beside the source, `.test.ts` vs
|
|
137
137
|
`.test.tsx`, English-sentence test names, `describe` nesting <= 2,
|
|
@@ -1,163 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Project profile
|
|
2
2
|
|
|
3
|
-
This is
|
|
4
|
-
|
|
5
|
-
|
|
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.
|
|
6
9
|
|
|
7
10
|
---
|
|
8
11
|
|
|
9
|
-
#
|
|
12
|
+
# Default conventions (styling, naming, comments, tests, hygiene)
|
|
10
13
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
These rules are non-negotiable. Violations are always **Critical** findings regardless of depth or other filters. Apply them when developing a feature or bugfix, not only during review.
|
|
14
|
-
|
|
15
|
-
### TS-1 - Type safety (TypeScript only)
|
|
16
|
-
|
|
17
|
-
- No type casting (`as X`, `<X>expr`) - ask them if they are Harry Potter for casting spells.
|
|
18
|
-
- No `any` - except in test files where types are genuinely hard to express; even there, blatantly omitted types (e.g. `any[]` on a known shaped list) must be flagged.
|
|
19
|
-
- Every finding: quote the cast/`any`, explain the correct type, show the fix.
|
|
20
|
-
|
|
21
|
-
### TS-2 - No JavaScript files
|
|
22
|
-
|
|
23
|
-
- No `.js` files may be added to any Teifi integrations repo.
|
|
24
|
-
- Exception: Liquid themes (Online Store 2.0 Shopify themes) may contain `.js`.
|
|
25
|
-
- If the PR adds a `.js` file to a non-theme repo, flag it as Critical: must be converted to `.ts`.
|
|
26
|
-
|
|
27
|
-
### GQL-1 - GraphQL NodesConnection pagination
|
|
28
|
-
|
|
29
|
-
- Every query that uses a nodes connection (`nodes { ... }`) **must** include `pageInfo { hasNextPage endCursor }` alongside the nodes.
|
|
30
|
-
- All remaining pages **must** be fetched - a single-page fetch with no loop/recursion is a bug.
|
|
31
|
-
- The page size **must** be `250` (Shopify max). If any other value is used, a code comment explaining why is required; if no comment exists, flag it.
|
|
32
|
-
|
|
33
|
-
### PR-1 - PR title must be prefixed with Linear ticket(s)
|
|
34
|
-
|
|
35
|
-
- PR title must start with `[GIC-123]` (or the relevant project prefix) in square brackets.
|
|
36
|
-
- Go through the commit history: if merged PRs or commits reference Linear tickets in square brackets (`[GIC-123]`), all of them must appear comma-separated in the current PR title (e.g. `[GIC-123,GIC-124]`).
|
|
37
|
-
- This is a **blocking** finding: display a prominent `⛔ CANNOT MERGE` warning and recommend the correct title prefix. Confidence score is not affected - this is a process rule, not a code quality signal.
|
|
38
|
-
|
|
39
|
-
### 1g. Repo placement check (Teifi multi-repo projects only)
|
|
40
|
-
|
|
41
|
-
For any PR in a `Teifi-Digital/` repo, verify that the code being changed
|
|
42
|
-
belongs in *this* repo and not a sibling repo.
|
|
43
|
-
|
|
44
|
-
**Teifi repo taxonomy:**
|
|
45
|
-
|
|
46
|
-
| Repo pattern | Purpose |
|
|
47
|
-
|---|---|
|
|
48
|
-
| `*-live` (e.g. `gic-live`, `evi-live`) | Shopify app: customer account extensions, app blocks, storefront extensions, Polaris admin UI |
|
|
49
|
-
| `*-integrations` (e.g. `evi-integrations`; see the GIC exception below) | Backend ERP sync: cron jobs, orchestrator, BC/Sage/Jitterbit/ROI API clients |
|
|
50
|
-
| `teifi-digital` / shared libs | Cross-project utilities, shared types |
|
|
51
|
-
|
|
52
|
-
**Note:** `gic-integrations` has an `extensions/` folder containing legacy/reference extensions (e.g. `link-account-customer`), but **new customer account extensions for GIC should target `gic-live`** per project specs. Always check the Linear/Notion ticket for explicit repo path - don't infer from existing repo contents alone.
|
|
53
|
-
|
|
54
|
-
**Action:** If the diff adds a new Shopify extension and the PR targets `*-integrations`, check the Linear/Notion spec for the explicit target directory. If the spec names `*-live`, flag it as a **Critical** placement error (`## 🏠 Wrong Repo`).
|
|
55
|
-
|
|
56
|
-
Include: spec quote with correct path, which repo to target, and the risk (wrong Shopify Partner app, extension not published to correct store).
|
|
57
|
-
|
|
58
|
-
## Notes for Teifi / evi-integrations
|
|
59
|
-
|
|
60
|
-
### Standing coding rules (apply during development and review)
|
|
61
|
-
|
|
62
|
-
| Rule | What | When to flag |
|
|
63
|
-
|---|---|---|
|
|
64
|
-
| TS-1 | No type casts (`as X`), no `any` | Critical; test files lenient on genuine unknowns only |
|
|
65
|
-
| TS-2 | No `.js` files in integrations repos | Critical; Liquid themes exempt |
|
|
66
|
-
| GQL-1 | nodes connections need `pageInfo`, all pages fetched, size=250 | Critical if pageInfo/pagination missing; Important if size≠250 without comment |
|
|
67
|
-
| PR-1 | PR title must start with `[TICKET-NNN]`; include all commit-referenced tickets | Blocking - ⛔ CANNOT MERGE warning |
|
|
68
|
-
| FLAG-1 | Reflag repos only: risky change should ship behind a feature flag | Non-blocking; `important` at most, usually `observation`. Never a `rule:` tag |
|
|
69
|
-
|
|
70
|
-
These apply equally when you are writing a feature or bugfix - not only in review.
|
|
71
|
-
|
|
72
|
-
### FLAG-1 - Ship behind a feature flag (Reflag repos only)
|
|
73
|
-
|
|
74
|
-
Applies ONLY where a `package.json` (any depth, excluding `node_modules`) depends on
|
|
75
|
-
`@reflag/node-sdk` or `@teifi-digital/reflag-client`. Elsewhere there is no flag client,
|
|
76
|
-
so the finding is unactionable and must not be raised.
|
|
77
|
-
|
|
78
|
-
Flag it when any of these hold:
|
|
79
|
-
- a client should validate it before everyone sees it
|
|
80
|
-
- it changes data shape or what gets written
|
|
81
|
-
- it touches orders, money, or fulfilment
|
|
82
|
-
- it cannot be verified without real client data or volume
|
|
83
|
-
|
|
84
|
-
Just ship it when: pure UI/copy with no data change; a bug fix that is strictly better
|
|
85
|
-
and obviously correct; an internal/admin-only surface; fully covered by tests and
|
|
86
|
-
verifiable in staging.
|
|
87
|
-
|
|
88
|
-
Tie-breaker: would you be comfortable being the one to fix this forward at 2am?
|
|
89
|
-
Yes → ship it. No → flag it.
|
|
90
|
-
|
|
91
|
-
Deliberately NOT blocking, unlike TS-1/GQL-1/PR-1: whether something needs a flag is a
|
|
92
|
-
rollout judgement, not a correctness violation, and a blocking comment on every
|
|
93
|
-
borderline diff trains people to ignore the signal. Never invent a concrete flag key -
|
|
94
|
-
keys must be confirmed against Reflag, so say a flag is needed without naming one.
|
|
95
|
-
|
|
96
|
-
Related: a diff that BOTH adds a column/table AND changes what is read or written must
|
|
97
|
-
be split into expand / migrate / read-switch / contract PRs (`important`, name the split).
|
|
98
|
-
|
|
99
|
-
### CONS-1 — One rule, two implementations, must agree
|
|
100
|
-
|
|
101
|
-
When a change enforces the same business rule in two places that can both run
|
|
102
|
-
for the same input — a client-side guard and the server-side validator behind
|
|
103
|
-
it, a UI filter and its query, a webhook handler and the cron that backfills the
|
|
104
|
-
same state — the two must make the same decision for every input class.
|
|
105
|
-
|
|
106
|
-
Build both decision tables and compare them row by row, including the
|
|
107
|
-
missing/undefined input, the not-applicable actor, the flag-off case and the
|
|
108
|
-
error path. The server-side, unbypassable layer is authoritative; the advisory
|
|
109
|
-
layer must match it. A client layer that is STRICTER than the server is a bug,
|
|
110
|
-
not extra safety: it blocks work the system allows.
|
|
111
|
-
|
|
112
|
-
Severity: critical when the divergence blocks a legitimate action or admits one
|
|
113
|
-
that should be blocked; major when the authoritative layer is still right and
|
|
114
|
-
only the message is wrong. Detail and the reporting format live in the
|
|
115
|
-
`lekker-consistency` lens.
|
|
116
|
-
|
|
117
|
-
### Stack context to inform the review:
|
|
118
|
-
|
|
119
|
-
- **Backend:** TypeScript, Node.js, Express, Prisma, pgtyped, PostgreSQL
|
|
120
|
-
- **Frontend:** React, Shopify Polaris, Vite
|
|
121
|
-
- **Shopify:** REST Admin + GraphQL Admin, Webhooks, Shopify Functions, genql
|
|
122
|
-
- **External APIs:** Business Central (OAuth2, rate-limited), Salesforce GraphQL, ROI
|
|
123
|
-
- **Infra:** Docker Compose locally; environment-var–driven cron syncs via `orchestrator.ts`
|
|
124
|
-
- **Type gen pipeline:** pgtyped (SQL→TS), genql (GraphQL→TS), json2ts (schemas→TS) -
|
|
125
|
-
check that generated files are regenerated when their sources change
|
|
126
|
-
- **MCPs available:** Linear, Slack, Notion, Shopify Dev docs, Harvest, Sentry
|
|
127
|
-
|
|
128
|
-
### Repo taxonomy (for Step 1g placement check)
|
|
129
|
-
|
|
130
|
-
**Per-project repo structure varies - always verify before flagging.**
|
|
131
|
-
|
|
132
|
-
- For **EVI project**: `evi-integrations` = backend ERP sync only; `evi-live` = Shopify app (extensions, Polaris UI).
|
|
133
|
-
- For **GIC project**: `gic-integrations` owns the ERP backend sync and retains
|
|
134
|
-
legacy/reference Shopify extensions. New GIC customer account extensions belong
|
|
135
|
-
in `gic-live`; do not treat the legacy `extensions/` folder as placement precedent.
|
|
136
|
-
- For other projects (`rsl-*`, `elmt-*`, etc.): check the repo's `extensions/` folder
|
|
137
|
-
presence before assuming a split - do not assume the `*-integrations` pattern always
|
|
138
|
-
means backend-only.
|
|
139
|
-
|
|
140
|
-
**Step 1g action**: Before flagging a placement mismatch, run:
|
|
141
|
-
|
|
142
|
-
```bash
|
|
143
|
-
gh api "repos/<REPO_SLUG>/git/trees/HEAD" 2>/dev/null | python3 -c "
|
|
144
|
-
import sys,json; t=json.load(sys.stdin).get('tree',[]); print([f['path'] for f in t if f['path']=='extensions'])
|
|
145
|
-
"
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
If `extensions/` exists in the target repo, placement may be intentional, but
|
|
149
|
-
that alone is not precedent for new GIC extensions. Flag when the repo has no
|
|
150
|
-
`extensions/` folder, or when a GIC spec targets the new extension to `gic-live`.
|
|
151
|
-
|
|
152
|
-
---
|
|
153
|
-
|
|
154
|
-
# Teifi soft conventions (styling, naming, comments, tests, hygiene)
|
|
155
|
-
|
|
156
|
-
Companion to `teifi-rules.md`. Those are the four HARD rules (TS-1, TS-2,
|
|
157
|
-
GQL-1, PR-1) - always Critical. This file is the house style the Teifi
|
|
158
|
-
plugin skills enforce during development (`teifi-dev:code-review`,
|
|
159
|
-
`rename-pass`, `comment-stripper`, `unit-test-best-practices`). A review that
|
|
160
|
-
misses them lets the same nits come back from the human reviewer.
|
|
14
|
+
These are default house-style conventions. A review that misses them lets the
|
|
15
|
+
same nits come back from the human reviewer.
|
|
161
16
|
|
|
162
17
|
Severity ceiling: everything here is **idiomatic** unless a row says otherwise.
|
|
163
18
|
Cite a precedent from the codebase where the row asks for one, and never
|
|
@@ -165,7 +20,7 @@ inflate a style deviation into Critical.
|
|
|
165
20
|
|
|
166
21
|
---
|
|
167
22
|
|
|
168
|
-
## 1. Naming matrix
|
|
23
|
+
## 1. Naming matrix
|
|
169
24
|
|
|
170
25
|
Flag a name the diff INTRODUCES that breaks a row. Renaming is cheap in the
|
|
171
26
|
diff, expensive later - but a rename is still a cost, so leave conforming
|
|
@@ -233,7 +88,7 @@ it to a human if it matters.
|
|
|
233
88
|
|
|
234
89
|
---
|
|
235
90
|
|
|
236
|
-
## 2. Comment policy
|
|
91
|
+
## 2. Comment policy
|
|
237
92
|
|
|
238
93
|
**Default: a comment should not exist.** It earns its place only by saying
|
|
239
94
|
something the code *cannot*, and then in as few words as possible. Flag each
|
|
@@ -250,8 +105,8 @@ Flag a comment that:
|
|
|
250
105
|
only for a non-obvious *contract*;
|
|
251
106
|
- explains obvious syntax or a well-known API;
|
|
252
107
|
- repeats a rationale stated elsewhere in the diff (keep ONE canonical place);
|
|
253
|
-
- is changelog/AI noise - ticket IDs (`
|
|
254
|
-
"why we chose X" essays. A single `@see
|
|
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;
|
|
255
110
|
- **references what the reader cannot see** - a removed line or a prior
|
|
256
111
|
approach ("no longer using the old Y"). Source shows what the code *is*;
|
|
257
112
|
- **documents invisible coupling** - "ordered this way because some other code
|
|
@@ -290,7 +145,7 @@ repo has a logger idiom - then cite it.
|
|
|
290
145
|
|
|
291
146
|
---
|
|
292
147
|
|
|
293
|
-
## 4. Test conventions
|
|
148
|
+
## 4. Test conventions
|
|
294
149
|
|
|
295
150
|
These are on top of the mutation/mock analysis the test-quality agent already
|
|
296
151
|
does. Each is an `idiomatic` finding with the corrected code as the `fix`.
|
|
@@ -345,21 +200,10 @@ block.
|
|
|
345
200
|
|
|
346
201
|
## 6. Generated code - check the source, not the artifact
|
|
347
202
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
| Source changed | Artifact that must be regenerated |
|
|
353
|
-
|---|---|
|
|
354
|
-
| `services/db/queries/*.sql` | `services/db/queries/generated/` (pgtyped) |
|
|
355
|
-
| `services/gql/queries/*.graphql` | `services/gql/queries/generated/queries.ts` (genql) |
|
|
356
|
-
| `schemas/*.json` | `schemas/generated/` (json2ts) |
|
|
357
|
-
| `prisma/schema.prisma` | a migration in `prisma/migrations/` + Prisma client |
|
|
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.
|
|
358
207
|
|
|
359
208
|
Never review the *content* of a generated file as if it were hand-written - no
|
|
360
209
|
naming, comment, or complexity findings inside `generated/`. Review the source.
|
|
361
|
-
|
|
362
|
-
Related hard convention (project CLAUDE.md): Shopify Admin API calls go through
|
|
363
|
-
the genql client (`gql.<file>.<query>.run(graphql, vars)`) - a hand-rolled
|
|
364
|
-
`fetch` to `/admin/api/…/graphql.json` is an `important` finding even for a
|
|
365
|
-
one-off probe.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: Deep review: lekker-medium (incl. cross-layer consistency) plus revmux's own bugs+impl second opinion, claude-only
|
|
3
3
|
model: claude/sonnet:medium
|
|
4
4
|
agents:
|
|
5
5
|
- {name: quality+impl, lenses: [lekker-quality, lekker-implementation], color: cyan}
|
|
@@ -26,8 +26,8 @@ Every item below is a **path**, not the text it names. Read the file or director
|
|
|
26
26
|
- `{{SCOPE}}`: what is under review and the command that produces the diff. Read this first and run
|
|
27
27
|
that command yourself.
|
|
28
28
|
- `{{GOAL}}`: what the change is trying to achieve.
|
|
29
|
-
- `{{PROFILE}}`:
|
|
30
|
-
they win. This is also where
|
|
29
|
+
- `{{PROFILE}}`: The team's own rules and conventions. Where they disagree with your general taste,
|
|
30
|
+
they win. This is also where any hard-rule text and the default
|
|
31
31
|
conventions (naming matrix, comment policy, hygiene severities, test conventions) live in full.
|
|
32
32
|
- `{{CONTEXT}}`: a directory of supporting material: ticket text, design notes, spec excerpts, CI
|
|
33
33
|
status, Sentry signals, existing review comments.
|
|
@@ -51,10 +51,9 @@ a finding; leave it out.
|
|
|
51
51
|
|
|
52
52
|
## Hard-rule findings are policy, not a runtime question
|
|
53
53
|
|
|
54
|
-
Findings titled
|
|
54
|
+
Findings titled with a hard-rule ID from `{{PROFILE}}` are the team's own policy violations,
|
|
55
55
|
defined in full in `{{PROFILE}}`. Confirm one when the quoted code shows the pattern the rule
|
|
56
|
-
names
|
|
57
|
-
title missing its ticket prefix. Never rate a hard-rule finding by its runtime impact and never mark
|
|
56
|
+
names. Never rate a hard-rule finding by its runtime impact and never mark
|
|
58
57
|
it immaterial for lack of one: the rule itself is the standard, and violating it is always critical,
|
|
59
58
|
independent of whether it happens to fail at runtime today.
|
|
60
59
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: Medium-depth review: five claude agents incl. cross-layer consistency, adversarial second pass, claude-only
|
|
3
3
|
model: claude/sonnet:medium
|
|
4
4
|
agents:
|
|
5
5
|
- {name: quality+impl, lenses: [lekker-quality, lekker-implementation], color: cyan}
|
|
@@ -25,8 +25,8 @@ Every item below is a **path**, not the text it names. Read the file or director
|
|
|
25
25
|
- `{{SCOPE}}`: what is under review and the command that produces the diff. Read this first and run
|
|
26
26
|
that command yourself.
|
|
27
27
|
- `{{GOAL}}`: what the change is trying to achieve.
|
|
28
|
-
- `{{PROFILE}}`:
|
|
29
|
-
they win. This is also where
|
|
28
|
+
- `{{PROFILE}}`: The team's own rules and conventions. Where they disagree with your general taste,
|
|
29
|
+
they win. This is also where any hard-rule text and the default
|
|
30
30
|
conventions (naming matrix, comment policy, hygiene severities, test conventions) live in full.
|
|
31
31
|
- `{{CONTEXT}}`: a directory of supporting material: ticket text, design notes, spec excerpts, CI
|
|
32
32
|
status, Sentry signals, existing review comments.
|
|
@@ -50,10 +50,9 @@ a finding; leave it out.
|
|
|
50
50
|
|
|
51
51
|
## Hard-rule findings are policy, not a runtime question
|
|
52
52
|
|
|
53
|
-
Findings titled
|
|
53
|
+
Findings titled with a hard-rule ID from `{{PROFILE}}` are the team's own policy violations,
|
|
54
54
|
defined in full in `{{PROFILE}}`. Confirm one when the quoted code shows the pattern the rule
|
|
55
|
-
names
|
|
56
|
-
title missing its ticket prefix. Never rate a hard-rule finding by its runtime impact and never mark
|
|
55
|
+
names. Never rate a hard-rule finding by its runtime impact and never mark
|
|
57
56
|
it immaterial for lack of one: the rule itself is the standard, and violating it is always critical,
|
|
58
57
|
independent of whether it happens to fail at runtime today.
|
|
59
58
|
|
package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/fixtures/revmux-report.json
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"severity": "minor",
|
|
37
37
|
"confidence": 0.6,
|
|
38
38
|
"title": "Log helper name does not follow the naming matrix",
|
|
39
|
-
"body": "getLogger performs no I/O, per
|
|
39
|
+
"body": "getLogger performs no I/O, per org-conventions section 1 it should not be prefixed get.",
|
|
40
40
|
"fix": "Rename to buildLogger.",
|
|
41
41
|
"sources": ["simpl+conventions"],
|
|
42
42
|
"lenses": ["lekker-conventions"],
|