跳到正文
Skillpedia
通用编程48k · #5365

omp-delegate

它能做什么

这个工具可以让你请一个名叫“Oh My Pi”(omp)的 AI 帮你完成编程任务。你写下想要的内容,AI 会在一个单独的环境中完成工作,之后你可以先检查它的成果,再决定是否采纳。

适用场景

  • ✓当你希望 AI 编写或修改代码时。
  • ✓当你想在应用更改之前,先审查代码改动时。
  • ✓当你需要 AI 在电脑上的某个特定项目中工作时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/omp-delegate/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/omp-delegate/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请让“omp”AI 创建一个 Python 函数,用来计算一个数字列表的平均值,并把结果保存到名为“average.txt”的文件中。”

每周 5 个新技能,1 分钟读完。

工作原理

你需要写一段详细的请求(称为“任务说明”,英文为 brief),说明 AI 应该做什么。工具会把这段请求发送给“omp”AI,它完成任务后会把结果返回给你审查。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Bundled upstream support

Supporting files are included at skill-relative paths. See UPSTREAM-NOTICE.md for their pinned sources, licenses, hashes, and import changes.

Oh My Pi Delegate

When to Use

  • You want to delegate a bounded coding task to a separate omp implementer (Oh My Pi) and then review its diff yourself.
  • The user explicitly asked for delegation to this implementer.

You are the orchestrator. Delegate a bounded coding task to a separate implementer - Oh My Pi (omp) - then review what it produced and land it yourself. You write the brief and own the judgment; the implementer makes changes in its own session; you verify and commit.

The loop needs only a shell command and file access, so any comparable orchestrator can drive it.

The binary is omp, not pi

Oh My Pi is a fork of Pi. This skill drives omp (@oh-my-pi/pi-coding-agent). The original Pi CLI is a different binary (pi) with a different skill (pi-delegate). If omp is missing but pi is installed, you have Pi, not Oh My Pi.

When NOT to use this

  • The task is small enough to do inline; delegation overhead is not worth it.
  • The omp CLI is not installed or authenticated.
  • The user asked for the original Pi CLI (pi) — use pi-delegate.
  • You need a sandboxed implementer. Oh My Pi has no sandbox. --read-only restricts the tool surface; a write-capable run executes without prompts (--yolo).

Prerequisites (check once)

  1. Install omp with bun install -g @oh-my-pi/pi-coding-agent (or the install path from https://omp.sh).
  2. Authenticate: /login inside omp for a subscription provider, or an API-key environment variable for an API-key provider. Credentials live under ~/.omp/.
  3. Confirm omp --version succeeds.
  4. Work in, or point --cd at, the target git repository.

Choose the model (optional)

Omit --model (and --provider) to use omp's configured default for this project / profile. The catalog is this install's authenticated providers — not a fixed list in this skill.

To pick another model:

  1. List what this install can actually run. Do not pass omp --list-models — that flag is gone and omp treats it as an unknown flag (exit 2). Use the models subcommand:
    • omp models — every available model, grouped by provider
    • omp models --json — the same catalog, machine-readable
    • omp models find <substring> — filter by provider, id, or name (example: omp models find sonnet)
    • omp models <provider> — one provider's models
  2. Pass that id to the relay. --model <pattern> is omp's own --model: a fuzzy match against the catalog (provider/id, a bare id, or a unique substring). --provider <name> pins the provider when the pattern is ambiguous.
  3. The relay forwards only letters, digits, and . _ : / -. Glob patterns with * are rejected.

--thinking <level> is a separate reasoning dial, not a model id. Allowed values: off, auto, minimal, low, medium, high, xhigh, max. The relay rejects anything else (including inherit) before dispatch — omp would otherwise warn and ignore a bad value.

A fleet lane (--lane) can set provider, model, and effort. Lane effort becomes --thinking; an explicit --thinking / --model / --provider flag wins over the lane.

The relay does not forward --api-key, --smol, --slow, or --plan. Those stay omp's own CLI.

The loop

Run these five steps per task. Steps 1, 4, and 5 require judgment; 2 and 3 are mechanical.

1. Write the brief

Oh My Pi sees only the text you send plus what it can inspect in the workspace - no chat history or shared context. Include the goal, current state, what to change, what to leave untouched, the project's actual gates, and a report contract. Tell omp not to commit. Keep one task per brief. omp auto-loads AGENTS.md/CLAUDE.md context files from the workspace and its parents, so repo instructions reach it without inlining. See references/writing-the-brief.md.

2. Dispatch

Use the bundled relay. It pipes the brief to omp --mode json on stdin, captures the JSON event stream, and writes result.json. (<skill-dir> is the installed folder containing this SKILL.md.)

node "<skill-dir>/scripts/relay.mjs" --brief brief.txt --cd /path/to/repo
# list models first:                       omp models   (or: omp models --json)

…
常见问题

什么是“omp”?

“omp”是一款编程 AI 工具的名字,它是经过改良的版本,全称为“Oh My Pi”。

我需要安装什么吗?

需要。你需要在电脑上安装“omp”工具,并使用账号或 API 密钥完成身份验证。

“查看 diff”是什么意思?

指在决定代码是否正确、是否保留之前,先查看 AI 对代码做出的具体改动(diff,即代码差异)。

详情

作者的原始描述

Delegate coding tasks to Oh My Pi (`omp`) only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5365
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能