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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
ompimplementer (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
ompCLI is not installed or authenticated. - The user asked for the original Pi CLI (
pi) — usepi-delegate. - You need a sandboxed implementer. Oh My Pi has no sandbox.
--read-onlyrestricts the tool surface; a write-capable run executes without prompts (--yolo).
Prerequisites (check once)
- Install omp with
bun install -g @oh-my-pi/pi-coding-agent(or the install path from https://omp.sh). - Authenticate:
/logininside omp for a subscription provider, or an API-key environment variable for an API-key provider. Credentials live under~/.omp/. - Confirm
omp --versionsucceeds. - Work in, or point
--cdat, 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:
- 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 themodelssubcommand:omp models— every available model, grouped by provideromp models --json— the same catalog, machine-readableomp models find <substring>— filter by provider, id, or name (example:omp models find sonnet)omp models <provider>— one provider's models
- 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. - 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.
热度
- GitHub 星标
- 48k
- 排名
- #5365
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。