claude-skill-delegate: Skill for Claude Code

.claude/skills/delegate/SKILL.md

delegate is a skill for Claude Code from yangkaiHandsome/claude-skill-delegate. It costs 80 tokens per session (2,780 once invoked), scanned A, original, MIT.

A delegation guide for sending coding or analysis tasks to locally installed Codex or Agy command-line agents and combining their results.

In plain words
What is it for?
Use it to delegate code changes, debugging, reviews, quick questions, analysis, or tasks that need comparison between agents.
Why use it?
It lets another agent handle part of the work when the user wants to share tasks or has limited usage available.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; runs codex exec; mentions Codex.

This is yangkaiHandsome/claude-skill-delegate's own configuration. It tells Claude Code how to work on claude-skill-delegate itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-skill-delegate configures →

Reuse

Borrowing it

Nothing to install: this file belongs to yangkaiHandsome/claude-skill-delegate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/yangkaiHandsome/claude-skill-delegate/main/.claude/skills/delegate/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/yangkaiHandsome/claude-skill-delegate

Made for: Claude Code.

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 delegate

README.md
[![agentmods](https://agentmods.dev/badge/skills/yangkaihandsome/claude-skill-delegate/delegate/github.svg)](https://agentmods.dev/skills/yangkaihandsome/claude-skill-delegate/delegate)
Your own site
<a href="https://agentmods.dev/skills/yangkaihandsome/claude-skill-delegate/delegate"><img src="https://agentmods.dev/badge/skills/yangkaihandsome/claude-skill-delegate/delegate/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 delegate

Your own site · 80×15
<a href="https://agentmods.dev/skills/yangkaihandsome/claude-skill-delegate/delegate"><img src="https://agentmods.dev/badge/skills/yangkaihandsome/claude-skill-delegate/delegate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,780 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.00080 $0.02780
Opus 5.5 $0.00032 $0.01112
Sonnet 5.5 $0.00016 $0.00556
Haiku 4.5 $0.00008 $0.00278

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

Security

Grade A, and why

delegate 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 2mo ago.

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.

.claude/skills/delegate/SKILL.md · 109 lines

How it starts

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

/delegate — 把活派给 codex 或 agy

当本机额度/用量吃紧,或用户想让外部代理分担时,用本 skill 把任务转交给本机已安装的两个命令行代理执行,然后把结果拿回来汇总给用户。你是调度者,不是执行者:负责选执行器、构造命令、驱动运行、读取输出、汇总,不要自己动手做那部分被派出去的活。

用户传入的任务:$ARGUMENTS

前置要求:本机已安装并登录 codex(OpenAI Codex CLI)与 agy(Google 的命令行代理)。命令名假定在 PATH 中可直接调用;若你的安装位置不同,把下文 codex / agy 换成对应绝对路径即可。


两个执行器

执行器 命令 厂商/默认模型 适合
codex codex OpenAI · gpt-5.5 代码改写、调试、代码审查(有专门 codex exec review)
agy agy Google · Gemini 3.x(也可选 Claude/GPT-OSS) 轻量问答、分析、快速任务,启动开销小

agy 可用模型(agy models 查看)随版本变化,例如:Gemini 3.5 Flash (Low/Medium/High)、Gemini 3.1 Pro (Low/High)、Claude Sonnet 4.6 (Thinking)、Claude Opus 4.6 (Thinking)、GPT-OSS 120B (Medium)。用 --model "<名称>" 指定。

⚠️ 一律用最强思考档(强制)

派出去就要它认真想,默认必须选每个执行器的最强推理档,除非用户明确说要省钱/要快:

  • codex:必加 -c model_reasoning_effort="xhigh"(gpt-5.5 的最高档,比 high 更强;若你的全局默认只是 medium,不覆盖就不是最强)。
  • agy:默认 --model "Gemini 3.1 Pro (High)"(Pro 比 Flash 强,High 是 Pro 的最高思考档)。若用户点名要 Claude,则用 --model "Claude Opus 4.6 (Thinking)"(带 Thinking 即开启推理)。不要用不带 High/Thinking 的档。

选谁

  • 用户明确点名就用谁。
  • 没点名:改代码/调试/审查 → codex;纯问答/分析/快速活 → agy;用户要交叉验证就两个都派、最后对比结论。
  • 拿不准时,用 AskUserQuestion 问一句,别擅自两个都跑(省额度)。

任务 → 权限映射(先定权限再发命令)

派之前先判这是只读还是要改文件,据此给最小权限——别把"非交互执行"误当成"该给写权限":

  • 审查 / 分析 / 问答 / 解释 / 调研 → 只读:codex 用 -s read-only;agy 不加 --dangerously-skip-permissions(它无 read-only 档,加了就是给写权限)。
  • 改代码 / 调试修复 / 重构 → 写:codex 用 -s workspace-write;agy 才加 --dangerously-skip-permissions。
  • 任务措辞含"审查/看看/评估/有没有问题"却没让改 = 只读;别让执行器"顺手把发现的问题改了"。

调用模板

codex(非交互)

# 纯分析/问答:read-only 更快更安全,不改文件
codex exec --skip-git-repo-check -s read-only -c model_reasoning_effort="xhigh" \
  -C <工作目录> -o /tmp/codex_out.md "<任务描述>"

# 需要它改代码:workspace-write(默认),只写工作区+/tmp
codex exec --skip-git-repo-check -s workspace-write -c model_reasoning_effort="xhigh" \
  -C <项目目录> -o /tmp/codex_out.md "<任务描述>"
  • 必加 --skip-git-repo-check,否则在非 git 目录会报 "Not inside a trusted directory"。
  • 必加 -c model_reasoning_effort="xhigh",用最强推理档(见上「一律用最强思考档」)。
  • -C <dir> 指定工作根目录;不给则用当前目录。
  • -o <file> 把最后一条回复写到文件——比解析 stdout 干净(stdout 含一大段头信息+token 统计)。运行后 Read 这个文件拿结果。
  • 选模型:-m <model>。需要结构化输出:--output-schema <json-schema文件>。

Read the full file on GitHub · 109 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. 2mo ago First seen · 109 lines · 80 tokens per session scan A daf45e6cdde7

Subscribe to this mod's changes

delegate is a skill published in the GitHub repository yangkaiHandsome/claude-skill-delegate (2 stars, last pushed 4mo ago), licensed MIT. It adds 80 tokens to every session and 2,780 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

agent-chat

Encrypted peer-to-peer text messaging between agent sessions (Claude Code or other CLI agent harnesses on the same machine) running in separate terminals. Use this whenever the user wants to talk to another agent, message another Claude, coordinate with another agent, open/create/join/enter a room, send text to a…

merijnvanes/agent-chat · 177 tokens

loongsuite-pilot-insight

A reporting workflow for turning LoongSuite Pilot and AI coding-agent logs into structured reports about events, teams, data quality, development efficiency, and AI use. It defines the meaning of the log fields and the measurements used in dashboards.

alibaba/loongsuite-pilot · 109 tokens

save-learning

Saves user instructions as persistent learnings for future sessions. Use when the user says 'remember this', 'always do X', 'from now on', 'never do Y', or gives any instruction they want persisted across sessions. Proactively suggest when the user states a preference, convention, or rule they clearly want followed in…

caliber-ai-org/ai-setup · 71 tokens

web-access

A method for handling difficult web tasks across search, page fetching, and a real browser. It covers sites that need login sessions, dynamic pages, anti-bot handling, or exploration before their structure is understood.

open-octo/octo-agent · 139 tokens

skill-creator

A skill for creating or improving reusable instructions for an agent. It covers capturing the intended workflow, writing a draft, testing it, and refining its trigger description.

open-octo/octo-agent · 123 tokens

packing-list

A travel-packing aid that builds a checklist from the destination's climate, trip type, length, transport, accommodation, and travelling group. It treats a city break, hike, business trip, and family holiday as different packing problems.

open-octo/octo-agent · 105 tokens