Coding

Alibaba Cloud AI Code Qwen Coder

Try it

Use when code generation, repository understanding, or coding-agent tasks need Alibaba Cloud Model Studio Qwen Coder models (`qwen3-coder-next`, `qwen3-coder...

What it does

Use when code generation, repository understanding, or coding-agent tasks need Alibaba Cloud Model Studio Qwen Coder models (`qwen3-coder-next`, `qwen3-coder...

The skill document

Category: provider

Model Studio Qwen Coder

Validation

mkdir -p output/aliyun-qwen-coder
python -m py_compile skills/ai/code/aliyun-qwen-coder/scripts/prepare_code_request.py && echo "py_compile_ok" > output/aliyun-qwen-coder/validate.txt

Pass criteria: command exits 0 and output/aliyun-qwen-coder/validate.txt is generated.

Output And Evidence

  • Save prompts, repository context summaries, and normalized coding request payloads under output/aliyun-qwen-coder/.
  • Record the exact model, endpoint mode, and target language/framework for reproducibility.

Use Qwen Coder for coding assistants, code review drafting, repository-level reasoning, patch planning, and tool-using software agents.

Critical model names

Use one of these exact model strings as appropriate:

  • qwen3-coder-next
  • qwen3-coder-plus
  • qwen-coder-plus
  • qwen2.5-coder-32b-instruct

Prerequisites

  • Install SDK in a virtual environment:
python3 -m venv .venv
. .venv/bin/activate
python -m pip install dashscope
  • Set DASHSCOPE_API_KEY in your environment, or add dashscope_api_key to ~/.alibabacloud/credentials.
  • Prefer the OpenAI-compatible endpoint when a client does not yet expose the latest coder models in dropdown UI.

Normalized interface (code.generate)

Request

  • messages (array, required)
  • model (string, optional): default qwen3-coder-next
  • repository_summary (string, optional)
  • files (array, optional)
  • language (string, optional)
  • tools (array, optional)
  • stream (bool, optional)

Response

  • text (string)
  • patch (string, optional)
  • usage (object, optional)

Quick start

python skills/ai/code/aliyun-qwen-coder/scripts/prepare_code_request.py \
  --task "Refactor request validation into a small helper and add one unit test." \
  --language python

Operational guidance

  • Pass only the files relevant to the requested change to reduce noise.
  • Use qwen3-coder-next for current-generation coding tasks and qwen3-coder-plus when you need a stronger but potentially costlier coder.
  • For repo-scale changes, include architecture notes and expected test commands.
  • Prefer deterministic prompts and pinned model IDs for benchmarking or regression comparison.

Output location

  • Default output: output/aliyun-qwen-coder/requests/
  • Override base dir with OUTPUT_DIR.

References

  • references/sources.md

Related skills

Use when generating or reasoning over text with Alibaba Cloud Model Studio Qwen flagship text models (`qwen3-max`, `qwen3.5-plus`, `qwen3.5-flash`, snapshots...

13 installs

Use when routing Alibaba Cloud Model Studio requests to the right local skill (Qwen text, coder, deep research, image, video, audio, search and multimodal sk...

12 installs

Route Alibaba Cloud Model Studio requests to the right local skill (Qwen Image, Qwen Image Edit, Wan Video, Wan R2V, Qwen TTS, Qwen ASR and advanced TTS vari...

60 installs

Use when tasks require all-in-one multimodal understanding or generation with Alibaba Cloud Model Studio Qwen Omni models, including image-plus-audio interac...

16 installs