Command Palette

Search for a command to run...

Назад к скиллам
скилл № 31690

Qwen

Build and route Qwen chat, coding, reasoning, and vision workflows across hosted and self-hosted endpoints with safer debugging.

БесплатноБез исполняемых скриптов
clawicот clawic★ 23 звезды на GitHub

Установить Qwen в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

When to Use

User needs Qwen to work reliably for chat, coding, reasoning, structured outputs, or vision. Agent handles surface selection, live model verification, hosted-versus-local tradeoffs, and failure recovery before the workflow reaches production.

Architecture

Memory lives in ~/Clawic/data/qwen/. If ~/Clawic/data/qwen/ does not exist, run setup.md. See memory-template.md for structure.

~/Clawic/data/qwen/
├── memory.md         # Status, activation rules, and deployment defaults
├── routes.md         # Preferred route per workload
├── servers.md        # Known local or hosted endpoints
├── experiments.md    # Prompt, parser, and latency notes
└── logs/             # Optional sanitized repro payloads

Quick Reference

Use the smallest file that resolves the blocker.

Topic File
Setup process setup.md
Memory template memory-template.md
Hosted and local request patterns api-patterns.md
Workload routing matrix routing-matrix.md
Hosted versus self-hosted decisions deployment-paths.md
Tool-calling and structured output guardrails tool-calling.md
Debugging and recovery troubleshooting.md

Requirements

  • curl and jq for minimal endpoint checks
  • Hosted Qwen usually needs a DASHSCOPE_API_KEY
  • Self-hosted Qwen may use Ollama, vLLM, SGLang, or another OpenAI-compatible server
  • Keep secrets in environment variables only

Core Rules

1. Lock the Surface Before Tuning the Model

  • Identify the real execution surface first: Alibaba Model Studio hosted API, another OpenAI-compatible provider, or a self-hosted server.
  • Most "Qwen issues" are actually endpoint, region, server, or chat-template issues rather than model quality issues.

2. Verify Live Availability Before Naming Any Model

  • Start with a /models or equivalent health check and copy the live model ID from the response.
  • Never trust stale screenshots, old blog posts, or remembered IDs for production routing.

3. Route by Workload, Not by Brand Loyalty

  • Split the request into one of these paths: fast chat, deep reasoning, coding agent, deterministic JSON, or vision.
  • Pick the smallest Qwen family and server path that can reliably do that job.

4. Treat Structured Output as a Separate Reliability Problem

  • If Qwen is feeding tools, JSON, or downstream writes, use strict schemas, low temperature, and parser validation before acting.
  • If the first pass is creative or reasoning-heavy, add a second deterministic normalization pass instead of forcing one prompt to do both.

5. Separate Model Problems From Server Problems

  • When behavior changes after migration, isolate the variable: model family, quantization, chat template, reasoning mode, parser, or backend.
  • Reproduce with one minimal payload before changing prompts, infrastructure, and business logic at the same time.

6. Compare Hosted and Self-Hosted Explicitly

  • Hosted Qwen usually wins on speed to first success and managed multimodal access.
  • Self-hosted Qwen only wins when privacy, local cost control, or offline use clearly outweigh operational overhead.

7. Ask Before Creating Persistent State

  • Work statelessly by default.
  • Only create ~/Clawic/data/qwen/ notes, saved routes, or repro logs after the user wants continuity across Qwen tasks.

Common Traps

  • Treating "Qwen" as one interchangeable thing -> hosted APIs, Ollama, vLLM, and agent frameworks behave differently.
  • Hardcoding dated model IDs -> region and release cadence make old IDs fail fast.
  • Mixing free-form reasoning with strict JSON output -> parsing breaks when one prompt is asked to do both.
  • Blaming the model for local slowness -> Apple Silicon and Ollama often fail because of model size, quantization, or oversized context.
  • Migrating from another OpenAI-compatible backend without rechecking tool-calling -> parser and chat-template differences can break automation.

External Endpoints

Use only the smallest hosted endpoint that answers the current question.

Endpoint Data Sent Purpose
https://dashscope.aliyuncs.com/compatible-mode/v1/models Auth header only Mainland China model discovery
https://dashscope-intl.aliyuncs.com/compatible-mode/v1/models Auth header only International model discovery
https://dashscope-us.aliyuncs.com/compatible-mode/v1/models Auth header only United States model discovery
https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions Prompt messages and options Hosted Qwen chat completions in Beijing region
https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions Prompt messages and options Hosted Qwen chat completions in Singapore region
https://dashscope-us.aliyuncs.com/compatible-mode/v1/chat/completions Prompt messages and options Hosted Qwen chat completions in Virginia region

No other data is sent externally.

Security & P

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • _meta.json
  • api-patterns.md
  • deployment-paths.md
  • memory-template.md
  • routing-matrix.md
  • setup.md
  • tool-calling.md
  • troubleshooting.md

FAQ

Что делает скилл Qwen?

Build and route Qwen chat, coding, reasoning, and vision workflows across hosted and self-hosted endpoints with safer debugging.

Как установить скилл Qwen?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Qwen запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить Qwen с