Logotipo de Delegate

Delegate

Comunidad
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.

Descripción general

Editorpeterpme
Repositorioskills
Nombre de la habilidaddelegate
Estrellas
28
Forks
0
Archivos incluidos
Solo instrucciones
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por peterpme en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Delegate en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/peterpme/skills/tree/main/delegate
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Delegate en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Delegate automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Delegate no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

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.

Preguntas frecuentes

¿Qué hace la habilidad de IA 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.

¿Por qué usar Delegate en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Delegate está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Delegate en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/peterpme/skills/tree/main/delegate. TypingMind lee su archivo SKILL.md y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Delegate?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Delegate?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Delegate con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Delegate?

peterpme la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇