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

aider-delegate

它能做什么

这个工具把编程任务交给另一个名为 Aider 的 AI。你负责写指令,Aider 负责写代码。之后你检查 Aider 写的代码,决定是否采用。

适用场景

  • ✓当你想让 Aider 编写某段特定代码时。
  • ✓当你希望在应用代码之前先审查时。
  • ✓当你想让 Aider 负责项目中一个明确划分的部分时。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“Aider,写一个 Python 函数,计算两个数的和并返回结果。”

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

工作原理

你先写一个包含指令的“任务说明”文件。该工具把这份说明发送给 Aider,由 Aider 编写代码。随后工具会把代码展示给你,由你审查并决定是否通过。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Aider Delegate

When to Use

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

You are the orchestrator. Hand a bounded coding task to a separate implementer - Aider - then review what it produced and land it yourself. You write the brief and own the judgment; Aider does the typing in its own run; you verify and commit.

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

The one thing to know about Aider

Aider commits by default. Two of its defaults would destroy the reviewable diff this skill exists to produce:

  • --auto-commits (default True) - Aider commits its own edits after each exchange.
  • --dirty-commits (default True) - Aider commits your pre-existing uncommitted work before it starts editing.

The relay always passes --no-auto-commits and --no-dirty-commits, and neither is configurable through it. If you ever drive aider by hand instead of through the relay, pass both yourself, or the work lands as commits you never reviewed. The relay also passes --no-gitignore, because Aider otherwise writes .aider* into .gitignore on startup and dirties the tree you are about to read.

When NOT to use this

  • The task is small enough to do inline; delegation overhead is not worth it.
  • The aider CLI is not installed, or no model is configured for it.
  • You want the implementer to manage its own commits. Aider can, but this skill deliberately turns that off - the diff is the deliverable.

Prerequisites (check once)

  1. Install Aider - python -m pip install aider-chat, or the standalone installer from the Aider install docs.
  2. Configure a model. Aider reads provider keys from the environment (OPENAI_API_KEY, ANTHROPIC_API_KEY, …) or its own config; see Aider's model docs.
  3. Confirm aider --version succeeds.
  4. Work in, or point --cd at, the target git repository.

Choose the model

Aider uses its own configured model when --model is omitted. Pass --model <name> to pick another.

Local and self-hosted models

Aider talks to any OpenAI-compatible endpoint, so this is also the skill for delegating to a model running on the user's own hardware - llama.cpp's server, Ollama, vLLM, LM Studio, or anything else that serves the same API. Pair --model with --api-base:

node "<skill-dir>/scripts/relay.mjs" --brief brief.txt --cd /path/to/repo \
  --model openai/<served-model-name> --api-base http://127.0.0.1:<port>/v1

Three things differ from a hosted provider:

  • The openai/ prefix is required. It tells Aider to speak the OpenAI protocol to your endpoint; the part after it is whatever name your server reports, not a provider catalog name.
  • A placeholder key is still needed. Export any non-empty OPENAI_API_KEY. The client library requires the header even when the server ignores its value.
  • Ask for a smaller edit format. Local models often fail Aider's default diff format, which requires exact search/replace blocks. --edit-format whole trades tokens for reliability; keep the brief's scope tight with --file so whole-file rewrites stay cheap.

A local endpoint that is not running looks like a hang, not an error: Aider retries the connection until the relay's --timeout watchdog fires and reports status: "timeout". Confirm the server is up before dispatching a long brief.

Staying offline

No account or provider registration is involved: Aider is a pip install, the endpoint is yours, and OPENAI_API_KEY only has to be non-empty. The relay pins the flags that would otherwise reach the network on their own - --no-check-update, --no-analytics (Aider's own default is random, which opts some sessions in by itself), and --no-detect-urls, without which Aider offers to scrape any URL in the brief and --yes-always accepts that offer silently.

--no-suggest-shell-commands closes the remaining path by which a run could reach the network without being asked to. What stays outside the relay's control is the brief itself: instructions that tell Aider to install a package or call an API will still be carried out, and --auto-lint runs the repository's own tooling. Offline here means nothing in the dispatch path reaches out on its own - not

…

常见问题

这里的“委派”是什么意思?

指把某项具体任务交给另一个 AI(Aider)去完成,而不是自己直接动手。

为什么要审查 Aider 写的代码?

为了确保代码正确、符合需求,并且在加入项目之前不会引入错误。

如果我不喜欢 Aider 写的代码怎么办?

你可以不予通过。Aider 不会自动保存代码,你可以放弃这段代码,或者要求它修改。

详情

作者的原始描述

Delegate coding tasks to Aider (`aider`) only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.

repo: sickn33/agentic-awesome-skills

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能