Skip to content
Development
Skill

/delegation-core

Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer). Use for execution tasks. Do not use for secrets.

From plugin
claude-night-market
343200 skills60 agents162 commands1 MCP

Claude Code

$ npx -y skills add athola/claude-night-market --skill delegation-core --agent claude-code

SKILL.md

delegation-core.SKILL.md
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
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

Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other skills on claude-night-market.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about delegation-core.

Which coding agents can use delegation-core?
delegation-core installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.