qwen-code-claw
Skill này làm gì
Skill này cho phép agent AI dùng Qwen Code, một agent lập trình, cho các tác vụ viết mã. Nó bao quát việc tìm hiểu mã, sửa lỗi, tái cấu trúc và tạo dự án mới. Skill dành cho lập trình viên muốn có thêm một agent lập trình để làm việc.
Khi nào nên dùng
- ✓Khi bạn muốn tìm hiểu hoặc đặt câu hỏi về một codebase bằng Qwen Code.
- ✓Khi bạn muốn Qwen Code sửa lỗi, tái cấu trúc mã hoặc tạo một dự án mới.
- ✓Khi bạn muốn chạy các tác vụ rà soát mã hoặc viết tài liệu qua Qwen Code.
Liên kết skill
https://github.com/QwenLM/qwen-code/blob/main/.qwen/skills/qwen-code-claw/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy dùng Qwen Code để tái cấu trúc module đăng nhập trong dự án này và giải thích những gì bạn đã thay đổi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent cài Qwen Code, kiểm tra xem xác thực đã được thiết lập chưa, và chạy nó qua Agent Client Protocol với acpx. Nó giao tác vụ và báo cáo kết quả, thay vì đọc màn hình terminal.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Tôi cài đặt bằng cách nào?
Skill cài Qwen Code như một gói npm toàn cục.
Nó đăng nhập bằng cách nào?
Skill kiểm tra xem xác thực đã có chưa. Nếu chưa, nó dùng khóa từ môi trường của bạn hoặc yêu cầu bạn đăng nhập.
Vì sao không điều khiển terminal trực tiếp?
Skill dùng Agent Client Protocol với acpx, nên không phải cào dữ liệu từ đầu ra terminal.
Chi tiết
Mô tả gốc của tác giả
Use Qwen Code as a Code Agent for code understanding, project generation, features, bug fixes, refactoring, and various programming tasks
repo: QwenLM/qwen-code
Độ phổ biến
- Sao GitHub
- 29k
- Vị trí xếp hạng
- #9769
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
codegraph
29kGiúp agent của bạn phân tích một codebase đã lập chỉ mục qua đồ thị gọi, phụ thuộc, mã chết, điểm nóng và tìm kiếm theo ngữ nghĩa.
structured-debugging
29kDạy agent của bạn cách gỡ lỗi khó theo từng bước: đặt giả thuyết, thêm kiểm tra có mục tiêu, kiểm thử và tìm nguyên nhân thật trước khi sửa.
tmux-real-user-testing
29kGiúp agent của bạn kiểm thử một ứng dụng terminal như người dùng thật trong tmux, lưu nhật ký từng bước dễ đọc kèm ảnh chụp màn hình của mỗi hành động.
generated-ui
29kCho phép agent của bạn hiển thị một máy tính, mô phỏng hoặc so sánh tương tác ngay trong cuộc trò chuyện, để bạn có thể thay đổi đầu vào và xem kết quả.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.