delegation-core

Delegate tasks to external LLM services (Gemini, Qwen) with quota, logging,

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "delegation-core" with this command: npx skills add athola/nm-conjure-delegation-core

Night Market Skill — ported from claude-night-market/conjure. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Table of Contents

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.

When To Use

  • Before invoking external LLMs for task assistance.
  • When operations are token-heavy and exceed local context limits.
  • When batch processing benefits from different model characteristics.
  • When tasks require routing between models.

When NOT To Use

  • Task requires reasoning by Claude

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

ComplexityContextRecommendation
HighAnyKeep local
LowLargeDelegate
LowSmallEither

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:

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.

# Agent frontmatter for isolated delegation
isolation: worktree

Leyline Infrastructure

Conjure uses leyline infrastructure:

Leyline SkillUsed For
quota-managementTrack service quotas and thresholds.
usage-loggingSession-aware audit trails.
service-registryUnified service configuration.
error-patternsConsistent error handling.
authentication-patternsAuth 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.

Execution Modes

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

ModeWhen to UseHow It Works
single-sessionSequential tasks, same-file editsClaude works through tasks in order
subagentsParallel independent tasksAgents work independently, report back
agent-teamParallel coordinated tasksAgents 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

  • 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.
  • Delegation decision justified.
  • Results validated before integration.
  • Lessons captured.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated