К основному содержанию
скилл CX Codex

delegation-core — скилл для Claude Code: делегирование задач восьми CLI

Скилл delegation-core делегирует задачи восьми внешним CLI (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer). Оставляет проектирование и архитектуру локально, отправляет исполнение.

MIT 1 установок ★ 350 обновлён 2026-10-29

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add athola/claude-night-market --skill delegation-core -a claude-code
Открыть на GitHub

Что делает delegation-core

Скилл определяет, какие задачи передать внешним моделям, а какие оставить Claude. Делегирование включено по умолчанию: задачи на извлечение данных, подсчёт паттернов, генерацию шаблонного кода и суммаризацию уходят в восемь CLI. Проектирование, архитектурные решения, компромиссы и код с секретами остаются локально.

Внутри — модули оценки задач, расчёта стоимости, шаблонов передачи и устранения ошибок. Отключить делегирование можно переменной CONJURE_DELEGATION=off или ключом "enabled": false в ~/.claude/hooks/delegation/config.json. Если ни один провайдер не ответил, скилл выполняет задачу локально и пишет, какие CLI пробовал.

Для MCP-серверов без Dynamic Client Registration (Slack) можно подать заранее настроенные OAuth-учётные данные через claude mcp add <server-name> --client-id <id> --client-secret <secret>. В Claude Code 2.1.46+ доступны коннекторы из claude.ai/settings/connectors — они подключаются автоматически при входе в аккаунт.

Какие задачи решает

  • делегировать обработку больших объёмов данных внешним моделям
  • оставить архитектурные решения и дизайн локально, не передавая их в CLI
  • отключить делегирование для задач с секретами или учётными данными
  • подключить OAuth-аутентификацию для MCP-серверов без Dynamic Client Registration
  • автоматически использовать коннекторы из claude.ai в Claude Code

Примеры запросов агенту

  • Извлеки все email-адреса из contacts.csv и запиши в emails.txt
  • Сгенерируй пять вариантов заголовков для статьи про делегирование задач
  • Подсчитай, сколько раз встречается слово delegate в репозитории

Как установить delegation-core

1Через Skills CLI (Vercel)

npx skills add athola/claude-night-market --skill delegation-core -a claude-code

2Вручную: положить файлы

~/.claude/skills/delegation-core/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/delegation-core/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о delegation-core

Как установить delegation-core в Claude Code?

Запусти npx skills add athola/claude-night-market --skill delegation-core -a claude-code, затем открой ~/.claude/skills/delegation-core/SKILL.md.

Что делает delegation-core?

Определяет, какие задачи передать внешним CLI (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer), а какие оставить Claude. Делегирует исполнение, оставляет проектирование локально.

Как отключить делегирование в delegation-core?

Установи переменную окружения CONJURE_DELEGATION=off для одного запуска или добавь "enabled": false в ~/.claude/hooks/delegation/config.json для всей машины.

Исходный текст

SKILL.md · MIT
---
name: delegation-core
description: Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer). Use for execution tasks. Do not use for secrets.
alwaysApply: false
category: delegation-framework
tags:
- delegation
- external-llm
- gemini
- qwen
- minimax
- glm
- muse
- codex
- opencode
- task-management
- quality-control
dependencies:
- leyline:quota-management
- leyline:usage-logging
- leyline:service-registry
- leyline:error-patterns
- leyline:authentication-patterns
tools: []
usage_patterns:
- task-assessment
- delegation-planning
- quality-validation
- integration-workflows
complexity: intermediate
model_hint: standard
estimated_tokens: 600
progressive_loading: true
modules:
- modules/provider-onboarding.md
- modules/task-assessment.md
- modules/cost-estimation.md
- modules/handoff-patterns.md
- modules/troubleshooting.md
references:
- leyline/skills/quota-management/SKILL.md
- leyline/skills/usage-logging/SKILL.md
- leyline/skills/error-patterns/SKILL.md
- leyline/skills/authentication-patterns/SKILL.md
- leyline/skills/service-registry/SKILL.md
- references/execution-modes.md
---

# Delegation Core Framework

## Overview

A method for deciding when and how to delegate tasks to external LLM services. Core principle: **delegate execution, retain high-level reasoning**.

## Default Posture

**Delegation is on. Declining it is the step that takes a decision.**

Any conjure operation, mission phase, or workflow that reaches eligible
work delegates it without being asked.
Eligible means the work is execution rather than reasoning, which the
philosophy below defines and `modules/task-assessment.md` classifies.
An operator who wants delegation off says so once, in one of the two
places under Declining Delegation.

This inverts the earlier framing, which listed the occasions on which to
delegate and so made delegation something a caller had to remember.
The occasions were correct and are now the exception list instead.

## Keep Local

Delegation stops at the boundary the philosophy draws.
Keep the work local when any of these hold:

- The task is reasoning: architecture, design, trade-offs, judgment.
- The prompt or context carries a secret, a credential, or data that
  should not leave the machine.
- The task needs iteration with the operator turn by turn.
- Correctness cannot be validated after the fact.

The first is the standing exception and covers most of what Claude does.
The rest are the red flags `modules/task-assessment.md` already lists.

## Declining Delegation

Two switches, environment over file.

| Scope | How | Effect |
|-------|-----|--------|
| One run | `CONJURE_DELEGATION=off` | No provider is probed or spawned |
| One machine | `"enabled": false` in `~/.claude/hooks/delegation/config.json` | Same, until the key changes |

`CONJURE_DELEGATION` accepts `off`, `0`, `false`, `no` and their
opposites, in any case.
Setting it to an on spelling re-enables delegation that the config file
turned off, so the narrower scope wins.
A disabled delegator returns a result whose `fallback_reason` is
`delegation_disabled` and spawns nothing, so opting out costs nothing.

## When No Provider Answers

`smart_delegate` works down the registry order and returns the first
real answer.
A provider that is missing, unauthenticated, failing, or answering with
an empty stdout is recorded and the chain moves on.

When it reaches the end, it returns a result with
`fallback_reason` set to `providers_exhausted` and an `attempts` trail
naming what each provider did.
**That result is the instruction to do the work locally.** Read it, say
which providers were tried and why none answered, and then do the task
yourself.
Do not treat it as an error to report and stop on: a machine with no CLI
installed is the ordinary case for this default, not a fault.

When the operator wants providers answering rather than falling back,
`modules/provider-onboarding.md` carries the per-provider steps and the
failure shapes that do not look like authentication problems.
Start with `make -C plugins/conjure delegate-doctor`.

## Philosophy

**Delegate execution, retain reasoning.** Claude handles architecture, strategy, design, and review. External LLMs perform data processing, pattern extraction, bulk operations, and summarization.

## Delegation Flow

1. **Task Assessment**: Classify task by complexity and context size.
2. **Suitability Evaluation**: Check prerequisites and service fit.
3. **Handoff Planning**: Formulate request and document plan.
4. **Execution & Integration**: Run delegation, validate, and integrate results.

## Quick Decision Matrix

| Complexity | Context | Recommendation |
|------------|---------|----------------|
| High | Any | Keep local |
| Low | Large | Delegate |
| Low | Small | Either |

**High Complexity**: Architecture, design decisions, trade-offs, creative problem solving.

**Low Complexity**: Pattern counting, bulk extraction, boilerplate generation, summarization.

## Detailed Workflow Steps

### 1. Task Assessment (`delegation-core:task-assessed`)

Classify the task:
- See `modules/task-assessment.md` for classification criteria.
- Use token estimates to determine thresholds.
- Apply the decision matrix.

**Exit Criteria**: Task classified with complexity level, context size, and delegation recommendation.

### 2. Suitability Evaluation (`delegation-core:delegation-suitability`)

Verify prerequisites:
- See `modules/handoff-patterns.md` for checklist.
- Evaluate cost-benefit ratio using `modules/cost-estimation.md`.
- Check for red flags (security, real-time iteration).

**Exit Criteria**: Service authenticated, quotas verified, cost justified.

### 3. Handoff Planning (`delegation-core:handoff-planned`)

Create a delegation plan:
- See `modules/handoff-patterns.md` for request template.
- Document service, command, input context, expected output.
- Define validation method.

**Exit Criteria**: Delegation plan documented.

### 4. Execution & Integration (`delegation-core:results-integrated`)

Execute and validate results:
- Run delegation and capture output.
- Validate format and correctness.
- Integrate only after validation passes.
- Log usage.

**Exit Criteria**: Results validated and integrated, usage logged.

## MCP Authentication

### OAuth Client Credentials (Claude Code 2.1.30+)

For MCP servers that don't support Dynamic Client Registration (e.g., Slack), pre-configured OAuth client credentials can be provided:

```bash
claude mcp add <server-name> --client-id <id> --client-secret <secret>
```

This enables delegation workflows through MCP servers that require pre-configured OAuth, expanding the range of external services available for task delegation.

### Claude.ai MCP Connectors (Claude Code 2.1.46+)

As an alternative to manual OAuth setup, users can configure MCP servers directly in claude.ai at claude.ai/settings/connectors. These connectors are automatically available in Claude Code when logged in with a claude.ai account: no `claude mcp add` or credential management required. This provides a browser-based auth flow that may be simpler for services with complex OAuth requirements.

## Worktree Isolation for File-Modifying Delegations (Claude Code 2.1.49+)

When delegating tasks that modify files to subagents, use `isolation: worktree` in the agent frontmatter to run each agent in a temporary git worktree. This prevents file conflicts when multiple delegated agents operate in parallel on overlapping paths. The worktree is auto-cleaned if no changes are made; preserved with commits if the agent produces changes.

```yaml
# Agent frontmatter for isolated delegation
isolation: worktree
```

## Leyline Infrastructure

Conjure uses leyline infrastructure:

| Leyline Skill | Used For |
|---------------|----------|
| `quota-management` | Track service quotas and thresholds. |
| `usage-logging` | Session-aware audit trails. |
| `service-registry` | Unified service configuration. |
| `error-patterns` | Consistent error handling. |
| `authentication-patterns` | Auth verification. |

See `modules/cost-estimation.md` for leyline integration examples.

## Service-Specific Skills

For detailed service workflows:
- `Skill(conjure:gemini-delegation)`: Gemini CLI specifics.
- `Skill(conjure:qwen-delegation)`: Qwen MCP specifics.
- `Skill(conjure:minimax-delegation)`: MiniMax CLI specifics.
- `Skill(conjure:glm-delegation)`: GLM via the Z.ai endpoint swap.
- `Skill(conjure:muse-delegation)`: Meta Muse Code CLI specifics.
- `Skill(conjure:codex-delegation)`: OpenAI Codex CLI specifics.
- `Skill(conjure:opencode-delegation)`: OpenCode CLI specifics.

## Execution Modes

When delegating to multiple agents, choose the appropriate
execution mode:

| Mode | When to Use | How It Works |
|------|-------------|--------------|
| single-session | Sequential tasks, same-file edits | Claude works through tasks in order |
| subagents | Parallel independent tasks | Agents work independently, report back |
| agent-team | Parallel coordinated tasks | Agents can communicate with each other |

See `references/execution-modes.md` for the selection decision
matrix, mode compatibility notes, and anti-patterns to avoid.

## Module Reference

- **provider-onboarding.md**: Install and auth per provider, and how
  to read a half-configured one.
- **task-assessment.md**: Complexity classification, decision matrix.
- **cost-estimation.md**: Pricing, budgets, cost tracking.
- **handoff-patterns.md**: Request templates, workflows.
- **troubleshooting.md**: Common problems, service failures.

## Exit Criteria

- [ ] Task assessed and classified.
- [ ] Work that stayed local names which Keep Local clause held it.
- [ ] A `providers_exhausted` result was reported with its attempts
      trail and then completed locally, not abandoned.
- [ ] Results validated before integration.
- [ ] Lessons captured.

© athola · MIT · athola/claude-night-market

Похожие скиллы

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
subagent-delegation chrisbanes Скилл subagent-delegation для Claude Code структурирует процесс делегирования задач субагентам. Активируется при прямом вызове пользователем или инструкции по распределению работы. CX Codex +1 123установок competition-kerberos-delegation zhaoxuya520 Скилл competition-kerberos-delegation для Claude Code, автоматизирующий анализ цепочек делегирования Kerberos в CTF-сценариях. Запускается после настройки контекста через $ctf-sandbox-orchestrator для проверки путей эксплуатации. CX Codex +1 109установок delegation Paweł Huryn Скилл delegation для Claude Code помогает готовить задачи субагентам и оценивать их отчёты. Включается перед передачей сборки, ревью или исследования. CX Codex +1 ★ 741звёзд репо delegation-audit Son Nguyen Скилл delegation-audit разбирает, какие модели выполняли задачи субагентов, и оценивает их результативность. Помогает найти неудачные назначения и повторные запуски. CX Codex +1 ★ 1 198звёзд репо qwen-coder giuseppe-trisciuoglio Скилл qwen-coder для Claude Code делегирует кодинг Qwen Coder CLI. Срабатывает по явной просьбе написать, переписать, отладить или разобрать архитектуру. CX Codex +1 3 500установок qwen-agent thananon Скилл уводит мелкую механическую работу к дешёвой модели Qwen через claude-9arm, чтобы квота Claude уходила на задачи, где нужно думать. CX Codex +1 2 500установок

Из того же набора7

war-room-checkpoint Скилл war-room-checkpoint считает, насколько дорого откатить решение, и решает, нужен ли полный разбор War Room или хватит быстрой рекомендации. CX Codex +1 2установок shell-review Скилл shell-review аудирует шелл-скрипты на маскировку кодов возврата, переносимость POSIX и безопасность перед коммитом. CX Codex +1 1установок review-chamber Скилл review-chamber сохраняет важные выводы из ревью PR и помогает находить их при дальнейшей работе. Подходит для фиксации архитектурных решений, повторяющихся проблем и стандартов кода. CX Codex +1 1установок war-room Скилл war-room созывает совет из нескольких LLM для проверки труднообратимых архитектурных решений через оценку обратимости и оппонирование. CX Codex +1 1установок skills-eval Скилл skills-eval для Claude Code проверяет структуру, расход токенов и интеграцию инструментов в других скиллах. Находит проблемы и составляет план исправлений. CX Codex +1 1установок precommit-setup Скилл precommit-setup настраивает трёхуровневую систему pre-commit хуков: линтинг, проверку типов и тесты перед каждым коммитом. CX Codex +1 1установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой