opencode-skills-collection 4.0.45 → 4.0.47

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 (117) hide show
  1. package/bundled-skills/.antigravity-install-manifest.json +25 -1
  2. package/bundled-skills/agy-delegate/SKILL.md +168 -0
  3. package/bundled-skills/agy-delegate/references/dispatch-and-poll.md +140 -0
  4. package/bundled-skills/agy-delegate/references/multi-task-queues.md +59 -0
  5. package/bundled-skills/agy-delegate/references/review-and-land.md +103 -0
  6. package/bundled-skills/agy-delegate/references/writing-the-brief.md +124 -0
  7. package/bundled-skills/aider-delegate/SKILL.md +227 -0
  8. package/bundled-skills/aider-delegate/references/dispatch-and-poll.md +154 -0
  9. package/bundled-skills/aider-delegate/references/multi-task-queues.md +68 -0
  10. package/bundled-skills/aider-delegate/references/review-and-land.md +101 -0
  11. package/bundled-skills/aider-delegate/references/writing-the-brief.md +142 -0
  12. package/bundled-skills/babysit-pr/SKILL.md +343 -0
  13. package/bundled-skills/claude-delegate/SKILL.md +182 -0
  14. package/bundled-skills/claude-delegate/references/dispatch-and-poll.md +220 -0
  15. package/bundled-skills/claude-delegate/references/multi-task-queues.md +66 -0
  16. package/bundled-skills/claude-delegate/references/review-and-land.md +117 -0
  17. package/bundled-skills/claude-delegate/references/writing-the-brief.md +158 -0
  18. package/bundled-skills/cline-delegate/SKILL.md +140 -0
  19. package/bundled-skills/cline-delegate/references/dispatch-and-poll.md +142 -0
  20. package/bundled-skills/cline-delegate/references/multi-task-queues.md +58 -0
  21. package/bundled-skills/cline-delegate/references/review-and-land.md +80 -0
  22. package/bundled-skills/cline-delegate/references/writing-the-brief.md +129 -0
  23. package/bundled-skills/codex-delegate/SKILL.md +177 -0
  24. package/bundled-skills/codex-delegate/references/dispatch-and-poll.md +161 -0
  25. package/bundled-skills/codex-delegate/references/multi-task-queues.md +66 -0
  26. package/bundled-skills/codex-delegate/references/review-and-land.md +126 -0
  27. package/bundled-skills/codex-delegate/references/writing-the-brief.md +125 -0
  28. package/bundled-skills/commandcode-delegate/SKILL.md +188 -0
  29. package/bundled-skills/commandcode-delegate/references/dispatch-and-poll.md +222 -0
  30. package/bundled-skills/commandcode-delegate/references/multi-task-queues.md +81 -0
  31. package/bundled-skills/commandcode-delegate/references/review-and-land.md +144 -0
  32. package/bundled-skills/commandcode-delegate/references/writing-the-brief.md +147 -0
  33. package/bundled-skills/copilot-delegate/SKILL.md +159 -0
  34. package/bundled-skills/copilot-delegate/references/dispatch-and-poll.md +143 -0
  35. package/bundled-skills/copilot-delegate/references/multi-task-queues.md +58 -0
  36. package/bundled-skills/copilot-delegate/references/review-and-land.md +80 -0
  37. package/bundled-skills/copilot-delegate/references/writing-the-brief.md +140 -0
  38. package/bundled-skills/cursor-delegate/SKILL.md +170 -0
  39. package/bundled-skills/cursor-delegate/references/dispatch-and-poll.md +162 -0
  40. package/bundled-skills/cursor-delegate/references/multi-task-queues.md +59 -0
  41. package/bundled-skills/cursor-delegate/references/review-and-land.md +93 -0
  42. package/bundled-skills/cursor-delegate/references/writing-the-brief.md +126 -0
  43. package/bundled-skills/debate-review/SKILL.md +85 -0
  44. package/bundled-skills/debate-review/assets/prompts/review-debate.md +51 -0
  45. package/bundled-skills/debate-review/assets/prompts/review-main.md +64 -0
  46. package/bundled-skills/debate-review/assets/prompts/review-rebuttal.md +42 -0
  47. package/bundled-skills/debate-review/references/comment-format.md +63 -0
  48. package/bundled-skills/debate-review/references/schema.md +95 -0
  49. package/bundled-skills/delegate-setup/SKILL.md +215 -0
  50. package/bundled-skills/delegate-setup/references/schema.md +100 -0
  51. package/bundled-skills/delegate-setup/references/setup-dialogue.md +101 -0
  52. package/bundled-skills/docs/integrations/jetski-cortex.md +3 -3
  53. package/bundled-skills/docs/integrations/jetski-gemini-loader/README.md +1 -1
  54. package/bundled-skills/docs/maintainers/repo-growth-seo.md +1 -1
  55. package/bundled-skills/docs/maintainers/skills-update-guide.md +1 -1
  56. package/bundled-skills/docs/users/aas-core.md +1 -1
  57. package/bundled-skills/docs/users/bundles.md +1 -1
  58. package/bundled-skills/docs/users/claude-code-skills.md +1 -1
  59. package/bundled-skills/docs/users/gemini-cli-skills.md +1 -1
  60. package/bundled-skills/docs/users/kiro-integration.md +1 -1
  61. package/bundled-skills/docs/users/usage.md +3 -3
  62. package/bundled-skills/docs/users/visual-guide.md +4 -4
  63. package/bundled-skills/falsify/SKILL.md +263 -0
  64. package/bundled-skills/falsify/references/bias-catalog.md +42 -0
  65. package/bundled-skills/falsify/references/mental-models.md +135 -0
  66. package/bundled-skills/falsify/templates/thinking-ledger.md +104 -0
  67. package/bundled-skills/graceful-shutdown/SKILL.md +379 -0
  68. package/bundled-skills/grok-delegate/SKILL.md +179 -0
  69. package/bundled-skills/grok-delegate/references/dispatch-and-poll.md +171 -0
  70. package/bundled-skills/grok-delegate/references/multi-task-queues.md +67 -0
  71. package/bundled-skills/grok-delegate/references/review-and-land.md +130 -0
  72. package/bundled-skills/grok-delegate/references/writing-the-brief.md +119 -0
  73. package/bundled-skills/kimi-delegate/SKILL.md +137 -0
  74. package/bundled-skills/kimi-delegate/references/dispatch-and-poll.md +134 -0
  75. package/bundled-skills/kimi-delegate/references/multi-task-queues.md +58 -0
  76. package/bundled-skills/kimi-delegate/references/review-and-land.md +92 -0
  77. package/bundled-skills/kimi-delegate/references/writing-the-brief.md +132 -0
  78. package/bundled-skills/omp-delegate/SKILL.md +186 -0
  79. package/bundled-skills/omp-delegate/references/dispatch-and-poll.md +155 -0
  80. package/bundled-skills/omp-delegate/references/multi-task-queues.md +59 -0
  81. package/bundled-skills/omp-delegate/references/review-and-land.md +95 -0
  82. package/bundled-skills/omp-delegate/references/writing-the-brief.md +149 -0
  83. package/bundled-skills/opencode-delegate/SKILL.md +189 -0
  84. package/bundled-skills/opencode-delegate/references/dispatch-and-poll.md +156 -0
  85. package/bundled-skills/opencode-delegate/references/multi-task-queues.md +68 -0
  86. package/bundled-skills/opencode-delegate/references/review-and-land.md +125 -0
  87. package/bundled-skills/opencode-delegate/references/writing-the-brief.md +142 -0
  88. package/bundled-skills/pi-delegate/SKILL.md +148 -0
  89. package/bundled-skills/pi-delegate/references/dispatch-and-poll.md +146 -0
  90. package/bundled-skills/pi-delegate/references/multi-task-queues.md +59 -0
  91. package/bundled-skills/pi-delegate/references/review-and-land.md +95 -0
  92. package/bundled-skills/pi-delegate/references/writing-the-brief.md +132 -0
  93. package/bundled-skills/qoder-delegate/SKILL.md +151 -0
  94. package/bundled-skills/qoder-delegate/references/dispatch-and-poll.md +119 -0
  95. package/bundled-skills/qoder-delegate/references/multi-task-queues.md +43 -0
  96. package/bundled-skills/qoder-delegate/references/review-and-land.md +66 -0
  97. package/bundled-skills/qoder-delegate/references/writing-the-brief.md +85 -0
  98. package/bundled-skills/sandbase-mcp/SKILL.md +194 -0
  99. package/bundled-skills/ui-slop-score/SKILL.md +2 -2
  100. package/bundled-skills/unsloth-finetuning/SKILL.md +352 -0
  101. package/bundled-skills/vibe-delegate/SKILL.md +147 -0
  102. package/bundled-skills/vibe-delegate/references/dispatch-and-poll.md +144 -0
  103. package/bundled-skills/vibe-delegate/references/multi-task-queues.md +59 -0
  104. package/bundled-skills/vibe-delegate/references/review-and-land.md +87 -0
  105. package/bundled-skills/vibe-delegate/references/writing-the-brief.md +131 -0
  106. package/bundled-skills/warp-delegate/SKILL.md +192 -0
  107. package/bundled-skills/warp-delegate/references/dispatch-and-poll.md +163 -0
  108. package/bundled-skills/warp-delegate/references/multi-task-queues.md +80 -0
  109. package/bundled-skills/warp-delegate/references/review-and-land.md +123 -0
  110. package/bundled-skills/warp-delegate/references/writing-the-brief.md +105 -0
  111. package/bundled-skills/zcode-delegate/SKILL.md +202 -0
  112. package/bundled-skills/zcode-delegate/references/dispatch-and-poll.md +113 -0
  113. package/bundled-skills/zcode-delegate/references/multi-task-queues.md +87 -0
  114. package/bundled-skills/zcode-delegate/references/review-and-land.md +81 -0
  115. package/bundled-skills/zcode-delegate/references/writing-the-brief.md +120 -0
  116. package/package.json +1 -1
  117. package/skills_index.json +660 -0
@@ -0,0 +1,134 @@
1
+ # Dispatch and poll
2
+
3
+ `scripts/relay.mjs` wraps Kimi's headless prompt mode, captures its structured stream, and writes a
4
+ `result.json`. Run one command, then read one file.
5
+
6
+ ## Before the first run
7
+
8
+ ```bash
9
+ command -v kimi
10
+ kimi --version
11
+ kimi login
12
+ ```
13
+
14
+ Install with `brew install kimi-code` on macOS/Linux or use a native installer from the
15
+ [official Kimi Code documentation](https://moonshotai.github.io/kimi-code/en/). `kimi login` uses a
16
+ device-code flow without opening the TUI; `/login` is also available inside the TUI.
17
+
18
+ ## Dispatching
19
+
20
+ ```bash
21
+ node "<skill-dir>/scripts/relay.mjs" --brief brief.txt --cd /path/to/repo
22
+ ```
23
+
24
+ `<skill-dir>` is the installed folder containing this skill's `SKILL.md`.
25
+
26
+ | Flag | Effect |
27
+ | --- | --- |
28
+ | `--brief <file>` | Brief path. Omit it to read the brief from stdin. |
29
+ | `--cd <dir>` | Working root and child process cwd (default: current directory). |
30
+ | `--lane <name>` | Fleet lane from `delegate-setup` config. Applies that lane's dials; fails if the lane's `implementer` is not this relay. Explicit dial flags win. |
31
+ | `--model <alias>` | Kimi model alias for this run (default: Kimi's own `default_model`). |
32
+ | `--session <id>` | Resume a specific Kimi session; send only the delta brief. |
33
+ | `--resume-last` | Resume the most recent Kimi session for this cwd (`kimi --continue`); send only the delta brief. |
34
+ | `--add-dir <dir>` | Add an extra workspace directory. Repeatable. Edits there are not reported in `touchedFiles`. |
35
+ | `--timeout <dur>` | Relay watchdog (default: `30m`; h/m/s strings). Kimi has no timeout flag. |
36
+ | `--out-dir <dir>` | Artifact directory (default: a fresh directory under the system temp dir). |
37
+ | `-h`, `--help` | Print the relay's header help. |
38
+
39
+ `--session` and `--resume-last` are mutually exclusive. The child cwd pins the primary workspace;
40
+ `--add-dir` adds extra workspaces only.
41
+
42
+ Headless `-p` mode always uses Kimi's auto permission mode. Kimi rejects `--prompt` combined with
43
+ `--yolo`, `--auto`, or `--plan`, so the relay passes no autonomy flags and has no `--read-only` or
44
+ `--full-access` option. Inspect `touchedFiles` and the diff after every run.
45
+
46
+ ## Artifacts and result fields
47
+
48
+ Artifacts live outside the repo by default, so they do not appear in `touchedFiles`; an `--out-dir`
49
+ inside the worktree can make the artifacts appear there:
50
+
51
+ - `brief.txt` - the exact brief.
52
+ - `events.jsonl` - raw Kimi stdout events.
53
+ - `final.txt` - assistant text joined with a blank line between chunks; absent if none was emitted.
54
+ - `stderr.txt` - complete stderr.
55
+ - `result.json` - the stable `delegate-relay.result.v1` contract.
56
+
57
+ `result.json` fields:
58
+
59
+ - `schema`, `tool` (`"kimi"`), `status` (`completed` | `failed` | `timeout` | `aborted` | `kimi_unavailable`), `exitCode`, and
60
+ `signal` (`null` unless the child died on a signal).
61
+ - `workdir`, `model` (the model alias or `null`), `resumed`, `kimiVersion`, `sessionId`, `startedAt`,
62
+ and `finishedAt`.
63
+ - `briefPath`, `finalPath`, `eventsPath`, and `stderrPath`.
64
+ - `finalMessage` - assistant `content` strings joined with `"\n\n"`; tool calls and tool results are
65
+ excluded.
66
+ - `touchedFiles` - `git status --porcelain` lines for the **final working tree under `--cd` only**,
67
+ not an attribution of Kimi's edits: anything already dirty before dispatch shows up too, and edits
68
+ Kimi makes inside `--add-dir` workspaces do not show up at all - inspect those trees yourself.
69
+ Dispatch from a clean tree when you want the list to read as "what Kimi changed". `null` means git
70
+ could not report; `[]` means git ran and the tree is clean.
71
+ - `stderrTail` - the last 20 non-empty stderr lines on any run that did not complete (`failed`, `timeout`, `aborted`), except a launch failure, which reports `failed` with no `stderrTail`.
72
+ - `error` - present for launch failures, when the relay watchdog fires (`timeout`), and on an `aborted` run.
73
+
74
+ Kimi's stream carries no token usage, so `result.json` has no `usage` field.
75
+
76
+ ## Waiting for completion
77
+
78
+ The helper blocks. Use the orchestrator's background-command facility, or background it in a shell and
79
+ poll for `result.json`. The run is done only when the process exits and the file contains a `status`.
80
+
81
+ A pre-run usage error exits 2 and writes no result. A missing `kimi` exits 127 and writes
82
+ `status: "kimi_unavailable"`.
83
+
84
+ ## When a run misbehaves
85
+
86
+ - **`status: "kimi_unavailable"` (exit 127):** install the native Kimi Code CLI, authenticate with
87
+ `kimi login`, and re-dispatch.
88
+ - **an `error` mentioning `version preflight` (`failed`, or `timeout` at exit 124):** the bounded
89
+ `kimi --version` probe exited non-zero or hung past its cap (10s, or `--timeout` when shorter), so
90
+ kimi was never dispatched; only the relay's own artifacts may already exist under `--out-dir`.
91
+ Check the install by running `kimi --version` yourself.
92
+ - **`status: "failed"`:** read `stderrTail`, `stderrPath`, and the tail of `events.jsonl`. A common
93
+ cause is an unconfigured model alias: `error: failed to run prompt: config.invalid: Model "<x>" is not configured in config.toml…`
94
+ - **`status: "aborted"`:** the relay itself was killed (its parent's timeout, a stopped task, a
95
+ closed terminal) and forwarded the kill to kimi. The result is written before the relay exits;
96
+ inspect the working tree before re-dispatching. On native Windows a hard kill of the relay is
97
+ uncatchable (Node supports no `SIGTERM` handler there), so this status may never get written -
98
+ a relay process that is gone without a `result.json` is an aborted run; inspect the working
99
+ tree and `events.jsonl` directly.
100
+ - **`status: "failed"` with `signal: "SIGKILL"`:** the host killed the process, commonly through the
101
+ OOM killer or a supervisor timeout. This is not a Kimi error; check host memory and re-dispatch, or
102
+ split the task into smaller briefs.
103
+ - **`status: "timeout"`:** the `--timeout` watchdog killed the run; `error` reads
104
+ `kimi did not finish within --timeout <dur>; killed by the relay watchdog`. Increase `--timeout` or
105
+ split the task. The relay sends SIGTERM, waits 10 seconds, then sends SIGKILL if needed.
106
+ - **Empty `finalMessage`:** inspect `touchedFiles` and the diff. Add a
107
+ `<structured_output_contract>` to the next brief to require a closing report.
108
+
109
+ ## Recovering lost work
110
+
111
+ `events.jsonl` in the run directory records every event the implementer streamed. If finished
112
+ work is lost — the run killed late, or the working tree damaged afterward — read the event log
113
+ before re-dispatching: it identifies which files and tool commands were involved, which scopes
114
+ what needs redoing. Whether it also carries the edit contents depends on what the CLI streams,
115
+ so treat any reconstruction as unverified until it matches a working-tree diff — when the tree
116
+ still holds the work, preserve the tree rather than replaying the log.
117
+
118
+ ## What the relay runs
119
+
120
+ The argv is equivalent to:
121
+
122
+ ```bash
123
+ kimi --output-format stream-json [--model <alias>] [--session <id> | --continue] \
124
+ [--add-dir <dir> ...] --prompt=<brief>
125
+ ```
126
+
127
+ The prompt rides argv and is visible in the host process list. The relay rejects briefs over 120 KB
128
+ before launch because the OS caps a single argument. It spawns the native `kimi` binary directly with
129
+ the selected `--cd` as cwd; no shell or Kimi timeout flag is involved.
130
+
131
+ ## The commit boundary
132
+
133
+ The relay never commits. Kimi edits the working tree; the orchestrator reviews, re-runs the gates, and
134
+ commits. See [review-and-land.md](review-and-land.md).
@@ -0,0 +1,58 @@
1
+ # Multi-task queues
2
+
3
+ The single-task loop scales to a queue: a removal across layers, a migration across files, or a
4
+ refactor sweep. Sequencing and bookkeeping make it trustworthy.
5
+
6
+ ## Run sequentially, one commit per task
7
+
8
+ Run tasks **one at a time, in dependency order**, landing each after review and gates before
9
+ dispatching the next:
10
+
11
+ ```bash
12
+ node "<skill-dir>/scripts/relay.mjs" --brief task-01.txt --cd /path/to/repo
13
+ ```
14
+
15
+ - Later briefs can rely on earlier work only after it lands.
16
+ - One commit per task keeps history reviewable and each step revertible.
17
+ - A clean tree before each dispatch keeps `touchedFiles` honest.
18
+
19
+ Use parallel runs only for genuinely independent tasks in separate working trees. Sequential is the
20
+ default because it preserves clean task boundaries.
21
+
22
+ ## Carry decided constraints forward
23
+
24
+ Fresh Kimi sessions do not remember earlier tasks. If task 2 chooses a helper name, fixture location,
25
+ or interface that task 5 needs, write that fact into task 5's brief.
26
+
27
+ Use a resumed Kimi session only for rework on the same task. Send a delta brief with `--resume-last`,
28
+ or with `--session <id>` from that task's `result.json`. Start unrelated queue items in fresh sessions.
29
+
30
+ ## Keep a progress file
31
+
32
+ For more than two or three tasks, maintain one progress file beside the work:
33
+
34
+ - **Status table** - queued / at-implementer / reviewed+committed, with the commit hash.
35
+ - **Per-task review notes** - what landed, what you verified, and gate outcomes.
36
+ - **Needs your eyes** - design decisions, non-blocking nitpicks, and questions for the human.
37
+ - **End-of-run checklist** - the final cross-task verification.
38
+
39
+ Update it when each task lands, not in one batch at the end.
40
+
41
+ ## Close with a coherence check
42
+
43
+ After the last task:
44
+
45
+ - Run the full test/build once more.
46
+ - Search repo-wide for the thing the queue changed.
47
+ - Replay migrations from a clean state and check drift when applicable.
48
+ - Push and open or update the PR only after the final tree is coherent.
49
+
50
+ ## When to stop and ask
51
+
52
+ Proceed on work that follows from the agreed plan. Stop and surface when:
53
+
54
+ - A task cannot be completed correctly within its brief.
55
+ - Review calls the plan itself into question.
56
+ - Gates reveal a problem affecting already-landed tasks.
57
+
58
+ Report the landed state, commit hashes, and open question, then wait.
@@ -0,0 +1,92 @@
1
+ # Review and land
2
+
3
+ Kimi did the typing; you own the judgment. Verify against reality, never the self-report, and read the
4
+ diff as generated code because a green gate cannot catch every failure mode.
5
+
6
+ ## Check tests before trusting gates
7
+
8
+ If the diff touches existing tests, review those edits first:
9
+
10
+ - Treat unbriefed test edits as a contract change, not part of the fix.
11
+ - Treat newly skipped, disabled, or commented-out tests as failing until proven otherwise.
12
+ - Treat loosened assertions the same way: contains/truthy replacing exact matches, broadened error
13
+ types, and widened tolerances all weaken the gate.
14
+
15
+ ## Re-run the gates yourself
16
+
17
+ `result.json` carries Kimi's claims, not evidence. Re-run the project's actual test, lint, and build
18
+ commands in the working tree and read their output. Passing is necessary, not sufficient.
19
+
20
+ For changes with a specialized verification shape:
21
+
22
+ - **Migrations or schema:** round-trip them and check for drift.
23
+ - **Removals or renames:** grep for dangling references.
24
+ - **Stateful behavior:** exercise the behavior, not just compilation.
25
+
26
+ ## Read the diff against the brief
27
+
28
+ Start with `touchedFiles`, open the diff, and compare it to the brief:
29
+
30
+ - **Scope creep** - changes the brief excluded.
31
+ - **Scope shortfall** - missed behavior, edges, or cleanup.
32
+ - **Quiet judgment calls** - defensible but unasked decisions that need review.
33
+
34
+ ## The implementer sweep
35
+
36
+ Check every diff for patterns gates often miss:
37
+
38
+ - Hardcoded success or fixture data on a real-work path.
39
+ - Catch-all error handling that returns a default instead of propagating or recovering.
40
+ - Imports, dependencies, methods, and signatures not present in the installed version.
41
+ - Unused imports, uncalled helpers, unreachable branches, and scaffolding comments.
42
+ - A second client, error idiom, or logging style beside the repo's existing one.
43
+ - Tests that assert internals instead of behavior, or near-duplicate test bodies.
44
+ - Optional parameters, config flags, and abstractions with no caller.
45
+ - Guards for impossible cases that hide trust-boundary validation.
46
+
47
+ Send anything blocking back to Kimi as a delta brief, or fix it in the tree, and report either choice
48
+ to the human. Run relevant guard skills if installed.
49
+
50
+ ## The commit boundary
51
+
52
+ When the gates pass and the diff holds, **the orchestrator commits**, never the implementer. Write a
53
+ clear message describing what landed.
54
+
55
+ From dispatch until that commit, the uncommitted working tree is the authoritative copy of the
56
+ implementer's work — the only one you can commit from, and often the only copy at all. Never run `git checkout`, `reset`, `clean`, or a branch switch in the
57
+ workspace between those two points — however messy an interrupted run looks, inspect it first:
58
+ `git status`, `git diff`, `git diff --cached` for anything the implementer staged (plain
59
+ `git diff` is blind to the index), and open any untracked files (`??` in `git status`) directly —
60
+ they are the implementer's new files, and no diff shows their contents. The tree is evidence,
61
+ not clutter. After that inspection the
62
+ verdict can legitimately be to discard — work built on a premise you have since corrected, for
63
+ example — and then `git checkout`/`clean` is the right tool. The ban is on reflexive cleanup
64
+ before anyone has looked.
65
+
66
+ ## Rework: send the delta
67
+
68
+ Continue the same session with only the correction:
69
+
70
+ ```bash
71
+ echo "The fix is right, but the test mocks the DB session. Use the real migrated fixture and remove the
72
+ unused import." | node "<skill-dir>/scripts/relay.mjs" --resume-last --cd /path/to/repo
73
+ ```
74
+
75
+ Use `--session <id>` instead when resuming the specific id recorded in `result.json`. Kimi itself
76
+ rejects combining `--continue` and `--session`; the relay rejects `--resume-last` plus `--session`
77
+ before launch. Rework gets the same gate rerun, test review, diff review, and implementer sweep.
78
+
79
+ Headless Kimi always uses auto permission mode and has no CLI-enforced read-only mode. Confirm
80
+ `touchedFiles` after every fresh or resumed run.
81
+
82
+ ## Surface, do not absorb
83
+
84
+ The human opted into delegation, so committing verified, gate-passing work is the contract. Keep them
85
+ in the loop when the work changes shape:
86
+
87
+ - Report design decisions and defensible-but-unrequested turns.
88
+ - Note non-blocking nitpicks you did not block on.
89
+ - Stop and ask if correct completion requires going beyond the brief.
90
+
91
+ For a queue, keep these notes in the progress file described in
92
+ [multi-task-queues.md](multi-task-queues.md).
@@ -0,0 +1,132 @@
1
+ # Writing the brief
2
+
3
+ A brief is the entire task as Kimi will see it. It runs in a separate session with **no memory of your
4
+ conversation, no access to prior notes, and no shared context** - only the text you send and whatever
5
+ it can inspect in the workspace. If a constraint is not in the brief or discoverable in the repo, it
6
+ does not exist for Kimi.
7
+
8
+ ## Model choice and resumed sessions
9
+
10
+ Kimi uses `default_model` from its `config.toml`, so a fresh dispatch does not require `--model`. Pass
11
+ `--model <alias from your kimi config>` only when the human wants one of their configured model
12
+ aliases. Do not invent an alias.
13
+
14
+ A resumed run keeps the session context. Send only the delta brief with `--resume-last` or
15
+ `--session <id>`.
16
+
17
+ ## The shape that works
18
+
19
+ Use a compact, block-structured brief. State the task, what done means, the few constraints that
20
+ matter, and the report Kimi must return.
21
+
22
+ ```xml
23
+ <task>
24
+ One or two sentences: the concrete job and where it lives. Then the specifics - current state, what to
25
+ change, and explicitly what to leave untouched. The leave-untouched list prevents unrelated refactors.
26
+ </task>
27
+
28
+ <verification_loop>
29
+ Run these before finishing and fix anything they surface, do not just report it:
30
+ <the project's real test command>
31
+ <the project's real lint/format command>
32
+ <the project's real build/typecheck command>
33
+ Confirm the working tree shows only the intended changes afterward.
34
+ </verification_loop>
35
+
36
+ <action_safety>
37
+ Keep changes scoped to the task. No unrelated refactors, renames, or cleanup unless required for
38
+ correctness. Do NOT run git add or git commit - the orchestrator commits after reviewing. Leave the
39
+ work uncommitted in the working tree.
40
+ </action_safety>
41
+
42
+ <structured_output_contract>
43
+ End with a report in this exact shape:
44
+ 1. What changed and why
45
+ 2. Files touched
46
+ 3. Gate outcomes (include test/lint counts)
47
+ 4. Anything you deviated on, left open, or want a decision on
48
+ </structured_output_contract>
49
+ ```
50
+
51
+ Add extra blocks only when the task needs them:
52
+
53
+ - **Debugging or open-ended fixes** - add `<completeness_contract>` (resolve fully, not just the first
54
+ plausible cause) and `<missing_context_gating>` (find missing repo facts or state what is unknown).
55
+ - **Research or recommendations** - add `<research_mode>` (separate observed facts, inferences, and
56
+ open questions).
57
+
58
+ ## Always ask for the report explicitly
59
+
60
+ The relay builds `finalMessage` from assistant text in Kimi's structured stream. Without a closing
61
+ summary, the edits may exist but the result is hard to review. The `<structured_output_contract>`
62
+ block makes the expected report explicit.
63
+
64
+ ## Discover the real gates
65
+
66
+ Read the repo's `AGENTS.md`, `CLAUDE.md`, `Makefile`, `package.json`, or equivalent first and copy the
67
+ actual commands into `<verification_loop>`. A brief that says only "run the tests" makes the
68
+ implementer guess or skip them.
69
+
70
+ ## Honor repo conventions
71
+
72
+ Restate the load-bearing house rules in the brief. Kimi can inspect the workspace, but the important
73
+ constraints should be directly in front of it.
74
+
75
+ ## One task per brief
76
+
77
+ Keep each brief bounded. One brief -> one Kimi run -> one reviewed commit keeps the diff and rollback
78
+ clean. Split mixed implementation, review, documentation, and roadmap requests into separate
79
+ dispatches.
80
+
81
+ ## Premises freeze at dispatch
82
+
83
+ The implementer starts from the brief's facts and there is no steering channel mid-run. Audit the
84
+ fact block before sending — ownership, target branch, constraints, anything a judgment call rests
85
+ on. If a premise turns out wrong while the run is live, stop the run and re-dispatch a corrected
86
+ brief rather than discounting the output afterward; for a write-capable run, inspect the working
87
+ tree and reconcile any partial or premise-contaminated edits — keep or revert them — before the
88
+ re-dispatch.
89
+
90
+ ## A worked example
91
+
92
+ ```xml
93
+ <task>
94
+ In the payments service at services/billing/, the refund path double-charges when a refund is retried
95
+ after a network timeout. Make refund submission idempotent: check for an existing refund by idempotency
96
+ key before creating a new one. Touch only services/billing/refund.py and its tests. Leave the charge
97
+ path, API routes, and data models untouched.
98
+ </task>
99
+
100
+ <verification_loop>
101
+ Run and make green before finishing:
102
+ pytest tests/billing/ -q
103
+ ruff check services/billing/
104
+ Confirm git status shows only refund.py and its test file changed.
105
+ </verification_loop>
106
+
107
+ <action_safety>
108
+ Scope strictly to the refund idempotency fix. No unrelated refactors. Do NOT git add or commit; leave
109
+ changes in the working tree for review.
110
+ </action_safety>
111
+
112
+ <structured_output_contract>
113
+ Report: (1) the root cause and fix, (2) files touched, (3) pytest and ruff outcomes with counts,
114
+ (4) anything left open or needing a decision.
115
+ </structured_output_contract>
116
+ ```
117
+
118
+ ## Argv delivery limits
119
+
120
+ Kimi headless mode requires the brief as a command-line argument. The relay reads a file or stdin for
121
+ convenience, then passes the text with `--prompt=<brief>`. The equals form binds a brief that starts
122
+ with `-` instead of treating it as another flag.
123
+
124
+ This has two consequences:
125
+
126
+ - The brief is visible in the host process list (`ps`, `/proc`). Keep secrets out of it on shared
127
+ machines; reference workspace files or environment variables instead.
128
+ - A brief over 120 KB is rejected before launch because operating systems cap a single argv value.
129
+ Put large context in the workspace and tell Kimi which file to read.
130
+
131
+ Dispatch with [dispatch-and-poll.md](dispatch-and-poll.md), then review and commit with
132
+ [review-and-land.md](review-and-land.md).
@@ -0,0 +1,186 @@
1
+ ---
2
+ name: omp-delegate
3
+ description: Delegate coding tasks to Oh My Pi (`omp`) only when the user explicitly
4
+ requests it, while the orchestrator retains review and landing responsibility.
5
+ risk: safe
6
+ category: agent-orchestration
7
+ source: https://github.com/amElnagdy/delegate-skills
8
+ source_repo: amElnagdy/delegate-skills
9
+ source_type: community
10
+ date_added: '2026-08-26'
11
+ license: MIT
12
+ license_source: https://github.com/amElnagdy/delegate-skills/blob/master/LICENSE
13
+ compatibility: Requires the `omp` CLI installed and authenticated (`/login` inside
14
+ omp, or a provider API-key environment variable), Node 18+, and git. The orchestrating
15
+ agent must be able to run shell commands and read files. Shell examples assume bash/zsh
16
+ (macOS/Linux, or Git Bash/WSL on Windows).
17
+ metadata:
18
+ version: 0.5.0
19
+ ---
20
+ # Oh My Pi Delegate
21
+
22
+ ## When to Use
23
+
24
+ - You want to delegate a bounded coding task to a separate `omp` implementer (`Oh My Pi`) and then review its diff yourself.
25
+ - The user explicitly asked for delegation to this implementer.
26
+
27
+ You are the **orchestrator**. Delegate a bounded coding task to a separate **implementer** - Oh My
28
+ Pi (`omp`) - then review what it produced and land it yourself. You write the brief and own the
29
+ judgment; the implementer makes changes in its own session; you verify and commit.
30
+
31
+ The loop needs only a shell command and file access, so any comparable orchestrator can drive it.
32
+
33
+ ## The binary is `omp`, not `pi`
34
+
35
+ Oh My Pi is a fork of Pi. This skill drives **`omp`** (`@oh-my-pi/pi-coding-agent`). The original
36
+ Pi CLI is a different binary (`pi`) with a different skill (`pi-delegate`). If `omp` is missing but
37
+ `pi` is installed, you have Pi, not Oh My Pi.
38
+
39
+ ## When NOT to use this
40
+
41
+ - The task is small enough to do inline; delegation overhead is not worth it.
42
+ - The `omp` CLI is not installed or authenticated.
43
+ - The user asked for the original Pi CLI (`pi`) — use `pi-delegate`.
44
+ - You need a sandboxed implementer. Oh My Pi has no sandbox. `--read-only` restricts the tool
45
+ surface; a write-capable run executes without prompts (`--yolo`).
46
+
47
+ ## Prerequisites (check once)
48
+
49
+ 1. Install omp with `bun install -g @oh-my-pi/pi-coding-agent` (or the install path from
50
+ https://omp.sh).
51
+ 2. Authenticate: `/login` inside omp for a subscription provider, or an API-key environment
52
+ variable for an API-key provider. Credentials live under `~/.omp/`.
53
+ 3. Confirm `omp --version` succeeds.
54
+ 4. Work in, or point `--cd` at, the target git repository.
55
+
56
+ ## Choose the model (optional)
57
+
58
+ Omit `--model` (and `--provider`) to use omp's configured default for this project / profile. The
59
+ catalog is **this install's** authenticated providers — not a fixed list in this skill.
60
+
61
+ To pick another model:
62
+
63
+ 1. **List what this install can actually run.** Do **not** pass `omp --list-models` — that flag is
64
+ gone and omp treats it as an unknown flag (exit 2). Use the `models` subcommand:
65
+ - `omp models` — every available model, grouped by provider
66
+ - `omp models --json` — the same catalog, machine-readable
67
+ - `omp models find <substring>` — filter by provider, id, or name (example:
68
+ `omp models find sonnet`)
69
+ - `omp models <provider>` — one provider's models
70
+ 2. **Pass that id to the relay.** `--model <pattern>` is omp's own `--model`: a fuzzy match against
71
+ the catalog (provider/id, a bare id, or a unique substring). `--provider <name>` pins the
72
+ provider when the pattern is ambiguous.
73
+ 3. The relay forwards only letters, digits, and `. _ : / -`. Glob patterns with `*` are rejected.
74
+
75
+ `--thinking <level>` is a separate reasoning dial, not a model id. Allowed values: `off`, `auto`,
76
+ `minimal`, `low`, `medium`, `high`, `xhigh`, `max`. The relay rejects anything else (including
77
+ `inherit`) before dispatch — omp would otherwise warn and ignore a bad value.
78
+
79
+ A fleet lane (`--lane`) can set `provider`, `model`, and `effort`. Lane `effort` becomes
80
+ `--thinking`; an explicit `--thinking` / `--model` / `--provider` flag wins over the lane.
81
+
82
+ The relay does not forward `--api-key`, `--smol`, `--slow`, or `--plan`. Those stay omp's own CLI.
83
+
84
+ ## The loop
85
+
86
+ Run these five steps per task. Steps 1, 4, and 5 require judgment; 2 and 3 are mechanical.
87
+
88
+ ### 1. Write the brief
89
+
90
+ Oh My Pi sees only the text you send plus what it can inspect in the workspace - no chat history or
91
+ shared context. Include the goal, current state, what to change, what to leave untouched, the
92
+ project's **actual** gates, and a report contract. Tell omp not to commit. Keep one task per brief.
93
+ omp auto-loads `AGENTS.md`/`CLAUDE.md` context files from the workspace and its parents, so repo
94
+ instructions reach it without inlining. See
95
+ [references/writing-the-brief.md](references/writing-the-brief.md).
96
+
97
+ ### 2. Dispatch
98
+
99
+ Use the bundled relay. It pipes the brief to `omp --mode json` on stdin, captures the JSON event
100
+ stream, and writes `result.json`. (`<skill-dir>` is the installed folder containing this
101
+ `SKILL.md`.)
102
+
103
+ ```bash
104
+ node "<skill-dir>/scripts/relay.mjs" --brief brief.txt --cd /path/to/repo
105
+ # list models first: omp models (or: omp models --json)
106
+ # choose a model: add --model <id from omp models>
107
+ # choose a provider: add --provider <name>
108
+ # set thinking level: add --thinking high
109
+ # read-only run (review/diagnosis): add --read-only
110
+ # trust project .omp resources: add --approve
111
+ # resume the most recent session: add --resume-last (delta brief only)
112
+ # resume a specific session: add --session <id> (delta brief only)
113
+ # hard time limit (watchdog): add --timeout 2h (the 30m default suits short runs; implementation briefs routinely need 1-2h)
114
+ # see all options: node .../relay.mjs --help
115
+ ```
116
+
117
+ The child process's cwd pins the workspace. The relay writes artifacts under the system temp dir
118
+ by default and never commits. See [references/dispatch-and-poll.md](references/dispatch-and-poll.md).
119
+
120
+ ### 3. Wait for completion
121
+
122
+ The relay blocks until omp finishes. Run it with the orchestrator's background-command facility,
123
+ or background it in the shell and poll for `result.json`. A pre-run usage error exits 2 and writes
124
+ no result; a missing `omp` exits 127 and writes `status: "omp_unavailable"`.
125
+
126
+ Trust process state and the working tree over a progress display. Completion means the process
127
+ exited and `result.json` exists. omp's full report is the `finalMessage` field in `result.json`
128
+ (also printed in full on stdout between the report markers).
129
+
130
+ ### 4. Review - do not trust the self-report
131
+
132
+ Treat omp's final message and gate claims as claims:
133
+
134
+ - Re-run the project's gates yourself.
135
+ - Read the diff against the brief, starting with `touchedFiles`.
136
+ - Run relevant guard skills if installed.
137
+ - Round-trip migrations and grep for dangling references after removals or renames.
138
+
139
+ See [references/review-and-land.md](references/review-and-land.md).
140
+
141
+ ### 5. Land it
142
+
143
+ The implementer edits the working tree; **the orchestrator commits.** Commit only after the gates
144
+ pass and the diff holds. If rework is needed, send a delta brief with `--resume-last` or
145
+ `--session <id>`, then review again.
146
+
147
+ ## Autonomy and permissions
148
+
149
+ Oh My Pi has **no sandbox**. Print mode has no approval UI, so a write-capable relay run always
150
+ passes `--yolo` (`tools.approvalMode: yolo`) — otherwise a user's `always-ask` or `write` config
151
+ would stall until the watchdog. The other controls are:
152
+
153
+ 1. `--read-only` restricts omp's callable tools to `--tools read,grep,glob`. It does not pass
154
+ `--yolo`. Installed extension code still runs with the user's host permissions if project
155
+ resources are trusted.
156
+ 2. The relay passes `--no-extensions --no-skills --no-rules` by default, so project `.omp`
157
+ extensions, skills, and rules stay undiscovered. `--approve` is the explicit opt-in for a
158
+ repository the user trusts.
159
+ 3. `touchedFiles` and the diff are the record of what changed. Inspect them after every run.
160
+
161
+ ## Authorization model
162
+
163
+ Delegation is something the human opts into. Once they have ("run this queue", "proceed"),
164
+ committing verified, gate-passing work is the agreed contract. Two limits remain: **surface, don't
165
+ absorb** (report omp's design decisions, defensible-but-unasked turns, and non-blocking nitpicks)
166
+ and **stop for scope changes** (if correct completion needs going beyond the brief, ask instead of
167
+ expanding the mandate). See [references/review-and-land.md](references/review-and-land.md).
168
+
169
+ ## References
170
+
171
+ - [references/writing-the-brief.md](references/writing-the-brief.md) - structure, report contract,
172
+ real gates, stdin delivery, model listing, and delta briefs.
173
+ - [references/dispatch-and-poll.md](references/dispatch-and-poll.md) - flags, artifacts,
174
+ `result.json`, polling, and failure recovery.
175
+ - [references/review-and-land.md](references/review-and-land.md) - review checklist, commit
176
+ boundary, and rework through omp sessions.
177
+ - [references/multi-task-queues.md](references/multi-task-queues.md) - sequential queues,
178
+ constraint carry-forward, progress tracking, and the final coherence pass.
179
+
180
+
181
+ ## Limitations
182
+
183
+ - Docs-only import — executable `scripts/relay.mjs` not included; see upstream for full runtime. Requires `omp` CLI, Node 18+, git.
184
+ - Relay never commits — it only returns structured result JSON; you review and land the commit.
185
+
186
+ > Adapted from [amElnagdy/delegate-skills](https://github.com/amElnagdy/delegate-skills) (MIT) — docs-only, runtime not bundled.