qwen-code-claw
できること
このスキルは、AIエージェントがコーディングエージェントのQwen Codeを使ってプログラミング作業を行えるようにします。コードの理解、バグ修正、リファクタリング、プロジェクトの生成を扱います。2つ目のコーディングエージェントに作業を任せたい開発者向けです。
使う場面
- ✓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に貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Qwen Codeを使って、このプロジェクトのログインのモジュールをリファクタリングし、何を変えたか説明してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、Qwen Codeをグローバルのnpmパッケージとしてインストールし、認証が設定されているかを確認します。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パッケージとしてインストールします。
どのようにログインしますか?
認証があるかを確認します。なければ、環境にあるキーを使うか、ログインするよう求めます。
ターミナルを直接操作しないのはなぜですか?
スキルはacpxを使うAgent Client Protocolを利用するため、ターミナルの出力を読み取る必要がありません。
詳細
作者による元の説明
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エージェントが、対話型の計算ツール、シミュレーター、比較表をチャットの中に表示し、入力を変えて結果を確かめられるよう支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。