upstage-solar-delegation

Delegate longer user-facing text generation to Upstage Solar Pro3 while keeping the primary model for planning and tool calls. Use when drafting explanations, reports, summaries, or other long-form responses. Delegation is controlled by session enablement and a token threshold.

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 "upstage-solar-delegation" with this command: npx skills add upstage-deployment/upstage-solar-delegation

Upstage Solar Delegation

Delegate long text generation to Upstage Solar Pro3 while the primary model focuses on planning, reasoning, and tool calls.

Call Routes

RouteModelEnv VariableDescription
Upstage Directsolar-pro3UPSTAGE_API_KEYDirect Upstage API call (recommended)
Via OpenRouteropenrouter/upstage/solar-pro-3OPENROUTER_API_KEYCall through OpenRouter

Upstage Direct (Recommended)

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["UPSTAGE_API_KEY"],
    base_url="https://api.upstage.ai/v1"
)

response = client.chat.completions.create(
    model="solar-pro3",
    messages=[{"role": "user", "content": "Write a detailed report..."}]
)
print(response.choices[0].message.content)

Get your key at console.upstage.ai.

Via OpenRouter

Model reference: https://openrouter.ai/upstage/solar-pro-3

Enabled Sessions

Check runtime/session settings to see where delegation is enabled.

Typical values:

  • main: direct/main session
  • slack: Slack messages
  • telegram: Telegram messages

If the current session is not enabled, skip delegation and respond directly.

Delegation Threshold

Use a minimum output-token threshold:

  • estimated output tokens >= threshold → delegate to Solar
  • estimated output tokens < threshold → respond directly

Common examples:

  • 0: delegate all responses
  • 200: delegate medium/long responses only

If no threshold is configured, use 200 as default.

How to Delegate

  1. Estimate output token length.
  2. Check whether current session is enabled.
  3. If enabled and estimate >= threshold, run sessions_spawn with Solar Pro3.

Example spawn task pattern:

<context + writing instruction>

Important: Do not use any tools. Output text only. No file read/write or tool calls allowed.

Set model to:

  • solar-pro3 (Upstage direct — recommended)
  • openrouter/upstage/solar-pro-3 (via OpenRouter)

Main Session

Use sessions_spawn and wait for auto-announced result.

Messenger Sessions (Slack/Telegram/etc.)

Use sessions_spawn, then fetch the final assistant text and forward it through the appropriate message channel/thread.

If no final text arrives within a reasonable timeout, fall back to direct response.

Output Files

  • Inline default: when the user expects the response in chat, do NOT write a file — return the text directly.
  • When saving to disk: write to <system-temp>/<timestamp>-solar.<ext> (e.g., /tmp/20260504-153022-solar.md). Pick .md for markdown content, .txt for plain prose.
  • Override: if the user specifies an output path, use it.
  • Always print the resolved absolute path when writing to disk.

Rules

  • Pass through Solar output as-is (no extra summary/footer/metadata).
  • Keep non-user-facing orchestration text minimal.
  • Do not output intermediate narration between tool calls.
  • Always include the “no tool call” instruction in spawn tasks.

Decision Guide

Delegate when above threshold and user expects substantial writing:

  • explanations
  • summaries
  • reports
  • long-form answers

Keep direct response for:

  • short operational confirmations
  • urgent low-latency replies
  • responses that must include immediate tool-call outputs

Configuration Changes

Users may request:

  • threshold changes (e.g., “set threshold to 300”)
  • session enable/disable (e.g., enable delegation in Slack)

Apply updates to persistent memory/config used by your environment.

First-Time Setup

Option A: Upstage Direct (Recommended)

  1. Confirm user wants setup.
  2. Verify UPSTAGE_API_KEY environment variable is configured. Get key at console.upstage.ai.
  3. Set base_url to https://api.upstage.ai/v1, model to solar-pro3.
  4. Confirm delegation is active and report current threshold.

Option B: Via OpenRouter

  1. Confirm user wants setup.
  2. Confirm OpenRouter API key is available (OPENROUTER_API_KEY).
  3. Add OpenRouter provider + Solar model via gateway config update.
  4. Restart/reload gateway as required.
  5. Confirm delegation is active and report current threshold.

For manual setup details, see references/setup-guide.md.

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

权威采招政策与标讯指南-元博网

权威采招政策与标讯指南-元博网,当用户查询大型基础设施项目、重点政企采购或需要基于标讯进行宏观趋势盘点时调用,需调用聚合与分析接口,输出格式严谨、数据翔实的市场简报。

Registry SourceRecently Updated
1300pkuycl
General

全国采招大数据中心-采招网

全国采招大数据中心-采招网,当用户需要跨省份、跨行业的全盘数据检索或综合企业画像分析时调用,需综合运用检索与企业画像接口,提供全景式的数据展现。

Registry SourceRecently Updated
1210pkuycl
General

海量标讯智搜助手-标800

海量标讯智搜助手-标800,当用户提供复杂的搜索条件(多个关键词、排除特定词汇、指定金额区间)时调用,需精确组合查询条件,过滤无效信息,提供高准确率的数据反馈。

Registry SourceRecently Updated
1250pkuycl
General

工程建设招投标分析-建设通

工程建设招投标分析-建设通,当搜索词包含工程、施工、建筑、市政、监理、设计等建筑业专属词汇时触发,聚焦工程项目金额、中标单位资质背景,重点提取建筑类项目核心字段并进行业绩汇总。

Registry SourceRecently Updated
1510pkuycl