@olegkoval/agent-skills 1.67.0 → 1.69.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 (34) hide show
  1. package/.github/copilot-instructions.md +1 -0
  2. package/.github/prompts/agterm-team.prompt.md +55 -0
  3. package/.kiro/steering/agterm-team.md +54 -0
  4. package/.windsurf/rules/agterm-team.md +53 -0
  5. package/README.md +3 -2
  6. package/adapters/claude/olko-github-pr/skills/lekker-review/SKILL.md +29 -11
  7. package/adapters/claude/olko-github-pr/skills/lekker-review/references/reviewed-before-push.md +94 -0
  8. package/adapters/claude/olko-github-pr/skills/lekker-review/references/reviewed-before-push.yml +57 -0
  9. package/adapters/claude/olko-github-pr/skills/lekker-review/scripts/review-label.mjs +90 -0
  10. package/adapters/claude/olko-skill-meta/skills/agterm-team/SKILL.md +53 -0
  11. package/adapters/codex/olko-skill-meta/README.md +1 -0
  12. package/adapters/cursor/olko-skill-meta/skills/agterm-team/SKILL.md +53 -0
  13. package/adapters/grok/olko-skill-meta/skills/agterm-team/SKILL.md +53 -0
  14. package/adapters/hermes/olko-skill-meta/README.md +1 -0
  15. package/catalog/skills.json +22 -0
  16. package/package.json +1 -1
  17. package/plugins/olko-apple-kit/.claude-plugin/plugin.json +1 -1
  18. package/plugins/olko-creative/.claude-plugin/plugin.json +1 -1
  19. package/plugins/olko-garmin-kit/.claude-plugin/plugin.json +1 -1
  20. package/plugins/olko-git-tools/.claude-plugin/plugin.json +1 -1
  21. package/plugins/olko-github-pr/.claude-plugin/plugin.json +1 -1
  22. package/plugins/olko-github-pr/skills/lekker-review/README.md +10 -0
  23. package/plugins/olko-github-pr/skills/lekker-review/SKILL.md +29 -11
  24. package/plugins/olko-github-pr/skills/lekker-review/references/reviewed-before-push.md +94 -0
  25. package/plugins/olko-github-pr/skills/lekker-review/references/reviewed-before-push.yml +57 -0
  26. package/plugins/olko-github-pr/skills/lekker-review/scripts/review-label.mjs +90 -0
  27. package/plugins/olko-obsidian/.claude-plugin/plugin.json +1 -1
  28. package/plugins/olko-product/.claude-plugin/plugin.json +1 -1
  29. package/plugins/olko-reflection/.claude-plugin/plugin.json +1 -1
  30. package/plugins/olko-release/.claude-plugin/plugin.json +1 -1
  31. package/plugins/olko-skill-meta/.claude-plugin/plugin.json +1 -1
  32. package/plugins/olko-skill-meta/skills/agterm-team/SKILL.md +52 -0
  33. package/plugins/olko-web-ops/.claude-plugin/plugin.json +1 -1
  34. package/scripts/lib/catalog.mjs +1 -1
@@ -43,6 +43,7 @@ Available reusable prompt files:
43
43
  - promptctl: .github/prompts/promptctl.prompt.md
44
44
  - veto-routing: .github/prompts/veto-routing.prompt.md
45
45
  - ai-tools-setup: .github/prompts/ai-tools-setup.prompt.md
46
+ - agterm-team: .github/prompts/agterm-team.prompt.md
46
47
  - self-critique: .github/prompts/self-critique.prompt.md
47
48
  - review-past-performance: .github/prompts/review-past-performance.prompt.md
48
49
  - retro-analysis: .github/prompts/retro-analysis.prompt.md
@@ -0,0 +1,55 @@
1
+ <!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
2
+
3
+ ---
4
+ description: "Coordinate Codex agents in project agterm workspaces with readable session names, acknowledged handoffs, failure recovery, and lead-owned acceptance."
5
+ ---
6
+
7
+ Use the olko:agterm-team skill.
8
+
9
+ # Agterm team
10
+
11
+ The lead owns the outcome and all failures. Delegation transfers work, never accountability. A worker's done message requests verification; it never closes the task by itself.
12
+
13
+ Read the installed agterm skill for current CLI syntax and input safeguards; if absent, use agtermctl help and do not guess commands. Read the target project's AGENTS.md and ledger.json when present. Locate and verify a checkout of oleg-koval/agents, then explicitly read roles/olko-team.md, roles/olko-engineer.md, roles/olko-qa.md and pipelines/delivery.md; read pipelines/review.md when reviewing code. Do not invent missing backbone content. Keep roles and pipelines in that repository and task automation in the skill catalog.
14
+
15
+ ## Plan and create sessions
16
+
17
+ Write the problem, constraints, task ID, authority, acceptance checks, retry budget and terminal condition before assignment. Start with one developer; add workers only for independent work worth the coordination cost. Use isolated worktrees and explicit file ownership.
18
+
19
+ Inspect fresh agtermctl tree --json output. Pass --socket with AGTERM_SOCKET when set. Identify the project's existing workspace from its session working directories and repository identity, not merely the active workspace. If multiple workspaces fit and context cannot disambiguate them, ask rather than launching into a guessed workspace. Do not move or rename unrelated sessions.
20
+
21
+ Automatically create needed agent sessions in that project workspace once team orchestration is requested. Default names:
22
+
23
+ - LEAD_ISSUE_123
24
+ - SENIOR_DEV_ISSUE_123
25
+ - QA_ISSUE_123
26
+ - REVIEWER_PR_456
27
+
28
+ For work without an issue use ROLE_TASK_SHORT_SLUG. For multiple workers on one issue append _A, _B. Keep agterm names concise and stable; Codex conversation titles may describe the task more verbosely where the installed client supports naming. Never pretend agterm naming also renames the Codex conversation.
29
+
30
+ Before creating, check for a matching task session and task artifact. Reuse only a verified owned session; a matching name alone proves nothing. Record the task-to-session mapping to prevent duplicate launches after resume. Check installed session new help for workspace targeting flags. Launch Codex using session new --command with the owned worktree as cwd and the task brief as data, never by typing shell commands into another pane. Prefer no-select when supported. Do not alter sandbox, approval, model or access settings beyond the user's authority. Verify the created node belongs to the intended workspace, is realized, and has Codex as its foreground process. A returned session ID alone does not prove startup. Report startup failures without duplicate retries.
31
+
32
+ ## Handoff and return channel
33
+
34
+ Prefer `codex queue --thread <codex-thread-uuid> --message <text>` when the installed client supports it. A Codex thread UUID is distinct from an agterm session UUID or paneID. Capture it from the running Codex session or supported app-server interface and verify the mapping; never guess it from terminal names. Queue success proves enqueueing, not execution: require a task-ID ACK and result. Check the local CLI help because this capability varies by version. Use terminal input only as the fallback below.
35
+
36
+
37
+ Record each participant's fresh full session UUID and stable paneID from the live tree, including the lead return address. Validate hosting environment IDs against that tree; never reuse historical IDs or target active.
38
+
39
+ Keep briefs and results in shared local task artifacts. The lead owns task-state writes; each developer owns a separate result artifact. Append timestamped evidence and messages. States: assigned, acknowledged, working, blocked, ready-for-review, accepted. Do not put transient coordination data in the shared knowledge ledger.
40
+
41
+ Every message includes task ID, message ID, type, sender/recipient session and pane IDs, and artifact path. Types: ASSIGN, ACK, QUESTION, BLOCKED, READY_FOR_REVIEW, REWORK, ACCEPTED. Assignments state outcome, ownership, worktree, base SHA, acceptance commands and authority. Results state exact SHA, files, actual check outputs, failures, unavailable checks and remaining risks.
42
+
43
+ For an existing Codex session, read its pane text and current tree first. Verify the intended process is ready for input without a user draft or approval prompt. Unknown readiness means stage a copyable relay and report blocked; never interrupt or restart another session to force delivery.
44
+
45
+ Use agtermctl session type --stdin --target <session-uuid> --pane-id <pane-id>, with socket option when needed. This injects keystrokes into a shared buffer; it is not a message queue. Send a short single-line instruction to read the brief artifact. Verify installed submission behavior; avoid multiline injection and shell interpolation. Require readback and a task-ID ACK before calling the assignment received. CLI success proves only injection. Inspect uncertain delivery before retrying to avoid duplicate work. Workers return evidence to the verified lead address using the same readiness safeguards.
46
+
47
+ ## Verify and recover
48
+
49
+ The lead inspects the actual diff and exact SHA and independently runs acceptance checks. Obtain independent diff review under project policy. Verify local proof, commit, remote SHA, complete check rollup, deployment and human/device acceptance as separate gates when in scope. Accept only proven criteria; return concrete failures and evidence as REWORK.
50
+
51
+ The lead diagnoses, repairs or reassigns failures within authority and reverifies. After two identical failures stop retrying and diagnose. Exhausted budgets or missing authority end as blocked with receipts, never accepted. Delegated workers cannot expand publishing, spending or external communication authority. Further delegation preserves parent accountability.
52
+
53
+ Agterm input does not guarantee waking an idle Codex session. This skill installs no daemon. Define bounded checkpoints or supported event-driven wakeups when available; do not promise unattended monitoring. If reliable wakeup is unavailable, leave a resume instruction and task artifact path and report that limitation.
54
+
55
+ Final report says delivered, blocked or intentionally unchanged, with accepted tasks, separate evidence gates, unresolved failures and the next responsible action. Never blame a worker in place of resolving or reporting failure. Do not close agent sessions automatically; preserve their evidence for inspection.
@@ -0,0 +1,54 @@
1
+ <!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
2
+
3
+ ---
4
+ inclusion: manual
5
+ description: "Coordinate Codex agents in project agterm workspaces with readable session names, acknowledged handoffs, failure recovery, and lead-owned acceptance."
6
+ ---
7
+
8
+ # Agterm team
9
+
10
+ The lead owns the outcome and all failures. Delegation transfers work, never accountability. A worker's done message requests verification; it never closes the task by itself.
11
+
12
+ Read the installed agterm skill for current CLI syntax and input safeguards; if absent, use agtermctl help and do not guess commands. Read the target project's AGENTS.md and ledger.json when present. Locate and verify a checkout of oleg-koval/agents, then explicitly read roles/olko-team.md, roles/olko-engineer.md, roles/olko-qa.md and pipelines/delivery.md; read pipelines/review.md when reviewing code. Do not invent missing backbone content. Keep roles and pipelines in that repository and task automation in the skill catalog.
13
+
14
+ ## Plan and create sessions
15
+
16
+ Write the problem, constraints, task ID, authority, acceptance checks, retry budget and terminal condition before assignment. Start with one developer; add workers only for independent work worth the coordination cost. Use isolated worktrees and explicit file ownership.
17
+
18
+ Inspect fresh agtermctl tree --json output. Pass --socket with AGTERM_SOCKET when set. Identify the project's existing workspace from its session working directories and repository identity, not merely the active workspace. If multiple workspaces fit and context cannot disambiguate them, ask rather than launching into a guessed workspace. Do not move or rename unrelated sessions.
19
+
20
+ Automatically create needed agent sessions in that project workspace once team orchestration is requested. Default names:
21
+
22
+ - LEAD_ISSUE_123
23
+ - SENIOR_DEV_ISSUE_123
24
+ - QA_ISSUE_123
25
+ - REVIEWER_PR_456
26
+
27
+ For work without an issue use ROLE_TASK_SHORT_SLUG. For multiple workers on one issue append _A, _B. Keep agterm names concise and stable; Codex conversation titles may describe the task more verbosely where the installed client supports naming. Never pretend agterm naming also renames the Codex conversation.
28
+
29
+ Before creating, check for a matching task session and task artifact. Reuse only a verified owned session; a matching name alone proves nothing. Record the task-to-session mapping to prevent duplicate launches after resume. Check installed session new help for workspace targeting flags. Launch Codex using session new --command with the owned worktree as cwd and the task brief as data, never by typing shell commands into another pane. Prefer no-select when supported. Do not alter sandbox, approval, model or access settings beyond the user's authority. Verify the created node belongs to the intended workspace, is realized, and has Codex as its foreground process. A returned session ID alone does not prove startup. Report startup failures without duplicate retries.
30
+
31
+ ## Handoff and return channel
32
+
33
+ Prefer `codex queue --thread <codex-thread-uuid> --message <text>` when the installed client supports it. A Codex thread UUID is distinct from an agterm session UUID or paneID. Capture it from the running Codex session or supported app-server interface and verify the mapping; never guess it from terminal names. Queue success proves enqueueing, not execution: require a task-ID ACK and result. Check the local CLI help because this capability varies by version. Use terminal input only as the fallback below.
34
+
35
+
36
+ Record each participant's fresh full session UUID and stable paneID from the live tree, including the lead return address. Validate hosting environment IDs against that tree; never reuse historical IDs or target active.
37
+
38
+ Keep briefs and results in shared local task artifacts. The lead owns task-state writes; each developer owns a separate result artifact. Append timestamped evidence and messages. States: assigned, acknowledged, working, blocked, ready-for-review, accepted. Do not put transient coordination data in the shared knowledge ledger.
39
+
40
+ Every message includes task ID, message ID, type, sender/recipient session and pane IDs, and artifact path. Types: ASSIGN, ACK, QUESTION, BLOCKED, READY_FOR_REVIEW, REWORK, ACCEPTED. Assignments state outcome, ownership, worktree, base SHA, acceptance commands and authority. Results state exact SHA, files, actual check outputs, failures, unavailable checks and remaining risks.
41
+
42
+ For an existing Codex session, read its pane text and current tree first. Verify the intended process is ready for input without a user draft or approval prompt. Unknown readiness means stage a copyable relay and report blocked; never interrupt or restart another session to force delivery.
43
+
44
+ Use agtermctl session type --stdin --target <session-uuid> --pane-id <pane-id>, with socket option when needed. This injects keystrokes into a shared buffer; it is not a message queue. Send a short single-line instruction to read the brief artifact. Verify installed submission behavior; avoid multiline injection and shell interpolation. Require readback and a task-ID ACK before calling the assignment received. CLI success proves only injection. Inspect uncertain delivery before retrying to avoid duplicate work. Workers return evidence to the verified lead address using the same readiness safeguards.
45
+
46
+ ## Verify and recover
47
+
48
+ The lead inspects the actual diff and exact SHA and independently runs acceptance checks. Obtain independent diff review under project policy. Verify local proof, commit, remote SHA, complete check rollup, deployment and human/device acceptance as separate gates when in scope. Accept only proven criteria; return concrete failures and evidence as REWORK.
49
+
50
+ The lead diagnoses, repairs or reassigns failures within authority and reverifies. After two identical failures stop retrying and diagnose. Exhausted budgets or missing authority end as blocked with receipts, never accepted. Delegated workers cannot expand publishing, spending or external communication authority. Further delegation preserves parent accountability.
51
+
52
+ Agterm input does not guarantee waking an idle Codex session. This skill installs no daemon. Define bounded checkpoints or supported event-driven wakeups when available; do not promise unattended monitoring. If reliable wakeup is unavailable, leave a resume instruction and task artifact path and report that limitation.
53
+
54
+ Final report says delivered, blocked or intentionally unchanged, with accepted tasks, separate evidence gates, unresolved failures and the next responsible action. Never blame a worker in place of resolving or reporting failure. Do not close agent sessions automatically; preserve their evidence for inspection.
@@ -0,0 +1,53 @@
1
+ <!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
2
+
3
+ ---
4
+ description: "Coordinate Codex agents in project agterm workspaces with readable session names, acknowledged handoffs, failure recovery, and lead-owned acceptance."
5
+ ---
6
+
7
+ # Agterm team
8
+
9
+ The lead owns the outcome and all failures. Delegation transfers work, never accountability. A worker's done message requests verification; it never closes the task by itself.
10
+
11
+ Read the installed agterm skill for current CLI syntax and input safeguards; if absent, use agtermctl help and do not guess commands. Read the target project's AGENTS.md and ledger.json when present. Locate and verify a checkout of oleg-koval/agents, then explicitly read roles/olko-team.md, roles/olko-engineer.md, roles/olko-qa.md and pipelines/delivery.md; read pipelines/review.md when reviewing code. Do not invent missing backbone content. Keep roles and pipelines in that repository and task automation in the skill catalog.
12
+
13
+ ## Plan and create sessions
14
+
15
+ Write the problem, constraints, task ID, authority, acceptance checks, retry budget and terminal condition before assignment. Start with one developer; add workers only for independent work worth the coordination cost. Use isolated worktrees and explicit file ownership.
16
+
17
+ Inspect fresh agtermctl tree --json output. Pass --socket with AGTERM_SOCKET when set. Identify the project's existing workspace from its session working directories and repository identity, not merely the active workspace. If multiple workspaces fit and context cannot disambiguate them, ask rather than launching into a guessed workspace. Do not move or rename unrelated sessions.
18
+
19
+ Automatically create needed agent sessions in that project workspace once team orchestration is requested. Default names:
20
+
21
+ - LEAD_ISSUE_123
22
+ - SENIOR_DEV_ISSUE_123
23
+ - QA_ISSUE_123
24
+ - REVIEWER_PR_456
25
+
26
+ For work without an issue use ROLE_TASK_SHORT_SLUG. For multiple workers on one issue append _A, _B. Keep agterm names concise and stable; Codex conversation titles may describe the task more verbosely where the installed client supports naming. Never pretend agterm naming also renames the Codex conversation.
27
+
28
+ Before creating, check for a matching task session and task artifact. Reuse only a verified owned session; a matching name alone proves nothing. Record the task-to-session mapping to prevent duplicate launches after resume. Check installed session new help for workspace targeting flags. Launch Codex using session new --command with the owned worktree as cwd and the task brief as data, never by typing shell commands into another pane. Prefer no-select when supported. Do not alter sandbox, approval, model or access settings beyond the user's authority. Verify the created node belongs to the intended workspace, is realized, and has Codex as its foreground process. A returned session ID alone does not prove startup. Report startup failures without duplicate retries.
29
+
30
+ ## Handoff and return channel
31
+
32
+ Prefer `codex queue --thread <codex-thread-uuid> --message <text>` when the installed client supports it. A Codex thread UUID is distinct from an agterm session UUID or paneID. Capture it from the running Codex session or supported app-server interface and verify the mapping; never guess it from terminal names. Queue success proves enqueueing, not execution: require a task-ID ACK and result. Check the local CLI help because this capability varies by version. Use terminal input only as the fallback below.
33
+
34
+
35
+ Record each participant's fresh full session UUID and stable paneID from the live tree, including the lead return address. Validate hosting environment IDs against that tree; never reuse historical IDs or target active.
36
+
37
+ Keep briefs and results in shared local task artifacts. The lead owns task-state writes; each developer owns a separate result artifact. Append timestamped evidence and messages. States: assigned, acknowledged, working, blocked, ready-for-review, accepted. Do not put transient coordination data in the shared knowledge ledger.
38
+
39
+ Every message includes task ID, message ID, type, sender/recipient session and pane IDs, and artifact path. Types: ASSIGN, ACK, QUESTION, BLOCKED, READY_FOR_REVIEW, REWORK, ACCEPTED. Assignments state outcome, ownership, worktree, base SHA, acceptance commands and authority. Results state exact SHA, files, actual check outputs, failures, unavailable checks and remaining risks.
40
+
41
+ For an existing Codex session, read its pane text and current tree first. Verify the intended process is ready for input without a user draft or approval prompt. Unknown readiness means stage a copyable relay and report blocked; never interrupt or restart another session to force delivery.
42
+
43
+ Use agtermctl session type --stdin --target <session-uuid> --pane-id <pane-id>, with socket option when needed. This injects keystrokes into a shared buffer; it is not a message queue. Send a short single-line instruction to read the brief artifact. Verify installed submission behavior; avoid multiline injection and shell interpolation. Require readback and a task-ID ACK before calling the assignment received. CLI success proves only injection. Inspect uncertain delivery before retrying to avoid duplicate work. Workers return evidence to the verified lead address using the same readiness safeguards.
44
+
45
+ ## Verify and recover
46
+
47
+ The lead inspects the actual diff and exact SHA and independently runs acceptance checks. Obtain independent diff review under project policy. Verify local proof, commit, remote SHA, complete check rollup, deployment and human/device acceptance as separate gates when in scope. Accept only proven criteria; return concrete failures and evidence as REWORK.
48
+
49
+ The lead diagnoses, repairs or reassigns failures within authority and reverifies. After two identical failures stop retrying and diagnose. Exhausted budgets or missing authority end as blocked with receipts, never accepted. Delegated workers cannot expand publishing, spending or external communication authority. Further delegation preserves parent accountability.
50
+
51
+ Agterm input does not guarantee waking an idle Codex session. This skill installs no daemon. Define bounded checkpoints or supported event-driven wakeups when available; do not promise unattended monitoring. If reliable wakeup is unavailable, leave a resume instruction and task artifact path and report that limitation.
52
+
53
+ Final report says delivered, blocked or intentionally unchanged, with accepted tasks, separate evidence gates, unresolved failures and the next responsible action. Never blame a worker in place of resolving or reporting failure. Do not close agent sessions automatically; preserve their evidence for inspection.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  <p><strong>Agent-agnostic skill catalog for Codex, Claude, Cursor, Grok, Copilot, Windsurf, Kiro, Hermes Agent, and other skill-aware tools.</strong></p>
4
4
  <p>
5
5
  <img src="https://img.shields.io/badge/license-MIT-16a34a" alt="MIT license">
6
- <img src="https://img.shields.io/badge/skills-59-2563eb" alt="59 skills">
6
+ <img src="https://img.shields.io/badge/skills-60-2563eb" alt="60 skills">
7
7
  <img src="https://img.shields.io/badge/platforms-Codex%20%7C%20Claude%20%7C%20Cursor%20%7C%20Grok%20%7C%20Copilot%20%7C%20Windsurf%20%7C%20Kiro%20%7C%20Hermes-111827" alt="Codex Claude Cursor Grok Copilot Windsurf Kiro Hermes">
8
8
  <img src="https://img.shields.io/badge/status-public%20catalog-16a34a" alt="Public catalog">
9
9
  </p>
@@ -279,12 +279,13 @@ Take a product idea to a shippable build: MVP passes, full-stack scaffolds, UX/U
279
279
  | [ingest-publication-slice](plugins/olko-product/skills/ingest-publication-slice/SKILL.md) | Builds a test-first ingest-to-publication path with atomic persistence, read fallback, and static artifact precedence | Publishing validated ingested data before a static artifact exists |
280
280
  | [viral-launch](plugins/olko-product/skills/viral-launch/SKILL.md) | Sets up a project repository and launch plan for shareable marketing, public launch readiness, and growth loops | Preparing a repo, product, or package for public launch ("prep for Product Hunt", "write the launch post", "make this shareable"); for building the thing itself use mvp-oneshot or product-builder |
281
281
 
282
- ### olko-skill-meta (8)
282
+ ### olko-skill-meta (9)
283
283
 
284
284
  Author and maintain agent skills and the AI toolchain itself.
285
285
 
286
286
  | Skill | What it does | Use when |
287
287
  |-------|-------------|----------|
288
+ | [agterm-team](plugins/olko-skill-meta/skills/agterm-team/SKILL.md) | Creates named Codex sessions in project agterm workspaces and coordinates acknowledged tasks with lead-owned verification | A lead delegates work across agterm sessions and remains accountable for failures |
288
289
  | [context-repo](plugins/olko-skill-meta/skills/context-repo/SKILL.md) | Resolves a single durable, private GitHub repository other skills use to persist context they produce, retro snapshots and shared-knowledge notes among them, searching the account for a store that already exists before ever asking to create one | A skill needs a durable, cross-machine store for content it generates, rather than a local scratch directory that does not survive across machines or repos |
289
290
  | [add-to-my-skills](plugins/olko-skill-meta/skills/add-to-my-skills/SKILL.md) | Copies a newly created skill from another repo into this catalog, refreshes the README and generated manifests, then commits and pushes | Adding a skill you wrote elsewhere into this catalog |
290
291
  | [skill-budget-audit](plugins/olko-skill-meta/skills/skill-budget-audit/SKILL.md) | Diagnoses and fixes Claude Code's skill context budget overflow, identifies heavy plugin bundles that exceed the 2% budget | Skills failing to load or Claude hitting context limits from plugin bundles |
@@ -1139,8 +1139,17 @@ printf '%s\n' "$REVIEW_FILE" > ~/.cache/lekker-review/reviewed/<headSha>
1139
1139
  ```
1140
1140
 
1141
1141
  Write it against the sha that was actually reviewed. When fix mode later adds
1142
- commits, write a marker for the NEW head sha too - a gate keys on the tip
1143
- that is about to be pushed, and a marker for a superseded sha would be a lie.
1142
+ commits, write a marker for the new head only after fix verification and
1143
+ relevant tests pass. Any unrelated edits require a fresh review; never copy a
1144
+ marker to an unreviewed SHA.
1145
+
1146
+ **PR label for branch reviews:** follow `references/reviewed-before-push.md`.
1147
+ After a complete, non-degraded local review and settling all Critical/Important
1148
+ findings, save the final-head receipt as `<scratchpad>/pre-push-review.json`
1149
+ BEFORE pushing. That reference defines the receipt schema and one-time cleanup
1150
+ workflow setup. The label is exactly `reviewed-before-push` (no AI prefix).
1151
+ A legacy SHA/path marker alone does not qualify. PR-mode reviews cannot earn
1152
+ this label.
1144
1153
 
1145
1154
  **Close the run log** right after the receipt, then print the review:
1146
1155
 
@@ -1314,33 +1323,42 @@ Ask once, via AskUserQuestion:
1314
1323
 
1315
1324
  Rules for each answer:
1316
1325
 
1317
- - **Yes:** push with `git push -u origin "$local_branch"`, then create the PR
1326
+ - **Yes:** set `PREDICTED_AT=$(date -u +%Y-%m-%dT%H:%M:%SZ)` before pushing
1327
+ or publishing, including when a PR already exists. Then push with
1328
+ `git push -u origin "$local_branch"` and create or locate the PR. Create it
1318
1329
  with `gh pr create --repo "$repo_slug" --base "$base_ref" --head
1319
1330
  "$local_branch" --title "$pr_title" --body-file "$pr_body_file"`. Derive the title
1320
1331
  from the commit log (the recommended prefix plus a summary of the change) and
1321
1332
  the body from a short summary of what the branch does - do not leave either
1322
- as a placeholder. Report the PR url. Then record the prediction against the
1323
- new PR number - a branch-mode review is the ideal case for this, because the
1324
- prediction provably predates every bot comment. Record only the findings fix
1333
+ as a placeholder. Report the PR url. If an eligible pre-push receipt was
1334
+ saved, publish it using `scripts/review-label.mjs` as described in
1335
+ `references/reviewed-before-push.md`. This posts the commit/engine/depth/result
1336
+ evidence and applies `reviewed-before-push` only to the matching live head.
1337
+ If cleanup is not installed, omit the label and report the setup requirement;
1338
+ do not undo the successful PR creation. For an existing PR found after a
1339
+ branch-mode push, use the same helper and head check. Then record the prediction
1340
+ against the created or existing PR number using the saved `PREDICTED_AT`;
1341
+ scoring uses it to include bot comments triggered by the push or PR creation,
1342
+ even if they arrive before the record step. Record only the findings fix
1325
1343
  mode did NOT apply (every row of the fixes table that is not `✅ applied`):
1326
1344
  an applied fix is gone from the code the bots read, so they cannot raise it,
1327
1345
  and recording it would sink precision for doing exactly what branch mode is
1328
1346
  for. Build `<scratchpad>/unfixed.json` (a bare array is fine) from the merged
1329
1347
  `findings.json` minus the findings fix mode applied; when fix mode did not
1330
- run or applied nothing, it is the whole merged set. Take
1331
- `PREDICTED_AT=$(date -u +%Y-%m-%dT%H:%M:%SZ)` just BEFORE `gh pr create`, so
1332
- a bot comment that lands before the record step still counts:
1348
+ run or applied nothing, it is the whole merged set. Keep the timestamp captured
1349
+ before the push; do not replace it at the record step:
1333
1350
 
1334
1351
  ```bash
1335
1352
  node ${SKILL_ROOT}/scripts/bot-precision.mjs record \
1336
- --repo "$repo_slug" --pr <NEW_PR_NUMBER> --predicted <scratchpad>/unfixed.json \
1353
+ --repo "$repo_slug" --pr <PR_NUMBER> --predicted <scratchpad>/unfixed.json \
1337
1354
  --at "$PREDICTED_AT"
1338
1355
  ```
1339
1356
 
1340
1357
  The review is already saved locally; offer `--post` on the new PR number only if the user asks - findings that fix
1341
1358
  mode already applied must never be posted as review comments.
1342
1359
  - **Push only:** `git push -u origin "$local_branch"` and stop. Say in one line
1343
- that no PR was created.
1360
+ that no PR was created. Keep any eligible pre-push receipt for publication
1361
+ when a matching PR is later created; no PR means no label yet.
1344
1362
  - **No:** stop. Print the branch name and the review file path.
1345
1363
 
1346
1364
  **Unattended runs never ask and never create a PR** (see the operating contract
@@ -0,0 +1,94 @@
1
+ # Reviewed before push
2
+
3
+ `reviewed-before-push` records a completed local branch review of the current
4
+ PR head. It is informational: it does not satisfy CI, required remote review,
5
+ or the human-review marker for risky changes. The review comment records the
6
+ full head/base SHAs, engine, depth, timestamp, and result. It is an attestation
7
+ by the publishing user, not cryptographic proof that review preceded a push.
8
+
9
+ ## Install stale-label cleanup once per repository
10
+
11
+ Copy `references/reviewed-before-push.yml` into the target repository as
12
+ `.github/workflows/reviewed-before-push.yml` and land it on the default branch
13
+ through that repository's normal review process. Do this before the local
14
+ review whose receipt will be published. Do not add a workflow commit after
15
+ review and then label that unreviewed commit.
16
+
17
+ The workflow uses only GitHub API data, with no PR checkout. On new commits or
18
+ receipt edits/deletion it removes the label unless a receipt from an owner,
19
+ member, or collaborator matches the live head. Pagination includes all receipt
20
+ comments. It does not add labels or replace merge gates. A newly reviewed head
21
+ can be labeled again by the publisher. Cleanup is asynchronous; the label is
22
+ not a merge-authorization signal. Workflows disabled by repository policy or
23
+ Actions outages can delay removal.
24
+
25
+ The helper refuses to publish if the cleanup workflow is absent. If setup is
26
+ missing, keep the local review and PR creation successful, omit the label, and
27
+ report the missing setup. Never silently install a write-capable workflow in
28
+ another repository. A push-only run keeps the receipt locally until a PR exists.
29
+
30
+ ## Record before pushing
31
+
32
+ Only in `MODE=branch`, after the review engine completed without degraded or
33
+ missing required dimensions, settle every Critical/Important finding. Either
34
+ fix it with verifier/test evidence or explicitly rebut it with a reason. Open
35
+ observations may remain. A file containing only a review path or a SHA marker
36
+ is not sufficient evidence.
37
+
38
+ Save `<scratchpad>/pre-push-review.json` before the push:
39
+
40
+ ```json
41
+ {
42
+ "version": 1,
43
+ "mode": "branch",
44
+ "result": "passed",
45
+ "headSha": "<full reviewed final local HEAD>",
46
+ "baseSha": "<full merge-base used by this review>",
47
+ "engine": "codex",
48
+ "depth": "medium",
49
+ "reviewedAt": "<UTC ISO timestamp when this review completed>",
50
+ "findings": [
51
+ {
52
+ "severity": "important",
53
+ "disposition": "fixed",
54
+ "evidence": "<actual fix verification and relevant test result>"
55
+ }
56
+ ]
57
+ }
58
+ ```
59
+
60
+ Use an empty `findings` array when the review found nothing. Otherwise include
61
+ every finding in the merged review and lint set. Allowed dispositions are
62
+ `fixed`, `rebutted`, and `open`; `open` is permitted only for observations and
63
+ idiomatic suggestions. Rebuttals require specific evidence too. Set engine and
64
+ depth to the values actually used. Keep the saved full review locally; finding
65
+ text, evidence text, and local paths are not uploaded by the helper.
66
+
67
+ `reviewedAt` must be a valid UTC ISO timestamp in `YYYY-MM-DDTHH:mm:ssZ`
68
+ format, optionally with fractional seconds before `Z` (for example,
69
+ `2026-10-29T09:00:00.123Z`). Date-only strings, timezone offsets, and invalid
70
+ calendar dates are rejected by the publisher and cleanup workflow.
71
+
72
+ After fixes, the receipt must describe the final SHA: fix verification and
73
+ relevant tests must pass, and the only intervening edits must be those verified
74
+ fixes. Any unrelated edit requires a fresh review. Never copy a receipt to a
75
+ new SHA just to make the label apply.
76
+
77
+ ## Publish after pushing and creating or locating the PR
78
+
79
+ Resolve the helper relative to the selected `SKILL.md` (same directory's
80
+ `scripts/review-label.mjs`, including in Codex). Invoke with separate process
81
+ arguments, or independently shell-quote each value:
82
+
83
+ ```bash
84
+ node "<SKILL_ROOT>/scripts/review-label.mjs" \
85
+ --repo "<owner/repo>" --pr "<number>" \
86
+ --receipt "<scratchpad>/pre-push-review.json"
87
+ ```
88
+
89
+ The helper checks the live open PR head, posts the receipt, creates the label
90
+ if needed, and applies it. It checks the head before and after labeling, and
91
+ removes the label if a concurrent push changed the head. Errors are failures
92
+ to publish the label, not a failed local review. Do not claim the label was
93
+ applied when the helper failed. Do not use this helper for a review performed
94
+ in `MODE=pr` after pushing.
@@ -0,0 +1,57 @@
1
+ # Install this file on the target repository's default branch as
2
+ # .github/workflows/reviewed-before-push.yml before publishing review labels.
3
+ name: Reviewed before push
4
+ on:
5
+ pull_request_target:
6
+ types: [opened, reopened, synchronize, edited, labeled]
7
+ issue_comment:
8
+ types: [created, edited, deleted]
9
+ permissions:
10
+ contents: read
11
+ issues: write
12
+ pull-requests: read
13
+ concurrency:
14
+ group: reviewed-before-push-${{ github.event.pull_request.number || github.event.issue.number }}
15
+ cancel-in-progress: false
16
+ jobs:
17
+ reconcile:
18
+ if: github.event.pull_request || github.event.issue.pull_request
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ # No checkout: never execute code from the PR with this write token.
22
+ - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
23
+ with:
24
+ script: |
25
+ const label = 'reviewed-before-push';
26
+ function isUtcTimestamp(value) {
27
+ const match = typeof value === 'string' && value.match(/^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})(?:\.(\d+))?Z$/);
28
+ if (!match || match[0] !== value) return false;
29
+ const time = Date.parse(value);
30
+ const canonical = `${match[1]}.${(match[2] || '').padEnd(3, '0').slice(0, 3)}Z`;
31
+ return Number.isFinite(time) && new Date(time).toISOString() === canonical;
32
+ }
33
+ const { owner, repo } = context.repo;
34
+ const issue_number = context.payload.pull_request?.number || context.payload.issue.number;
35
+ const { data: pr } = await github.rest.pulls.get({ owner, repo, pull_number: issue_number });
36
+ if (!pr.labels.some(item => item.name === label)) return;
37
+ const comments = await github.paginate(github.rest.issues.listComments, { owner, repo, issue_number, per_page: 100 });
38
+ const valid = comments.some(comment => {
39
+ if (!['OWNER', 'MEMBER', 'COLLABORATOR'].includes(comment.author_association)) return false;
40
+ const match = comment.body?.match(/<!-- lekker:reviewed-before-push (\{[^\n]*\}) -->/);
41
+ if (!match) return false;
42
+ try {
43
+ const r = JSON.parse(match[1]);
44
+ return r.version === 1 && r.mode === 'branch' && r.result === 'passed'
45
+ && r.headSha === pr.head.sha && /^[a-f0-9]{40}$/.test(r.baseSha)
46
+ && ['workflow', 'codex', 'revmux'].includes(r.engine)
47
+ && ['scan', 'medium', 'deep', 'deps'].includes(r.depth)
48
+ && isUtcTimestamp(r.reviewedAt);
49
+ } catch { return false; }
50
+ });
51
+ if (!valid) {
52
+ try {
53
+ await github.rest.issues.removeLabel({ owner, repo, issue_number, name: label });
54
+ } catch (error) {
55
+ if (error.status !== 404) throw error;
56
+ }
57
+ }
@@ -0,0 +1,90 @@
1
+ #!/usr/bin/env node
2
+ // Publish a local branch-review receipt using gh; PR-controlled values never enter shell source.
3
+ import { execFileSync } from 'node:child_process';
4
+ import { readFileSync } from 'node:fs';
5
+ import { fileURLToPath } from 'node:url';
6
+
7
+ export const LABEL = 'reviewed-before-push';
8
+ export const PREFIX = '<!-- lekker:reviewed-before-push ';
9
+ const SHA = /^[a-f0-9]{40}$/;
10
+
11
+ function isUtcTimestamp(value) {
12
+ const match = typeof value === 'string' && value.match(/^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})(?:\.(\d+))?Z$/);
13
+ if (!match || match[0] !== value) return false;
14
+ const time = Date.parse(value);
15
+ const canonical = `${match[1]}.${(match[2] || '').padEnd(3, '0').slice(0, 3)}Z`;
16
+ return Number.isFinite(time) && new Date(time).toISOString() === canonical;
17
+ }
18
+
19
+ export function validateReceipt(receipt) {
20
+ if (receipt?.version !== 1 || receipt.mode !== 'branch' || receipt.result !== 'passed'
21
+ || !SHA.test(receipt.headSha) || !SHA.test(receipt.baseSha)
22
+ || !['workflow', 'codex', 'revmux'].includes(receipt.engine)
23
+ || !['scan', 'medium', 'deep', 'deps'].includes(receipt.depth)
24
+ || !isUtcTimestamp(receipt.reviewedAt)
25
+ || !Array.isArray(receipt.findings)) {
26
+ throw new Error('Invalid branch-review receipt');
27
+ }
28
+ for (const finding of receipt.findings) {
29
+ if (!['critical', 'important', 'observation', 'idiomatic'].includes(finding.severity)
30
+ || !['fixed', 'rebutted', 'open'].includes(finding.disposition)
31
+ || (['critical', 'important'].includes(finding.severity) && finding.disposition === 'open')
32
+ || (['fixed', 'rebutted'].includes(finding.disposition) && !finding.evidence?.trim())) {
33
+ throw new Error('Findings require dispositions and evidence; no open Critical/Important finding is allowed');
34
+ }
35
+ }
36
+ return receipt;
37
+ }
38
+
39
+ export function reviewComment(receipt) {
40
+ validateReceipt(receipt);
41
+ // Only publish the attestation, not local paths or potentially sensitive finding text.
42
+ const { version, mode, result, headSha, baseSha, engine, depth, reviewedAt } = receipt;
43
+ const attestation = { version, mode, result, headSha, baseSha, engine, depth, reviewedAt };
44
+ return `Reviewed before push\n\nCommit: \`${headSha}\`\nBase: \`${baseSha}\`\nEngine: ${engine}\nDepth: ${depth}\nReviewed at: ${reviewedAt}\nResult: passed; no unresolved Critical/Important findings.\n\nThis records a local review; required CI and remote review gates still apply.\n\n${PREFIX}${JSON.stringify(attestation)} -->`;
45
+ }
46
+
47
+ export function publishReview({ repo, pr, receipt }, run = execFileSync) {
48
+ if (!/^[\w.-]+\/[\w.-]+$/.test(repo) || !/^[1-9]\d*$/.test(String(pr))) {
49
+ throw new Error('Expected --repo owner/repo and a positive --pr number');
50
+ }
51
+ const body = reviewComment(receipt);
52
+ const gh = (args, input) => run('gh', args, { encoding: 'utf8', input });
53
+ const readHead = () => JSON.parse(gh(['pr', 'view', String(pr), '--repo', repo, '--json', 'headRefOid,state']));
54
+ const ensureCurrent = () => {
55
+ const current = readHead();
56
+ if (current.state !== 'OPEN' || current.headRefOid !== receipt.headSha) {
57
+ throw new Error('PR is closed or its head differs from the reviewed commit; label withheld');
58
+ }
59
+ };
60
+ ensureCurrent();
61
+ // The installation is explicit: do not silently add a privileged workflow to someone else's repo.
62
+ gh(['api', `repos/${repo}/contents/.github/workflows/reviewed-before-push.yml`]);
63
+ gh(['api', '--method', 'POST', `repos/${repo}/issues/${pr}/comments`, '--input', '-'], JSON.stringify({ body }));
64
+ gh(['label', 'create', LABEL, '--repo', repo, '--color', '0E8A16', '--description', 'Local review completed for the current PR head before push', '--force']);
65
+ ensureCurrent();
66
+ gh(['pr', 'edit', String(pr), '--repo', repo, '--add-label', LABEL]);
67
+ // Catch a concurrent push after adding the label. The workflow also reconciles later pushes.
68
+ try {
69
+ ensureCurrent();
70
+ } catch (error) {
71
+ gh(['pr', 'edit', String(pr), '--repo', repo, '--remove-label', LABEL]);
72
+ throw error;
73
+ }
74
+ return { label: LABEL, headSha: receipt.headSha };
75
+ }
76
+
77
+ function main(argv) {
78
+ const options = {};
79
+ for (let i = 0; i < argv.length; i += 2) {
80
+ if (!['--repo', '--pr', '--receipt'].includes(argv[i]) || !argv[i + 1] || options[argv[i]]) {
81
+ throw new Error('Usage: review-label.mjs --repo owner/repo --pr N --receipt receipt.json');
82
+ }
83
+ options[argv[i]] = argv[i + 1];
84
+ }
85
+ if (!options['--receipt']) throw new Error('--receipt is required');
86
+ const receipt = JSON.parse(readFileSync(options['--receipt'], 'utf8'));
87
+ console.log(JSON.stringify(publishReview({ repo: options['--repo'], pr: options['--pr'], receipt })));
88
+ }
89
+
90
+ if (process.argv[1] === fileURLToPath(import.meta.url)) main(process.argv.slice(2));
@@ -0,0 +1,53 @@
1
+ ---
2
+ name: agterm-team
3
+ description: Create and coordinate Codex agents in project agterm workspaces, with readable session names, task handoffs, failure recovery, and lead-owned acceptance.
4
+ ---
5
+ <!-- Generated by scripts/build-adapters.sh. Do not edit directly. -->
6
+
7
+ # Agterm team
8
+
9
+ The lead owns the outcome and all failures. Delegation transfers work, never accountability. A worker's done message requests verification; it never closes the task by itself.
10
+
11
+ Read the installed agterm skill for current CLI syntax and input safeguards; if absent, use agtermctl help and do not guess commands. Read the target project's AGENTS.md and ledger.json when present. Locate and verify a checkout of oleg-koval/agents, then explicitly read roles/olko-team.md, roles/olko-engineer.md, roles/olko-qa.md and pipelines/delivery.md; read pipelines/review.md when reviewing code. Do not invent missing backbone content. Keep roles and pipelines in that repository and task automation in the skill catalog.
12
+
13
+ ## Plan and create sessions
14
+
15
+ Write the problem, constraints, task ID, authority, acceptance checks, retry budget and terminal condition before assignment. Start with one developer; add workers only for independent work worth the coordination cost. Use isolated worktrees and explicit file ownership.
16
+
17
+ Inspect fresh agtermctl tree --json output. Pass --socket with AGTERM_SOCKET when set. Identify the project's existing workspace from its session working directories and repository identity, not merely the active workspace. If multiple workspaces fit and context cannot disambiguate them, ask rather than launching into a guessed workspace. Do not move or rename unrelated sessions.
18
+
19
+ Automatically create needed agent sessions in that project workspace once team orchestration is requested. Default names:
20
+
21
+ - LEAD_ISSUE_123
22
+ - SENIOR_DEV_ISSUE_123
23
+ - QA_ISSUE_123
24
+ - REVIEWER_PR_456
25
+
26
+ For work without an issue use ROLE_TASK_SHORT_SLUG. For multiple workers on one issue append _A, _B. Keep agterm names concise and stable; Codex conversation titles may describe the task more verbosely where the installed client supports naming. Never pretend agterm naming also renames the Codex conversation.
27
+
28
+ Before creating, check for a matching task session and task artifact. Reuse only a verified owned session; a matching name alone proves nothing. Record the task-to-session mapping to prevent duplicate launches after resume. Check installed session new help for workspace targeting flags. Launch Codex using session new --command with the owned worktree as cwd and the task brief as data, never by typing shell commands into another pane. Prefer no-select when supported. Do not alter sandbox, approval, model or access settings beyond the user's authority. Verify the created node belongs to the intended workspace, is realized, and has Codex as its foreground process. A returned session ID alone does not prove startup. Report startup failures without duplicate retries.
29
+
30
+ ## Handoff and return channel
31
+
32
+ Prefer `codex queue --thread <codex-thread-uuid> --message <text>` when the installed client supports it. A Codex thread UUID is distinct from an agterm session UUID or paneID. Capture it from the running Codex session or supported app-server interface and verify the mapping; never guess it from terminal names. Queue success proves enqueueing, not execution: require a task-ID ACK and result. Check the local CLI help because this capability varies by version. Use terminal input only as the fallback below.
33
+
34
+
35
+ Record each participant's fresh full session UUID and stable paneID from the live tree, including the lead return address. Validate hosting environment IDs against that tree; never reuse historical IDs or target active.
36
+
37
+ Keep briefs and results in shared local task artifacts. The lead owns task-state writes; each developer owns a separate result artifact. Append timestamped evidence and messages. States: assigned, acknowledged, working, blocked, ready-for-review, accepted. Do not put transient coordination data in the shared knowledge ledger.
38
+
39
+ Every message includes task ID, message ID, type, sender/recipient session and pane IDs, and artifact path. Types: ASSIGN, ACK, QUESTION, BLOCKED, READY_FOR_REVIEW, REWORK, ACCEPTED. Assignments state outcome, ownership, worktree, base SHA, acceptance commands and authority. Results state exact SHA, files, actual check outputs, failures, unavailable checks and remaining risks.
40
+
41
+ For an existing Codex session, read its pane text and current tree first. Verify the intended process is ready for input without a user draft or approval prompt. Unknown readiness means stage a copyable relay and report blocked; never interrupt or restart another session to force delivery.
42
+
43
+ Use agtermctl session type --stdin --target <session-uuid> --pane-id <pane-id>, with socket option when needed. This injects keystrokes into a shared buffer; it is not a message queue. Send a short single-line instruction to read the brief artifact. Verify installed submission behavior; avoid multiline injection and shell interpolation. Require readback and a task-ID ACK before calling the assignment received. CLI success proves only injection. Inspect uncertain delivery before retrying to avoid duplicate work. Workers return evidence to the verified lead address using the same readiness safeguards.
44
+
45
+ ## Verify and recover
46
+
47
+ The lead inspects the actual diff and exact SHA and independently runs acceptance checks. Obtain independent diff review under project policy. Verify local proof, commit, remote SHA, complete check rollup, deployment and human/device acceptance as separate gates when in scope. Accept only proven criteria; return concrete failures and evidence as REWORK.
48
+
49
+ The lead diagnoses, repairs or reassigns failures within authority and reverifies. After two identical failures stop retrying and diagnose. Exhausted budgets or missing authority end as blocked with receipts, never accepted. Delegated workers cannot expand publishing, spending or external communication authority. Further delegation preserves parent accountability.
50
+
51
+ Agterm input does not guarantee waking an idle Codex session. This skill installs no daemon. Define bounded checkpoints or supported event-driven wakeups when available; do not promise unattended monitoring. If reliable wakeup is unavailable, leave a resume instruction and task artifact path and report that limitation.
52
+
53
+ Final report says delivered, blocked or intentionally unchanged, with accepted tasks, separate evidence gates, unresolved failures and the next responsible action. Never blame a worker in place of resolving or reporting failure. Do not close agent sessions automatically; preserve their evidence for inspection.
@@ -9,3 +9,4 @@ Use the canonical skills directly:
9
9
  - `plugins/olko-skill-meta/skills/promptctl/SKILL.md`
10
10
  - `plugins/olko-skill-meta/skills/veto-routing/SKILL.md`
11
11
  - `plugins/olko-skill-meta/skills/ai-tools-setup/SKILL.md`
12
+ - `plugins/olko-skill-meta/skills/agterm-team/SKILL.md`