@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Path-based risk for AUTO-DEPTH. Size alone misses the small PRs that matter:
|
|
3
|
-
// a 10-line change to a workflow file
|
|
3
|
+
// a 10-line change to a workflow file or a session check.
|
|
4
4
|
//
|
|
5
5
|
// Usage:
|
|
6
6
|
// node risk-paths.mjs [--diff <pr.diff>] -- <changed-file>...
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// Use a shell-free process API for file arguments; never interpolate PR paths.
|
|
9
9
|
//
|
|
10
10
|
// Prints {"deep": bool, "needsHumanReview": bool, "categories": [{category, files}]}.
|
|
11
|
-
// `--diff`
|
|
11
|
+
// `--diff` is still accepted so existing callers keep working; no rule reads it.
|
|
12
12
|
|
|
13
13
|
import { readFileSync } from 'node:fs';
|
|
14
14
|
import { fileURLToPath } from 'node:url';
|
|
@@ -18,25 +18,16 @@ export const RISK_RULES = [
|
|
|
18
18
|
{ category: 'auth', test: (f) => /(^|[/._-])(auth|authn|authz|authenticate|authenticated|authentication|authorize|authorized|authorization|oauth|session|sessions|permission|permissions|rbac|acl|jwt|login)([/._-]|$)/i.test(f.replace(/([a-z0-9])([A-Z])/g, '$1-$2')) },
|
|
19
19
|
{ category: 'billing', test: (f) => /(billing|payment|payments|invoice|invoices|checkout|stripe|subscription)/i.test(f) },
|
|
20
20
|
{ category: 'installer', test: (f) => /(^|\/)(install|setup|bootstrap|preinstall|postinstall)(?:[^/.]*|[^/]*\.(sh|bash|zsh|ps1|js|mjs|cjs|ts|py|bat|cmd))$/i.test(f) },
|
|
21
|
-
{ category: 'p21', test: (f) => /p21/i.test(f) },
|
|
22
21
|
];
|
|
23
22
|
|
|
24
|
-
export function
|
|
25
|
-
return diffText.split('\n').some((l) => l.startsWith('+') && !l.startsWith('+++') && pattern.test(l));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export function riskPaths(files, diffText = '') {
|
|
23
|
+
export function riskPaths(files) {
|
|
29
24
|
const categories = RISK_RULES
|
|
30
25
|
.map((rule) => ({ category: rule.category, files: files.filter(rule.test) }))
|
|
31
|
-
.map((c) => (c.category === 'p21' && c.files.length === 0 && addedLinesMention(diffText, /p21/i)
|
|
32
|
-
? { ...c, files: ['(identifier p21 in added lines)'] }
|
|
33
|
-
: c))
|
|
34
26
|
.filter((c) => c.files.length > 0);
|
|
35
27
|
return { deep: categories.length > 0, needsHumanReview: categories.length > 0, categories };
|
|
36
28
|
}
|
|
37
29
|
|
|
38
30
|
function main(argv) {
|
|
39
|
-
let diffText = '';
|
|
40
31
|
let inputMode = null;
|
|
41
32
|
const files = [];
|
|
42
33
|
for (let i = 0; i < argv.length; i++) {
|
|
@@ -47,7 +38,7 @@ function main(argv) {
|
|
|
47
38
|
}
|
|
48
39
|
if (arg === '--diff') {
|
|
49
40
|
if (!argv[i + 1] || argv[i + 1] === '--') throw new Error('--diff requires a file');
|
|
50
|
-
|
|
41
|
+
i++;
|
|
51
42
|
} else if (arg === '--stdin' || arg === '--stdin0') {
|
|
52
43
|
if (inputMode) throw new Error('Choose only one stdin mode');
|
|
53
44
|
inputMode = arg;
|
|
@@ -61,7 +52,7 @@ function main(argv) {
|
|
|
61
52
|
if (files.length) throw new Error('Do not mix stdin and file arguments');
|
|
62
53
|
files.push(...readFileSync(0, 'utf8').split(inputMode === '--stdin0' ? '\0' : '\n').filter(Boolean));
|
|
63
54
|
}
|
|
64
|
-
console.log(JSON.stringify(riskPaths(files
|
|
55
|
+
console.log(JSON.stringify(riskPaths(files)));
|
|
65
56
|
}
|
|
66
57
|
|
|
67
58
|
if (process.argv[1] === fileURLToPath(import.meta.url)) main(process.argv.slice(2));
|
|
@@ -41,7 +41,7 @@ Before running, confirm:
|
|
|
41
41
|
- `VAULT_PEOPLE`: derive as `${vault_path}/Lead/People`
|
|
42
42
|
- `SELF_EMAIL`: the user's calendar email address, used to exclude the user from attendee processing
|
|
43
43
|
- `GH_USERNAME`: GitHub login to exclude self-authored PRs (e.g. `oleg-koval`)
|
|
44
|
-
- `ORG_PREFIX`: org name to group as "Work" (e.g. `
|
|
44
|
+
- `ORG_PREFIX`: org name to group as "Work" (e.g. `acme-org`); everything else goes to "Personal"
|
|
45
45
|
|
|
46
46
|
If not specified by the user, infer from context (git config, existing vault files).
|
|
47
47
|
|
|
@@ -80,9 +80,9 @@ For each unique author login, resolve a display name for the Obsidian wiki-link:
|
|
|
80
80
|
gh api /users/<login> --jq '.name // .login'
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
If the API returns a name, use it (e.g. `
|
|
84
|
-
back to the login with first letter uppercased. This gives `[[
|
|
85
|
-
`[[
|
|
83
|
+
If the API returns a name, use it (e.g. `Sam Roe`). If it returns null, fall
|
|
84
|
+
back to the login with first letter uppercased. This gives `[[Sam Roe]]` or
|
|
85
|
+
`[[Alexdoe]]`.
|
|
86
86
|
|
|
87
87
|
Batch these lookups: run them in parallel if possible to keep the sync fast.
|
|
88
88
|
|
|
@@ -114,7 +114,7 @@ Rules:
|
|
|
114
114
|
|
|
115
115
|
**Example line:**
|
|
116
116
|
```
|
|
117
|
-
- [ ] [
|
|
117
|
+
- [ ] [PROJ-108] Image sync from the PIM by [[Alex Doe]] (12 days old ⚠️)
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
## Step 6: Write to today's daily note
|
|
@@ -216,7 +216,7 @@ next-1-1:
|
|
|
216
216
|
|
|
217
217
|
- [[Lead/Daily/<TODAY>]] - <Event title>
|
|
218
218
|
|
|
219
|
-
<!-- Classify:
|
|
219
|
+
<!-- Classify: example.com email → Peers or Reports · external email → Stakeholders -->
|
|
220
220
|
```
|
|
221
221
|
|
|
222
222
|
Do not add `## Code Review Signals`; that section is for direct reports only.
|
|
@@ -35,7 +35,7 @@ Two things make this skill better than pasting a prompt into a chat window:
|
|
|
35
35
|
Never teach from memory alone. First pin the topic, then go read the ground truth.
|
|
36
36
|
|
|
37
37
|
1. **Confirm scope in one line.** What exactly are we learning, to what depth, and
|
|
38
|
-
why? If the request is vague ("learn the
|
|
38
|
+
why? If the request is vague ("learn the Example project"), ask one clarifying
|
|
39
39
|
question, then proceed. Do not over-interview.
|
|
40
40
|
|
|
41
41
|
2. **Gather real sources** appropriate to the topic. Spend a few minutes here; it
|
|
@@ -41,7 +41,7 @@ Before running, confirm:
|
|
|
41
41
|
- `VAULT_PEOPLE`: derive as `${vault_path}/Lead/People`
|
|
42
42
|
- `SELF_EMAIL`: the user's calendar email address, used to exclude the user from attendee processing
|
|
43
43
|
- `GH_USERNAME`: GitHub login to exclude self-authored PRs (e.g. `oleg-koval`)
|
|
44
|
-
- `ORG_PREFIX`: org name to group as "Work" (e.g. `
|
|
44
|
+
- `ORG_PREFIX`: org name to group as "Work" (e.g. `acme-org`); everything else goes to "Personal"
|
|
45
45
|
|
|
46
46
|
If not specified by the user, infer from context (git config, existing vault files).
|
|
47
47
|
|
|
@@ -80,9 +80,9 @@ For each unique author login, resolve a display name for the Obsidian wiki-link:
|
|
|
80
80
|
gh api /users/<login> --jq '.name // .login'
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
If the API returns a name, use it (e.g. `
|
|
84
|
-
back to the login with first letter uppercased. This gives `[[
|
|
85
|
-
`[[
|
|
83
|
+
If the API returns a name, use it (e.g. `Sam Roe`). If it returns null, fall
|
|
84
|
+
back to the login with first letter uppercased. This gives `[[Sam Roe]]` or
|
|
85
|
+
`[[Alexdoe]]`.
|
|
86
86
|
|
|
87
87
|
Batch these lookups: run them in parallel if possible to keep the sync fast.
|
|
88
88
|
|
|
@@ -114,7 +114,7 @@ Rules:
|
|
|
114
114
|
|
|
115
115
|
**Example line:**
|
|
116
116
|
```
|
|
117
|
-
- [ ] [
|
|
117
|
+
- [ ] [PROJ-108] Image sync from the PIM by [[Alex Doe]] (12 days old ⚠️)
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
## Step 6: Write to today's daily note
|
|
@@ -216,7 +216,7 @@ next-1-1:
|
|
|
216
216
|
|
|
217
217
|
- [[Lead/Daily/<TODAY>]] - <Event title>
|
|
218
218
|
|
|
219
|
-
<!-- Classify:
|
|
219
|
+
<!-- Classify: example.com email → Peers or Reports · external email → Stakeholders -->
|
|
220
220
|
```
|
|
221
221
|
|
|
222
222
|
Do not add `## Code Review Signals`; that section is for direct reports only.
|
|
@@ -35,7 +35,7 @@ Two things make this skill better than pasting a prompt into a chat window:
|
|
|
35
35
|
Never teach from memory alone. First pin the topic, then go read the ground truth.
|
|
36
36
|
|
|
37
37
|
1. **Confirm scope in one line.** What exactly are we learning, to what depth, and
|
|
38
|
-
why? If the request is vague ("learn the
|
|
38
|
+
why? If the request is vague ("learn the Example project"), ask one clarifying
|
|
39
39
|
question, then proceed. Do not over-interview.
|
|
40
40
|
|
|
41
41
|
2. **Gather real sources** appropriate to the topic. Spend a few minutes here; it
|
|
@@ -41,7 +41,7 @@ Before running, confirm:
|
|
|
41
41
|
- `VAULT_PEOPLE`: derive as `${vault_path}/Lead/People`
|
|
42
42
|
- `SELF_EMAIL`: the user's calendar email address, used to exclude the user from attendee processing
|
|
43
43
|
- `GH_USERNAME`: GitHub login to exclude self-authored PRs (e.g. `oleg-koval`)
|
|
44
|
-
- `ORG_PREFIX`: org name to group as "Work" (e.g. `
|
|
44
|
+
- `ORG_PREFIX`: org name to group as "Work" (e.g. `acme-org`); everything else goes to "Personal"
|
|
45
45
|
|
|
46
46
|
If not specified by the user, infer from context (git config, existing vault files).
|
|
47
47
|
|
|
@@ -80,9 +80,9 @@ For each unique author login, resolve a display name for the Obsidian wiki-link:
|
|
|
80
80
|
gh api /users/<login> --jq '.name // .login'
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
If the API returns a name, use it (e.g. `
|
|
84
|
-
back to the login with first letter uppercased. This gives `[[
|
|
85
|
-
`[[
|
|
83
|
+
If the API returns a name, use it (e.g. `Sam Roe`). If it returns null, fall
|
|
84
|
+
back to the login with first letter uppercased. This gives `[[Sam Roe]]` or
|
|
85
|
+
`[[Alexdoe]]`.
|
|
86
86
|
|
|
87
87
|
Batch these lookups: run them in parallel if possible to keep the sync fast.
|
|
88
88
|
|
|
@@ -114,7 +114,7 @@ Rules:
|
|
|
114
114
|
|
|
115
115
|
**Example line:**
|
|
116
116
|
```
|
|
117
|
-
- [ ] [
|
|
117
|
+
- [ ] [PROJ-108] Image sync from the PIM by [[Alex Doe]] (12 days old ⚠️)
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
## Step 6: Write to today's daily note
|
|
@@ -216,7 +216,7 @@ next-1-1:
|
|
|
216
216
|
|
|
217
217
|
- [[Lead/Daily/<TODAY>]] - <Event title>
|
|
218
218
|
|
|
219
|
-
<!-- Classify:
|
|
219
|
+
<!-- Classify: example.com email → Peers or Reports · external email → Stakeholders -->
|
|
220
220
|
```
|
|
221
221
|
|
|
222
222
|
Do not add `## Code Review Signals`; that section is for direct reports only.
|
|
@@ -35,7 +35,7 @@ Two things make this skill better than pasting a prompt into a chat window:
|
|
|
35
35
|
Never teach from memory alone. First pin the topic, then go read the ground truth.
|
|
36
36
|
|
|
37
37
|
1. **Confirm scope in one line.** What exactly are we learning, to what depth, and
|
|
38
|
-
why? If the request is vague ("learn the
|
|
38
|
+
why? If the request is vague ("learn the Example project"), ask one clarifying
|
|
39
39
|
question, then proceed. Do not over-interview.
|
|
40
40
|
|
|
41
41
|
2. **Gather real sources** appropriate to the topic. Spend a few minutes here; it
|
|
@@ -9,7 +9,7 @@ The skill text is identical in the three cached plugin versions (1.54.0, 1.56.2,
|
|
|
9
9
|
- Distinct reported score trajectories found by grep (14): 62->82, 55->76->85, 68->82->90, 68->84, 66->88->93, 68->85,
|
|
10
10
|
72->85, 55->80->88, 80->89, 66->88, 62->80->90, 62->78->88, 72->84, 58->82.
|
|
11
11
|
Round 1 ranges 55-80 (median ~66); every run gains +15 to +30; 4 of 14 end at >= 90; 0 of 14 scored >= 90 on round 1.
|
|
12
|
-
- 28 memory files in the
|
|
12
|
+
- 28 memory files in the app-integrations memory dir cite a critic as their origin. One index line
|
|
13
13
|
("Cause line names the unverified hop") has grown to ~27 semicolon-joined clauses: the "sharpen the existing rule"
|
|
14
14
|
dedupe instruction turned one file into a dumping ground.
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -305,7 +305,7 @@ Never interpolate PR-controlled paths into shell source. Alternatively pipe
|
|
|
305
305
|
Do not continue on classifier failure; report risk classification unavailable.
|
|
306
306
|
|
|
307
307
|
The classifier detects configured path patterns for CI workflows, auth,
|
|
308
|
-
billing, installers/setup
|
|
308
|
+
billing, and installers/setup. These are path
|
|
309
309
|
heuristics, not complete detection of auth/billing behavior in generic files;
|
|
310
310
|
reviewers still inspect that behavior in the diff. Whenever
|
|
311
311
|
`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:
|
package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-conventions.md
CHANGED
|
@@ -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
|
package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-quality.md
CHANGED
|
@@ -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
|
package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-test-quality.md
CHANGED
|
@@ -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,
|