@olegkoval/agent-skills 1.93.0 → 1.94.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/prompts/wrap-up.prompt.md +44 -3
- package/.kiro/steering/wrap-up.md +44 -3
- package/.windsurf/rules/wrap-up.md +44 -3
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/conventions.md +1 -1
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/implementation.md +5 -12
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/prover.md +1 -1
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/quality.md +2 -12
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/triage-logic.md +2 -2
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/triage-quality.md +5 -12
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/verifier.md +2 -6
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/output-format.md +2 -2
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-consistency.md +1 -1
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-conventions.md +3 -5
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-implementation.md +13 -28
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-quality.md +3 -13
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-test-quality.md +2 -15
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/profile.md +17 -196
- package/adapters/claude/olko-reflection/skills/wrap-up/SKILL.md +45 -2
- package/adapters/cursor/olko-reflection/skills/wrap-up/SKILL.md +45 -2
- package/adapters/grok/olko-reflection/skills/wrap-up/SKILL.md +45 -2
- package/catalog/skills.json +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/references/agents/conventions.md +1 -1
- package/plugins/olko-github-pr/skills/lekker-review/references/agents/implementation.md +5 -12
- package/plugins/olko-github-pr/skills/lekker-review/references/agents/prover.md +1 -1
- package/plugins/olko-github-pr/skills/lekker-review/references/agents/quality.md +2 -12
- package/plugins/olko-github-pr/skills/lekker-review/references/agents/triage-logic.md +2 -2
- package/plugins/olko-github-pr/skills/lekker-review/references/agents/triage-quality.md +5 -12
- package/plugins/olko-github-pr/skills/lekker-review/references/agents/verifier.md +2 -6
- package/plugins/olko-github-pr/skills/lekker-review/references/output-format.md +2 -2
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-consistency.md +1 -1
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-conventions.md +3 -5
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-implementation.md +13 -28
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-quality.md +3 -13
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-test-quality.md +2 -15
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/profile.md +17 -196
- package/plugins/olko-obsidian/.claude-plugin/plugin.json +1 -1
- 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/wrap-up/SKILL.md +45 -2
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
|
|
2
2
|
|
|
3
3
|
---
|
|
4
|
-
description: "Verify a task against its original objective, run applicable checks, audit task-owned artifacts, and prepare a safe, evidence-backed handoff."
|
|
4
|
+
description: "Verify a task against its original objective, run applicable checks, audit task-owned artifacts, check for a repeatable workflow worth a new skill, and prepare a safe, evidence-backed handoff."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
Use the olko:wrap-up skill.
|
|
@@ -39,7 +39,45 @@ Before cleanup, when a completed task used a team and its applicable checks are
|
|
|
39
39
|
- For confirmed safe targets, propose `git worktree remove -- 'path with spaces'` or `git branch -d -- 'topic/branch'` with the actual argument shell-quoted, including embedded quotes. Use `--` to end options; never interpolate untrusted names as raw shell text. Use `git fetch --prune` only when network access and remote cleanup are appropriate. Force deletion requires explicit approval.
|
|
40
40
|
- Read-only inspection and configured non-destructive checks may run automatically. Ask before committing, pushing, creating or updating a PR, deleting any file, branch, or worktree, or modifying external systems. Existing explicit authorization for the task still applies.
|
|
41
41
|
|
|
42
|
-
## 5.
|
|
42
|
+
## 5. Check for a skill worth creating
|
|
43
|
+
|
|
44
|
+
Stay silent unless something qualifies. This step must never add noise to a small task.
|
|
45
|
+
|
|
46
|
+
**Own pass.** Look at what the session actually did, not at what was asked. A workflow is a candidate only when all four hold:
|
|
47
|
+
|
|
48
|
+
- It ran as a sequence of at least three distinct steps with recognisable inputs and outputs, for example: gather facts from two sources, produce an artifact, draft the message that goes with it.
|
|
49
|
+
- It repeated in this session (the same sequence for a second item), or the user corrected or re-asked for the same shape of work, or the user called it a standing process ("again", "for each", "next one").
|
|
50
|
+
- No installed skill already covers most of it. Check the skills listed in your context and a find-skills skill where available. If the skip rules in "Second opinion from Jev" allow Jev, also run `jev pick-skill --turn "<abstract>"` (an empty list means nothing fits; a `fail_open` reply means unknown, not none). If a skill covers most of it, report that skill to use or extend and skip the creation assessment.
|
|
51
|
+
- It is a procedure, not a fact. A gotcha, preference or project rule belongs in memory or a knowledge entry, not in a skill.
|
|
52
|
+
|
|
53
|
+
For the strongest candidate only, write a name, trigger phrases, the steps, inputs, outputs, side effects that need approval, and the plugin it would live in.
|
|
54
|
+
|
|
55
|
+
**Second opinion from Jev.** Run it only when the own pass found a candidate. Jev is an outside service: send a short abstract, never session content. The abstract is at most eight lines: the goal, the steps, the tools or sources used, how many times it repeated, how many times the user corrected it. Leave out names, emails, ids, quotes, URLs, file paths, client or candidate details, and secrets. If you cannot write it without those, skip Jev and report "second opinion skipped: sensitive session". Also skip when `jev` is not installed or a project rule forbids outside services.
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
echo '{"state": "<abstract>", "questions": [
|
|
59
|
+
{"id": "reusable", "type": "noul",
|
|
60
|
+
"instructions": "This workflow will recur and a written procedure would save real effort"},
|
|
61
|
+
{"id": "shape", "type": "choice", "instructions": "What is the best form for capturing it?",
|
|
62
|
+
"criteria": {"skill": "A multi-step skill", "memory": "A remembered preference or rule",
|
|
63
|
+
"checklist": "A short checklist or a hook", "none": "Not worth capturing"}}]}' | ~/.local/bin/jev ask
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Read `reusable` at 0.6 or higher as yes (a starting value; adjust it with experience). A Jev error or `fail_open` is no opinion, not a no.
|
|
67
|
+
|
|
68
|
+
**Combine the two results.**
|
|
69
|
+
|
|
70
|
+
| Own pass | Jev | Do |
|
|
71
|
+
|---|---|---|
|
|
72
|
+
| Candidate, not covered | reusable and shape `skill` | Suggest creating the skill: name, a one-sentence trigger description, at most six steps, inputs and outputs, approvals, plugin. Ask whether to create it; never create it unprompted. |
|
|
73
|
+
| Candidate, an existing skill covers most | any | Name the skill to use or extend instead. |
|
|
74
|
+
| Candidate, not covered | not reusable, or shape other than `skill` | One line: "possible skill, Jev disagrees (reason)". Suggest nothing. If the shape is `memory`, propose that memory entry instead. |
|
|
75
|
+
| Candidate, not covered | no opinion or skipped | Report that Jev gave no opinion or was skipped; do not suggest creating a skill. |
|
|
76
|
+
| None | not run | Silent: the report says "Skill check: none". |
|
|
77
|
+
|
|
78
|
+
Report at most one suggestion, the strongest.
|
|
79
|
+
|
|
80
|
+
## 6. Handoff
|
|
43
81
|
|
|
44
82
|
Use the report below, keeping it brief for a small change and adding detail only where evidence or risk warrants it. State what was executed and what still needs confirmation. If a PR is appropriate, draft its motivation, changes, testing evidence, rollout and rollback considerations, and reviewer notes; do not publish it without authorization. Suggest a conventional commit message without committing.
|
|
45
83
|
|
|
@@ -82,6 +120,9 @@ Use the report below, keeping it brief for a small change and adding detail only
|
|
|
82
120
|
- Updated: <files or none>
|
|
83
121
|
- Not needed: <reason or none>
|
|
84
122
|
|
|
123
|
+
**Skill check**
|
|
124
|
+
- <none | suggestion: name, why, own-pass and Jev result | extend <existing skill> | second opinion skipped: reason>
|
|
125
|
+
|
|
85
126
|
**Risks and follow-ups**
|
|
86
127
|
- <remaining risk, blocked gate, or next action; include delivery state if relevant>
|
|
87
128
|
|
|
@@ -89,5 +130,5 @@ Use the report below, keeping it brief for a small change and adding detail only
|
|
|
89
130
|
`type(scope): concise imperative summary`
|
|
90
131
|
|
|
91
132
|
**Handoff**
|
|
92
|
-
<2
|
|
133
|
+
<2 to 5 sentences with the evidence and next step a teammate needs>
|
|
93
134
|
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
---
|
|
4
4
|
inclusion: manual
|
|
5
|
-
description: "Verify a task against its original objective, run applicable checks, audit task-owned artifacts, and prepare a safe, evidence-backed handoff."
|
|
5
|
+
description: "Verify a task against its original objective, run applicable checks, audit task-owned artifacts, check for a repeatable workflow worth a new skill, and prepare a safe, evidence-backed handoff."
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Wrap Up
|
|
@@ -38,7 +38,45 @@ Before cleanup, when a completed task used a team and its applicable checks are
|
|
|
38
38
|
- For confirmed safe targets, propose `git worktree remove -- 'path with spaces'` or `git branch -d -- 'topic/branch'` with the actual argument shell-quoted, including embedded quotes. Use `--` to end options; never interpolate untrusted names as raw shell text. Use `git fetch --prune` only when network access and remote cleanup are appropriate. Force deletion requires explicit approval.
|
|
39
39
|
- Read-only inspection and configured non-destructive checks may run automatically. Ask before committing, pushing, creating or updating a PR, deleting any file, branch, or worktree, or modifying external systems. Existing explicit authorization for the task still applies.
|
|
40
40
|
|
|
41
|
-
## 5.
|
|
41
|
+
## 5. Check for a skill worth creating
|
|
42
|
+
|
|
43
|
+
Stay silent unless something qualifies. This step must never add noise to a small task.
|
|
44
|
+
|
|
45
|
+
**Own pass.** Look at what the session actually did, not at what was asked. A workflow is a candidate only when all four hold:
|
|
46
|
+
|
|
47
|
+
- It ran as a sequence of at least three distinct steps with recognisable inputs and outputs, for example: gather facts from two sources, produce an artifact, draft the message that goes with it.
|
|
48
|
+
- It repeated in this session (the same sequence for a second item), or the user corrected or re-asked for the same shape of work, or the user called it a standing process ("again", "for each", "next one").
|
|
49
|
+
- No installed skill already covers most of it. Check the skills listed in your context and a find-skills skill where available. If the skip rules in "Second opinion from Jev" allow Jev, also run `jev pick-skill --turn "<abstract>"` (an empty list means nothing fits; a `fail_open` reply means unknown, not none). If a skill covers most of it, report that skill to use or extend and skip the creation assessment.
|
|
50
|
+
- It is a procedure, not a fact. A gotcha, preference or project rule belongs in memory or a knowledge entry, not in a skill.
|
|
51
|
+
|
|
52
|
+
For the strongest candidate only, write a name, trigger phrases, the steps, inputs, outputs, side effects that need approval, and the plugin it would live in.
|
|
53
|
+
|
|
54
|
+
**Second opinion from Jev.** Run it only when the own pass found a candidate. Jev is an outside service: send a short abstract, never session content. The abstract is at most eight lines: the goal, the steps, the tools or sources used, how many times it repeated, how many times the user corrected it. Leave out names, emails, ids, quotes, URLs, file paths, client or candidate details, and secrets. If you cannot write it without those, skip Jev and report "second opinion skipped: sensitive session". Also skip when `jev` is not installed or a project rule forbids outside services.
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
echo '{"state": "<abstract>", "questions": [
|
|
58
|
+
{"id": "reusable", "type": "noul",
|
|
59
|
+
"instructions": "This workflow will recur and a written procedure would save real effort"},
|
|
60
|
+
{"id": "shape", "type": "choice", "instructions": "What is the best form for capturing it?",
|
|
61
|
+
"criteria": {"skill": "A multi-step skill", "memory": "A remembered preference or rule",
|
|
62
|
+
"checklist": "A short checklist or a hook", "none": "Not worth capturing"}}]}' | ~/.local/bin/jev ask
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Read `reusable` at 0.6 or higher as yes (a starting value; adjust it with experience). A Jev error or `fail_open` is no opinion, not a no.
|
|
66
|
+
|
|
67
|
+
**Combine the two results.**
|
|
68
|
+
|
|
69
|
+
| Own pass | Jev | Do |
|
|
70
|
+
|---|---|---|
|
|
71
|
+
| Candidate, not covered | reusable and shape `skill` | Suggest creating the skill: name, a one-sentence trigger description, at most six steps, inputs and outputs, approvals, plugin. Ask whether to create it; never create it unprompted. |
|
|
72
|
+
| Candidate, an existing skill covers most | any | Name the skill to use or extend instead. |
|
|
73
|
+
| Candidate, not covered | not reusable, or shape other than `skill` | One line: "possible skill, Jev disagrees (reason)". Suggest nothing. If the shape is `memory`, propose that memory entry instead. |
|
|
74
|
+
| Candidate, not covered | no opinion or skipped | Report that Jev gave no opinion or was skipped; do not suggest creating a skill. |
|
|
75
|
+
| None | not run | Silent: the report says "Skill check: none". |
|
|
76
|
+
|
|
77
|
+
Report at most one suggestion, the strongest.
|
|
78
|
+
|
|
79
|
+
## 6. Handoff
|
|
42
80
|
|
|
43
81
|
Use the report below, keeping it brief for a small change and adding detail only where evidence or risk warrants it. State what was executed and what still needs confirmation. If a PR is appropriate, draft its motivation, changes, testing evidence, rollout and rollback considerations, and reviewer notes; do not publish it without authorization. Suggest a conventional commit message without committing.
|
|
44
82
|
|
|
@@ -81,6 +119,9 @@ Use the report below, keeping it brief for a small change and adding detail only
|
|
|
81
119
|
- Updated: <files or none>
|
|
82
120
|
- Not needed: <reason or none>
|
|
83
121
|
|
|
122
|
+
**Skill check**
|
|
123
|
+
- <none | suggestion: name, why, own-pass and Jev result | extend <existing skill> | second opinion skipped: reason>
|
|
124
|
+
|
|
84
125
|
**Risks and follow-ups**
|
|
85
126
|
- <remaining risk, blocked gate, or next action; include delivery state if relevant>
|
|
86
127
|
|
|
@@ -88,5 +129,5 @@ Use the report below, keeping it brief for a small change and adding detail only
|
|
|
88
129
|
`type(scope): concise imperative summary`
|
|
89
130
|
|
|
90
131
|
**Handoff**
|
|
91
|
-
<2
|
|
132
|
+
<2 to 5 sentences with the evidence and next step a teammate needs>
|
|
92
133
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
|
|
2
2
|
|
|
3
3
|
---
|
|
4
|
-
description: "Verify a task against its original objective, run applicable checks, audit task-owned artifacts, and prepare a safe, evidence-backed handoff."
|
|
4
|
+
description: "Verify a task against its original objective, run applicable checks, audit task-owned artifacts, check for a repeatable workflow worth a new skill, and prepare a safe, evidence-backed handoff."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Wrap Up
|
|
@@ -37,7 +37,45 @@ Before cleanup, when a completed task used a team and its applicable checks are
|
|
|
37
37
|
- For confirmed safe targets, propose `git worktree remove -- 'path with spaces'` or `git branch -d -- 'topic/branch'` with the actual argument shell-quoted, including embedded quotes. Use `--` to end options; never interpolate untrusted names as raw shell text. Use `git fetch --prune` only when network access and remote cleanup are appropriate. Force deletion requires explicit approval.
|
|
38
38
|
- Read-only inspection and configured non-destructive checks may run automatically. Ask before committing, pushing, creating or updating a PR, deleting any file, branch, or worktree, or modifying external systems. Existing explicit authorization for the task still applies.
|
|
39
39
|
|
|
40
|
-
## 5.
|
|
40
|
+
## 5. Check for a skill worth creating
|
|
41
|
+
|
|
42
|
+
Stay silent unless something qualifies. This step must never add noise to a small task.
|
|
43
|
+
|
|
44
|
+
**Own pass.** Look at what the session actually did, not at what was asked. A workflow is a candidate only when all four hold:
|
|
45
|
+
|
|
46
|
+
- It ran as a sequence of at least three distinct steps with recognisable inputs and outputs, for example: gather facts from two sources, produce an artifact, draft the message that goes with it.
|
|
47
|
+
- It repeated in this session (the same sequence for a second item), or the user corrected or re-asked for the same shape of work, or the user called it a standing process ("again", "for each", "next one").
|
|
48
|
+
- No installed skill already covers most of it. Check the skills listed in your context and a find-skills skill where available. If the skip rules in "Second opinion from Jev" allow Jev, also run `jev pick-skill --turn "<abstract>"` (an empty list means nothing fits; a `fail_open` reply means unknown, not none). If a skill covers most of it, report that skill to use or extend and skip the creation assessment.
|
|
49
|
+
- It is a procedure, not a fact. A gotcha, preference or project rule belongs in memory or a knowledge entry, not in a skill.
|
|
50
|
+
|
|
51
|
+
For the strongest candidate only, write a name, trigger phrases, the steps, inputs, outputs, side effects that need approval, and the plugin it would live in.
|
|
52
|
+
|
|
53
|
+
**Second opinion from Jev.** Run it only when the own pass found a candidate. Jev is an outside service: send a short abstract, never session content. The abstract is at most eight lines: the goal, the steps, the tools or sources used, how many times it repeated, how many times the user corrected it. Leave out names, emails, ids, quotes, URLs, file paths, client or candidate details, and secrets. If you cannot write it without those, skip Jev and report "second opinion skipped: sensitive session". Also skip when `jev` is not installed or a project rule forbids outside services.
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
echo '{"state": "<abstract>", "questions": [
|
|
57
|
+
{"id": "reusable", "type": "noul",
|
|
58
|
+
"instructions": "This workflow will recur and a written procedure would save real effort"},
|
|
59
|
+
{"id": "shape", "type": "choice", "instructions": "What is the best form for capturing it?",
|
|
60
|
+
"criteria": {"skill": "A multi-step skill", "memory": "A remembered preference or rule",
|
|
61
|
+
"checklist": "A short checklist or a hook", "none": "Not worth capturing"}}]}' | ~/.local/bin/jev ask
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Read `reusable` at 0.6 or higher as yes (a starting value; adjust it with experience). A Jev error or `fail_open` is no opinion, not a no.
|
|
65
|
+
|
|
66
|
+
**Combine the two results.**
|
|
67
|
+
|
|
68
|
+
| Own pass | Jev | Do |
|
|
69
|
+
|---|---|---|
|
|
70
|
+
| Candidate, not covered | reusable and shape `skill` | Suggest creating the skill: name, a one-sentence trigger description, at most six steps, inputs and outputs, approvals, plugin. Ask whether to create it; never create it unprompted. |
|
|
71
|
+
| Candidate, an existing skill covers most | any | Name the skill to use or extend instead. |
|
|
72
|
+
| Candidate, not covered | not reusable, or shape other than `skill` | One line: "possible skill, Jev disagrees (reason)". Suggest nothing. If the shape is `memory`, propose that memory entry instead. |
|
|
73
|
+
| Candidate, not covered | no opinion or skipped | Report that Jev gave no opinion or was skipped; do not suggest creating a skill. |
|
|
74
|
+
| None | not run | Silent: the report says "Skill check: none". |
|
|
75
|
+
|
|
76
|
+
Report at most one suggestion, the strongest.
|
|
77
|
+
|
|
78
|
+
## 6. Handoff
|
|
41
79
|
|
|
42
80
|
Use the report below, keeping it brief for a small change and adding detail only where evidence or risk warrants it. State what was executed and what still needs confirmation. If a PR is appropriate, draft its motivation, changes, testing evidence, rollout and rollback considerations, and reviewer notes; do not publish it without authorization. Suggest a conventional commit message without committing.
|
|
43
81
|
|
|
@@ -80,6 +118,9 @@ Use the report below, keeping it brief for a small change and adding detail only
|
|
|
80
118
|
- Updated: <files or none>
|
|
81
119
|
- Not needed: <reason or none>
|
|
82
120
|
|
|
121
|
+
**Skill check**
|
|
122
|
+
- <none | suggestion: name, why, own-pass and Jev result | extend <existing skill> | second opinion skipped: reason>
|
|
123
|
+
|
|
83
124
|
**Risks and follow-ups**
|
|
84
125
|
- <remaining risk, blocked gate, or next action; include delivery state if relevant>
|
|
85
126
|
|
|
@@ -87,5 +128,5 @@ Use the report below, keeping it brief for a small change and adding detail only
|
|
|
87
128
|
`type(scope): concise imperative summary`
|
|
88
129
|
|
|
89
130
|
**Handoff**
|
|
90
|
-
<2
|
|
131
|
+
<2 to 5 sentences with the evidence and next step a teammate needs>
|
|
91
132
|
```
|
package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/conventions.md
CHANGED
|
@@ -16,7 +16,7 @@ section):
|
|
|
16
16
|
* A hand-written interface/type that duplicates an existing Zod schema:
|
|
17
17
|
should be `z.infer<typeof zSchema>` so the schema stays the single source
|
|
18
18
|
of truth. (Grep for a matching z-schema in the same feature folder.)
|
|
19
|
-
* Raw `string` used for
|
|
19
|
+
* Raw `string` used for an external identifier or entity ID where a branded
|
|
20
20
|
`ID<'Customer'>` (or similar) type exists and is used elsewhere.
|
|
21
21
|
* A union typed as `as readonly string[]` / a hand-rolled `is...` guard where
|
|
22
22
|
a `z.enum([...])` + `z.infer` would give validation, narrowing, and the
|
package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/implementation.md
CHANGED
|
@@ -46,12 +46,12 @@ Axes to cover:
|
|
|
46
46
|
Use title "Fix addresses the symptom", name the root cause and where it still
|
|
47
47
|
lives, and point `fix` at the producing code. Quiet when the root cause is
|
|
48
48
|
fixed, the mitigation fully resolves the defect, or the PR is not a bug fix.
|
|
49
|
-
- Integration Contracts:
|
|
49
|
+
- Integration Contracts: unsupported external API assumptions, webhook
|
|
50
50
|
idempotency, external API pagination not handled.
|
|
51
51
|
- Rollout safety (external writes): when the diff changes what is WRITTEN to
|
|
52
52
|
another system (an API payload, field mapping, or a DB write into a system
|
|
53
53
|
this service does not own), state whether the PR has a feature flag
|
|
54
|
-
(
|
|
54
|
+
(a guard around the new write) or a
|
|
55
55
|
documented revert plan (PR body or code comment). Look in the diff and in the
|
|
56
56
|
PR body in CONTEXT_FILE. When WORKTREE_PATH is available, trace the changed
|
|
57
57
|
write through unchanged callers and flag guards before deciding either is
|
|
@@ -89,16 +89,9 @@ Do not report a stateful/integration finding without this boundary object. If
|
|
|
89
89
|
the production entry point or downstream consumer cannot be identified, mark
|
|
90
90
|
the claim as unverified rather than inferring behavior from a helper alone.
|
|
91
91
|
|
|
92
|
-
GraphQL pagination
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
(b) Check that all pages are fetched (a loop or recursion using endCursor): a single-page fetch is a bug, Critical.
|
|
96
|
-
(c) Check the page size: must be 250 (Shopify max). If any other size is used without a code comment explaining why, flag as Important.
|
|
97
|
-
Set `rule: "GQL-1"` on any Critical finding raised under this axis.
|
|
98
|
-
|
|
99
|
-
Setting rule tags the finding as a house hard rule: it keeps its Critical
|
|
100
|
-
severity only after rule-specific validation and skips runtime challenges. Only set it for a genuine GQL-1
|
|
101
|
-
violation: never to shield an ordinary finding from verification.
|
|
92
|
+
- GraphQL pagination: when the consumer requires a complete result, verify that
|
|
93
|
+
the query exposes continuation metadata and the caller follows it. Check
|
|
94
|
+
page-size limits against the target API's contract.
|
|
102
95
|
|
|
103
96
|
CI_STATUS: read key "ciStatus" from the JSON file CONTEXT_FILE.
|
|
104
97
|
SENTRY_SIGNALS: read key "sentrySignals" from CONTEXT_FILE.
|
|
@@ -40,7 +40,7 @@ context in `DIFF_FILE`. Return `attempted: false, proven: false,
|
|
|
40
40
|
outcome: "not_attempted"` with an honest one-sentence `reason` when any of these
|
|
41
41
|
hold:
|
|
42
42
|
|
|
43
|
-
- The failure path requires live IO (
|
|
43
|
+
- The failure path requires live IO (an external API, a real DB, the
|
|
44
44
|
network) and the repo has no test infra to fake it cheaply.
|
|
45
45
|
- The buggy logic is not importable/reachable from a test without large
|
|
46
46
|
scaffolding (deep framework wiring, a webhook server bootstrap).
|
|
@@ -13,7 +13,7 @@ Axes to cover:
|
|
|
13
13
|
- Error Handling: unhandled promise rejections, empty catch blocks, missing
|
|
14
14
|
retries on transient failures, no dead-letter for failed jobs.
|
|
15
15
|
- Schema/Migration: NOT NULL without default, rename without two-step,
|
|
16
|
-
|
|
16
|
+
stale generated database bindings.
|
|
17
17
|
- Naming/Typos: wrong casing convention, mixed conventions in same scope,
|
|
18
18
|
misspelled identifiers (these are bugs-in-waiting).
|
|
19
19
|
- Derived-value consistency: when the diff introduces a transform of some input
|
|
@@ -28,14 +28,6 @@ Axes to cover:
|
|
|
28
28
|
```
|
|
29
29
|
- Env vars: dead vars, renamed without migration, wrong fallback operator
|
|
30
30
|
(?? vs ||), type mismatch, leaked in logs.
|
|
31
|
-
- TypeScript type safety (TS-1): flag every type cast (`as X`, `<X>expr`)
|
|
32
|
-
and every use of `any`. Test files: only flag blatantly omitted types
|
|
33
|
-
(e.g. `any[]` on a clearly-typed list). All others: Critical. Quote the
|
|
34
|
-
cast, explain the correct type, show the fix. Ask if they're Harry Potter.
|
|
35
|
-
Set `rule: "TS-1"` on the finding.
|
|
36
|
-
- No JavaScript files (TS-2): if the diff adds any `.js` file to a non-Liquid
|
|
37
|
-
theme repo, flag as Critical: must be `.ts`. Set `rule: "TS-2"` on the
|
|
38
|
-
finding.
|
|
39
31
|
- Dependency changes. Skip this axis entirely unless the diff touches
|
|
40
32
|
`package.json`, a lockfile, or a vendored dependency. Where it applies:
|
|
41
33
|
(a) A version bump is a behaviour change nobody in this PR wrote. If neither
|
|
@@ -55,9 +47,7 @@ Axes to cover:
|
|
|
55
47
|
Raise NO naming, comment, complexity, or hard-rule finding inside a lockfile
|
|
56
48
|
or a `node_modules` path.
|
|
57
49
|
|
|
58
|
-
|
|
59
|
-
severity only after rule-specific validation and skips runtime challenges. Only set it for a genuine
|
|
60
|
-
TS-1/TS-2 violation: never to shield an ordinary finding from verification.
|
|
50
|
+
Set `rule` to the ID of a configured hard rule only when the diff demonstrates a violation.
|
|
61
51
|
|
|
62
52
|
CI_STATUS: read key "ciStatus" from the JSON file CONTEXT_FILE.
|
|
63
53
|
Note: if CI_STATUS shows a failing build or test check, report it as a
|
package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/triage-logic.md
CHANGED
|
@@ -9,12 +9,12 @@ Axes to cover (Critical/Important only):
|
|
|
9
9
|
- Business Logic / AC coverage: for each AC below, mark ✅ met / ⚠️ partial / ❌ missing
|
|
10
10
|
AC_LIST: read key "acList" from CONTEXT_FILE.
|
|
11
11
|
- Scalability: N+1 queries, missing pagination, unbounded collections, missing rate-limit
|
|
12
|
-
- Integration Contracts:
|
|
12
|
+
- Integration Contracts: external API contract violations, webhook idempotency not handled
|
|
13
13
|
- Correctness: off-by-one, wrong operator, missing null guard
|
|
14
14
|
- Rollout safety (external writes): when the diff changes what is WRITTEN to
|
|
15
15
|
another system (an API payload, field mapping, or a DB write into a system
|
|
16
16
|
this service does not own), state whether the PR has a feature flag
|
|
17
|
-
(
|
|
17
|
+
(a guard around the new write) or a
|
|
18
18
|
documented revert plan (PR body or code comment). Look in the diff and in the
|
|
19
19
|
PR body in CONTEXT_FILE. When WORKTREE_PATH is available, trace the changed
|
|
20
20
|
write through unchanged callers and flag guards before deciding either is
|
package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/triage-quality.md
CHANGED
|
@@ -9,20 +9,13 @@ Axes to cover (Critical/Important only):
|
|
|
9
9
|
- Security: auth bypass, injection, missing permission checks, secrets in logs
|
|
10
10
|
- Data Integrity: missing transactions, silent data loss, partial-failure no rollback
|
|
11
11
|
- Error Handling: unhandled rejections, empty catch blocks, missing retries
|
|
12
|
-
- Schema/Migration: NOT NULL without default,
|
|
12
|
+
- Schema/Migration: NOT NULL without default, stale generated database bindings
|
|
13
13
|
- Env vars: dead vars, leaked in logs
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
set `rule: "TS-2"`
|
|
18
|
-
- GraphQL pagination (GQL-1): nodes connection without pageInfo, or missing
|
|
19
|
-
multi-page fetch, or page size != 250 without comment: Critical/Important,
|
|
20
|
-
set `rule: "GQL-1"` when Critical
|
|
14
|
+
- GraphQL pagination: when the consumer requires a complete result, verify that
|
|
15
|
+
the query exposes continuation metadata and the caller follows it. Check
|
|
16
|
+
page-size limits against the target API's contract.
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
severity only after rule-specific validation and skips runtime challenges. Only set it for a genuine
|
|
24
|
-
TS-1/TS-2/GQL-1 violation: never to shield an ordinary finding from
|
|
25
|
-
verification.
|
|
18
|
+
Set `rule` to the ID of a configured hard rule only when the diff demonstrates a violation.
|
|
26
19
|
|
|
27
20
|
CI_STATUS: read key "ciStatus" from the JSON file CONTEXT_FILE.
|
|
28
21
|
If CI_STATUS shows failing build/test: report it as Critical.
|
|
@@ -64,11 +64,7 @@ For all other non-empty `rule` tags, run exactly two checks:
|
|
|
64
64
|
grep "^+" "$DIFF_FILE" | grep "<snippet>"
|
|
65
65
|
```
|
|
66
66
|
2. **Rule applicability**: read the exact `HOUSE_RULES_FILE` path from the task
|
|
67
|
-
message, then confirm the code really violates the rule as written
|
|
68
|
-
e.g. an `as const` is not a type cast in
|
|
69
|
-
the TS-1 sense; a `nodes` query that legitimately fetches a single known
|
|
70
|
-
node with a documented comment may satisfy GQL-1; a `.js` file inside a
|
|
71
|
-
Liquid theme repo is exempt from TS-2.
|
|
67
|
+
message, then confirm the code really violates the rule as written in the configured house rules, including any stated exception.
|
|
72
68
|
|
|
73
69
|
Outcome: both checks pass -> `confirmed` at Critical, with `reasoning` naming
|
|
74
70
|
the rule and quoting the violating snippet. Either check fails -> `dropped`,
|
|
@@ -297,7 +293,7 @@ Critical finding
|
|
|
297
293
|
Common failure modes here:
|
|
298
294
|
- Assuming how a `your org's shared internal` package behaves without reading the source
|
|
299
295
|
- Assuming the DB schema based on the model name rather than the Prisma schema
|
|
300
|
-
- Assuming
|
|
296
|
+
- Assuming an external API’s behavior from memory rather than the docs
|
|
301
297
|
- Assuming a variable is always truthy/falsy without checking where it is set
|
|
302
298
|
|
|
303
299
|
If any assumption is unverified -> resolve it now (read the source, check the
|
|
@@ -61,9 +61,9 @@ Cover, in roughly this order:
|
|
|
61
61
|
- **The problem / goal: why this PR exists.** What was broken, missing, or
|
|
62
62
|
needed? Pull this from the Linear ticket (the AC_LIST and ticket summary),
|
|
63
63
|
not just the diff. State the user-facing or business outcome the change is
|
|
64
|
-
reaching for ("
|
|
64
|
+
reaching for ("The integration can sync contact records automatically instead
|
|
65
65
|
of hand-keying them", "unblocks the PUT/update flow that depends on the
|
|
66
|
-
|
|
66
|
+
required metadata being populated").
|
|
67
67
|
- **What it does: the mechanism, in plain terms.** The shape of the solution:
|
|
68
68
|
the key entry points, the data flow, the gating/safety mechanisms, and how the
|
|
69
69
|
pieces fit. Name the design choices and *why each one was made*: kill switch
|
|
@@ -17,7 +17,7 @@ exclude, retry/fail) is made in two code paths that can both run for the same
|
|
|
17
17
|
input. The usual shapes:
|
|
18
18
|
|
|
19
19
|
- a client-side guard and the server-side validator behind it (a checkout UI
|
|
20
|
-
extension and the
|
|
20
|
+
extension and the downstream handler, a form check and the API handler);
|
|
21
21
|
- a UI filter and the query that feeds it;
|
|
22
22
|
- a webhook handler and the cron reconciler that backfills the same state;
|
|
23
23
|
- a feature flag read in two clients that must agree on the same gate;
|
|
@@ -32,15 +32,13 @@ Axes to cover:
|
|
|
32
32
|
- Generated code (org-conventions §6): a changed `.sql` / `.graphql` /
|
|
33
33
|
`.json` schema / `prisma/schema.prisma` whose generated artifact is absent
|
|
34
34
|
from the diff (or the reverse) - major. Raise NO naming, comment, or
|
|
35
|
-
complexity finding inside a `generated/` directory.
|
|
36
|
-
|
|
37
|
-
- Commits (org-conventions §5): non-conventional or vague commit subjects, and
|
|
38
|
-
any Claude Code / assistant mention in the commit or PR text.
|
|
35
|
+
complexity finding inside a `generated/` directory.
|
|
36
|
+
- Commits: apply the conventions documented in the project profile.
|
|
39
37
|
- Type-system idioms:
|
|
40
38
|
* A hand-written interface/type that duplicates an existing Zod schema -
|
|
41
39
|
should be `z.infer<typeof zSchema>` so the schema stays the single source
|
|
42
40
|
of truth. (Grep for a matching z-schema in the same feature folder.)
|
|
43
|
-
* Raw `string` used for
|
|
41
|
+
* Raw `string` used for an external identifier or entity ID where a branded
|
|
44
42
|
`ID<'Customer'>` (or similar) type exists and is used elsewhere.
|
|
45
43
|
* A union typed as `as readonly string[]` / a hand-rolled `is...` guard where
|
|
46
44
|
a `z.enum([...])` + `z.infer` would give validation, narrowing, and the
|
|
@@ -41,36 +41,21 @@ Axes to cover:
|
|
|
41
41
|
missing DB indexes for new query patterns.
|
|
42
42
|
- Time/Space Complexity: O(n²) where linear exists, large payloads in memory,
|
|
43
43
|
sort/dedup on large arrays that could be done at DB level.
|
|
44
|
-
- Integration Contracts:
|
|
44
|
+
- Integration Contracts: unsupported external API assumptions, webhook
|
|
45
45
|
idempotency, external API pagination not handled.
|
|
46
|
-
- GraphQL pagination
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
finding. Where it does apply, ask whether the change should ship behind a flag:
|
|
57
|
-
(a) a client should validate it before everyone sees it; (b) it changes data
|
|
58
|
-
shape or what gets written; (c) it touches orders, money, or fulfilment; (d) it
|
|
59
|
-
cannot be verified without real client data or volume. Do NOT raise it for pure
|
|
60
|
-
UI/copy with no data change, a bug fix that is strictly better and obviously
|
|
61
|
-
correct, internal/admin-only surfaces, or work fully covered by tests and
|
|
62
|
-
verifiable in staging. Tie-breaker: if you would not be comfortable fixing it
|
|
63
|
-
forward at 2am, it needs a flag. Name which of (a)-(d) applies.
|
|
64
|
-
Severity: major at most, usually minor - this is a rollout judgement call, not
|
|
65
|
-
a defect. NEVER title this with a bracketed hard-rule tag (that would force
|
|
66
|
-
critical and imply a policy violation). Never invent a concrete flag key as
|
|
67
|
-
though it exists: flag keys must be confirmed against Reflag, so say a flag is
|
|
68
|
-
needed without naming one.
|
|
69
|
-
Also raise as a structural concern (severity major) when a diff BOTH adds a
|
|
70
|
-
column/table AND changes what is read or written - the SOP requires splitting
|
|
71
|
-
that into expand / migrate / read-switch / contract PRs. Name the split.
|
|
46
|
+
- GraphQL pagination: when the consumer requires a complete result, verify that
|
|
47
|
+
the query exposes continuation metadata and the caller follows it. Check
|
|
48
|
+
page-size limits against the target API's contract.
|
|
49
|
+
- Feature flags: when the repository has a rollout mechanism and a changed
|
|
50
|
+
path introduces a risky write or changes externally visible behavior, check
|
|
51
|
+
for a guard or a documented rollback plan. Trace the actual write through
|
|
52
|
+
its callers and configuration before reporting an omission. Refer to the
|
|
53
|
+
repository's own guidance for exemptions and avoid proposing invented flag keys.
|
|
54
|
+
Rollout advice on its own is noncritical. Reserve hard-rule tags for proven
|
|
55
|
+
violations of configured project rules.
|
|
72
56
|
|
|
73
|
-
|
|
57
|
+
|
|
58
|
+
Start the finding title with the bracketed rule ID when it violates a configured hard rule in `{{PROFILE}}`.
|
|
74
59
|
|
|
75
60
|
Rules:
|
|
76
61
|
- Every finding must trace to a `+` line in the diff, with one exception: an
|
|
@@ -27,7 +27,7 @@ Axes to cover:
|
|
|
27
27
|
silent AND still escapes. Do not accept "it reports correctly" as covering the
|
|
28
28
|
block; the report and the control flow are separate claims.
|
|
29
29
|
- Schema/Migration: NOT NULL without default, rename without two-step,
|
|
30
|
-
|
|
30
|
+
stale generated database bindings.
|
|
31
31
|
- Naming/Typos: wrong casing convention, mixed conventions in same scope,
|
|
32
32
|
misspelled identifiers (these are bugs-in-waiting).
|
|
33
33
|
- Derived-value consistency: when the diff introduces a transform of some input
|
|
@@ -44,13 +44,6 @@ Axes to cover:
|
|
|
44
44
|
|
|
45
45
|
- Env vars: dead vars, renamed without migration, wrong fallback operator
|
|
46
46
|
(?? vs ||), type mismatch, leaked in logs.
|
|
47
|
-
- TypeScript type safety (TS-1): flag every type cast (`as X`, `<X>expr`)
|
|
48
|
-
and every use of `any`. Test files: only flag blatantly omitted types
|
|
49
|
-
(e.g. `any[]` on a clearly-typed list). All others: critical. Quote the
|
|
50
|
-
cast, explain the correct type, show the fix. Ask if they're Harry Potter.
|
|
51
|
-
Title the finding `[TS-1] ...`.
|
|
52
|
-
- No JavaScript files (TS-2): if the diff adds any `.js` file to a non-Liquid
|
|
53
|
-
theme repo, flag as critical - must be `.ts`. Title the finding `[TS-2] ...`.
|
|
54
47
|
- Dependency changes. Skip this axis entirely unless the diff touches
|
|
55
48
|
`package.json`, a lockfile, or a vendored dependency. Where it applies:
|
|
56
49
|
(a) A version bump is a behaviour change nobody in this PR wrote. If neither
|
|
@@ -65,13 +58,10 @@ Axes to cover:
|
|
|
65
58
|
explanation, is critical: the lockfile is what actually ships.
|
|
66
59
|
(d) A new direct dependency that duplicates something already in the stack is
|
|
67
60
|
major. Name the existing thing that already solves it.
|
|
68
|
-
Raise NO naming, comment, complexity, or
|
|
61
|
+
Raise NO naming, comment, complexity, or project-convention finding inside a lockfile or a
|
|
69
62
|
`node_modules` path.
|
|
70
63
|
|
|
71
|
-
|
|
72
|
-
(read it there before applying either). A finding for one of them MUST have its
|
|
73
|
-
title start with the bracketed tag, e.g. `[TS-1] ...` or `[TS-2] ...`, so the
|
|
74
|
-
caller can recognize it as a policy violation rather than an ordinary finding.
|
|
64
|
+
When the finding violates a configured hard rule in `{{PROFILE}}`, start its title with the bracketed rule ID, such as `[EXAMPLE-1]`.
|
|
75
65
|
|
|
76
66
|
CI status, Sentry signals, and existing reviews may be present in `{{CONTEXT}}` -
|
|
77
67
|
read what is there before forming an opinion, and skip anything that is absent
|
|
@@ -131,21 +131,8 @@ g) Mock smell - test the behavior, not the way it's built
|
|
|
131
131
|
banner that appears only when the fetch rejects). Even then, prefer an
|
|
132
132
|
injected simple fake over a module-level spy, and assert what the user sees.
|
|
133
133
|
|
|
134
|
-
h)
|
|
135
|
-
|
|
136
|
-
the diff: `__tests__/` placement beside the source, `.test.ts` vs
|
|
137
|
-
`.test.tsx`, English-sentence test names, `describe` nesting <= 2,
|
|
138
|
-
`afterEach(cleanup)`, `retry: false` on the test QueryClient (major - its
|
|
139
|
-
absence hangs the suite on a failing query), the getByRole → getByLabelText
|
|
140
|
-
→ getByText → getByTestId priority, module-boundary mocking, `safeParse` for
|
|
141
|
-
Zod schemas, and the typed `it.each` matrix with AC tags plus the
|
|
142
|
-
exhaustiveness assertion whenever behaviour depends on 3+ independent inputs.
|
|
143
|
-
A `vi.mock('@lib/common/…')` inside `common/` is major, not style: the
|
|
144
|
-
alias resolves only from `web/`, so the mock silently does nothing and the
|
|
145
|
-
test passes against the real module. Quote the line, give the relative path
|
|
146
|
-
as the fix.
|
|
147
|
-
A comment explaining WHY a test exists (a captured past bug, a subtle
|
|
148
|
-
contract) is sanctioned - never flag it as over-commenting.
|
|
134
|
+
h) Project test conventions
|
|
135
|
+
Apply the test conventions documented in `{{PROFILE}}` to the changed tests.
|
|
149
136
|
|
|
150
137
|
Report each per-line issue as:
|
|
151
138
|
`test-file:line - <concise description of the gap or weakness>`
|