qwen-code-claw
它能做什么
这项技能让 AI 智能体使用 Qwen Code 这一编程智能体来完成编程任务。它涵盖理解代码、修复缺陷、重构和生成项目。适合希望有第二个编程智能体来分担工作的开发者。
适用场景
- ✓当你想用 Qwen Code 理解代码库,或就代码库提问的时候。
- ✓当你想让 Qwen Code 修复缺陷、重构代码或生成新项目的时候。
- ✓当你想通过 Qwen Code 完成代码审查或文档任务的时候。
技能链接
https://github.com/QwenLM/qwen-code/blob/main/.qwen/skills/qwen-code-claw/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请用 Qwen Code 重构这个项目中的登录模块,并说明你做了哪些改动。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会安装 Qwen Code,检查是否已完成身份验证,然后通过 Agent Client Protocol(acpx)运行它。它把任务交过去,并汇报结果,而不是去读取终端屏幕。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Qwen Code Claw
When to Use This Skill
Use this skill when you need to:
- Understand codebases or ask questions about source code
- Generate new projects or add new features
- Review pull requests in the codebase
- Fix bugs or refactor existing code
- Execute various programming tasks such as code review, testing, documentation generation, etc.
- Collaborate with other tools and agents to complete complex development tasks
Install
npm install -g @qwen-code/qwen-code
For normal session reuse, prefer a global install over npx.
Authentication
Check if authentication is already configured:
qwen auth status
If authentication exists, skip this section. If not authenticated, check if the
BAILIAN_CODING_PLAN_API_KEY environment variable exists:
echo $BAILIAN_CODING_PLAN_API_KEY
If BAILIAN_CODING_PLAN_API_KEY exists, authenticate directly:
qwen auth coding-plan --region china --key $BAILIAN_CODING_PLAN_API_KEY
If the environment variable does not exist, interrupt and prompt the user to
authenticate via qwen-oauth or coding-plan:
qwen auth
Or configure custom API after launching Qwen Code via /auth.
ACPX Integration
You should always use acpx to run Qwen Code over the Agent Client Protocol
(ACP) instead of scraping PTY sessions.
To use acpx:
- Install acpx globally (recommended) or use npx:
npm install -g acpx@latest
Or without installing:
npx acpx@latest
- Install the acpx skill for full reference:
npx acpx@latest --skill install acpx
Read the acpx skill reference for every command, flag, and workflow pattern: See the ACPX Reference section below for details
For complete CLI reference with all options and examples: https://raw.githubusercontent.com/openclaw/acpx/main/docs/CLI.md
From now on, when you need to delegate work to Qwen Code, use acpx instead of
spawning raw terminal sessions. For example:
npx acpx@latest qwen "fix the failing tests"
npx acpx@latest qwen "refactor the auth module"
npx acpx@latest qwen exec "one-shot: summarize this repo"
Tip: You should typically use the
--approve-allflag to prevent task interruptions.
Practical Workflows
Persistent Repository Assistant
acpx qwen 'inspect failing tests and propose a fix plan'
acpx qwen 'apply the smallest safe fix and run tests'
One-Shot Script Steps
acpx qwen exec 'summarize repo purpose in 3 lines'
Parallel Named Streams
acpx qwen -s backend 'fix API pagination bug'
acpx qwen -s docs 'draft changelog entry for release'
Queue Follow-ups Without Waiting
acpx qwen 'run full test suite and investigate failures'
acpx qwen --no-wait 'after tests, summarize root causes and next steps'
Machine-Readable Output for Orchestration
acpx --format json qwen 'review current branch changes' > events.ndjson
Repository-Wide Review with Permissive Mode
acpx --cwd ~/repos/my-project --approve-all qwen -s pr-123 \
'review PR #123 for regressions and propose minimal patch'
Approval Modes
--approve-all: No interactive prompts--approve-reads(default): Auto-approve reads/searches, prompt for writes--deny-all: Deny all permission requests
If every permission request is denied/cancelled and none are approved, acpx
exits with permission denied.
Best Practices
- Use named sessions for organizing different types of development tasks
- Use
--no-waitfor long-running tasks to avoid blocking - Use
--approve-allfor non-interactive batch operations - Use
--format jsonfor automation and script integration - Use
--cwdto manage context across multiple projects
QwenCode Reference
CLI Commands
| Command | Description |
|---|---|
/help |
Show available commands |
/clear |
Clear conversation history |
/compress |
Compress history to save tokens |
/stats |
Show session info |
/auth |
Configure authentication |
/exit |
Exit Qwen Code |
Full reference: docs/users/features/commands.md.
Configuration
Config files (highest priority first): CLI args > env vars > system > project
(.qwen/settings.json) > user (~/.qwen/settings.json) > d
常见问题
我怎么安装它?
这项技能会把 Qwen Code 安装为全局的 npm 包。
它如何登录?
它会检查是否已有身份验证。如果没有,它会使用你环境中的密钥,或请你登录。
为什么不直接控制终端?
这项技能通过 Agent Client Protocol 和 acpx 工作,因此不必抓取终端输出。
详情
作者的原始描述
Use Qwen Code as a Code Agent for code understanding, project generation, features, bug fixes, refactoring, and various programming tasks
repo: QwenLM/qwen-code
热度
- GitHub 星标
- 29k
- 排名
- #9769
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
codegraph
29k帮你的智能体通过调用图、依赖关系、无用代码、热点和语义搜索来分析已建立索引的代码库。
structured-debugging
29k教你的智能体用一步一步的方法调试疑难缺陷:先提出假设,再添加有针对性的检查,验证后找出真正的原因,然后才修复。
tmux-real-user-testing
29k帮你的智能体在 tmux 中像真实用户一样测试终端应用,并为每一步操作保存带屏幕截图的可读步骤日志。
generated-ui
29k让你的智能体直接在对话中展示交互式计算器、模拟器或对比工具,让你可以更改输入并查看结果。