Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

qwen-code-skillQwen 代码技能

Agent Skill

qwen-code-skill 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

19,388

周安装

792

GitHub Stars

公开资料未说明

下载量

6,209
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:qwen-code-skill(Qwen 代码技能)
来源仓库:https://github.com/userb1ank/qwen-code-skill
安装命令:
openclaw skills install qwen-code-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install qwen-code-skill

简介

通过阿里云 Qwen Code CLI 执行任务、代码审查和自动化操作。

  • 适合在 OpenClaw 中运行后台进程处理开发相关需求。
  • 可用于代码分析、重构建议或自动化测试流程。
  • 安装命令:openclaw skills install qwen-code-skill,需确认环境配置。
  • 注意 CLI 依赖与网络访问权限,避免影响系统稳定性。

SKILL.md

name
qwen-code
description
Run Alibaba Cloud Qwen Code CLI via background process for task execution, code review, and automation.
metadata
{"clawdbot":{"emoji":"🦌","requires":{"anyBins":["qwen"]}}}
author
UserB1ank

Qwen Code Skill (background-first)

Use bash background mode for non-interactive coding work with Qwen Code CLI.

The Pattern: workdir + background

# Start Qwen Code in target directory
bash workdir:~/project background:true yieldMs:30000 command:"qwen -p 'Build a Flask API'"
# Returns sessionId for tracking

# Monitor progress
process action:log sessionId:XXX

# Check if done
process action:poll sessionId:XXX

# Send input (if Qwen asks a question)
process action:write sessionId:XXX data:"y"

# Kill if needed
process action:kill sessionId:XXX

Why workdir matters: Agent wakes up in a focused directory, doesn't wander off reading unrelated files.


Quick Start

Prerequisites

# Install Qwen Code CLI
npm install -g @qwen-code/qwen-code@latest

# Verify installation
qwen --version

# Authenticate (Option 1: OAuth)
qwen auth login

# Or Option 2: API Key
export DASHSCOPE_API_KEY="sk-xxx"

Basic Usage

# Check status
scripts/qwen-code.js status

# Run a task
scripts/qwen-code.js run "Create a Flask API"

# Code review
scripts/qwen-code.js review src/app.ts

# Headless mode (JSON output)
scripts/qwen-code.js headless "Analyze code" -o json

Commands

CommandDescriptionExample
statusCheck Qwen Code status and authenticationscripts/qwen-code.js status
run <task>Execute programming taskscripts/qwen-code.js run "Create REST API"
review <file>Code review and analysisscripts/qwen-code.js review src/main.py
headless <task>Headless mode (JSON output)scripts/qwen-code.js headless "Analyze" -o json
helpShow help informationscripts/qwen-code.js help

OpenClaw Integration

Background Execution

# Basic task
bash workdir:~/project background:true yieldMs:30000 \
  command:"qwen -p 'Create Python Flask API'"

# Specify model
bash workdir:~/project background:true yieldMs:30000 \
  command:"qwen -p 'Analyze code structure' -m qwen3-coder-plus"

# YOLO mode (auto-approve)
bash workdir:~/project background:true yieldMs:30000 \
  command:"qwen -p 'Refactor this function' -y"

Process Management

# View logs
process action:log sessionId:XXX

# Check completion
process action:poll sessionId:XXX

# Send input (if Qwen asks)
process action:write sessionId:XXX data:"y"

Headless Mode (Automation/CI/CD)

# JSON output
qwen -p "Analyze code structure" --output-format json

# Pipeline operations
git diff | qwen -p "Generate commit message"

# Batch processing
find src -name "*.ts" | xargs -I {} qwen -p "Review {}"

Models

Qwen Code supports Alibaba Cloud models:

  • qwen3.5-plus - General purpose (default)
  • qwen3-coder-plus - Coding specialized
  • qwen3-coder-next - Latest coding model
  • qwen3-max-2026-01-23 - Most capable

Specify model:

bash workdir:~/project background:true yieldMs:30000 \
  command:"qwen -p 'Refactor this' -m qwen3-coder-plus"

Authentication

OAuth (Recommended)

qwen auth login

Opens browser for OAuth flow. Token auto-refreshes.

API Key

export DASHSCOPE_API_KEY="sk-xxx"

Get key from: https://dashscope.console.aliyun.com/


⚠️ Rules

  1. Respect tool choice — if user asks for Qwen, use Qwen. NEVER offer to build it yourself!
  2. Be patient — don't kill sessions because they're "slow"
  3. Monitor with process:log — check progress without interfering
  4. YOLO mode for building--yolo auto-approves changes (use in workspace only)
  5. Review mode for safety — production code should use review mode
  6. Parallel is OK — run many Qwen processes at once for batch work
  7. NEVER start Qwen in ~/clawd/ — it'll read your soul docs! Use target project dir or /tmp
  8. Workspace safety — YOLO mode is safe in agents.defaults.workspace, not elsewhere

For

  • Developers using Qwen Code for programming tasks
  • Teams needing code review and analysis
  • Automation scripts and CI/CD integration
  • OpenClaw Sub-Agent and Skills management
  • Batch code analysis and refactoring

Not For

  • Environments without Qwen Code CLI installed
  • GUI-based interaction requirements
  • Non-Alibaba Cloud LLM users
  • Offline environments (requires network connection)

Security & Boundaries

ComponentBehaviorExecutes Shell Commands?
scripts/qwen-code.jsWraps Qwen Code CLI commandsYes (via qwen command)
references/qwen-cli-commands.mdCommand reference documentationNo (plain text)
assets/examples/Example code filesNo (static files)

⚠️ Security Notes

  • This Skill does not execute code directly, only calls Qwen Code CLI
  • All code generation and modifications require user confirmation
  • Use review mode in production environments
  • Disable YOLO mode for sensitive projects

Examples

See assets/examples/ for complete examples:

ExampleDescription
basic-task.example.shBasic task execution
code-review.example.shCode review workflow
ci-cd.example.ymlGitHub Actions integration
headless-mode.example.jsNode.js automation example

References


Troubleshooting

"qwen: command not found"

npm install -g @qwen-code/qwen-code@latest

"Authentication required"

qwen auth login
# Or set API key
export DASHSCOPE_API_KEY="sk-xxx"

Session stuck/waiting for input

# Check what Qwen is asking
process action:log sessionId:XXX

# Send approval
process action:write sessionId:XXX data:"y"

Kill stuck session

process action:kill sessionId:XXX

*Qwen Code Skill 🦌 - Your AI coding partner powered by Alibaba Cloud*

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77.26%
按下载量换算4,797

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills