@olegkoval/agent-skills 1.24.0 → 1.26.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 (78) hide show
  1. package/.claude-plugin/plugin.json +9 -2
  2. package/.cursor-plugin/index.json +35 -0
  3. package/.grok-plugin/index.json +35 -0
  4. package/.kiro/steering/codexloop.md +254 -0
  5. package/.kiro/steering/geminiloop.md +230 -0
  6. package/.kiro/steering/pr-finalize-complete.md +187 -0
  7. package/.kiro/steering/pr-finalize.md +140 -0
  8. package/.windsurf/rules/codexloop.md +253 -0
  9. package/.windsurf/rules/geminiloop.md +229 -0
  10. package/.windsurf/rules/pr-finalize-complete.md +186 -0
  11. package/.windsurf/rules/pr-finalize.md +139 -0
  12. package/README.md +10 -3
  13. package/catalog/skills.json +176 -6
  14. package/package.json +1 -1
  15. package/packages/software-development/codexloop/SKILL.md +261 -0
  16. package/packages/software-development/codexloop/adapters/claude/plugin.json +5 -0
  17. package/packages/software-development/codexloop/adapters/claude/skills/codexloop/SKILL.md +262 -0
  18. package/packages/software-development/codexloop/adapters/codex/README.md +26 -0
  19. package/packages/software-development/codexloop/adapters/cursor/plugin.json +6 -0
  20. package/packages/software-development/codexloop/adapters/cursor/skills/codexloop/SKILL.md +263 -0
  21. package/packages/software-development/codexloop/adapters/grok/plugin.json +6 -0
  22. package/packages/software-development/codexloop/adapters/grok/skills/codexloop/SKILL.md +262 -0
  23. package/packages/software-development/codexloop/adapters/kiro/steering/codexloop.md +254 -0
  24. package/packages/software-development/codexloop/adapters/windsurf/rules/codexloop.md +253 -0
  25. package/packages/software-development/dependabot-triage/SKILL.md +150 -0
  26. package/packages/software-development/dependabot-triage/adapters/claude/plugin.json +5 -0
  27. package/packages/software-development/dependabot-triage/adapters/claude/skills/dependabot-triage/SKILL.md +151 -0
  28. package/packages/software-development/dependabot-triage/adapters/codex/README.md +19 -0
  29. package/packages/software-development/dependabot-triage/adapters/cursor/plugin.json +6 -0
  30. package/packages/software-development/dependabot-triage/adapters/cursor/skills/dependabot-triage/SKILL.md +151 -0
  31. package/packages/software-development/dependabot-triage/adapters/grok/plugin.json +6 -0
  32. package/packages/software-development/dependabot-triage/adapters/grok/skills/dependabot-triage/SKILL.md +151 -0
  33. package/packages/software-development/geminiloop/SKILL.md +237 -0
  34. package/packages/software-development/geminiloop/adapters/claude/plugin.json +5 -0
  35. package/packages/software-development/geminiloop/adapters/claude/skills/geminiloop/SKILL.md +238 -0
  36. package/packages/software-development/geminiloop/adapters/codex/README.md +25 -0
  37. package/packages/software-development/geminiloop/adapters/cursor/plugin.json +6 -0
  38. package/packages/software-development/geminiloop/adapters/cursor/skills/geminiloop/SKILL.md +239 -0
  39. package/packages/software-development/geminiloop/adapters/grok/plugin.json +6 -0
  40. package/packages/software-development/geminiloop/adapters/grok/skills/geminiloop/SKILL.md +238 -0
  41. package/packages/software-development/geminiloop/adapters/kiro/steering/geminiloop.md +230 -0
  42. package/packages/software-development/geminiloop/adapters/windsurf/rules/geminiloop.md +229 -0
  43. package/packages/software-development/pr-finalize/SKILL.md +149 -0
  44. package/packages/software-development/pr-finalize/adapters/claude/plugin.json +5 -0
  45. package/packages/software-development/pr-finalize/adapters/claude/skills/pr-finalize/SKILL.md +150 -0
  46. package/packages/software-development/pr-finalize/adapters/codex/README.md +26 -0
  47. package/packages/software-development/pr-finalize/adapters/cursor/plugin.json +6 -0
  48. package/packages/software-development/pr-finalize/adapters/cursor/skills/pr-finalize/SKILL.md +151 -0
  49. package/packages/software-development/pr-finalize/adapters/grok/plugin.json +6 -0
  50. package/packages/software-development/pr-finalize/adapters/grok/skills/pr-finalize/SKILL.md +150 -0
  51. package/packages/software-development/pr-finalize/adapters/kiro/steering/pr-finalize.md +140 -0
  52. package/packages/software-development/pr-finalize/adapters/windsurf/rules/pr-finalize.md +139 -0
  53. package/packages/software-development/pr-finalize-complete/SKILL.md +195 -0
  54. package/packages/software-development/pr-finalize-complete/adapters/claude/plugin.json +5 -0
  55. package/packages/software-development/pr-finalize-complete/adapters/claude/skills/pr-finalize-complete/SKILL.md +196 -0
  56. package/packages/software-development/pr-finalize-complete/adapters/codex/README.md +24 -0
  57. package/packages/software-development/pr-finalize-complete/adapters/cursor/plugin.json +6 -0
  58. package/packages/software-development/pr-finalize-complete/adapters/cursor/skills/pr-finalize-complete/SKILL.md +197 -0
  59. package/packages/software-development/pr-finalize-complete/adapters/grok/plugin.json +6 -0
  60. package/packages/software-development/pr-finalize-complete/adapters/grok/skills/pr-finalize-complete/SKILL.md +196 -0
  61. package/packages/software-development/pr-finalize-complete/adapters/kiro/steering/pr-finalize-complete.md +187 -0
  62. package/packages/software-development/pr-finalize-complete/adapters/windsurf/rules/pr-finalize-complete.md +186 -0
  63. package/packages/software-development/pr-to-green/SKILL.md +165 -0
  64. package/packages/software-development/pr-to-green/adapters/claude/plugin.json +5 -0
  65. package/packages/software-development/pr-to-green/adapters/claude/skills/pr-to-green/SKILL.md +166 -0
  66. package/packages/software-development/pr-to-green/adapters/codex/README.md +19 -0
  67. package/packages/software-development/pr-to-green/adapters/cursor/plugin.json +6 -0
  68. package/packages/software-development/pr-to-green/adapters/cursor/skills/pr-to-green/SKILL.md +166 -0
  69. package/packages/software-development/pr-to-green/adapters/grok/plugin.json +6 -0
  70. package/packages/software-development/pr-to-green/adapters/grok/skills/pr-to-green/SKILL.md +166 -0
  71. package/packages/software-development/store-listing-copy/SKILL.md +215 -0
  72. package/packages/software-development/store-listing-copy/adapters/claude/plugin.json +5 -0
  73. package/packages/software-development/store-listing-copy/adapters/claude/skills/store-listing-copy/SKILL.md +216 -0
  74. package/packages/software-development/store-listing-copy/adapters/codex/README.md +20 -0
  75. package/packages/software-development/store-listing-copy/adapters/cursor/plugin.json +6 -0
  76. package/packages/software-development/store-listing-copy/adapters/cursor/skills/store-listing-copy/SKILL.md +216 -0
  77. package/packages/software-development/store-listing-copy/adapters/grok/plugin.json +6 -0
  78. package/packages/software-development/store-listing-copy/adapters/grok/skills/store-listing-copy/SKILL.md +216 -0
@@ -399,7 +399,7 @@
399
399
  "lookupName": "olko:obsidian-pr-sync",
400
400
  "category": "software-development",
401
401
  "path": "packages/software-development/obsidian-pr-sync",
402
- "description": "Fetch open GitHub PRs assigned to you or requesting your review, and write a grouped, age-sorted '## PRs to review' section into today's Obsidian daily note. Idempotent \u2014 re-running replaces the section.",
402
+ "description": "Fetch open GitHub PRs assigned to you or requesting your review, and write a grouped, age-sorted '## PRs to review' section into today's Obsidian daily note. Idempotent — re-running replaces the section.",
403
403
  "tags": [
404
404
  "github",
405
405
  "obsidian",
@@ -470,7 +470,7 @@
470
470
  "lookupName": "olko:macos-menubar-app",
471
471
  "category": "software-development",
472
472
  "path": "packages/software-development/macos-menubar-app",
473
- "description": "Build a production-quality macOS menubar or notch app in SwiftUI \u2014 MenuBarExtra, sandbox entitlements, keyboard shortcuts, sound effects, accessibility permissions, and App Store preparation.",
473
+ "description": "Build a production-quality macOS menubar or notch app in SwiftUI — MenuBarExtra, sandbox entitlements, keyboard shortcuts, sound effects, accessibility permissions, and App Store preparation.",
474
474
  "tags": [
475
475
  "macos",
476
476
  "swiftui",
@@ -495,7 +495,7 @@
495
495
  "lookupName": "olko:skill-budget-audit",
496
496
  "category": "software-development",
497
497
  "path": "packages/software-development/skill-budget-audit",
498
- "description": "Diagnose and fix Claude Code skill context budget overflow \u2014 identify heavy plugin bundles, remove domain-specific ones, and restore skill discoverability.",
498
+ "description": "Diagnose and fix Claude Code skill context budget overflow — identify heavy plugin bundles, remove domain-specific ones, and restore skill discoverability.",
499
499
  "tags": [
500
500
  "claude-code",
501
501
  "skills",
@@ -533,12 +533,60 @@
533
533
  "grok"
534
534
  ]
535
535
  },
536
+ {
537
+ "name": "pr-finalize",
538
+ "lookupName": "olko:pr-finalize",
539
+ "category": "software-development",
540
+ "path": "packages/software-development/pr-finalize",
541
+ "description": "Drives one GitHub PR to genuinely merge-ready: rebases and resolves conflicts, sweeps every review bot and human comment to zero unaddressed findings, verifies unit and E2E coverage actually exists, runs the repo's real lint/format/test gates before pushing, and reports what still needs a human.",
542
+ "tags": [
543
+ "code-review",
544
+ "pull-requests",
545
+ "github",
546
+ "testing",
547
+ "automation",
548
+ "agents"
549
+ ],
550
+ "adapters": [
551
+ "claude",
552
+ "codex",
553
+ "cursor",
554
+ "copilot",
555
+ "grok",
556
+ "windsurf",
557
+ "kiro"
558
+ ]
559
+ },
560
+ {
561
+ "name": "pr-finalize-complete",
562
+ "lookupName": "olko:pr-finalize-complete",
563
+ "category": "software-development",
564
+ "path": "packages/software-development/pr-finalize-complete",
565
+ "description": "Confirms a PR is genuinely merge-ready when the work is already believed done: re-checks every review-bot and human finding against the current code, separates stale comments from fixed ones, runs the repo's real lint and test gates, and reports the evidence rather than the assumption.",
566
+ "tags": [
567
+ "code-review",
568
+ "pull-requests",
569
+ "github",
570
+ "testing",
571
+ "verification",
572
+ "agents"
573
+ ],
574
+ "adapters": [
575
+ "claude",
576
+ "codex",
577
+ "cursor",
578
+ "copilot",
579
+ "grok",
580
+ "windsurf",
581
+ "kiro"
582
+ ]
583
+ },
536
584
  {
537
585
  "name": "qodoloop",
538
586
  "lookupName": "olko:qodoloop",
539
587
  "category": "software-development",
540
588
  "path": "packages/software-development/qodoloop",
541
- "description": "Iteratively drives a GitHub PR to zero unresolved Qodo findings \u2014 reads each finding's own Agent Prompt, applies the fix, replies to the thread, resolves it, pushes, and waits for Qodo's next pass.",
589
+ "description": "Iteratively drives a GitHub PR to zero unresolved Qodo findings — reads each finding's own Agent Prompt, applies the fix, replies to the thread, resolves it, pushes, and waits for Qodo's next pass.",
542
590
  "tags": [
543
591
  "code-review",
544
592
  "qodo",
@@ -586,7 +634,7 @@
586
634
  "lookupName": "olko:coderabbitloop",
587
635
  "category": "software-development",
588
636
  "path": "packages/software-development/coderabbitloop",
589
- "description": "Iteratively drives a GitHub PR to zero unresolved CodeRabbit findings \u2014 reads each inline comment's own Prompt for AI Agents block, applies the fix, replies to the thread, resolves it, pushes, and re-triggers CodeRabbit.",
637
+ "description": "Iteratively drives a GitHub PR to zero unresolved CodeRabbit findings — reads each inline comment's own Prompt for AI Agents block, applies the fix, replies to the thread, resolves it, pushes, and re-triggers CodeRabbit.",
590
638
  "tags": [
591
639
  "code-review",
592
640
  "coderabbit",
@@ -605,6 +653,54 @@
605
653
  "kiro"
606
654
  ]
607
655
  },
656
+ {
657
+ "name": "codexloop",
658
+ "lookupName": "olko:codexloop",
659
+ "category": "software-development",
660
+ "path": "packages/software-development/codexloop",
661
+ "description": "Iteratively drives a GitHub PR to zero unresolved OpenAI Codex review comments — but verifies every finding against the real code first, fixes only the correct ones, and rebuts false positives without changing correct code.",
662
+ "tags": [
663
+ "code-review",
664
+ "codex",
665
+ "github",
666
+ "pull-requests",
667
+ "automation",
668
+ "agents"
669
+ ],
670
+ "adapters": [
671
+ "claude",
672
+ "codex",
673
+ "cursor",
674
+ "copilot",
675
+ "grok",
676
+ "windsurf",
677
+ "kiro"
678
+ ]
679
+ },
680
+ {
681
+ "name": "geminiloop",
682
+ "lookupName": "olko:geminiloop",
683
+ "category": "software-development",
684
+ "path": "packages/software-development/geminiloop",
685
+ "description": "Iteratively drives a GitHub PR to zero unresolved Gemini Code Assist comments — treats each one as a claim to verify, fixes only the genuinely-correct findings, and rebuts the rest with evidence instead of editing correct code.",
686
+ "tags": [
687
+ "code-review",
688
+ "gemini",
689
+ "github",
690
+ "pull-requests",
691
+ "automation",
692
+ "agents"
693
+ ],
694
+ "adapters": [
695
+ "claude",
696
+ "codex",
697
+ "cursor",
698
+ "copilot",
699
+ "grok",
700
+ "windsurf",
701
+ "kiro"
702
+ ]
703
+ },
608
704
  {
609
705
  "name": "add-to-my-skills",
610
706
  "lookupName": "olko:add-to-my-skills",
@@ -678,7 +774,7 @@
678
774
  "lookupName": "olko:wikipedia-uk-editor",
679
775
  "category": "software-development",
680
776
  "path": "packages/software-development/wikipedia-uk-editor",
681
- "description": "Draft policy-compliant Ukrainian Wikipedia edits \u2014 translate an English article into uk, expand or source an existing uk article, or fix a maintenance backlog item \u2014 and return ready-to-paste wikitext plus an edit summary.",
777
+ "description": "Draft policy-compliant Ukrainian Wikipedia edits — translate an English article into uk, expand or source an existing uk article, or fix a maintenance backlog item — and return ready-to-paste wikitext plus an edit summary.",
682
778
  "tags": [
683
779
  "wikipedia",
684
780
  "ukrainian",
@@ -742,6 +838,80 @@
742
838
  "copilot",
743
839
  "grok"
744
840
  ]
841
+ },
842
+ {
843
+ "name": "pr-to-green",
844
+ "lookupName": "olko:pr-to-green",
845
+ "category": "software-development",
846
+ "path": "packages/software-development/pr-to-green",
847
+ "description": "Orchestrate a GitHub PR from first push to merge-ready: run ci-fix-loop until checks are green, detect active AI review bots, run qodoloop and coderabbitloop in sequence, and confirm zero unresolved threads.",
848
+ "tags": [
849
+ "github",
850
+ "pr",
851
+ "ci",
852
+ "loop",
853
+ "qodoloop",
854
+ "coderabbitloop",
855
+ "ci-fix-loop",
856
+ "workflow",
857
+ "automation"
858
+ ],
859
+ "adapters": [
860
+ "codex",
861
+ "claude",
862
+ "cursor",
863
+ "copilot",
864
+ "grok"
865
+ ]
866
+ },
867
+ {
868
+ "name": "dependabot-triage",
869
+ "lookupName": "olko:dependabot-triage",
870
+ "category": "software-development",
871
+ "path": "packages/software-development/dependabot-triage",
872
+ "description": "Triage open Dependabot and Renovate PRs in bulk: classify by risk tier, auto-approve and merge safe patch bumps, flag breaking major upgrades for human review, and post a digest.",
873
+ "tags": [
874
+ "dependabot",
875
+ "renovate",
876
+ "dependencies",
877
+ "security",
878
+ "automation",
879
+ "triage",
880
+ "github"
881
+ ],
882
+ "adapters": [
883
+ "codex",
884
+ "claude",
885
+ "cursor",
886
+ "copilot",
887
+ "grok"
888
+ ]
889
+ },
890
+ {
891
+ "name": "store-listing-copy",
892
+ "lookupName": "olko:store-listing-copy",
893
+ "category": "software-development",
894
+ "path": "packages/software-development/store-listing-copy",
895
+ "description": "Generate platform-validated App Store, Google Play, and Connect IQ store listing copy (title, subtitle, description, what's new, keywords) from a git changelog or release notes.",
896
+ "tags": [
897
+ "app-store",
898
+ "google-play",
899
+ "connect-iq",
900
+ "garmin",
901
+ "store",
902
+ "listing",
903
+ "copy",
904
+ "release-notes",
905
+ "ios",
906
+ "android"
907
+ ],
908
+ "adapters": [
909
+ "codex",
910
+ "claude",
911
+ "cursor",
912
+ "copilot",
913
+ "grok"
914
+ ]
745
915
  }
746
916
  ]
747
917
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olegkoval/agent-skills",
3
- "version": "1.24.0",
3
+ "version": "1.26.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -0,0 +1,261 @@
1
+ ---
2
+ name: codexloop
3
+ description: >
4
+ Iteratively satisfy OpenAI Codex's code review on a GitHub PR, but treat every Codex comment
5
+ SKEPTICALLY: verify each finding against the real code first, fix ONLY the genuinely-correct
6
+ ones, and rebut + resolve false positives WITHOUT changing correct code. Repeat until no
7
+ unresolved Codex comments remain. Use when the user says "satisfy codex", "clear the codex
8
+ review", "fix codex comments", "codex loop", or wants to iterate on Codex PR review feedback.
9
+ compatibility: GitHub only (Codex code review is a GitHub app). Requires git + gh (GitHub CLI) authenticated, and the Codex / ChatGPT connector app installed on the repo with code review enabled.
10
+ metadata:
11
+ version: "1.0"
12
+ allowed-tools: Bash(gh:*) Bash(git:*)
13
+ ---
14
+
15
+ # Codexloop
16
+
17
+ Drive a GitHub PR until Codex has no unresolved review comments — **but do not cargo-cult its
18
+ suggestions.** Every comment is a *claim to verify*, not an instruction to obey. A wrong
19
+ suggestion applied is worse than the comment itself.
20
+
21
+ ## How Codex differs from Greptile / Gemini
22
+
23
+ - **No check-run, no score.** Codex does not publish an `X/5` confidence or a named check. It posts
24
+ a **PR review** (state `COMMENTED`) plus inline review comments. Detection is by polling the
25
+ *reviews* endpoint. "Satisfied" = zero unresolved comments (each either fixed or rebutted).
26
+ - **Trigger phrase is `@codex review`.** Codex reviews automatically when a PR opens or gets new
27
+ commits if auto-review is enabled on the repo; the mention forces a fresh pass. Other useful
28
+ mentions: `@codex review focus on <area>` for a scoped re-review.
29
+ - **Priority, not confidence.** Codex findings usually lead with a severity/priority word (`P1`,
30
+ `P2`, `P3` or `critical`/`major`/`minor`) or a short titled heading. Weight the top tier
31
+ seriously; treat the bottom tier as usually-skippable nits unless clearly correct.
32
+ - **Codex is terse and often reasons from the diff alone.** Its characteristic failure is
33
+ confidently asserting a bug based only on the changed hunk, without the surrounding file or the
34
+ call sites. That makes "read the whole file before believing it" the single highest-value check.
35
+
36
+ ## Not for
37
+
38
+ - GitLab / Perforce (Codex code review is a GitHub app). For other review bots this catalog ships
39
+ `geminiloop`, `coderabbitloop`, and `qodoloop`; for CI failures rather than review comments, use
40
+ `ci-fix-loop`.
41
+
42
+ ## 0. Resolve the Codex bot login (do this first, do not hardcode)
43
+
44
+ The connector's bot login varies by installation, so discover it from the PR rather than
45
+ assuming it:
46
+
47
+ ```bash
48
+ gh api repos/{owner}/{repo}/pulls/<PR>/reviews --paginate --jq '.[].user.login' | sort -u
49
+ gh api repos/{owner}/{repo}/pulls/<PR>/comments --paginate --jq '.[].user.login' | sort -u
50
+ ```
51
+
52
+ Pick the login matching `*codex*` (commonly `chatgpt-codex-connector[bot]`, sometimes
53
+ `codex[bot]`) and export it as `BOT`.
54
+
55
+ **Finding nothing here is NOT a stop condition.** On a PR Codex has never reviewed there is no bot
56
+ login to find yet — that is the normal starting state, not a missing app. When the probe comes back
57
+ empty, fall through to step 2A, post `@codex review`, and re-run this probe once a review lands;
58
+ until then match any login containing `codex` when polling. Only conclude the app is absent after
59
+ step 2A's bounded wait has expired with no review and no codex-like login anywhere on the PR — and
60
+ then say so and stop, rather than looping against nothing.
61
+
62
+ ## 1. Identify the PR
63
+
64
+ ```bash
65
+ gh pr view --json number,headRefName,headRefOid -q '{number,branch:.headRefName,head:.headRefOid}'
66
+ ```
67
+
68
+ Switch to the PR branch if not already on it. Capture `OWNER`/`REPO` (`gh repo view --json owner,name`).
69
+
70
+ ## 2. The loop (max 5 iterations)
71
+
72
+ Keep an explicit iteration counter and stop at 5 — the cap is a real bound to enforce, not a
73
+ figure of speech. Each pass through A–G is one iteration; on hitting the cap, go straight to the
74
+ report and list what is still unresolved rather than starting a sixth.
75
+
76
+ ### A. Ensure a fresh Codex review on the current head
77
+
78
+ ```bash
79
+ HEAD_SHA=$(gh pr view <PR> --json headRefOid -q .headRefOid)
80
+ # Only trigger if no Codex review already exists for this exact SHA:
81
+ HAVE=$(gh api repos/{owner}/{repo}/pulls/<PR>/reviews --paginate \
82
+ --jq "[.[] | select(.user.login==\"$BOT\" and .commit_id==\"$HEAD_SHA\")] | length")
83
+ if [ "$HAVE" = "0" ]; then gh pr comment <PR> --body "@codex review"; fi
84
+ ```
85
+
86
+ Poll for the review of THIS head to land. No check-run exists, so poll the reviews endpoint — and
87
+ poll it on a **deadline**, never `while true`: a review that never arrives must end the skill with
88
+ an honest timeout, not hang it.
89
+
90
+ ```bash
91
+ # 10-minute deadline, one retry, then give up. DEADLINE/RETRIES are the
92
+ # enforcement of the bounds this skill claims — do not drop them.
93
+ wait_for_review() { # $1 = attempt label
94
+ local deadline=$(( SECONDS + 600 ))
95
+ while [ "$SECONDS" -lt "$deadline" ]; do
96
+ R=$(gh api repos/{owner}/{repo}/pulls/<PR>/reviews --paginate \
97
+ --jq "[.[] | select(.user.login==\"$BOT\" and .commit_id==\"$HEAD_SHA\")] | last")
98
+ if [ -n "$R" ] && [ "$R" != "null" ]; then return 0; fi
99
+ echo "waiting for Codex review of $HEAD_SHA ($1)..."; sleep 15
100
+ done
101
+ return 1
102
+ }
103
+
104
+ if ! wait_for_review "first wait"; then
105
+ echo "no Codex review after 10m — retrying once" # say the retry out loud
106
+ gh pr comment <PR> --body "@codex review"
107
+ if ! wait_for_review "after retry"; then
108
+ echo "Codex did not review $HEAD_SHA after a retry; stopping and reporting."
109
+ exit 1 # honest timeout, never a success claim
110
+ fi
111
+ fi
112
+ ```
113
+
114
+ Codex can take several minutes on a large diff, which is why the deadline is generous. Report the
115
+ retry in the final summary; two silent timeouts are the failure mode this guard exists to prevent.
116
+
117
+ ### B. Fetch the findings
118
+
119
+ - **Summary**: the review `.body` from the object above — read the overall take and the priority
120
+ spread.
121
+ - **Unresolved inline comments** on the current head:
122
+
123
+ ```bash
124
+ gh api repos/{owner}/{repo}/pulls/<PR>/comments --paginate \
125
+ --jq ".[] | select(.user.login==\"$BOT\") | {id, path, line, body}"
126
+ ```
127
+
128
+ Also pull the review threads + their resolved state via GraphQL (see step F) so you only act on
129
+ unresolved ones.
130
+
131
+ ### C. Critically evaluate EACH comment (the core of this skill)
132
+
133
+ For every comment, **verify the claim against the actual code and repo conventions before touching
134
+ anything.** Read the whole file — not just the diff hunk Codex saw — plus the types and the call
135
+ sites. Then classify:
136
+
137
+ 1. **CORRECT + actionable** — the finding is real and the fix improves the code. → fix it (step D).
138
+ 2. **FALSE POSITIVE / technically wrong** — the claim doesn't hold. → do **NOT** change code; write a
139
+ specific, evidence-based reply (cite the exact code/line/behavior that disproves it), then resolve.
140
+ 3. **Valid but out-of-scope / stylistic nit** that conflicts with repo convention or the PR's intent
141
+ → briefly decline with a reason, then resolve. Do not expand the PR's scope to satisfy a nit.
142
+
143
+ **Hard rules:**
144
+ - **Never modify correct code just to silence Codex.** Prefer a reasoned rebuttal.
145
+ - When uncertain whether a claim holds, **investigate** (read more code, run the type-checker / tests)
146
+ rather than assume Codex is right. Default to skepticism.
147
+ - If a suggested change would break other call sites, alter public behavior, or contradict a verified
148
+ repo convention, it is a category-2 rebuttal, not a fix.
149
+ - Never fabricate identifiers to satisfy a comment (e.g. a Linear/ticket prefix). If Codex asks for a
150
+ ticket reference and none exists, say so; do not invent one.
151
+
152
+ **Codex's common failure modes to watch for (default these to category 2):**
153
+ - Diff-local reasoning: asserts a bug that the unchanged surrounding code already handles.
154
+ - "This can be null/undefined here" where the type or an earlier guard already rules it out.
155
+ - Invented race conditions or error paths with no actual trigger.
156
+ - Suggestions that compile-break or break other callers.
157
+ - Security/perf warnings with no exploit path or measurable cost.
158
+ - Restating library/framework semantics incorrectly.
159
+ - Style demands that contradict the repo's existing, consistent pattern.
160
+
161
+ ### D. Apply fixes — category 1 only
162
+
163
+ Make the minimal correct change. Re-run the local gate if the repo has one (typecheck/tests) before
164
+ moving on.
165
+
166
+ ### E. Commit and push FIRST, before resolving anything
167
+
168
+ Order matters. A resolved thread is a claim that the fix is on the branch, so the push has to
169
+ succeed before the claim is made — otherwise a failed commit or push leaves the PR unfixed with the
170
+ finding marked resolved, and nobody looks at it again.
171
+
172
+ If step D changed code:
173
+
174
+ ```bash
175
+ # Stage ONLY the files your fixes touched — never `git add -A`, which sweeps up
176
+ # unrelated work and untracked secrets sitting in the worktree.
177
+ git status --short # look before you stage
178
+ git add <path> [<path>...] # the files named in the findings you fixed
179
+ git commit -m "address codex review feedback (codexloop iteration N)"
180
+ git push
181
+ ```
182
+
183
+ Author the commit per the repo's norms (e.g. the user's identity; no AI attribution if that is the
184
+ convention). Confirm the push actually landed before continuing:
185
+
186
+ ```bash
187
+ git rev-parse HEAD
188
+ gh pr view <PR> --json headRefOid -q .headRefOid # must match
189
+ ```
190
+
191
+ If they differ, stop: the fix is not on the PR, so nothing may be resolved yet.
192
+
193
+ ### F. Reply to and resolve every addressed thread
194
+
195
+ Only now, with the fixes pushed, reply and resolve. Fetch unresolved threads, **following
196
+ pagination** — a PR with more than 100 threads will otherwise look clean while unresolved findings
197
+ sit on page two:
198
+
199
+ ```bash
200
+ # Loop until hasNextPage is false, passing endCursor back in as $cursor.
201
+ CURSOR=null
202
+ while : ; do
203
+ PAGE=$(gh api graphql -F cursor="$CURSOR" -f query='
204
+ query($cursor: String) {
205
+ repository(owner: "OWNER", name: "REPO") {
206
+ pullRequest(number: PR_NUMBER) {
207
+ reviewThreads(first: 100, after: $cursor) {
208
+ pageInfo { hasNextPage endCursor }
209
+ nodes { id isResolved comments(first: 1) { nodes { databaseId author { login } path body } } }
210
+ }
211
+ }
212
+ }
213
+ }')
214
+ echo "$PAGE" # collect nodes from every page before deciding the PR is clean
215
+ PI='.data.repository.pullRequest.reviewThreads.pageInfo'
216
+ [ "$(echo "$PAGE" | jq -r "$PI.hasNextPage")" = "true" ] || break
217
+ CURSOR=$(echo "$PAGE" | jq -r "$PI.endCursor")
218
+ done
219
+ ```
220
+
221
+ Reply on a thread's comment via `gh api repos/{owner}/{repo}/pulls/<PR>/comments -f body="..." -F in_reply_to=<comment_id>`,
222
+ then resolve:
223
+
224
+ ```bash
225
+ gh api graphql -f query='mutation { resolveReviewThread(input: {threadId: "THREAD_ID"}) { thread { isResolved } } }'
226
+ ```
227
+
228
+ Resolve a thread only for comments authored by `$BOT` that you have fixed or rebutted — never
229
+ blanket-resolve, and never resolve a human reviewer's thread.
230
+
231
+ Threads you are **rebutting** need no push, so they may be replied to and resolved regardless of
232
+ whether step D changed code.
233
+
234
+ ### G. Re-review
235
+
236
+ Pushing re-triggers Codex when auto-review is on; otherwise post `@codex review`. Go back to **A**
237
+ with the new head SHA. If step D changed nothing (all comments were rebutted), skip the push,
238
+ ensure all threads are resolved, and exit.
239
+
240
+ ## 3. Exit conditions
241
+
242
+ Stop when **any** is true:
243
+ - Zero unresolved `$BOT` comments remain, and every comment this round was fixed or
244
+ rebutted+resolved. (There is no score to hit — this is "done".)
245
+ - Max iterations (5) reached — report what remains.
246
+ - Codex never responded after one retry — report the timeout honestly; do not claim success.
247
+
248
+ ## 4. Report
249
+
250
+ ```text
251
+ Codexloop complete.
252
+ PR: #<n>
253
+ Bot login: <resolved $BOT>
254
+ Iterations: N
255
+ Comments fixed: N (genuinely-correct findings)
256
+ Comments rebutted: N (false positives / nits, resolved with rationale)
257
+ Remaining: 0
258
+ ```
259
+
260
+ If it stopped at max iterations, list the remaining threads with your current assessment
261
+ (fix-pending vs disputed) so a human can arbitrate.
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "olko-codexloop",
3
+ "description": "Iteratively drives a GitHub PR to zero unresolved OpenAI Codex review comments — but verifies every finding against the real code first, fixes only the correct ones, and rebuts false positives without changing correct code.",
4
+ "skills": "./skills"
5
+ }