@olegkoval/agent-skills 1.92.0 → 1.94.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.
- 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/SKILL.md +13 -7
- package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/model-matrix.mjs +20 -15
- package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/run-log.mjs +21 -0
- package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/selftest.mjs +17 -1
- 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/README.md +18 -11
- package/plugins/olko-github-pr/skills/lekker-review/SKILL.md +13 -7
- package/plugins/olko-github-pr/skills/lekker-review/scripts/model-matrix.mjs +20 -15
- package/plugins/olko-github-pr/skills/lekker-review/scripts/run-log.mjs +21 -0
- package/plugins/olko-github-pr/skills/lekker-review/scripts/selftest.mjs +17 -1
- package/plugins/olko-github-pr/skills/lekker-review/workflow.js +25 -2
- 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
|
```
|
|
@@ -29,7 +29,6 @@ description: >
|
|
|
29
29
|
the PR", provides a GitHub PR URL, or asks for a pull request review in any
|
|
30
30
|
form.
|
|
31
31
|
license: MIT
|
|
32
|
-
model: sonnet
|
|
33
32
|
allowed-tools: Bash, Read, Write, Edit, Agent, Workflow, AskUserQuestion, Artifact, spawn_agent, wait_agent, followup_task, send_message, interrupt_agent, list_agents
|
|
34
33
|
compatibility: >
|
|
35
34
|
Claude Code and OpenAI Codex. Claude uses Workflow/Agent/Artifact. Codex uses
|
|
@@ -46,7 +45,7 @@ metadata:
|
|
|
46
45
|
- multi-agent
|
|
47
46
|
- workflow
|
|
48
47
|
- quality
|
|
49
|
-
argument-hint: "<github-pr-url | repo pr-number | repo pr-title | branch [ref]> [scan|medium|deep|deps] [--post] [--fix] [--base <ref>] [--risk routine|standard|elevated|critical] [--crossvendor] [--quiet-decisions]"
|
|
48
|
+
argument-hint: "<github-pr-url | repo pr-number | repo pr-title | branch [ref]> [scan|medium|deep|deps] [--post] [--fix] [--base <ref>] [--risk routine|standard|large|elevated|critical] [--crossvendor] [--quiet-decisions]"
|
|
50
49
|
---
|
|
51
50
|
<!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
|
|
52
51
|
|
|
@@ -344,7 +343,7 @@ it in one line and leave `ROUTING` unset: every agent then keeps the
|
|
|
344
343
|
workflow's built-in default (`sonnet`, `haiku` for triage). The full matrix is in `README.md`
|
|
345
344
|
under "Models and effort".
|
|
346
345
|
|
|
347
|
-
**`--risk routine|standard|elevated|critical` flag:** parse and pass to
|
|
346
|
+
**`--risk routine|standard|large|elevated|critical` flag:** parse and pass to
|
|
348
347
|
`model-matrix.mjs` as `--risk`. It overrides the detected tier, never the depth.
|
|
349
348
|
|
|
350
349
|
**`--crossvendor` flag:** pass `--crossvendor` to `model-matrix.mjs`. The gate
|
|
@@ -487,14 +486,21 @@ node "${CLAUDE_PLUGIN_ROOT}/skills/lekker-review/scripts/run-log.mjs" decide <RU
|
|
|
487
486
|
|
|
488
487
|
## Progress line
|
|
489
488
|
|
|
490
|
-
|
|
489
|
+
`run-log.mjs` already prints this line on stderr for `start`, each `mark`
|
|
490
|
+
(`context`, `review`, `synthesis` as `post`, `fix`, `post`), each `decide` (as a
|
|
491
|
+
compass line) and `finish`. So the Bash tool result of those calls carries the
|
|
492
|
+
boat; copy the line into your own text at each milestone and end the final
|
|
493
|
+
message with the `success` or `failure` line. `LEKKER_PROGRESS=off` silences it.
|
|
494
|
+
|
|
495
|
+
For the milestones the run log does not mark (`verify`, `critic`, `prove`), run
|
|
491
496
|
`node "${CLAUDE_PLUGIN_ROOT}/skills/lekker-review/scripts/lekker-progress.mjs" --stage <stage> --message "<short fact>"`
|
|
492
497
|
(foreground, it returns in under a second; in Codex use the absolute path to
|
|
493
498
|
`scripts/lekker-progress.mjs` beside the selected `SKILL.md`). It prints one
|
|
494
499
|
status line (a boat drifting toward a lighthouse), animates only on a real
|
|
495
|
-
terminal
|
|
496
|
-
|
|
497
|
-
|
|
500
|
+
terminal (the Bash tool is not one, so expect the static line), and always
|
|
501
|
+
exits 0. It is decoration: run it after the milestone's own output, never
|
|
502
|
+
instead of it, and keep every count and reason in the report too. Add `--ascii`
|
|
503
|
+
on terminals that mis-measure emoji.
|
|
498
504
|
|
|
499
505
|
| Milestone | Stage | Message, e.g. |
|
|
500
506
|
| --- | --- | --- |
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
// Prints {host, tier, tierSource, reasons, visual, routing}.
|
|
18
18
|
import { pathToFileURL } from 'node:url'
|
|
19
19
|
|
|
20
|
-
export const TIERS = ['routine', 'standard', 'elevated', 'critical']
|
|
20
|
+
export const TIERS = ['routine', 'standard', 'large', 'elevated', 'critical']
|
|
21
21
|
export const HOSTS = ['claude', 'codex']
|
|
22
22
|
export const EFFORTS = ['low', 'medium', 'high', 'xhigh', 'max']
|
|
23
23
|
|
|
@@ -25,29 +25,32 @@ export const EFFORTS = ['low', 'medium', 'high', 'xhigh', 'max']
|
|
|
25
25
|
export const GATE_ROLES = ['verifier', 'critic']
|
|
26
26
|
|
|
27
27
|
const r = (model, effort) => ({ model, effort })
|
|
28
|
-
const same = cell => [cell, cell, cell, cell]
|
|
28
|
+
const same = cell => [cell, cell, cell, cell, cell]
|
|
29
29
|
|
|
30
|
-
// One row per role: [routine, standard, elevated, critical].
|
|
30
|
+
// One row per role: [routine, standard, large, elevated, critical].
|
|
31
|
+
// `large` (500-800 lines) keeps the finders on the standard route and moves only the
|
|
32
|
+
// verifier to the strong model at medium effort: finders are most of the spend
|
|
33
|
+
// (PR 83: 9.8M of 12.1M cache reads), the verifier decides what survives.
|
|
31
34
|
export const MATRIX = {
|
|
32
35
|
claude: {
|
|
33
36
|
triage: same(r('haiku', 'medium')),
|
|
34
|
-
specialist: [r('sonnet', 'medium'), r('sonnet', 'high'), r('opus', 'high'), r('opus', 'xhigh')],
|
|
35
|
-
rules: [r('sonnet', 'medium'), r('sonnet', 'medium'), r('sonnet', 'high'), r('sonnet', 'high')],
|
|
36
|
-
verifier: [r('sonnet', 'high'), r('sonnet', 'high'), r('opus', 'high'), r('fable', 'high')],
|
|
37
|
-
critic: [r('sonnet', 'medium'), r('sonnet', 'high'), r('opus', 'high'), r('fable', 'xhigh')],
|
|
38
|
-
prover: [r('sonnet', 'high'), r('sonnet', 'high'), r('sonnet', 'high'), r('opus', 'high')],
|
|
39
|
-
fixer: [r('sonnet', 'high'), r('sonnet', 'high'), r('sonnet', 'high'), r('opus', 'high')],
|
|
37
|
+
specialist: [r('sonnet', 'medium'), r('sonnet', 'high'), r('sonnet', 'high'), r('opus', 'high'), r('opus', 'xhigh')],
|
|
38
|
+
rules: [r('sonnet', 'medium'), r('sonnet', 'medium'), r('sonnet', 'medium'), r('sonnet', 'high'), r('sonnet', 'high')],
|
|
39
|
+
verifier: [r('sonnet', 'high'), r('sonnet', 'high'), r('opus', 'medium'), r('opus', 'high'), r('fable', 'high')],
|
|
40
|
+
critic: [r('sonnet', 'medium'), r('sonnet', 'high'), r('opus', 'medium'), r('opus', 'high'), r('fable', 'xhigh')],
|
|
41
|
+
prover: [r('sonnet', 'high'), r('sonnet', 'high'), r('sonnet', 'high'), r('sonnet', 'high'), r('opus', 'high')],
|
|
42
|
+
fixer: [r('sonnet', 'high'), r('sonnet', 'high'), r('sonnet', 'high'), r('sonnet', 'high'), r('opus', 'high')],
|
|
40
43
|
polish: same(r('sonnet', 'medium')),
|
|
41
44
|
housekeeping: same(r('haiku', 'low')),
|
|
42
45
|
},
|
|
43
46
|
codex: {
|
|
44
47
|
triage: same(r('gpt-6-luna', 'medium')),
|
|
45
|
-
specialist: [r('gpt-6.2-sol', 'medium'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-astra', 'high'), r('gpt-6.2-astra', 'xhigh')],
|
|
46
|
-
rules: [r('gpt-6.2-sol', 'medium'), r('gpt-6.2-sol', 'medium'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high')],
|
|
47
|
-
verifier: [r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-astra', 'high'), r('gpt-6.2-astra', 'high')],
|
|
48
|
-
critic: [r('gpt-6.2-sol', 'medium'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-astra', 'high'), r('gpt-6.2-astra', 'xhigh')],
|
|
49
|
-
prover: [r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-astra', 'high')],
|
|
50
|
-
fixer: [r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-astra', 'high')],
|
|
48
|
+
specialist: [r('gpt-6.2-sol', 'medium'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-astra', 'high'), r('gpt-6.2-astra', 'xhigh')],
|
|
49
|
+
rules: [r('gpt-6.2-sol', 'medium'), r('gpt-6.2-sol', 'medium'), r('gpt-6.2-sol', 'medium'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high')],
|
|
50
|
+
verifier: [r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-astra', 'medium'), r('gpt-6.2-astra', 'high'), r('gpt-6.2-astra', 'high')],
|
|
51
|
+
critic: [r('gpt-6.2-sol', 'medium'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-astra', 'medium'), r('gpt-6.2-astra', 'high'), r('gpt-6.2-astra', 'xhigh')],
|
|
52
|
+
prover: [r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-astra', 'high')],
|
|
53
|
+
fixer: [r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-sol', 'high'), r('gpt-6.2-astra', 'high')],
|
|
51
54
|
polish: same(r('gpt-6.2-sol', 'medium')),
|
|
52
55
|
housekeeping: same(r('gpt-6-luna', 'low')),
|
|
53
56
|
},
|
|
@@ -67,6 +70,7 @@ const CRITICAL_CATEGORIES = ['auth', 'billing']
|
|
|
67
70
|
const ELEVATED_CATEGORIES = ['ci-workflow', 'installer']
|
|
68
71
|
const DEEP_LINES = 800
|
|
69
72
|
const DEEP_FILES = 25
|
|
73
|
+
const LARGE_LINES = 500
|
|
70
74
|
|
|
71
75
|
// Each rule: [tier, reason, test]. First match wins, so order is severity order.
|
|
72
76
|
const TIER_RULES = [
|
|
@@ -75,6 +79,7 @@ const TIER_RULES = [
|
|
|
75
79
|
['elevated', 'migrations or SQL', s => s.files.some(f => MIGRATION_FILE.test(f))],
|
|
76
80
|
['elevated', `more than ${DEEP_LINES} changed lines or ${DEEP_FILES} files`, s => s.lines > DEEP_LINES || s.files.length > DEEP_FILES],
|
|
77
81
|
['routine', 'documentation only', s => s.files.length > 0 && s.files.every(f => DOC_FILE.test(f))],
|
|
82
|
+
['large', `more than ${LARGE_LINES} changed lines`, s => s.lines > LARGE_LINES],
|
|
78
83
|
]
|
|
79
84
|
|
|
80
85
|
export function tierFor({ files = [], categories = [], lines = 0, override } = {}) {
|
|
@@ -26,12 +26,15 @@
|
|
|
26
26
|
// runs/<runId>/timeline.jsonl
|
|
27
27
|
// runs/<runId>/<attached files>
|
|
28
28
|
//
|
|
29
|
+
// `start`, `mark`, `decide` and `finish` also print the lekker-progress status line on stderr.
|
|
30
|
+
//
|
|
29
31
|
// `finish` may be called more than once for one run (after the review, again
|
|
30
32
|
// after fix mode); every call appends a fresh row and the newest one wins.
|
|
31
33
|
|
|
32
34
|
import { readFileSync, writeFileSync, appendFileSync, existsSync, mkdirSync, mkdtempSync, copyFileSync, readdirSync, statSync, rmSync } from 'node:fs';
|
|
33
35
|
import { homedir } from 'node:os';
|
|
34
36
|
import { basename, join } from 'node:path';
|
|
37
|
+
import { frame, STAGES } from './lekker-progress.mjs';
|
|
35
38
|
|
|
36
39
|
const STATE_DIR = process.env.LEKKER_STATE_DIR || join(homedir(), '.local', 'state', 'lekker-review');
|
|
37
40
|
const RUNS_DIR = join(STATE_DIR, 'runs');
|
|
@@ -40,6 +43,8 @@ const PROJECTS_DIR = process.env.LEKKER_CLAUDE_PROJECTS || join(homedir(), '.cla
|
|
|
40
43
|
const REVMUX_TASKS = process.env.LEKKER_REVMUX_TASKS_DIR || join(homedir(), 'code-reviews', 'revmux-tasks');
|
|
41
44
|
|
|
42
45
|
const DECISION_KINDS = ['depth', 'tier', 'route', 'finding', 'fix', 'post'];
|
|
46
|
+
// Run-log phase -> progress stage. `synthesis` is "review saved", so it shares the `post` slot.
|
|
47
|
+
const PHASE_STAGE = { start: 'start', context: 'context', review: 'review', synthesis: 'post', fix: 'fix', post: 'post' };
|
|
43
48
|
const argv = process.argv.slice(2);
|
|
44
49
|
const cmd = argv[0];
|
|
45
50
|
|
|
@@ -54,6 +59,17 @@ function flags(name) {
|
|
|
54
59
|
}
|
|
55
60
|
const has = (name) => argv.includes('--' + name);
|
|
56
61
|
|
|
62
|
+
// The Bash tool is never a TTY, and a skill step that says "decoration" gets skipped, so the
|
|
63
|
+
// run log (called at every milestone) prints the status line itself. It goes to stderr so
|
|
64
|
+
// stdout stays the single JSON object callers parse; LEKKER_PROGRESS=off silences it.
|
|
65
|
+
function progress(stage, message) {
|
|
66
|
+
if (process.env.LEKKER_PROGRESS === 'off' || !STAGES[stage]) return;
|
|
67
|
+
try {
|
|
68
|
+
const ascii = has('ascii') || Boolean(process.env.LEKKER_PROGRESS_ASCII);
|
|
69
|
+
process.stderr.write(`${frame(stage, STAGES[stage][0] ?? 0, { message, ascii })}\n`);
|
|
70
|
+
} catch { /* decoration must never fail a review */ }
|
|
71
|
+
}
|
|
72
|
+
|
|
57
73
|
const readJson = (p) => {
|
|
58
74
|
try { return JSON.parse(readFileSync(p, 'utf8')); } catch { return null; }
|
|
59
75
|
};
|
|
@@ -167,6 +183,7 @@ if (cmd === 'start') {
|
|
|
167
183
|
writeFileSync(join(dir, 'run.json'), JSON.stringify(meta, null, 2) + '\n');
|
|
168
184
|
appendFileSync(join(dir, 'timeline.jsonl'), JSON.stringify({ phase: 'start', at: startedAt }) + '\n');
|
|
169
185
|
console.log(JSON.stringify({ runId, dir }));
|
|
186
|
+
progress('start', `${repo} ${target}, ${meta.depth ?? 'depth unset'}`);
|
|
170
187
|
} else if (cmd === 'mark') {
|
|
171
188
|
const [runId, phase] = [argv[1], argv[2]];
|
|
172
189
|
if (!phase) fail('mark needs <runId> <phase>');
|
|
@@ -174,6 +191,7 @@ if (cmd === 'start') {
|
|
|
174
191
|
if (!existsSync(dir)) fail(`no run ${runId}`);
|
|
175
192
|
appendFileSync(join(dir, 'timeline.jsonl'), JSON.stringify({ phase, at: new Date().toISOString(), note: flag('note') ?? undefined }) + '\n');
|
|
176
193
|
console.log(JSON.stringify({ runId, phase }));
|
|
194
|
+
progress(PHASE_STAGE[phase], flag('note') ?? (phase === 'synthesis' ? 'review synthesized' : undefined));
|
|
177
195
|
} else if (cmd === 'decide') {
|
|
178
196
|
const runId = argv[1];
|
|
179
197
|
const dir = runDir(runId);
|
|
@@ -193,6 +211,7 @@ if (cmd === 'start') {
|
|
|
193
211
|
const lines = rows.map(({ kind, what, why }) => JSON.stringify({ at, kind, what, why }) + '\n').join('');
|
|
194
212
|
appendFileSync(join(dir, 'timeline.jsonl'), lines);
|
|
195
213
|
console.log(JSON.stringify({ runId, decisions: rows.length }));
|
|
214
|
+
rows.forEach(({ what, why }) => progress('decision', `${what}: ${why}`));
|
|
196
215
|
} else if (cmd === 'attach') {
|
|
197
216
|
const runId = argv[1];
|
|
198
217
|
const dir = runDir(runId);
|
|
@@ -235,6 +254,8 @@ if (cmd === 'start') {
|
|
|
235
254
|
append(row);
|
|
236
255
|
const unresolved = workflows.filter((w) => w.durationS == null).map((w) => w.wfId);
|
|
237
256
|
console.log(JSON.stringify({ runId, ledger: LEDGER, wallS: row.wallS, tokensTotal: row.tokensTotal, unresolvedWorkflows: unresolved }));
|
|
257
|
+
if (row.status === 'ok') progress('success', row.verdict ?? undefined);
|
|
258
|
+
else progress('failure', row.note ?? row.status);
|
|
238
259
|
} else if (cmd === 'report') {
|
|
239
260
|
const days = Number(flag('days', '30'));
|
|
240
261
|
const rows = latestRows(days);
|
|
@@ -89,7 +89,22 @@ check('merge keeps the highest severity', dedup([
|
|
|
89
89
|
{ file: 'a.ts', line: 5, severity: 'critical', title: 'Off-by-one loop skips the first line', badCode: '', description: '' },
|
|
90
90
|
])[0].severity, 'critical')
|
|
91
91
|
|
|
92
|
+
// Regression (PR 83): two lenses flagged one line with their own class slugs, so the
|
|
93
|
+
// class check kept both and the defect was verified twice.
|
|
94
|
+
check('two lenses, one line, own class slugs -> 1 finding', dedup([
|
|
95
|
+
{ file: 'g.liquid', line: 44, severity: 'important', _dimension: 'implementation', bugClass: 'config-key-mismatch', title: 'Diameter filter param never matches: case arm says specs.diameter, configured option is spec.diameter', badCode: '', description: '' },
|
|
96
|
+
{ file: 'g.liquid', line: 44, severity: 'important', _dimension: 'quality', bugClass: 'inconsistent-metafield-namespace', title: 'Diameter filter param never matches: switch left on specs.diameter while the filter emits spec.diameter', badCode: '', description: '' },
|
|
97
|
+
]).length, 1)
|
|
98
|
+
|
|
92
99
|
console.log('\ndedup: distinct issues must NOT be merged')
|
|
100
|
+
check('one lens, one line, two classes stay separate', dedup([
|
|
101
|
+
{ file: 'a.ts', line: 10, severity: 'important', _dimension: 'quality', bugClass: 'tenant-cache', title: 'Missing tenant check before cache lookup', badCode: '', description: '' },
|
|
102
|
+
{ file: 'a.ts', line: 10, severity: 'important', _dimension: 'quality', bugClass: 'different-class', title: 'Missing tenant check before cache lookup', badCode: '', description: '' },
|
|
103
|
+
]).length, 2)
|
|
104
|
+
check('two lenses, nearby lines, two classes stay separate', dedup([
|
|
105
|
+
{ file: 'a.ts', line: 10, severity: 'important', _dimension: 'quality', bugClass: 'tenant-cache', title: 'Missing tenant check before cache lookup', badCode: '', description: '' },
|
|
106
|
+
{ file: 'a.ts', line: 12, severity: 'important', _dimension: 'implementation', bugClass: 'different-class', title: 'Missing tenant check before cache lookup', badCode: '', description: '' },
|
|
107
|
+
]).length, 2)
|
|
93
108
|
check('similar titles 390 lines apart stay separate', dedup([
|
|
94
109
|
{ file: 'big.ts', line: 10, severity: 'important', title: 'Missing pagination on the products query', badCode: '', description: '' },
|
|
95
110
|
{ file: 'big.ts', line: 400, severity: 'important', title: 'Missing pagination on the orders query', badCode: '', description: '' },
|
|
@@ -873,8 +888,9 @@ const buildPrompt = new Function(
|
|
|
873
888
|
'dim', 'SUPPRESSED', 'prevSha',
|
|
874
889
|
[liftBlockOr('PROJECT_RULE_DIMENSIONS'), liftBlockOr('PROJECT_RULE_CORE'), liftBlockOr('IGNORE_ENTRY_NOTE'),
|
|
875
890
|
liftBlockOr('PROJECT_RULE_INSTRUCTION'), liftBlockOr('PROJECT_RULE_ONLY_INSTRUCTION'), liftConst('BUG_CLASS_INSTRUCTION'),
|
|
891
|
+
liftBlockOr('SPECIALIST_KEYS'), liftBlockOr('SPECIALIST_TOOL_BUDGET'),
|
|
876
892
|
`const targetMetadata = '{}', promptDir = 'p', repoSlug = 'o/r', prNumber = 1, prUrl = 'u',
|
|
877
|
-
diffFile = 'd', contextFile = 'c', wtDisplay = 'w'`,
|
|
893
|
+
diffFile = 'd', contextFile = 'c', wtDisplay = 'w', depth = 'medium'`,
|
|
878
894
|
lift('reviewPrompt'), 'return reviewPrompt(dim)'].join('\n'),
|
|
879
895
|
)
|
|
880
896
|
const promptFor = key => buildPrompt({ key, file: `${key}.md` }, [], null)
|
|
@@ -4,6 +4,8 @@ description: >
|
|
|
4
4
|
Close out a small change or multi-step task by checking its original objective, running applicable
|
|
5
5
|
quality gates, auditing the diff and task-owned artifacts, and preparing an evidence-backed handoff.
|
|
6
6
|
Use when work is believed done, the user asks to wrap up or clean up, or before handing work off.
|
|
7
|
+
Also checks whether the session produced a repeatable workflow that deserves a skill, with a second
|
|
8
|
+
opinion from Jev, and suggests creating it only when both agree.
|
|
7
9
|
For a retro over repository history use retro-analysis; for agent operations use agent-ops-retro.
|
|
8
10
|
license: MIT
|
|
9
11
|
compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, Grok, and other Agent Skills compatible tools.
|
|
@@ -52,7 +54,45 @@ Before cleanup, when a completed task used a team and its applicable checks are
|
|
|
52
54
|
- 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.
|
|
53
55
|
- 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.
|
|
54
56
|
|
|
55
|
-
## 5.
|
|
57
|
+
## 5. Check for a skill worth creating
|
|
58
|
+
|
|
59
|
+
Stay silent unless something qualifies. This step must never add noise to a small task.
|
|
60
|
+
|
|
61
|
+
**Own pass.** Look at what the session actually did, not at what was asked. A workflow is a candidate only when all four hold:
|
|
62
|
+
|
|
63
|
+
- 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.
|
|
64
|
+
- 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").
|
|
65
|
+
- 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.
|
|
66
|
+
- It is a procedure, not a fact. A gotcha, preference or project rule belongs in memory or a knowledge entry, not in a skill.
|
|
67
|
+
|
|
68
|
+
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.
|
|
69
|
+
|
|
70
|
+
**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.
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
echo '{"state": "<abstract>", "questions": [
|
|
74
|
+
{"id": "reusable", "type": "noul",
|
|
75
|
+
"instructions": "This workflow will recur and a written procedure would save real effort"},
|
|
76
|
+
{"id": "shape", "type": "choice", "instructions": "What is the best form for capturing it?",
|
|
77
|
+
"criteria": {"skill": "A multi-step skill", "memory": "A remembered preference or rule",
|
|
78
|
+
"checklist": "A short checklist or a hook", "none": "Not worth capturing"}}]}' | ~/.local/bin/jev ask
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
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.
|
|
82
|
+
|
|
83
|
+
**Combine the two results.**
|
|
84
|
+
|
|
85
|
+
| Own pass | Jev | Do |
|
|
86
|
+
|---|---|---|
|
|
87
|
+
| 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. |
|
|
88
|
+
| Candidate, an existing skill covers most | any | Name the skill to use or extend instead. |
|
|
89
|
+
| 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. |
|
|
90
|
+
| Candidate, not covered | no opinion or skipped | Report that Jev gave no opinion or was skipped; do not suggest creating a skill. |
|
|
91
|
+
| None | not run | Silent: the report says "Skill check: none". |
|
|
92
|
+
|
|
93
|
+
Report at most one suggestion, the strongest.
|
|
94
|
+
|
|
95
|
+
## 6. Handoff
|
|
56
96
|
|
|
57
97
|
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.
|
|
58
98
|
|
|
@@ -95,6 +135,9 @@ Use the report below, keeping it brief for a small change and adding detail only
|
|
|
95
135
|
- Updated: <files or none>
|
|
96
136
|
- Not needed: <reason or none>
|
|
97
137
|
|
|
138
|
+
**Skill check**
|
|
139
|
+
- <none | suggestion: name, why, own-pass and Jev result | extend <existing skill> | second opinion skipped: reason>
|
|
140
|
+
|
|
98
141
|
**Risks and follow-ups**
|
|
99
142
|
- <remaining risk, blocked gate, or next action; include delivery state if relevant>
|
|
100
143
|
|
|
@@ -102,5 +145,5 @@ Use the report below, keeping it brief for a small change and adding detail only
|
|
|
102
145
|
`type(scope): concise imperative summary`
|
|
103
146
|
|
|
104
147
|
**Handoff**
|
|
105
|
-
<2
|
|
148
|
+
<2 to 5 sentences with the evidence and next step a teammate needs>
|
|
106
149
|
```
|
|
@@ -4,6 +4,8 @@ description: >
|
|
|
4
4
|
Close out a small change or multi-step task by checking its original objective, running applicable
|
|
5
5
|
quality gates, auditing the diff and task-owned artifacts, and preparing an evidence-backed handoff.
|
|
6
6
|
Use when work is believed done, the user asks to wrap up or clean up, or before handing work off.
|
|
7
|
+
Also checks whether the session produced a repeatable workflow that deserves a skill, with a second
|
|
8
|
+
opinion from Jev, and suggests creating it only when both agree.
|
|
7
9
|
For a retro over repository history use retro-analysis; for agent operations use agent-ops-retro.
|
|
8
10
|
license: MIT
|
|
9
11
|
compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, Grok, and other Agent Skills compatible tools.
|
|
@@ -52,7 +54,45 @@ Before cleanup, when a completed task used a team and its applicable checks are
|
|
|
52
54
|
- 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.
|
|
53
55
|
- 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.
|
|
54
56
|
|
|
55
|
-
## 5.
|
|
57
|
+
## 5. Check for a skill worth creating
|
|
58
|
+
|
|
59
|
+
Stay silent unless something qualifies. This step must never add noise to a small task.
|
|
60
|
+
|
|
61
|
+
**Own pass.** Look at what the session actually did, not at what was asked. A workflow is a candidate only when all four hold:
|
|
62
|
+
|
|
63
|
+
- 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.
|
|
64
|
+
- 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").
|
|
65
|
+
- 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.
|
|
66
|
+
- It is a procedure, not a fact. A gotcha, preference or project rule belongs in memory or a knowledge entry, not in a skill.
|
|
67
|
+
|
|
68
|
+
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.
|
|
69
|
+
|
|
70
|
+
**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.
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
echo '{"state": "<abstract>", "questions": [
|
|
74
|
+
{"id": "reusable", "type": "noul",
|
|
75
|
+
"instructions": "This workflow will recur and a written procedure would save real effort"},
|
|
76
|
+
{"id": "shape", "type": "choice", "instructions": "What is the best form for capturing it?",
|
|
77
|
+
"criteria": {"skill": "A multi-step skill", "memory": "A remembered preference or rule",
|
|
78
|
+
"checklist": "A short checklist or a hook", "none": "Not worth capturing"}}]}' | ~/.local/bin/jev ask
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
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.
|
|
82
|
+
|
|
83
|
+
**Combine the two results.**
|
|
84
|
+
|
|
85
|
+
| Own pass | Jev | Do |
|
|
86
|
+
|---|---|---|
|
|
87
|
+
| 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. |
|
|
88
|
+
| Candidate, an existing skill covers most | any | Name the skill to use or extend instead. |
|
|
89
|
+
| 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. |
|
|
90
|
+
| Candidate, not covered | no opinion or skipped | Report that Jev gave no opinion or was skipped; do not suggest creating a skill. |
|
|
91
|
+
| None | not run | Silent: the report says "Skill check: none". |
|
|
92
|
+
|
|
93
|
+
Report at most one suggestion, the strongest.
|
|
94
|
+
|
|
95
|
+
## 6. Handoff
|
|
56
96
|
|
|
57
97
|
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.
|
|
58
98
|
|
|
@@ -95,6 +135,9 @@ Use the report below, keeping it brief for a small change and adding detail only
|
|
|
95
135
|
- Updated: <files or none>
|
|
96
136
|
- Not needed: <reason or none>
|
|
97
137
|
|
|
138
|
+
**Skill check**
|
|
139
|
+
- <none | suggestion: name, why, own-pass and Jev result | extend <existing skill> | second opinion skipped: reason>
|
|
140
|
+
|
|
98
141
|
**Risks and follow-ups**
|
|
99
142
|
- <remaining risk, blocked gate, or next action; include delivery state if relevant>
|
|
100
143
|
|
|
@@ -102,5 +145,5 @@ Use the report below, keeping it brief for a small change and adding detail only
|
|
|
102
145
|
`type(scope): concise imperative summary`
|
|
103
146
|
|
|
104
147
|
**Handoff**
|
|
105
|
-
<2
|
|
148
|
+
<2 to 5 sentences with the evidence and next step a teammate needs>
|
|
106
149
|
```
|