Use Qwen Code as a Code Agent for code understanding, project generation, features, bug fixes, refactoring, and various programming tasks
56
62%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.qwen/skills/qwen-code-claw/SKILL.mdUse this skill when you need to:
npm install -g @qwen-code/qwen-codeFor normal session reuse, prefer a global install over npx.
Check if authentication is already configured:
qwen auth statusIf authentication exists, skip this section. If not authenticated, check if the
BAILIAN_CODING_PLAN_API_KEY environment variable exists:
echo $BAILIAN_CODING_PLAN_API_KEYIf BAILIAN_CODING_PLAN_API_KEY exists, authenticate directly:
qwen auth coding-plan --region china --key $BAILIAN_CODING_PLAN_API_KEYIf the environment variable does not exist, interrupt and prompt the user to
authenticate via qwen-oauth or coding-plan:
qwen authOr configure custom API after launching Qwen Code via /auth.
You should always use acpx to run Qwen Code over the Agent Client Protocol
(ACP) instead of scraping PTY sessions.
To use acpx:
npm install -g acpx@latestOr without installing:
npx acpx@latestnpx acpx@latest --skill install acpxRead 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.
acpx qwen 'inspect failing tests and propose a fix plan'
acpx qwen 'apply the smallest safe fix and run tests'acpx qwen exec 'summarize repo purpose in 3 lines'acpx qwen -s backend 'fix API pagination bug'
acpx qwen -s docs 'draft changelog entry for release'acpx qwen 'run full test suite and investigate failures'
acpx qwen --no-wait 'after tests, summarize root causes and next steps'acpx --format json qwen 'review current branch changes' > events.ndjsonacpx --cwd ~/repos/my-project --approve-all qwen -s pr-123 \
'review PR #123 for regressions and propose minimal patch'--approve-all: No interactive prompts--approve-reads (default): Auto-approve reads/searches, prompt for writes--deny-all: Deny all permission requestsIf every permission request is denied/cancelled and none are approved, acpx
exits with permission denied.
--no-wait for long-running tasks to avoid blocking--approve-all for non-interactive batch operations--format json for automation and script integration--cwd to manage context across multiple projects| 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.
Config files (highest priority first): CLI args > env vars > system > project
(.qwen/settings.json) > user (~/.qwen/settings.json) > defaults. Format:
JSONC with env var interpolation.
Key settings:
| Setting | Description |
|---|---|
model.name | Model to use (e.g. qwen-max) |
tools.approvalMode | plan / default / auto_edit / yolo |
permissions.allow/ask/deny | Tool permission rules |
mcpServers.* | MCP server configurations |
Full reference: docs/users/configuration/settings.md.
Supports Alibaba Cloud Coding Plan, OpenAI-compatible API keys, and Qwen OAuth (free tier discontinued 2026-04-15).
Full reference: docs/users/configuration/auth.md.
Configure custom model providers via modelProviders in settings or environment
variables (OPENAI_API_KEY, OPENAI_BASE_URL, OPENAI_MODEL).
Full reference: docs/users/configuration/model-providers.md.
docs/users/features/approval-mode.md.docs/users/features/mcp.md./skill.
See docs/users/features/skills.md.docs/users/features/sub-agents.md.docs/users/features/sandbox.md.docs/users/features/headless.md.Well-known agent names resolve to commands:
qwen → qwen --acp# Default (prompt mode, persistent session)
acpx [global options] [prompt text...]
acpx [global options] prompt [options] [prompt text...]
# One-shot execution
acpx [global options] exec [options] [prompt text...]
# Session management
acpx [global options] cancel [-s <name>]
acpx [global options] set-mode <mode> [-s <name>]
acpx [global options] set <key> <value> [-s <name>]
acpx [global options] status [-s <name>]
acpx [global options] sessions [
list | new [--name <name>] | close [name] | show [name] |
history [name] [--limit <count>]
]
acpx [global options] config [show | init]
# With explicit agent
acpx [global options] <agent> [options] [prompt text...]
acpx [global options] <agent> prompt [options] [prompt text...]
acpx [global options] <agent> exec [options] [prompt text...]Note: If prompt text is omitted and stdin is piped,
acpxreads prompt from stdin.
--agent <command>: raw ACP agent command fallback.--cwd <directory>: session working directory.--approve-all: auto-approve all requests.--approve-reads: auto-approve reads/searches, prompt for writes.--deny-all: deny all requests.--format <format>: output format, one of text, json, or quiet.--timeout <seconds>: maximum wait time.--ttl <seconds>: idle TTL for queue owners.--verbose: verbose ACP/debug logs to stderr.Flags are mutually exclusive where applicable.
8878264
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.