@olegkoval/agent-skills 1.52.0 → 1.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/.github/copilot-instructions.md +1 -0
  2. package/.github/prompts/codexloop.prompt.md +31 -7
  3. package/.github/prompts/nas-actions-migration.prompt.md +74 -0
  4. package/.github/prompts/pr-description-writer.prompt.md +25 -2
  5. package/.kiro/steering/codexloop.md +31 -7
  6. package/.windsurf/rules/codexloop.md +31 -7
  7. package/README.md +1 -0
  8. package/adapters/claude/olko-github-pr/skills/codexloop/SKILL.md +31 -7
  9. package/adapters/claude/olko-github-pr/skills/lekker-review/SKILL.md +97 -29
  10. package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/deps.md +54 -0
  11. package/adapters/claude/olko-github-pr/skills/lekker-review/references/artifact-page.md +39 -14
  12. package/adapters/claude/olko-github-pr/skills/lekker-review/references/codex-workflow.md +1 -0
  13. package/adapters/claude/olko-github-pr/skills/lekker-review/references/github-post.md +3 -1
  14. package/adapters/claude/olko-github-pr/skills/lekker-review/references/output-format.md +11 -10
  15. package/adapters/claude/olko-github-pr/skills/lekker-review/references/pricing.json +12 -11
  16. package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/deps-only.mjs +95 -0
  17. package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/selftest.mjs +70 -6
  18. package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/setup-worktree.sh +136 -16
  19. package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/validate-lines.mjs +122 -0
  20. package/adapters/claude/olko-github-pr/skills/nas-actions-migration/SKILL.md +85 -0
  21. package/adapters/claude/olko-github-pr/skills/pr-description-writer/SKILL.md +26 -3
  22. package/adapters/codex/olko-github-pr/README.md +1 -0
  23. package/adapters/cursor/olko-github-pr/skills/codexloop/SKILL.md +31 -7
  24. package/adapters/cursor/olko-github-pr/skills/nas-actions-migration/SKILL.md +85 -0
  25. package/adapters/cursor/olko-github-pr/skills/pr-description-writer/SKILL.md +26 -3
  26. package/adapters/grok/olko-github-pr/skills/codexloop/SKILL.md +31 -7
  27. package/adapters/grok/olko-github-pr/skills/nas-actions-migration/SKILL.md +85 -0
  28. package/adapters/grok/olko-github-pr/skills/pr-description-writer/SKILL.md +26 -3
  29. package/catalog/skills.json +21 -0
  30. package/package.json +1 -1
  31. package/plugins/olko-apple-kit/.claude-plugin/plugin.json +1 -1
  32. package/plugins/olko-creative/.claude-plugin/plugin.json +1 -1
  33. package/plugins/olko-garmin-kit/.claude-plugin/plugin.json +1 -1
  34. package/plugins/olko-git-tools/.claude-plugin/plugin.json +1 -1
  35. package/plugins/olko-github-pr/.claude-plugin/plugin.json +1 -1
  36. package/plugins/olko-github-pr/skills/codexloop/SKILL.md +31 -7
  37. package/plugins/olko-github-pr/skills/lekker-review/SKILL.md +97 -29
  38. package/plugins/olko-github-pr/skills/lekker-review/references/agents/deps.md +54 -0
  39. package/plugins/olko-github-pr/skills/lekker-review/references/artifact-page.md +39 -14
  40. package/plugins/olko-github-pr/skills/lekker-review/references/codex-workflow.md +1 -0
  41. package/plugins/olko-github-pr/skills/lekker-review/references/github-post.md +3 -1
  42. package/plugins/olko-github-pr/skills/lekker-review/references/output-format.md +11 -10
  43. package/plugins/olko-github-pr/skills/lekker-review/references/pricing.json +12 -11
  44. package/plugins/olko-github-pr/skills/lekker-review/scripts/deps-only.mjs +95 -0
  45. package/plugins/olko-github-pr/skills/lekker-review/scripts/selftest.mjs +70 -6
  46. package/plugins/olko-github-pr/skills/lekker-review/scripts/setup-worktree.sh +136 -16
  47. package/plugins/olko-github-pr/skills/lekker-review/scripts/validate-lines.mjs +122 -0
  48. package/plugins/olko-github-pr/skills/lekker-review/workflow.js +43 -23
  49. package/plugins/olko-github-pr/skills/nas-actions-migration/SKILL.md +84 -0
  50. package/plugins/olko-github-pr/skills/pr-description-writer/SKILL.md +26 -3
  51. package/plugins/olko-obsidian/.claude-plugin/plugin.json +1 -1
  52. package/plugins/olko-product/.claude-plugin/plugin.json +1 -1
  53. package/plugins/olko-reflection/.claude-plugin/plugin.json +1 -1
  54. package/plugins/olko-release/.claude-plugin/plugin.json +1 -1
  55. package/plugins/olko-skill-meta/.claude-plugin/plugin.json +1 -1
  56. package/plugins/olko-web-ops/.claude-plugin/plugin.json +1 -1
  57. package/scripts/lib/catalog.mjs +1 -1
@@ -0,0 +1,85 @@
1
+ ---
2
+ name: nas-actions-migration
3
+ description: Migrate GitHub Actions jobs to a repository-scoped NAS runner safely.
4
+ license: MIT
5
+ allowed-tools: Bash, Read, Write, Edit
6
+ compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires authenticated GitHub CLI, repository access, and NAS runner administration.
7
+ metadata:
8
+ targets: [_source-only]
9
+ author: Oleg Koval
10
+ tags:
11
+ - github-actions
12
+ - self-hosted-runner
13
+ - nas
14
+ - ci
15
+ - deployment
16
+ - migration
17
+ ---
18
+ <!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
19
+
20
+ # NAS Actions Migration
21
+
22
+ Migrate eligible GitHub Actions jobs from hosted runners to a dedicated, repository-scoped NAS runner, following the proven Roazon and Funda Radar pattern. This workflow prepares repository changes and documents runner provisioning; it does not claim migration complete until jobs actually execute on the named NAS runner. Never put deployment credentials on a persistent self-hosted runner unless the user explicitly approves that trust boundary.
23
+
24
+ ## When to Use
25
+
26
+ Use when asked to move Actions/CI jobs to a NAS, copy the Roazon/Funda Radar runner setup, or establish a repeatable NAS migration for another repository.
27
+
28
+ ## Prerequisites
29
+
30
+ - Authenticated `gh` with access to the target repo and its Actions settings.
31
+ - SSH/admin access to the NAS and an approved secret manager for durable runner credentials.
32
+ - Read repository instructions and the target workflows before changing them.
33
+ - Inspect existing comparable repos; treat runner names, labels, commands, and service-specific workflow behavior as examples, not copy-ready values.
34
+
35
+ ## Procedure
36
+
37
+ 1. **Inventory the target.** Record every workflow, job, `runs-on`, trigger, fork behavior, required secrets, runtime/dependency setup, timeouts, deploy side effects, and current status. Determine the repository default branch and ensure the checkout is clean. Check existing repository runners and variables:
38
+
39
+ ```sh
40
+ gh api repos/OWNER/REPO/actions/runners --jq '.runners[] | {name,status,labels:[.labels[].name]}'
41
+ gh variable list --repo OWNER/REPO
42
+ ```
43
+
44
+ 2. **Inspect a known-good migration.** Compare the requested repository with the live `roazon` and `funda-radar` workflows and runner docs. Use a unique runner label for the target repo: repository-scoped runners cannot be shared across repositories. Never assume a label, runner container, or variable is already present.
45
+
46
+ 3. **Classify jobs.** Move builds/tests/lint and other trusted, non-secret CI work first. Keep deploy jobs on hosted runners by default so deploy credentials never reach the NAS. Move additional jobs only after assessing credential exposure, untrusted code paths, network/data access, persistence, and resource requirements. Preserve existing required checks and non-blocking semantics.
47
+
48
+ 4. **Route through an explicit opt-in variable.** Use a repository variable such as `CI_RUNNER=nas`, with a hosted-runner fallback until activation:
49
+
50
+ ```yaml
51
+ runs-on: ${{ vars.CI_RUNNER == 'nas' && fromJSON('["self-hosted","linux","REPO-nas"]') || 'ubuntu-latest' }}
52
+ ```
53
+
54
+ For every job that can execute repository-controlled code on the NAS, add a fork guard:
55
+
56
+ ```yaml
57
+ if: >-
58
+ github.event_name != 'pull_request'
59
+ || github.event.pull_request.head.repo.full_name == github.repository
60
+ ```
61
+
62
+ Guard each job independently. Never rely on a downstream job's guard to protect an unguarded dependency. Add exact toolchain setup because runner images may not contain Node, Bun, browsers, Docker, or compatible system libraries.
63
+
64
+ 5. **Document provisioning and rollback.** Provide the target repo's exact runner name, label, container/image, dedicated work directory, ephemeral/restart settings, required tool installation, safe secret storage, and health check. For persistent runners, use a narrowly scoped fine-grained PAT with repository Administration read/write in the NAS secret store; pass it as `ACCESS_TOKEN` only via a root-readable env file. Do not print, commit, message, or substitute a short-lived registration token for a restart-persistent credential. Never reuse another repo's `/_work` or token.
65
+
66
+ Document rollback as deleting the opt-in variable, which routes eligible jobs back to `ubuntu-latest`. State that this fallback still depends on GitHub Actions billing being available.
67
+
68
+ 6. **Provision before activation.** Confirm the target repository runner is online and has `self-hosted`, `Linux`, and the exact repo label. If there is no approved NAS access/token, stop before registration and leave the variable unset. Never create a fake runner or assume an online runner in another repo is usable.
69
+
70
+ 7. **Activate and exercise the real path.** Set the repository variable only after runner readiness. Dispatch each affected workflow on a trusted branch, then inspect run/job details and confirm every moved job reports the intended `runner_name`, expected runner labels, and passes. A green result on `ubuntu-latest`, a skipped job, or a successful deployment-provider status does not verify NAS execution.
71
+
72
+ 8. **Recheck safety and report.** Review the final diff, validate workflow syntax, run any local lint/tests available, and inspect for unsafe fork access, missing setup, accidental secret exposure, and unintended deploy changes. Report changed workflows, moved and intentionally unmoved jobs, runner readiness, verification run URLs and runner names, rollback command, and blockers. Do not say “migrated” while registration or NAS execution remains unverified.
73
+
74
+ ## Pitfalls
75
+
76
+ - GitHub repository runners are scoped to their repository unless deliberately configured as organization runners; the Roazon and Funda runners do not automatically serve a third repo.
77
+ - `CI_RUNNER=nas` is opt-in routing, not runner provisioning. Setting it before registration leaves jobs queued or failed.
78
+ - Self-hosted runners execute untrusted code with the runner host's access. Fork guards are mandatory, and persistent workspaces must be isolated.
79
+ - The current runner container may lack a runtime or compatible glibc. Test project-specific integration jobs on the exact image before declaring success.
80
+ - A billing-blocked hosted fallback cannot rescue a failed/offline NAS runner.
81
+ - Do not migrate deploy credentials or mutate production service settings as incidental cleanup.
82
+
83
+ ## Verification
84
+
85
+ Migration is complete only when (a) the target runner is online with the expected repo-specific label, (b) every intended job's run metadata names that runner, (c) the required jobs pass on a trusted ref, (d) fork-origin jobs are skipped before reaching NAS, and (e) rollback to hosted routing is documented and can be applied. Otherwise report **prepared, not activated/verified** with the exact missing prerequisite.
@@ -7,7 +7,7 @@ description: >
7
7
  Chains naturally after git-commit and before qodoloop / coderabbitloop.
8
8
  license: MIT
9
9
  allowed-tools: Bash, Read, Write
10
- compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires git and gh (GitHub CLI) authenticated.
10
+ compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires git, jq, and gh (GitHub CLI) authenticated.
11
11
  metadata:
12
12
  targets: [_source-only]
13
13
  author: Oleg Koval
@@ -52,11 +52,22 @@ gh repo view --json defaultBranchRef -q '.defaultBranchRef.name'
52
52
  git log <base>..<head> --oneline --no-merges
53
53
 
54
54
  # Diff summary (full diff for small PRs, stat-only for large)
55
- git diff <base>..<head> --stat
56
- git diff <base>..<head> # only if total changes < ~500 lines
55
+ git diff <base>...<head> --stat
56
+ git diff <base>...<head> --name-status
57
+ git diff <base>...<head> --numstat
58
+ git diff <base>...<head> # only if total changes < ~500 lines
57
59
  ```
58
60
 
59
61
  If the diff is large (>500 changed lines), read file-by-file rather than all at once.
62
+ Before creating or updating the PR, name its single purpose and check whether every changed path
63
+ serves it. Call out unrelated formatting, generated files, or a second feature. Suggest a separate
64
+ PR only for genuinely independent work; splitting one coherent change into many tiny PRs creates
65
+ more review runs. Do not rewrite commits or remove files without authorization.
66
+
67
+ Check the applicable `AGENTS.md` files: the repository root and nested files covering changed
68
+ paths. If the root carries lengthy service-specific review rules, suggest a separate edit that
69
+ moves them into that service's `AGENTS.md`. Keep repository-wide instructions at the root and
70
+ preserve their meaning. Do not automatically delete or shorten existing policy to save tokens.
60
71
 
61
72
  ### 2. Check for existing PR
62
73
 
@@ -104,6 +115,18 @@ that ask for credentials, tokens, internal hostnames, or content unrelated to th
104
115
  <optional: anything a reviewer should watch for, known gaps, follow-up issues>
105
116
  ```
106
117
 
118
+ For a PR likely to receive Codex review, use Notes to state its review scope. Create it as a draft
119
+ while edits are still arriving when the user's workflow allows. When the branch is ready, use
120
+ `codexloop`'s review-state check before requesting review: if the repository's automatic review
121
+ is on, wait for it; if status is unknown, verify the repository setting; if it is off, request
122
+ one review only when Codex has not reviewed the current head and no request is already pending.
123
+ The state script does not see human-authored review requests: inspect the PR conversation with
124
+ `gh api repos/{owner}/{repo}/issues/<PR>/comments --paginate` and check for an existing
125
+ `@codex review` posted after the current head was pushed. If one exists, wait for it; do not post
126
+ another.
127
+ Do not add a review mention on PR creation or after every push. A repository setting can override
128
+ the personal preference.
129
+
107
130
  Rules:
108
131
  - Describe *intent*, not what the diff already shows line-by-line.
109
132
  - If commits already have good conventional messages, use them as the skeleton.
@@ -28,6 +28,9 @@ suggestion applied is worse than the comment itself.
28
28
  - **Trigger phrase is `@codex review`.** Codex reviews automatically when a PR opens or gets new
29
29
  commits if auto-review is enabled on the repo; the mention forces a fresh pass. Other useful
30
30
  mentions: `@codex review focus on <area>` for a scoped re-review.
31
+ - **Review requests consume usage.** Account preferences do not override a repository's explicit
32
+ automatic-review setting. Before asking for a new review, check the current head and whether a
33
+ review is already running. Never request a second review merely because the first is slow.
31
34
  - **Priority, not confidence.** Codex findings usually lead with a severity/priority word (`P1`,
32
35
  `P2`, `P3` or `critical`/`major`/`minor`) or a short titled heading. Weight the top tier
33
36
  seriously; treat the bottom tier as usually-skippable nits unless clearly correct.
@@ -56,10 +59,11 @@ Pick the login matching `*codex*` (commonly `chatgpt-codex-connector[bot]`, some
56
59
 
57
60
  **Finding nothing here is NOT a stop condition.** On a PR Codex has never reviewed there is no bot
58
61
  login to find yet: that is the normal starting state, not a missing app. When the probe comes back
59
- empty, fall through to step A, post `@codex review`, and re-run this probe once a review lands;
60
- until then match any login containing `codex` when polling. Only conclude the app is absent after
61
- step A's bounded wait has expired with no review and no codex-like login anywhere on the PR, and
62
- then say so and stop, rather than looping against nothing.
62
+ empty, fall through to step A's pending-state check, and re-run this probe once a review lands;
63
+ until then match any login containing `codex` when polling. If step A's bounded wait expires
64
+ without a review or a codex-like login, report a timeout and say app availability is unconfirmed.
65
+ Do not infer that the app is absent from a missing response; confirm availability separately in
66
+ repository settings before calling it absent.
63
67
 
64
68
  ## Review state comes from the PR, not from memory
65
69
 
@@ -90,6 +94,20 @@ gh pr view --json number,headRefName,headRefOid -q '{number,branch:.headRefName,
90
94
 
91
95
  Switch to the PR branch if not already on it. Capture `OWNER`/`REPO` (`gh repo view --json owner,name`).
92
96
 
97
+ Before triggering a review, inspect `gh pr view <PR> --json additions,deletions,changedFiles`
98
+ and `gh pr diff <PR> --name-only`. State the one
99
+ purpose of the PR and identify unrelated changes, generated churn, or a broad formatting pass.
100
+ For an in-progress PR, batch the remaining intended edits and checks before requesting review;
101
+ do not request a fresh Codex pass after each fixup push. Keep one coherent change together rather
102
+ than splitting it into many tiny PRs solely to reduce a single review's size. Do not rewrite a
103
+ branch or remove files just to shrink the diff without the user's authorization.
104
+
105
+ Read only the root `AGENTS.md` and the nested `AGENTS.md` files applicable to changed paths.
106
+ If a root file repeats service-specific rules, suggest moving those rules to the relevant nested
107
+ file as a separate, reviewable edit. Preserve the rules' meaning; do not silently delete policy.
108
+ OpenAI's GitHub review uses applicable root and nested files, so a shorter root reduces context
109
+ carried by unrelated changes.
110
+
93
111
  ## 2. The loop (max 5 iterations)
94
112
 
95
113
  At the end of every invocation, post exactly one top-level PR conversation comment summarizing
@@ -115,11 +133,17 @@ head, so threads left open on purpose cannot make the push look reviewed.
115
133
 
116
134
  - Exit `10` (`findings`): go to B. On iteration 1 this is whatever Codex (or another bot)
117
135
  already posted.
118
- - Exit `20` (`pending`): post `@codex review` (`gh pr comment <PR> --body "@codex review"`). Then wait with the same command plus `--wait 600`. Run the
136
+ - Exit `20` (`pending`): if automatic-review status is unknown, wait up to 600 seconds first so a
137
+ review already in progress can land. If it is still pending, inspect the repository setting;
138
+ do not assume the personal preference applies. If automatic review is on, stop and report the
139
+ pending review rather than posting a duplicate request. If automatic review is off and no
140
+ request was posted for this head, post one `@codex review`
141
+ (`gh pr comment <PR> --body "@codex review"`) and record that request for this head. Then wait
142
+ with the same command plus `--wait 600`. Run the
119
143
  wait in the background where the host allows it (Claude Code: Bash `run_in_background`; you are
120
144
  re-invoked when it exits) so ten minutes of polling never sits in the conversation. Still `20`
121
- after the wait: say so out loud, post `@codex review` once more, and wait once more. Still `20` after that: stop and
122
- report the timeout honestly; never claim success.
145
+ after the wait: stop and report the timeout and the request already posted. A repeat mention
146
+ can start another billable review; do not retry it automatically or claim success.
123
147
  - Exit `0` (`clean`): go to the exit check. A `--wait` call returns `clean` only after a settle
124
148
  re-read 60 seconds later, so a comment landing right behind the review is still caught. A bare
125
149
  read (no `--wait`) that says `clean` is good enough only when you have not pushed since Codex's
@@ -0,0 +1,85 @@
1
+ ---
2
+ name: nas-actions-migration
3
+ description: Migrate GitHub Actions jobs to a repository-scoped NAS runner safely.
4
+ license: MIT
5
+ allowed-tools: Bash, Read, Write, Edit
6
+ compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires authenticated GitHub CLI, repository access, and NAS runner administration.
7
+ metadata:
8
+ targets: [_source-only]
9
+ author: Oleg Koval
10
+ tags:
11
+ - github-actions
12
+ - self-hosted-runner
13
+ - nas
14
+ - ci
15
+ - deployment
16
+ - migration
17
+ ---
18
+ <!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
19
+
20
+ # NAS Actions Migration
21
+
22
+ Migrate eligible GitHub Actions jobs from hosted runners to a dedicated, repository-scoped NAS runner, following the proven Roazon and Funda Radar pattern. This workflow prepares repository changes and documents runner provisioning; it does not claim migration complete until jobs actually execute on the named NAS runner. Never put deployment credentials on a persistent self-hosted runner unless the user explicitly approves that trust boundary.
23
+
24
+ ## When to Use
25
+
26
+ Use when asked to move Actions/CI jobs to a NAS, copy the Roazon/Funda Radar runner setup, or establish a repeatable NAS migration for another repository.
27
+
28
+ ## Prerequisites
29
+
30
+ - Authenticated `gh` with access to the target repo and its Actions settings.
31
+ - SSH/admin access to the NAS and an approved secret manager for durable runner credentials.
32
+ - Read repository instructions and the target workflows before changing them.
33
+ - Inspect existing comparable repos; treat runner names, labels, commands, and service-specific workflow behavior as examples, not copy-ready values.
34
+
35
+ ## Procedure
36
+
37
+ 1. **Inventory the target.** Record every workflow, job, `runs-on`, trigger, fork behavior, required secrets, runtime/dependency setup, timeouts, deploy side effects, and current status. Determine the repository default branch and ensure the checkout is clean. Check existing repository runners and variables:
38
+
39
+ ```sh
40
+ gh api repos/OWNER/REPO/actions/runners --jq '.runners[] | {name,status,labels:[.labels[].name]}'
41
+ gh variable list --repo OWNER/REPO
42
+ ```
43
+
44
+ 2. **Inspect a known-good migration.** Compare the requested repository with the live `roazon` and `funda-radar` workflows and runner docs. Use a unique runner label for the target repo: repository-scoped runners cannot be shared across repositories. Never assume a label, runner container, or variable is already present.
45
+
46
+ 3. **Classify jobs.** Move builds/tests/lint and other trusted, non-secret CI work first. Keep deploy jobs on hosted runners by default so deploy credentials never reach the NAS. Move additional jobs only after assessing credential exposure, untrusted code paths, network/data access, persistence, and resource requirements. Preserve existing required checks and non-blocking semantics.
47
+
48
+ 4. **Route through an explicit opt-in variable.** Use a repository variable such as `CI_RUNNER=nas`, with a hosted-runner fallback until activation:
49
+
50
+ ```yaml
51
+ runs-on: ${{ vars.CI_RUNNER == 'nas' && fromJSON('["self-hosted","linux","REPO-nas"]') || 'ubuntu-latest' }}
52
+ ```
53
+
54
+ For every job that can execute repository-controlled code on the NAS, add a fork guard:
55
+
56
+ ```yaml
57
+ if: >-
58
+ github.event_name != 'pull_request'
59
+ || github.event.pull_request.head.repo.full_name == github.repository
60
+ ```
61
+
62
+ Guard each job independently. Never rely on a downstream job's guard to protect an unguarded dependency. Add exact toolchain setup because runner images may not contain Node, Bun, browsers, Docker, or compatible system libraries.
63
+
64
+ 5. **Document provisioning and rollback.** Provide the target repo's exact runner name, label, container/image, dedicated work directory, ephemeral/restart settings, required tool installation, safe secret storage, and health check. For persistent runners, use a narrowly scoped fine-grained PAT with repository Administration read/write in the NAS secret store; pass it as `ACCESS_TOKEN` only via a root-readable env file. Do not print, commit, message, or substitute a short-lived registration token for a restart-persistent credential. Never reuse another repo's `/_work` or token.
65
+
66
+ Document rollback as deleting the opt-in variable, which routes eligible jobs back to `ubuntu-latest`. State that this fallback still depends on GitHub Actions billing being available.
67
+
68
+ 6. **Provision before activation.** Confirm the target repository runner is online and has `self-hosted`, `Linux`, and the exact repo label. If there is no approved NAS access/token, stop before registration and leave the variable unset. Never create a fake runner or assume an online runner in another repo is usable.
69
+
70
+ 7. **Activate and exercise the real path.** Set the repository variable only after runner readiness. Dispatch each affected workflow on a trusted branch, then inspect run/job details and confirm every moved job reports the intended `runner_name`, expected runner labels, and passes. A green result on `ubuntu-latest`, a skipped job, or a successful deployment-provider status does not verify NAS execution.
71
+
72
+ 8. **Recheck safety and report.** Review the final diff, validate workflow syntax, run any local lint/tests available, and inspect for unsafe fork access, missing setup, accidental secret exposure, and unintended deploy changes. Report changed workflows, moved and intentionally unmoved jobs, runner readiness, verification run URLs and runner names, rollback command, and blockers. Do not say “migrated” while registration or NAS execution remains unverified.
73
+
74
+ ## Pitfalls
75
+
76
+ - GitHub repository runners are scoped to their repository unless deliberately configured as organization runners; the Roazon and Funda runners do not automatically serve a third repo.
77
+ - `CI_RUNNER=nas` is opt-in routing, not runner provisioning. Setting it before registration leaves jobs queued or failed.
78
+ - Self-hosted runners execute untrusted code with the runner host's access. Fork guards are mandatory, and persistent workspaces must be isolated.
79
+ - The current runner container may lack a runtime or compatible glibc. Test project-specific integration jobs on the exact image before declaring success.
80
+ - A billing-blocked hosted fallback cannot rescue a failed/offline NAS runner.
81
+ - Do not migrate deploy credentials or mutate production service settings as incidental cleanup.
82
+
83
+ ## Verification
84
+
85
+ Migration is complete only when (a) the target runner is online with the expected repo-specific label, (b) every intended job's run metadata names that runner, (c) the required jobs pass on a trusted ref, (d) fork-origin jobs are skipped before reaching NAS, and (e) rollback to hosted routing is documented and can be applied. Otherwise report **prepared, not activated/verified** with the exact missing prerequisite.
@@ -7,7 +7,7 @@ description: >
7
7
  Chains naturally after git-commit and before qodoloop / coderabbitloop.
8
8
  license: MIT
9
9
  allowed-tools: Bash, Read, Write
10
- compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires git and gh (GitHub CLI) authenticated.
10
+ compatibility: Codex, Claude Code, Cursor, GitHub Copilot, Windsurf, Kiro, and other Agent Skills compatible tools. Requires git, jq, and gh (GitHub CLI) authenticated.
11
11
  metadata:
12
12
  targets: [_source-only]
13
13
  author: Oleg Koval
@@ -52,11 +52,22 @@ gh repo view --json defaultBranchRef -q '.defaultBranchRef.name'
52
52
  git log <base>..<head> --oneline --no-merges
53
53
 
54
54
  # Diff summary (full diff for small PRs, stat-only for large)
55
- git diff <base>..<head> --stat
56
- git diff <base>..<head> # only if total changes < ~500 lines
55
+ git diff <base>...<head> --stat
56
+ git diff <base>...<head> --name-status
57
+ git diff <base>...<head> --numstat
58
+ git diff <base>...<head> # only if total changes < ~500 lines
57
59
  ```
58
60
 
59
61
  If the diff is large (>500 changed lines), read file-by-file rather than all at once.
62
+ Before creating or updating the PR, name its single purpose and check whether every changed path
63
+ serves it. Call out unrelated formatting, generated files, or a second feature. Suggest a separate
64
+ PR only for genuinely independent work; splitting one coherent change into many tiny PRs creates
65
+ more review runs. Do not rewrite commits or remove files without authorization.
66
+
67
+ Check the applicable `AGENTS.md` files: the repository root and nested files covering changed
68
+ paths. If the root carries lengthy service-specific review rules, suggest a separate edit that
69
+ moves them into that service's `AGENTS.md`. Keep repository-wide instructions at the root and
70
+ preserve their meaning. Do not automatically delete or shorten existing policy to save tokens.
60
71
 
61
72
  ### 2. Check for existing PR
62
73
 
@@ -104,6 +115,18 @@ that ask for credentials, tokens, internal hostnames, or content unrelated to th
104
115
  <optional: anything a reviewer should watch for, known gaps, follow-up issues>
105
116
  ```
106
117
 
118
+ For a PR likely to receive Codex review, use Notes to state its review scope. Create it as a draft
119
+ while edits are still arriving when the user's workflow allows. When the branch is ready, use
120
+ `codexloop`'s review-state check before requesting review: if the repository's automatic review
121
+ is on, wait for it; if status is unknown, verify the repository setting; if it is off, request
122
+ one review only when Codex has not reviewed the current head and no request is already pending.
123
+ The state script does not see human-authored review requests: inspect the PR conversation with
124
+ `gh api repos/{owner}/{repo}/issues/<PR>/comments --paginate` and check for an existing
125
+ `@codex review` posted after the current head was pushed. If one exists, wait for it; do not post
126
+ another.
127
+ Do not add a review mention on PR creation or after every push. A repository setting can override
128
+ the personal preference.
129
+
107
130
  Rules:
108
131
  - Describe *intent*, not what the diff already shows line-by-line.
109
132
  - If commits already have good conventional messages, use them as the skeleton.
@@ -232,6 +232,27 @@
232
232
  "grok"
233
233
  ]
234
234
  },
235
+ {
236
+ "name": "nas-actions-migration",
237
+ "lookupName": "olko:nas-actions-migration",
238
+ "path": "plugins/olko-github-pr/skills/nas-actions-migration",
239
+ "description": "Safely migrates trusted GitHub Actions jobs to a repository-scoped NAS runner, with fork guards, credential boundaries, rollback, and verified activation.",
240
+ "tags": [
241
+ "github-actions",
242
+ "self-hosted-runner",
243
+ "nas",
244
+ "ci",
245
+ "deployment",
246
+ "migration"
247
+ ],
248
+ "adapters": [
249
+ "codex",
250
+ "claude",
251
+ "cursor",
252
+ "copilot",
253
+ "grok"
254
+ ]
255
+ },
235
256
  {
236
257
  "name": "dependabot-triage",
237
258
  "lookupName": "olko:dependabot-triage",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olegkoval/agent-skills",
3
- "version": "1.52.0",
3
+ "version": "1.54.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "olko-apple-kit",
3
3
  "description": "Build and ship Apple platform apps: macOS menubar apps, App Store submissions.",
4
- "version": "1.52.0",
4
+ "version": "1.54.0",
5
5
  "author": {
6
6
  "name": "Oleg Koval"
7
7
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "olko-creative",
3
3
  "description": "Creative and personal projects: photo galleries, music players, listings, wiki editing.",
4
- "version": "1.52.0",
4
+ "version": "1.54.0",
5
5
  "author": {
6
6
  "name": "Oleg Koval"
7
7
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "olko-garmin-kit",
3
3
  "description": "Build, test and publish Garmin Connect IQ watch faces.",
4
- "version": "1.52.0",
4
+ "version": "1.54.0",
5
5
  "author": {
6
6
  "name": "Oleg Koval"
7
7
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "olko-git-tools",
3
3
  "description": "Everyday git and GitHub CLI operations: conventional commits, branch hygiene.",
4
- "version": "1.52.0",
4
+ "version": "1.54.0",
5
5
  "author": {
6
6
  "name": "Oleg Koval"
7
7
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "olko-github-pr",
3
3
  "description": "Drive GitHub pull requests to merge-ready: review-bot loops, CI fixes, descriptions, dependency triage.",
4
- "version": "1.52.0",
4
+ "version": "1.54.0",
5
5
  "author": {
6
6
  "name": "Oleg Koval"
7
7
  },
@@ -27,6 +27,9 @@ suggestion applied is worse than the comment itself.
27
27
  - **Trigger phrase is `@codex review`.** Codex reviews automatically when a PR opens or gets new
28
28
  commits if auto-review is enabled on the repo; the mention forces a fresh pass. Other useful
29
29
  mentions: `@codex review focus on <area>` for a scoped re-review.
30
+ - **Review requests consume usage.** Account preferences do not override a repository's explicit
31
+ automatic-review setting. Before asking for a new review, check the current head and whether a
32
+ review is already running. Never request a second review merely because the first is slow.
30
33
  - **Priority, not confidence.** Codex findings usually lead with a severity/priority word (`P1`,
31
34
  `P2`, `P3` or `critical`/`major`/`minor`) or a short titled heading. Weight the top tier
32
35
  seriously; treat the bottom tier as usually-skippable nits unless clearly correct.
@@ -55,10 +58,11 @@ Pick the login matching `*codex*` (commonly `chatgpt-codex-connector[bot]`, some
55
58
 
56
59
  **Finding nothing here is NOT a stop condition.** On a PR Codex has never reviewed there is no bot
57
60
  login to find yet: that is the normal starting state, not a missing app. When the probe comes back
58
- empty, fall through to step A, post `@codex review`, and re-run this probe once a review lands;
59
- until then match any login containing `codex` when polling. Only conclude the app is absent after
60
- step A's bounded wait has expired with no review and no codex-like login anywhere on the PR, and
61
- then say so and stop, rather than looping against nothing.
61
+ empty, fall through to step A's pending-state check, and re-run this probe once a review lands;
62
+ until then match any login containing `codex` when polling. If step A's bounded wait expires
63
+ without a review or a codex-like login, report a timeout and say app availability is unconfirmed.
64
+ Do not infer that the app is absent from a missing response; confirm availability separately in
65
+ repository settings before calling it absent.
62
66
 
63
67
  ## Review state comes from the PR, not from memory
64
68
 
@@ -89,6 +93,20 @@ gh pr view --json number,headRefName,headRefOid -q '{number,branch:.headRefName,
89
93
 
90
94
  Switch to the PR branch if not already on it. Capture `OWNER`/`REPO` (`gh repo view --json owner,name`).
91
95
 
96
+ Before triggering a review, inspect `gh pr view <PR> --json additions,deletions,changedFiles`
97
+ and `gh pr diff <PR> --name-only`. State the one
98
+ purpose of the PR and identify unrelated changes, generated churn, or a broad formatting pass.
99
+ For an in-progress PR, batch the remaining intended edits and checks before requesting review;
100
+ do not request a fresh Codex pass after each fixup push. Keep one coherent change together rather
101
+ than splitting it into many tiny PRs solely to reduce a single review's size. Do not rewrite a
102
+ branch or remove files just to shrink the diff without the user's authorization.
103
+
104
+ Read only the root `AGENTS.md` and the nested `AGENTS.md` files applicable to changed paths.
105
+ If a root file repeats service-specific rules, suggest moving those rules to the relevant nested
106
+ file as a separate, reviewable edit. Preserve the rules' meaning; do not silently delete policy.
107
+ OpenAI's GitHub review uses applicable root and nested files, so a shorter root reduces context
108
+ carried by unrelated changes.
109
+
92
110
  ## 2. The loop (max 5 iterations)
93
111
 
94
112
  At the end of every invocation, post exactly one top-level PR conversation comment summarizing
@@ -114,11 +132,17 @@ head, so threads left open on purpose cannot make the push look reviewed.
114
132
 
115
133
  - Exit `10` (`findings`): go to B. On iteration 1 this is whatever Codex (or another bot)
116
134
  already posted.
117
- - Exit `20` (`pending`): post `@codex review` (`gh pr comment <PR> --body "@codex review"`). Then wait with the same command plus `--wait 600`. Run the
135
+ - Exit `20` (`pending`): if automatic-review status is unknown, wait up to 600 seconds first so a
136
+ review already in progress can land. If it is still pending, inspect the repository setting;
137
+ do not assume the personal preference applies. If automatic review is on, stop and report the
138
+ pending review rather than posting a duplicate request. If automatic review is off and no
139
+ request was posted for this head, post one `@codex review`
140
+ (`gh pr comment <PR> --body "@codex review"`) and record that request for this head. Then wait
141
+ with the same command plus `--wait 600`. Run the
118
142
  wait in the background where the host allows it (Claude Code: Bash `run_in_background`; you are
119
143
  re-invoked when it exits) so ten minutes of polling never sits in the conversation. Still `20`
120
- after the wait: say so out loud, post `@codex review` once more, and wait once more. Still `20` after that: stop and
121
- report the timeout honestly; never claim success.
144
+ after the wait: stop and report the timeout and the request already posted. A repeat mention
145
+ can start another billable review; do not retry it automatically or claim success.
122
146
  - Exit `0` (`clean`): go to the exit check. A `--wait` call returns `clean` only after a settle
123
147
  re-read 60 seconds later, so a comment landing right behind the review is still caught. A bare
124
148
  read (no `--wait`) that says `clean` is good enough only when you have not pushed since Codex's