Логотип Delegate

Delegate

Сообщество
peterpme
delegate

Use whenever work goes to another agent or model ("spin up sonnet", "get codex to review", "hand this off"): picks the model, writes the brief, watches for stalls. For a whole feature, use orchestrate.

Обзор

Издательpeterpme
Репозиторийskills
Название навыкаdelegate
Звёзды
28
Форки
0
Встроенные файлы
Только инструкции
Ссылки
  • Инструкции в формате Markdown

    Файл SKILL.md, который модель загружает по необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Опубликовано на GitHub: peterpme. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Delegate в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/peterpme/skills/tree/main/delegate
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Новый навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/peterpme/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/delegate .claude/skills/delegate
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Delegate в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Delegate, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Delegate не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими API-ключами.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Delegate

On a program of several tickets, plan and write tickets; let subagents investigate, implement and verify. Keep your own context for decisions and review. Delegation does not expand the user's authorization to change files, push, merge, deploy, or answer approvals.

Pick the model and effort

Every model and effort comes from ~/skills/global/models.tsv: one row per role (build, investigate, review-claude-code, review-gpt-code, hardest, orchestrator, scheduled-worker, llp-*, fallback), with the provider, model, effort and how to pick between rows. Use nothing else, and that includes a built-in subagent (Claude Agent, Codex spawn_agent): name its model, or it silently runs on yours. Before 3 or more runs at once, or any run at xhigh, tell Peter the count, model and effort and wait for a yes, even when he asked for them. The catalog does not report usage or quota; model availability alone does not mean an account has capacity.

Before launch, call orchestrator_capabilities and confirm the provider instance can run child tasks and supports the chosen model and option values. Every Claude entry uses the same cliproxy hub accounts and the hub picks the account, so there is no account to alternate. If a requested target is unavailable, report the mismatch; do not silently substitute a provider, model, or effort.

For these routes, use T3 delegate_task with target.providerInstanceId, target.model, and explicit target.options. An effort word in the brief does not configure the model. For example:

json
{"providerInstanceId":"claudeAgent","model":"<model>","options":{"effort":"<effort>"}}
{"providerInstanceId":"codex","model":"<model>","options":{"reasoningEffort":"<effort>"}}

Set effort explicitly on every child; a model other than the session's does not take the session's effort. Options inherit only for the same provider instance and model; explicit entries override individual inherited values. Do not copy options to models that do not support them. Check the returned provider, model, and options against the requested target before trusting the task's work.

Retain the returned taskId and childThreadId; manage the task by taskId. Use a distinct clientRequestId for each ticket or independent review round and reuse it only for retries of that launch. For another review round call delegate_task again with the original brief, prior findings, responses, and unresolved objections; do not start the round by messaging the old child thread. Never use t3_thread_launch or create_threads as substitutes for subagents.

Write the ticket

A subagent starts with no parent conversation and no global instructions, so the brief itself carries the skill it must follow and the proof rule. Every ticket states:

  1. Goal: one or two sentences, and the hard rules (e.g. "UI must not change", "never edit node_modules").
  2. Read first: the "Finish every change" section of ~/skills/global/AGENTS.md, named by path, for any ticket that changes files; then exact paths, repository/worktree location, starting branch and revision, and relevant prior decisions or findings.
  3. Do exactly these: numbered changes with file paths; what is out of scope. For research or review, name the questions and permitted read-only actions instead of prescribing edits.
  4. Proof: copy this sentence into the brief word for word: "Proof means running the real UI, API or CLI with representative data and showing expected next to actual. A pass count or a finished job is not proof." Require each test to name the user-visible rule or bug it protects in its title, and forbid citing test or path counts in the report. Then two blocks, with expected results taken from outside the change: Verification, numbered checks of input → expected value, and Validation, one real-flow scenario with real data. Exercise the actual affected flow and include cases that expose plausible wrong implementations. If planted-bug checks are appropriate and authorized, use an isolated local copy, restore every temporary change, and never touch live data. Do not require code mutation for read-only work. Save inspectable evidence in a git-ignored path or outside the repo; report what could not be verified.
  5. Checks: the repo's type-check, lint, format, tests, with exact commands and known traps (e.g. formatter with no file args rewrites unrelated files). Scale checks to the task; do not run paid or unrelated flows just to validate prose.
  6. Git: signed commits only when committing; never --no-verify, never edit git config. State whether to commit or leave changes uncommitted, and whether pushing is authorized. If signing is unavailable, preserve the work and report the blocker rather than creating an unsigned commit. Follow explicit user and repository instructions.
  7. Report: the PR body carries a line Built by: <model> <effort> (Peter is comparing Sol and Sonnet as builders). Short enough to read in a minute, written for a reader who saw none of the work, and exactly what to include (SHAs, changed paths, expected versus actual proof, check results, anything skipped or blocked).
  8. Obstacles and scratch files: errors, timeouts and failing tools are ordinary: diagnose and work through them. Retrying a read-only command needs no approval. Report as blocked only when access was withheld on purpose, the ticket's hard rules forbid the next step, or the same step failed twice for the same cause. Scratch files go in .verification/<task>/, never in a folder the task shares; delete only files you created, by name.
  9. Stop condition: the observable acceptance result and exact command when applicable (e.g. yarn exchange-core:verify → the independently established expected result). A blocker also requires a final report, not endless retries. Say: "end the turn immediately after the final report; do not call Get task output, continue polling, or start follow-up work".

Keep implementation briefs tight: exact files to touch, nothing open-ended.

Use delegate_task with isolation: "worktree" when tasks edit files in parallel or the main checkout is in use. It starts from the parent local commit and runs project setup; uncommitted edits are not copied. Commit required inputs before launch, or pass necessary context explicitly. Do not ask the child to create its own worktree. Read-only tasks may share the checkout; avoid concurrent commands that change it.

Watch it

  • Async completion wakes the parent: end the turn when waiting solely for that result, and never keep a polling loop open. When you do look at a live task, use task_status for workState, pending requests, and nested child runs. If a periodic wake is needed, use an existing watchdog or a user-authorized schedule; do not create recurring work implicitly.
  • Read t3_thread_read activity tails, item timestamps, and itemCount growth; updatedAt alone can reflect housekeeping. Inspect the awaited process, logs, or CI result when needed. A progressing build, live nested child, or idle dev server waiting for requests is not a stall.
  • At 10 minutes without real progress, diagnose before acting. Check pending questions/approvals; surface anything that needs Peter and leave those tasks waiting. If genuinely stalled rather than waiting on live work or Peter, cancel the owned task with task_cancel, confirm it has stopped, inspect and preserve its worktree changes, then take over or re-delegate a smaller ticket. Do not run a replacement writer against files the original task can still edit.
  • Steer a running task with t3_thread_send (threadId: childThreadId, mode: "steer") when requirements change mid-task; this is an in-flight update, not a new independent review round. Include a stable clientRequestId for retries.
  • A "completed" turn can still have live nested work. Check workState, hasPendingChildRuns, and the final result before treating the task as finished. If the final message is missing, inspect its worktree (git log, git status, the proof file) before trusting or re-running it.
  • A final report with its run still open is a distinct stall: ask the child to end the turn and explain anything keeping it open. Do not call Get task output after your own final report.
  • Retry by cause, at most twice per ticket, then report it as blocked: out of context or memory → a smaller ticket; dropped connection or provider error → the same ticket again; the same tool or command failing twice → a different model or a ticket that avoids that step.

Review replies

Ask every reviewer for exactly this format, and treat a timeout, an error or no reply as not approved:

VERDICT: APPROVE | CHANGES
R1 blocker|should|nit path:line — what goes wrong, with the input or state — the command and output that show it — suggested fix
  • blocker: the case the task is for is wrong. should: a real bug callers will hit. nit: everything else, including rare paths, whatever label the reviewer chose.
  • A review of tests asks one question: does each of our functions that uses the library still give the same output (the bytes it signs, the request it sends)? Never ask whether a change inside the library would be caught; that has no end.
  • One review, then one re-check of the same findings, then stop. Keep the ids (R1, R2, …) so the re-check answers the same list. A new finding goes to a ticket, unless money is at risk now. "Production changes" blocks a merge; "the tests could cover more" never does.
  • A finding without a command, output or exact input that shows the failure is a question, not a finding. Rerun the command yourself before passing a finding to the worker; drop what you can't reproduce.

Verify the result

Do not review the code yourself when orchestrating; the reviewer does that (see orchestrate step 5). Read the proof and gate evidence yourself. Compare the claimed result with the independent expected result and re-run the affected flow and required checks on the final combined artifact. Passing checks or a subagent's report alone do not prove the behavior. Mark blocked claims implemented, unverified with the missing prerequisite.

Integrate the child's commits locally only within the authorized task. If local integration changes the target branch or its dependencies, repeat the affected verification there before handoff. Never report a subagent's claim as verified until you have inspected the evidence.

Часто задаваемые вопросы

Что делает навык ИИ Delegate?

Use whenever work goes to another agent or model ("spin up sonnet", "get codex to review", "hand this off"): picks the model, writes the brief, watches for stalls. For a whole feature, use orchestrate.

Зачем использовать Delegate в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Delegate — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Delegate в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/peterpme/skills/tree/main/delegate. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Delegate?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Delegate?

С любым количеством. Если модель поддерживает навыки, вы можете использовать с ней Delegate: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama и другие — всё в TypingMind с вашими собственными ключами API.

Бесплатен ли навык ИИ Delegate?

Навык опубликован на GitHub автором peterpme. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это многоразовый набор инструкций, который объясняет модели ИИ, как выполнять конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты для вызова — код, который где-то выполняется и возвращает результат. Навык ИИ вместо этого даёт модели знания и порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте свою рабочую ИИ-среду сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇