MCPcopy Index your code
hub / github.com/QwenLM/qwen-code-examples

github.com/QwenLM/qwen-code-examples @v0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1 ↗ · + Follow
178 symbols 396 edges 50 files 9 documented · 5%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Qwen Code Examples

This repository contains a collection of practical examples and best practices for Qwen Code, designed to help developers leverage the power of Qwen-based models in their workflows.

The project includes examples for:

  • Custom Commands: Tailored command-line interactions for specific tasks.
  • Custom Skills: Specialized toolsets for complex workflows (e.g., image generation, content extraction).
  • SDK Usage: Practical code snippets showing how to integrate Qwen Code SDKs into your projects.

Project Structure

.
├── apps/               # Production-ready demo 
├── sdk/                # SDK usage examples  
├── vibe/               # Marketing materials 
└── README.md

Demo Apps

Production-ready applications built on Qwen Code SDK, targeting different professional personas:

App Target User Description
ProtoFlow Product Managers bolt.new-style rapid prototyping — one sentence to functional prototype
DesignPrint Designers lovart-inspired print design tool — A5 brochures, banners, posters
CoWork Office Workers Daily task assistant — emails, notes, reports
NoteGenius Content Creators NotebookLM-style workspace — write articles with AI-generated illustrations
PromoStudio Video Creators Promotional video maker — powered by Remotion and Wanx

See apps/README.md for detailed documentation.

Featured Skills

1. YouTube Transcript Extractor

Extracts timestamped transcripts from YouTube videos for translation, summarization, and content creation.

  • Location: skills/youtube-transcript-extractor/
  • Key Features: Auto-language detection, timestamp formatting, and local file saving.

2. Image Generation Skill

Generates high-quality images from text descriptions using Alibaba Cloud's DashScope (Wanx).

  • Location: skills/image-generate/
  • Key Features: Smart prompt optimization for hand-drawn styles and automated asset management.

Marketing Materials

Qwen Code Brochures

Professional brochures introducing Qwen Code features and capabilities in multiple languages.

  • Location: vibe/brochure/
  • Contents:
  • qwen-code.html - Chinese version of the introduction brochure
  • qwen-code.en.html - English version of the introduction brochure

Getting Started

Prerequisites

  • Python 3.9+ (for Python-based skills)
  • Node.js (for JavaScript-based skills)
  • API Keys (as required by specific skills, e.g., DASHSCOPE_API_KEY)

Installation

Clone the repository and install dependencies for the specific skill you want to use:

git clone https://github.com/your-username/qwen-code-examples.git
cd qwen-code-examples

Refer to the SKILL.md file within each skill directory for detailed setup instructions.

Contributing

We welcome contributions! If you have a Qwen Code use case or example you'd like to share, feel free to open a Pull Request.

License

MIT License

Extension points exported contracts — how you extend this code

Window (Interface)
(no doc)
apps/qwen-cowork/types.d.ts
Message (Interface)
(no doc)
sdk/src/types/chat.ts
StartSessionModalProps (Interface)
(no doc)
apps/qwen-cowork/src/ui/components/StartSessionModal.tsx
Conversation (Interface)
(no doc)
sdk/src/types/chat.ts
SettingsModalProps (Interface)
(no doc)
apps/qwen-cowork/src/ui/components/SettingsModal.tsx
Session (Interface)
(no doc)
sdk/src/types/chat.ts
PromptInputProps (Interface)
(no doc)
apps/qwen-cowork/src/ui/components/PromptInput.tsx
ChatRequest (Interface)
(no doc)
sdk/src/types/chat.ts

Core symbols most depended-on inside this repo

emit
called by 14
apps/qwen-cowork/src/electron/ipc-handlers.ts
cn
called by 13
sdk/src/lib/utils.ts
close
called by 11
sdk/demo/cli-chatbot.ts
ipcMainHandle
called by 8
apps/qwen-cowork/src/electron/util.ts
updateSession
called by 8
apps/qwen-cowork/src/electron/libs/session-store.ts
createSession
called by 6
apps/qwen-cowork/src/ui/store/useAppStore.ts
isDev
called by 5
apps/qwen-cowork/src/electron/util.ts
getSession
called by 4
apps/qwen-cowork/src/electron/libs/session-store.ts

Shape

Function 116
Method 31
Interface 23
Class 8

Languages

TypeScript99%
Python1%

Modules by API surface

sdk/src/lib/chat-session.ts22 symbols
apps/qwen-cowork/src/ui/components/EventCard.tsx19 symbols
apps/qwen-cowork/src/electron/libs/session-store.ts16 symbols
sdk/demo/cli-chatbot.ts8 symbols
sdk/src/components/ui/card.tsx7 symbols
sdk/src/components/chat/ErrorBoundary.tsx7 symbols
sdk/src/types/chat.ts6 symbols
sdk/src/app/chat/page.tsx6 symbols
apps/qwen-cowork/src/ui/components/PromptInput.tsx6 symbols
apps/qwen-cowork/src/electron/test.ts6 symbols
apps/qwen-cowork/src/electron/ipc-handlers.ts6 symbols
sdk/src/app/api/chat/send/route.ts5 symbols

For agents

$ claude mcp add qwen-code-examples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact