Qwen
by @ivangdavila
Build and route Qwen chat, coding, reasoning, and vision workflows across hosted and self-hosted endpoints with safer debugging.
clawhub install qwenπ About This Skill
name: Qwen slug: qwen version: 1.0.0 homepage: https://clawic.com/skills/qwen description: Build and route Qwen chat, coding, reasoning, and vision workflows across hosted and self-hosted endpoints with safer debugging. changelog: Initial release with hosted and self-hosted Qwen routing, API patterns, tool-calling guidance, and troubleshooting playbooks. metadata: {"clawdbot":{"emoji":"π§©","requires":{"bins":["curl","jq"],"env":["DASHSCOPE_API_KEY"]},"os":["linux","darwin","win32"],"configPaths":["~/qwen/"]}}
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 ~/qwen/. If ~/qwen/ does not exist, run setup.md. See memory-template.md for structure.
~/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 checksDASHSCOPE_API_KEYCore Rules
1. Lock the Surface Before Tuning the Model
2. Verify Live Availability Before Naming Any Model
/models or equivalent health check and copy the live model ID from the response.3. Route by Workload, Not by Brand Loyalty
4. Treat Structured Output as a Separate Reliability Problem
5. Separate Model Problems From Server Problems
6. Compare Hosted and Self-Hosted Explicitly
7. Ask Before Creating Persistent State
~/qwen/ notes, saved routes, or repro logs after the user wants continuity across Qwen tasks.Common Traps
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 & Privacy
Data that leaves your machine:
Data that stays local:
~/qwen/ after user approvalThis skill does NOT:
Scope
This skill ONLY:
This skill NEVER:
~/qwen/Trust
Using hosted Qwen sends prompt data to Alibaba Cloud Model Studio. Only install if you trust that service with your data, or keep Qwen fully self-hosted.
Related Skills
Install withclawhub install if user confirms:
models β choose model families and cost tiers before locking Qwen into productionapi β debug auth, payloads, retries, and OpenAI-compatible request shapescoding β tighten agent coding workflows after the Qwen route itself is stablechat β improve conversation shaping once the Qwen route itself is stablememory β store durable routing choices and repeated migration lessonsFeedback
clawhub star qwenclawhub syncβ‘ 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.