local-delegation

local-delegation is a skill for Claude Code, Codex from ZahiriNatZuke/local-delegate. It costs 138 tokens per session (1,580 once invoked), scanned A, original, MIT.

A set of rules for sending simple tasks to language or image models running on your own computer through an MCP server. MCP is a standard way for tools and models to communicate; the add-on supports tasks such as summarising, classifying, translating, and explaining code.

In plain words
What is it for?
Use it to delegate clearly defined jobs such as summarising a file, extracting information, translating text, summarising test or lint output, explaining code, or describing an image.
Why use it?
It keeps large files and repetitive work out of the main model's context and can preserve subscription usage. The local server must be available for delegation to work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to delegate clearly defined jobs such as summarising a file, extracting information, translating text, summarising test or lint output, explaining code, or describing an image.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zahirinatzuke/local-delegate/local-delegation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ZahiriNatZuke/local-delegate --skill local-delegation
Clone the repo
git clone --depth 1 https://github.com/ZahiriNatZuke/local-delegate

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for local-delegation

README.md
[![agentmods](https://agentmods.dev/badge/skills/zahirinatzuke/local-delegate/local-delegation/github.svg)](https://agentmods.dev/skills/zahirinatzuke/local-delegate/local-delegation)
Your own site
<a href="https://agentmods.dev/skills/zahirinatzuke/local-delegate/local-delegation"><img src="https://agentmods.dev/badge/skills/zahirinatzuke/local-delegate/local-delegation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for local-delegation

Your own site · 80×15
<a href="https://agentmods.dev/skills/zahirinatzuke/local-delegate/local-delegation"><img src="https://agentmods.dev/badge/skills/zahirinatzuke/local-delegate/local-delegation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 138 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,580 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00138 $0.01580
Opus 5.5 $0.00055 $0.00632
Sonnet 5.5 $0.00028 $0.00316
Haiku 4.5 $0.00014 $0.00158

Measured today against content hash fc1f2a7d00f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

local-delegation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/local_delegate/resources/skills/local-delegation/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Delegación a modelos locales (MCP local-delegate)

Tienes un servidor MCP (local-delegate) que expone modelos corriendo en una GPU propia (vía llama-swap, Ollama, LM Studio o vLLM) como herramientas texto/imagen→texto. Delegar a ellas conserva cuota de la suscripción: la generación verbosa y los inputs grandes (o una imagen entera) se quedan fuera de tu contexto.

Regla de oro

¿Puedo describir el paso en UNA frase con un formato de salida explícito? → sí → usa una tool local_*. → no (necesita razonamiento, arquitectura, criterio, multi-fuente) → hazlo tú.

El mayor ahorro: path en vez de text

Para archivos/documentos grandes, pasa path (no leas el archivo tú primero). Las tools que aceptan path leen el archivo del lado del servidor, así el contenido completo nunca entra a tu contexto — solo recibes el resultado corto.

El coste de no delegar

Leer un archivo de 100 KB con Read cuesta ≈ 25 000 tokens de tu contexto. La misma tarea con local_summarize(path=…) cuesta ≈ 200 tokens (solo el resumen que vuelve). Esa diferencia es la que se pierde cada vez que se lee un archivo grande a mano en vez de delegarlo.

Catálogo de tools

Tool Cuándo Args clave Devuelve
local_summarize Resumir texto o archivo largo path o text, max_words, focus (qué te interesa conservar) Resumen (prosa)
local_classify Etiquetar en categorías fijas text, labels[] Una etiqueta
local_extract Sacar campos estructurados fields[], path o text JSON
local_boilerplate Generar código repetitivo spec, language, target (ruta absoluta), overwrite? Recibo: ruta y tamaño (el código va al archivo, no a tu contexto)
local_delegate Escape genérico texto→texto task, input, output_format, model?, chunk? Texto
local_lint_summary Resumir salida de lint/tests/CI path o text, max_words Resumen agrupado por archivo
local_commit_msg Mensaje de commit desde un diff diff o path, style? Mensaje (revísalo siempre)
local_translate Traducir texto o archivo target_lang, text o path Traducción
local_explain_code Explicar qué hace un código code o path, question? Explicación (prosa)
local_describe_image Describir una imagen o responder una pregunta sobre ella path, question? Descripción (prosa)
local_status Diagnóstico de solo lectura — Backend/catálogo/log/VRAM

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 91 lines · 138 tokens per session scan A fc1f2a7d00f3

Subscribe to this mod's changes

local-delegation is a skill published in the GitHub repository ZahiriNatZuke/local-delegate (6 stars, last pushed today), licensed MIT. It adds 138 tokens to every session and 1,580 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-14.

Related

Other skills, from other repositories

add-prompt

Scaffold a new MCP prompt template. Use when the user asks to add a prompt, create a reusable message template, or define a prompt for LLM interactions.

cyanheads/pubmed-mcp-server · 37 tokens

openclaw-prompt-enhancer

Remote prompt engineering MCP server with 6 tools that turn weak prompts into powerful ones. Use when: (1) 'improve this prompt' or 'make my prompt better', (2) 'score this prompt' or 'rate prompt quality', (3) 'convert prompt to Claude format' or 'translate for Gemini', (4) 'generate system prompt' or 'create…

yedanyagamiai-cmd/openclaw-mcp-servers · 137 tokens

add-prompt

Scaffold a new MCP prompt template. Use when the user asks to add a prompt, create a reusable message template, or define a prompt for LLM interactions.

cyanheads/internet-archive-mcp-server · 37 tokens

add-prompt

Scaffold a new MCP prompt template. Use when the user asks to add a prompt, create a reusable message template, or define a prompt for LLM interactions.

cyanheads/stackexchange-mcp-server · 37 tokens

add-prompt

Scaffold a new MCP prompt template. Use when the user asks to add a prompt, create a reusable message template, or define a prompt for LLM interactions.

cyanheads/pokeapi-mcp-server · 37 tokens

opik-optimize

Improve a prompt with the Opik Agent Optimizer — resolve the prompt, a dataset, and a metric, pick the algorithm, run a bounded optimization, check the gain on held-out data, and save the winner as a new prompt version with the optimization run link. Runs via the opik-optimizer package; reads prompts and datasets via…

comet-ml/opik-mcp · 143 tokens