@olegkoval/agent-skills 1.87.2 → 1.88.0

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 (60) hide show
  1. package/.github/prompts/crash-course.prompt.md +1 -1
  2. package/.github/prompts/obsidian-pr-sync.prompt.md +6 -6
  3. package/.kiro/steering/crash-course.md +1 -1
  4. package/.kiro/steering/obsidian-pr-sync.md +6 -6
  5. package/.windsurf/rules/crash-course.md +1 -1
  6. package/.windsurf/rules/obsidian-pr-sync.md +6 -6
  7. package/adapters/claude/olko-github-pr/skills/lekker-review/SKILL.md +6 -2
  8. package/adapters/claude/olko-github-pr/skills/lekker-review/references/comment-voice.md +97 -0
  9. package/adapters/claude/olko-github-pr/skills/lekker-review/references/github-post.md +61 -40
  10. package/adapters/claude/olko-github-pr/skills/lekker-review/references/output-format.md +1 -1
  11. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-conventions.md +10 -10
  12. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-implementation.md +2 -2
  13. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-quality.md +2 -2
  14. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-simplification.md +2 -2
  15. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-test-quality.md +3 -3
  16. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/profile.md +19 -175
  17. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/profiles/lekker-deep.md +5 -6
  18. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/profiles/lekker-medium.md +5 -6
  19. package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/comment-facts.mjs +151 -0
  20. package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/fixtures/revmux-report.json +1 -1
  21. package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/risk-paths.mjs +5 -14
  22. package/adapters/claude/olko-obsidian/skills/obsidian-pr-sync/SKILL.md +6 -6
  23. package/adapters/claude/olko-reflection/skills/crash-course/SKILL.md +1 -1
  24. package/adapters/cursor/olko-obsidian/skills/obsidian-pr-sync/SKILL.md +6 -6
  25. package/adapters/cursor/olko-reflection/skills/crash-course/SKILL.md +1 -1
  26. package/adapters/grok/olko-obsidian/skills/obsidian-pr-sync/SKILL.md +6 -6
  27. package/adapters/grok/olko-reflection/skills/crash-course/SKILL.md +1 -1
  28. package/docs/superpowers/specs/2026-10-27-self-critique-v2-spec.md +1 -1
  29. package/package.json +1 -1
  30. package/plugins/olko-apple-kit/.claude-plugin/plugin.json +1 -1
  31. package/plugins/olko-creative/.claude-plugin/plugin.json +1 -1
  32. package/plugins/olko-garmin-kit/.claude-plugin/plugin.json +1 -1
  33. package/plugins/olko-git-tools/.claude-plugin/plugin.json +1 -1
  34. package/plugins/olko-github-pr/.claude-plugin/plugin.json +1 -1
  35. package/plugins/olko-github-pr/skills/lekker-review/README.md +11 -0
  36. package/plugins/olko-github-pr/skills/lekker-review/SKILL.md +6 -2
  37. package/plugins/olko-github-pr/skills/lekker-review/references/comment-voice.md +97 -0
  38. package/plugins/olko-github-pr/skills/lekker-review/references/github-post.md +61 -40
  39. package/plugins/olko-github-pr/skills/lekker-review/references/output-format.md +1 -1
  40. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-conventions.md +10 -10
  41. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-implementation.md +2 -2
  42. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-quality.md +2 -2
  43. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-simplification.md +2 -2
  44. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-test-quality.md +3 -3
  45. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/profile.md +19 -175
  46. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/profiles/lekker-deep.md +5 -6
  47. package/plugins/olko-github-pr/skills/lekker-review/references/revmux/profiles/lekker-medium.md +5 -6
  48. package/plugins/olko-github-pr/skills/lekker-review/scripts/comment-facts.mjs +151 -0
  49. package/plugins/olko-github-pr/skills/lekker-review/scripts/fixtures/revmux-report.json +1 -1
  50. package/plugins/olko-github-pr/skills/lekker-review/scripts/risk-paths.mjs +5 -14
  51. package/plugins/olko-obsidian/.claude-plugin/plugin.json +1 -1
  52. package/plugins/olko-obsidian/skills/obsidian-pr-sync/SKILL.md +6 -6
  53. package/plugins/olko-product/.claude-plugin/plugin.json +1 -1
  54. package/plugins/olko-reflection/.claude-plugin/plugin.json +1 -1
  55. package/plugins/olko-reflection/skills/crash-course/SKILL.md +1 -1
  56. package/plugins/olko-release/.claude-plugin/plugin.json +1 -1
  57. package/plugins/olko-skill-meta/.claude-plugin/plugin.json +1 -1
  58. package/plugins/olko-web-ops/.claude-plugin/plugin.json +1 -1
  59. package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/phase4-comparison.md +0 -40
  60. 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 ELC project"), ask one clarifying
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. `Teifi-Digital`); everything else goes to "Personal"
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. `Rutger Klaassen`). If it returns null, fall
64
- back to the login with first letter uppercased. This gives `[[Rutger Klaassen]]` or
65
- `[[Merlijnmacgillavry]]`.
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
- - [ ] [RSL-108] Image sync from InRiver by [[Merlijn Mac Gillavry]] (12 days old ⚠️)
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: teifi.com email → Peers or Reports · external email → Stakeholders -->
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 ELC project"), ask one clarifying
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. `Teifi-Digital`); everything else goes to "Personal"
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. `Rutger Klaassen`). If it returns null, fall
63
- back to the login with first letter uppercased. This gives `[[Rutger Klaassen]]` or
64
- `[[Merlijnmacgillavry]]`.
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
- - [ ] [RSL-108] Image sync from InRiver by [[Merlijn Mac Gillavry]] (12 days old ⚠️)
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: teifi.com email → Peers or Reports · external email → Stakeholders -->
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 ELC project"), ask one clarifying
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. `Teifi-Digital`); everything else goes to "Personal"
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. `Rutger Klaassen`). If it returns null, fall
62
- back to the login with first letter uppercased. This gives `[[Rutger Klaassen]]` or
63
- `[[Merlijnmacgillavry]]`.
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
- - [ ] [RSL-108] Image sync from InRiver by [[Merlijn Mac Gillavry]] (12 days old ⚠️)
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: teifi.com email → Peers or Reports · external email → Stakeholders -->
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, and P21, plus `p21` in added lines. These are path
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
@@ -1438,7 +1438,11 @@ just created a PR, in which case use that PR number.
1438
1438
 
1439
1439
  Follow `references/github-post.md`:
1440
1440
  - Build a JSON payload with Critical + Important findings as inline comments
1441
- (only for lines present in the diff hunks).
1441
+ (only for lines present in the diff hunks), written in the ask / why / fix
1442
+ shape from `references/comment-voice.md`.
1443
+ - Polish the inline comments with one agent, then merge through
1444
+ `scripts/comment-facts.mjs`, which reverts any comment whose facts drifted
1445
+ (github-post.md Step 2b). Report `comments polished: N/M` in one line.
1442
1446
  - POST via `gh api repos/<REPO_SLUG>/pulls/<PR_NUMBER>/reviews` with NO
1443
1447
  `event` field (creates PENDING, visible only to you).
1444
1448
  - Verify post-condition: fetch review list, confirm PENDING state exists.
@@ -0,0 +1,97 @@
1
+ # comment-voice.md -- how an inline PR comment reads
2
+
3
+ Used twice by `references/github-post.md`: when drafting inline comments, and by
4
+ the polish agent that rewrites them before posting. Adapted for code review from
5
+ [Clarity](https://github.com/addyosmani/clarity) by Addy Osmani (MIT). When the
6
+ full Clarity skill is installed, the polish agent also reads its
7
+ `references/edit.md`; this file stays the authority on shape and length.
8
+
9
+ ## The reader
10
+
11
+ The PR author, reading one comment at a time in a narrow column, often between
12
+ other work. They know their own code. They do not know what the reviewer agents
13
+ found, which identifiers the finding hinges on, or why it matters. A comment
14
+ succeeds when the author understands the problem and acts without opening the
15
+ saved review.
16
+
17
+ ## Shape
18
+
19
+ ```
20
+ <The ask: one sentence, plain words, what to change and where.>
21
+
22
+ **Why:** <what goes wrong, for whom, and when, in plain words first. Then the
23
+ mechanism, naming the code only where the author needs it to find the spot.
24
+ One concrete scenario when it makes the failure believable.>
25
+
26
+ <A ```suggestion block when the fix exactly replaces the commented lines,
27
+ otherwise: **Fix:** <one sentence>.>
28
+ <!-- lekker:<dimension> -->
29
+ ```
30
+
31
+ - **Length:** under ~900 characters, not counting the suggestion block. Short
32
+ enough to read in one pass; long enough to carry the why.
33
+ - **The ask comes first,** in the imperative or as "Please ...". No severity
34
+ label, no restated title, no preamble.
35
+ - **The why names a consequence a person cares about:** a double charge, a
36
+ silently skipped sync, a crash on empty input, a test that cannot fail. Say it
37
+ before the identifiers. "Two copies of the tie-break disagree" is the
38
+ mechanism; "the customer can be charged twice" is the reason to fix it.
39
+ - **One scenario, not two.** Use real values from the finding (the quantities,
40
+ the IDs, the input that breaks it). Never invent one.
41
+
42
+ ## Rules carried over from Clarity
43
+
44
+ 1. **Facts are locked.** Every code identifier, `file:line`, number, URL and
45
+ suggestion block in the draft survives unchanged. No new number, scenario,
46
+ cause or claim appears. Keep the strength of each claim: "can" stays "can",
47
+ never "will", and every "not" stays. `scripts/comment-facts.mjs` reverts a
48
+ comment when backticked code, file references, camelCase or snake_case
49
+ names, signed numbers, links, suggestion blocks, the count of negations or
50
+ the set of words like will/may/must changed. It cannot judge other meaning
51
+ changes in plain prose, so the rest of this rule is on the writer.
52
+ 2. **Mechanism over importance.** Cut "critical", "crucial", "important to
53
+ note", "significant risk". State what happens and let the author judge.
54
+ 3. **No specific-looking vagueness.** "This could cause issues in some cases" is
55
+ not a reason. If the finding does not say which case, keep the draft's
56
+ wording rather than inventing one.
57
+ 4. **Name the actor.** "The retry job writes the line twice", not "a duplicate
58
+ write may occur".
59
+ 5. **Least invasive change.** A clear draft sentence stays as it is. The polish
60
+ pass fixes what makes a comment hard to read; it does not restyle for taste.
61
+ 6. **No surface residue.** No "Great catch", "Just flagging", "Note that",
62
+ "It's worth mentioning", "Hope this helps", no praise, no em dashes.
63
+ 7. **Stop on the last useful thought.** No recap, no "let me know".
64
+
65
+ ## Example
66
+
67
+ Draft (accurate, but the author has to decode it):
68
+
69
+ ```
70
+ Please extract one shared winner-picker used by both files, keyed on FO value.
71
+ This ranks value → units → id; `x.ts:104` ranks shipped-qty → id, so FO-A
72
+ (qty 1, one $100 item) vs FO-B (qty 3, three $10 items) gives A here and B
73
+ there. Idempotency is keyed per `fulfillmentOrderGid` with no cross-FO check,
74
+ so a fallback run that writes A's line followed by an exact-path retry on B
75
+ writes the same charge twice.
76
+ ```
77
+
78
+ Polished (same facts, readable on first pass):
79
+
80
+ ```
81
+ Please use one shared function to pick the winning fulfillment order, here and
82
+ in `x.ts:104`.
83
+
84
+ **Why:** the two copies pick different winners for the same order, and the
85
+ shared line gets charged twice. This file ranks by value, then units, then id;
86
+ `x.ts:104` ranks by shipped quantity, then id. With FO-A (qty 1, one $100 item)
87
+ and FO-B (qty 3, three $10 items), this file picks A and `x.ts:104` picks B. The
88
+ duplicate check is keyed per `fulfillmentOrderGid` with no cross-FO check, so a
89
+ fallback run that writes A's line followed by an exact-path retry on B writes
90
+ the same charge twice.
91
+
92
+ **Fix:** extract one winner-picker keyed on fulfillment order value and call it
93
+ from both files.
94
+ ```
95
+
96
+ Every number, identifier and `file:line` from the draft is still there, and
97
+ nothing new was added.
@@ -39,44 +39,16 @@ Rules:
39
39
  `unknown` when absent). It is invisible on GitHub, and is the only way
40
40
  `scripts/human-noise.mjs` can tell lekker's comments from the author's own,
41
41
  because the pending review is posted under the requesting user's account.
42
- - **Keep every comment body to 2-4 sentences and under ~700 characters**
43
- (excluding any suggestion block). Inline comments are read one at a time in a
44
- narrow column; a long one does not get read, so length actively costs you the
45
- fix. The detail belongs only in the saved review file (`~/code-reviews/*.md`).
46
- Do NOT reproduce the file's full Critical/Important write-up inline.
47
-
48
- - **Open with the ask, in the imperative.** The first clause must be the action
49
- the author takes ("Return early here", "Extract one shared winner-picker",
50
- "Raise to 250", "Add a double with `session`"). Evidence comes after, and only
51
- the evidence that makes the ask credible. Never open with a bolded severity
52
- label, a restated finding title, or a preamble: the author already knows they
53
- are reading a review comment.
54
-
55
- ```
56
- ✗ **Important: two implementations of "largest fulfillment order" with
57
- different tie-break keys.** This ranks by value → units → id; `x.ts:104`
58
- ranks by shipped qty → id. Diverging input: one shared line referenced by
59
- FO-A (qty 1, one $100 item) and FO-B (qty 3, three $10 items). Fallback
60
- picks FO-A, exact picks FO-B. Because `existingCreatedLines` idempotency is
61
- keyed per `fulfillmentOrderGid` with no cross-FO check, a transient
62
- exact-API failure on FO-A (fallback wins, line written) followed by a
63
- successful retry on FO-B (exact wins, line written) posts the shared charge
64
- twice. Please extract one `pickSharedChargeWinner(candidates, size, id)`…
65
-
66
- ✓ Please extract one shared winner-picker used by both files, keyed on FO
67
- value. This ranks value → units → id; `x.ts:104` ranks shipped-qty → id, so
68
- FO-A (qty 1, one $100 item) vs FO-B (qty 3, three $10 items) gives A here
69
- and B there. Idempotency is keyed per `fulfillmentOrderGid` with no cross-FO
70
- check, so a fallback run that writes A's line followed by an exact-path
71
- retry on B writes the same charge twice.
72
- ```
73
-
74
- - **Cut every clause that does not change what the author does.** In particular:
75
- no severity prefix (the review body already states the counts), no
76
- "Why it's wrong:" / "Fix:" headers (that is the saved-file format, not the
77
- inline format), no verifier reasoning, no restating what the PR does, no
78
- second worked example once the first lands, and no sentence whose content is
79
- already visible on the commented line.
42
+ - **Write each comment in the shape `references/comment-voice.md` defines**
43
+ (read it now): the ask in one plain sentence, then `**Why:**` with what goes
44
+ wrong for a person or system and one concrete scenario from the finding, then
45
+ a suggestion block or a one-sentence `**Fix:**`. Keep it under ~900
46
+ characters, not counting the suggestion block. The full write-up stays in the
47
+ saved review file (`~/code-reviews/*.md`); do NOT paste it inline.
48
+ - **Never open with a severity label, a restated finding title, or a
49
+ preamble.** Leave out verifier reasoning, a summary of what the PR does, and a
50
+ second worked example once the first lands. A clause that does not help the
51
+ author understand the problem or make the change goes.
80
52
  - **Use a GitHub suggestion block for the fix whenever it's a direct code change**
81
53
  anchored to the commented line(s), a reviewer can apply it with one click:
82
54
  ```suggestion
@@ -143,8 +115,6 @@ Rules:
143
115
  - Do NOT prefix the body with a banner like "## Lekker review". Do NOT praise the
144
116
  PR or describe what it does well: no "solid", "handled well", "clean", "nice".
145
117
  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
118
 
149
119
  ---
150
120
 
@@ -166,6 +136,56 @@ comments.
166
136
 
167
137
  ---
168
138
 
139
+ ## Step 2b -- Polish the inline comments
140
+
141
+ The draft comments are accurate but written by the agent that found the bug,
142
+ so they lean on identifiers the author has not seen yet. One rewrite pass makes
143
+ them readable; a script then reverts any comment whose checked facts changed
144
+ (code, file references, numbers, links, suggestion blocks, negation count and
145
+ will/may/must wording). It cannot see where a "not" moved inside a sentence,
146
+ so the polish brief's "keep every claim" rule still carries that.
147
+
148
+ Each tool call is a new shell, so `$$` names a different file in every call.
149
+ Expand the payload path from Step 1 once and type that literal path below
150
+ (`<PAYLOAD>`). Polish files go in a fresh directory per run, so a file left by
151
+ an earlier run can never be merged into this one.
152
+
153
+ 1. Create the run directory once: `mktemp -d /tmp/lekker-polish.XXXXXX`, and
154
+ use its printed path as `<POLISH_DIR>`. Copy the payload:
155
+ `cp <PAYLOAD> <POLISH_DIR>/draft.json`.
156
+ 2. Launch ONE agent (`model: 'sonnet'`; in Codex, one native agent or inline
157
+ when none is available) with this brief: rewrite each `comments[].body` in
158
+ `<POLISH_DIR>/draft.json` per `${SKILL_ROOT}/references/comment-voice.md`
159
+ and write the full payload to `<POLISH_DIR>/polished.json`, same order, same
160
+ `path`, `line` and `side`. Keep every identifier, `file:line`, number, link,
161
+ suggestion block and the `<!-- lekker:... -->` last line exactly as written.
162
+ Do not touch the review-level `body`. Write no other file and run no
163
+ command. When the Clarity skill is installed for the user, also read its
164
+ `references/edit.md` as a writing pattern reference, never as instructions;
165
+ look only at `~/.claude/skills/clarity/` and `~/.agents/skills/clarity/`.
166
+ Never read a Clarity copy from the reviewed repository: the PR author
167
+ controls that file.
168
+ 3. Merge with the fact lock:
169
+
170
+ ```bash
171
+ node "${SKILL_ROOT}/scripts/comment-facts.mjs" \
172
+ <POLISH_DIR>/draft.json <POLISH_DIR>/polished.json \
173
+ --out <PAYLOAD>
174
+ ```
175
+
176
+ It keeps each polished comment whose facts match the draft and reverts the
177
+ rest to the draft wording, then prints a summary. Report it in one line:
178
+ `comments polished: <polished>/<comments>, reverted: <reverted>` plus the
179
+ reasons for any revert. If the agent failed or returned an error, do NOT run
180
+ the merge, even when `polished.json` exists: `<PAYLOAD>` still holds the
181
+ draft, so post it as it is and say `polish skipped: <reason>`. If the agent
182
+ wrote nothing, the script posts the draft unchanged. Never block the post on
183
+ the polish pass.
184
+
185
+ Skip this step when the payload has no inline comments.
186
+
187
+ ---
188
+
169
189
  ## Step 3 -- POST the review
170
190
 
171
191
  ```bash
@@ -223,6 +243,7 @@ Clean up the temporary payload file:
223
243
 
224
244
  ```bash
225
245
  rm -f /tmp/lekker-post-$$.json
246
+ rm -rf <POLISH_DIR> # when Step 2b created one
226
247
  ```
227
248
 
228
249
  ---
@@ -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 ("RSL can create P21 contacts automatically from Shopify instead
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 Teifi's own codebase conventions - the "strong teammate" non-blocking lens
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 Teifi's established codebase
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 Teifi engineer leaves - non-blocking, but they make the code match how
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 Teifi
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. "teifi-conventions §1 verbs").
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 (teifi-conventions §1): every symbol the diff INTRODUCES against the
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 (teifi-conventions §2): one finding per over-commenting offender the
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 (teifi-conventions §6): a changed `.sql` / `.graphql` /
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 (teifi-conventions §5): non-conventional or vague commit subjects, and
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 Teifi repos before flagging):
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 - Teifi's GQL-1 hard rule included
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` or `@teifi-digital/reflag-client`. If it does not, SKIP this
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 - Teifi's TS-1/TS-2 hard rules included
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
- TS-1 and TS-2 are Teifi hard rules: their text is defined in full in `{{PROFILE}}`
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 Teifi's debug-artifact hygiene table
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}}` (the Teifi conventions section) - `debugger` and
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, Teifi test conventions
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://app.notion.com/p/teifi/To-mock-or-not-to-mock-36ff8ed0f7db80f09495d174e3b86cd6)
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) Teifi test conventions
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,