{
  "schemaVersion": "1.0",
  "item": {
    "slug": "qwen-code-skill",
    "name": "Qwen Code",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/UserB1ank/qwen-code-skill",
    "canonicalUrl": "https://clawhub.ai/UserB1ank/qwen-code-skill",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/qwen-code-skill",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=qwen-code-skill",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "CHANGELOG.md",
      "README.md",
      "SKILL.md",
      "_meta.json",
      "assets/examples/README.md",
      "assets/examples/basic-task.example.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/qwen-code-skill"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/qwen-code-skill",
    "agentPageUrl": "https://openagent3.xyz/skills/qwen-code-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/qwen-code-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/qwen-code-skill/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Qwen Code Skill (background-first)",
        "body": "Use bash background mode for non-interactive coding work with Qwen Code CLI."
      },
      {
        "title": "The Pattern: workdir + background",
        "body": "# Start Qwen Code in target directory\nbash workdir:~/project background:true yieldMs:30000 command:\"qwen -p 'Build a Flask API'\"\n# Returns sessionId for tracking\n\n# Monitor progress\nprocess action:log sessionId:XXX\n\n# Check if done\nprocess action:poll sessionId:XXX\n\n# Send input (if Qwen asks a question)\nprocess action:write sessionId:XXX data:\"y\"\n\n# Kill if needed\nprocess action:kill sessionId:XXX\n\nWhy workdir matters: Agent wakes up in a focused directory, doesn't wander off reading unrelated files."
      },
      {
        "title": "Prerequisites",
        "body": "# Install Qwen Code CLI\nnpm install -g @qwen-code/qwen-code@latest\n\n# Verify installation\nqwen --version\n\n# Authenticate (Option 1: OAuth)\nqwen auth login\n\n# Or Option 2: API Key\nexport DASHSCOPE_API_KEY=\"sk-xxx\""
      },
      {
        "title": "Basic Usage",
        "body": "# Check status\nscripts/qwen-code.js status\n\n# Run a task\nscripts/qwen-code.js run \"Create a Flask API\"\n\n# Code review\nscripts/qwen-code.js review src/app.ts\n\n# Headless mode (JSON output)\nscripts/qwen-code.js headless \"Analyze code\" -o json"
      },
      {
        "title": "Commands",
        "body": "CommandDescriptionExamplestatusCheck Qwen Code status and authenticationscripts/qwen-code.js statusrun <task>Execute programming taskscripts/qwen-code.js run \"Create REST API\"review <file>Code review and analysisscripts/qwen-code.js review src/main.pyheadless <task>Headless mode (JSON output)scripts/qwen-code.js headless \"Analyze\" -o jsonhelpShow help informationscripts/qwen-code.js help"
      },
      {
        "title": "Background Execution",
        "body": "# Basic task\nbash workdir:~/project background:true yieldMs:30000 \\\n  command:\"qwen -p 'Create Python Flask API'\"\n\n# Specify model\nbash workdir:~/project background:true yieldMs:30000 \\\n  command:\"qwen -p 'Analyze code structure' -m qwen3-coder-plus\"\n\n# YOLO mode (auto-approve)\nbash workdir:~/project background:true yieldMs:30000 \\\n  command:\"qwen -p 'Refactor this function' -y\""
      },
      {
        "title": "Process Management",
        "body": "# View logs\nprocess action:log sessionId:XXX\n\n# Check completion\nprocess action:poll sessionId:XXX\n\n# Send input (if Qwen asks)\nprocess action:write sessionId:XXX data:\"y\""
      },
      {
        "title": "Headless Mode (Automation/CI/CD)",
        "body": "# JSON output\nqwen -p \"Analyze code structure\" --output-format json\n\n# Pipeline operations\ngit diff | qwen -p \"Generate commit message\"\n\n# Batch processing\nfind src -name \"*.ts\" | xargs -I {} qwen -p \"Review {}\""
      },
      {
        "title": "Models",
        "body": "Qwen Code supports Alibaba Cloud models:\n\nqwen3.5-plus - General purpose (default)\nqwen3-coder-plus - Coding specialized\nqwen3-coder-next - Latest coding model\nqwen3-max-2026-01-23 - Most capable\n\nSpecify model:\n\nbash workdir:~/project background:true yieldMs:30000 \\\n  command:\"qwen -p 'Refactor this' -m qwen3-coder-plus\""
      },
      {
        "title": "OAuth (Recommended)",
        "body": "qwen auth login\n\nOpens browser for OAuth flow. Token auto-refreshes."
      },
      {
        "title": "API Key",
        "body": "export DASHSCOPE_API_KEY=\"sk-xxx\"\n\nGet key from: https://dashscope.console.aliyun.com/"
      },
      {
        "title": "⚠️ Rules",
        "body": "Respect tool choice — if user asks for Qwen, use Qwen. NEVER offer to build it yourself!\nBe patient — don't kill sessions because they're \"slow\"\nMonitor with process:log — check progress without interfering\nYOLO mode for building — --yolo auto-approves changes (use in workspace only)\nReview mode for safety — production code should use review mode\nParallel is OK — run many Qwen processes at once for batch work\nNEVER start Qwen in ~/clawd/ — it'll read your soul docs! Use target project dir or /tmp\nWorkspace safety — YOLO mode is safe in agents.defaults.workspace, not elsewhere"
      },
      {
        "title": "For",
        "body": "Developers using Qwen Code for programming tasks\nTeams needing code review and analysis\nAutomation scripts and CI/CD integration\nOpenClaw Sub-Agent and Skills management\nBatch code analysis and refactoring"
      },
      {
        "title": "Not For",
        "body": "Environments without Qwen Code CLI installed\nGUI-based interaction requirements\nNon-Alibaba Cloud LLM users\nOffline environments (requires network connection)"
      },
      {
        "title": "Security & Boundaries",
        "body": "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)"
      },
      {
        "title": "⚠️ Security Notes",
        "body": "This Skill does not execute code directly, only calls Qwen Code CLI\nAll code generation and modifications require user confirmation\nUse review mode in production environments\nDisable YOLO mode for sensitive projects"
      },
      {
        "title": "Examples",
        "body": "See assets/examples/ for complete examples:\n\nExampleDescriptionbasic-task.example.shBasic task executioncode-review.example.shCode review workflowci-cd.example.ymlGitHub Actions integrationheadless-mode.example.jsNode.js automation example"
      },
      {
        "title": "References",
        "body": "📖 Qwen Code Official Docs\n📝 Command Reference\n📦 Example Code\n🦌 OpenClaw Documentation"
      },
      {
        "title": "\"qwen: command not found\"",
        "body": "npm install -g @qwen-code/qwen-code@latest"
      },
      {
        "title": "\"Authentication required\"",
        "body": "qwen auth login\n# Or set API key\nexport DASHSCOPE_API_KEY=\"sk-xxx\""
      },
      {
        "title": "Session stuck/waiting for input",
        "body": "# Check what Qwen is asking\nprocess action:log sessionId:XXX\n\n# Send approval\nprocess action:write sessionId:XXX data:\"y\""
      },
      {
        "title": "Kill stuck session",
        "body": "process action:kill sessionId:XXX\n\nQwen Code Skill 🦌 - Your AI coding partner powered by Alibaba Cloud"
      }
    ],
    "body": "Qwen Code Skill (background-first)\n\nUse bash background mode for non-interactive coding work with Qwen Code CLI.\n\nThe Pattern: workdir + background\n# Start Qwen Code in target directory\nbash workdir:~/project background:true yieldMs:30000 command:\"qwen -p 'Build a Flask API'\"\n# Returns sessionId for tracking\n\n# Monitor progress\nprocess action:log sessionId:XXX\n\n# Check if done\nprocess action:poll sessionId:XXX\n\n# Send input (if Qwen asks a question)\nprocess action:write sessionId:XXX data:\"y\"\n\n# Kill if needed\nprocess action:kill sessionId:XXX\n\n\nWhy workdir matters: Agent wakes up in a focused directory, doesn't wander off reading unrelated files.\n\nQuick Start\nPrerequisites\n# Install Qwen Code CLI\nnpm install -g @qwen-code/qwen-code@latest\n\n# Verify installation\nqwen --version\n\n# Authenticate (Option 1: OAuth)\nqwen auth login\n\n# Or Option 2: API Key\nexport DASHSCOPE_API_KEY=\"sk-xxx\"\n\nBasic Usage\n# Check status\nscripts/qwen-code.js status\n\n# Run a task\nscripts/qwen-code.js run \"Create a Flask API\"\n\n# Code review\nscripts/qwen-code.js review src/app.ts\n\n# Headless mode (JSON output)\nscripts/qwen-code.js headless \"Analyze code\" -o json\n\nCommands\nCommand\tDescription\tExample\nstatus\tCheck Qwen Code status and authentication\tscripts/qwen-code.js status\nrun <task>\tExecute programming task\tscripts/qwen-code.js run \"Create REST API\"\nreview <file>\tCode review and analysis\tscripts/qwen-code.js review src/main.py\nheadless <task>\tHeadless mode (JSON output)\tscripts/qwen-code.js headless \"Analyze\" -o json\nhelp\tShow help information\tscripts/qwen-code.js help\nOpenClaw Integration\nBackground Execution\n# Basic task\nbash workdir:~/project background:true yieldMs:30000 \\\n  command:\"qwen -p 'Create Python Flask API'\"\n\n# Specify model\nbash workdir:~/project background:true yieldMs:30000 \\\n  command:\"qwen -p 'Analyze code structure' -m qwen3-coder-plus\"\n\n# YOLO mode (auto-approve)\nbash workdir:~/project background:true yieldMs:30000 \\\n  command:\"qwen -p 'Refactor this function' -y\"\n\nProcess Management\n# View logs\nprocess action:log sessionId:XXX\n\n# Check completion\nprocess action:poll sessionId:XXX\n\n# Send input (if Qwen asks)\nprocess action:write sessionId:XXX data:\"y\"\n\nHeadless Mode (Automation/CI/CD)\n# JSON output\nqwen -p \"Analyze code structure\" --output-format json\n\n# Pipeline operations\ngit diff | qwen -p \"Generate commit message\"\n\n# Batch processing\nfind src -name \"*.ts\" | xargs -I {} qwen -p \"Review {}\"\n\nModels\n\nQwen Code supports Alibaba Cloud models:\n\nqwen3.5-plus - General purpose (default)\nqwen3-coder-plus - Coding specialized\nqwen3-coder-next - Latest coding model\nqwen3-max-2026-01-23 - Most capable\n\nSpecify model:\n\nbash workdir:~/project background:true yieldMs:30000 \\\n  command:\"qwen -p 'Refactor this' -m qwen3-coder-plus\"\n\nAuthentication\nOAuth (Recommended)\nqwen auth login\n\n\nOpens browser for OAuth flow. Token auto-refreshes.\n\nAPI Key\nexport DASHSCOPE_API_KEY=\"sk-xxx\"\n\n\nGet key from: https://dashscope.console.aliyun.com/\n\n⚠️ Rules\nRespect tool choice — if user asks for Qwen, use Qwen. NEVER offer to build it yourself!\nBe patient — don't kill sessions because they're \"slow\"\nMonitor with process:log — check progress without interfering\nYOLO mode for building — --yolo auto-approves changes (use in workspace only)\nReview mode for safety — production code should use review mode\nParallel is OK — run many Qwen processes at once for batch work\nNEVER start Qwen in ~/clawd/ — it'll read your soul docs! Use target project dir or /tmp\nWorkspace safety — YOLO mode is safe in agents.defaults.workspace, not elsewhere\nFor\nDevelopers using Qwen Code for programming tasks\nTeams needing code review and analysis\nAutomation scripts and CI/CD integration\nOpenClaw Sub-Agent and Skills management\nBatch code analysis and refactoring\nNot For\nEnvironments without Qwen Code CLI installed\nGUI-based interaction requirements\nNon-Alibaba Cloud LLM users\nOffline environments (requires network connection)\nSecurity & Boundaries\nComponent\tBehavior\tExecutes Shell Commands?\nscripts/qwen-code.js\tWraps Qwen Code CLI commands\tYes (via qwen command)\nreferences/qwen-cli-commands.md\tCommand reference documentation\tNo (plain text)\nassets/examples/\tExample code files\tNo (static files)\n⚠️ Security Notes\nThis Skill does not execute code directly, only calls Qwen Code CLI\nAll code generation and modifications require user confirmation\nUse review mode in production environments\nDisable YOLO mode for sensitive projects\nExamples\n\nSee assets/examples/ for complete examples:\n\nExample\tDescription\nbasic-task.example.sh\tBasic task execution\ncode-review.example.sh\tCode review workflow\nci-cd.example.yml\tGitHub Actions integration\nheadless-mode.example.js\tNode.js automation example\nReferences\n📖 Qwen Code Official Docs\n📝 Command Reference\n📦 Example Code\n🦌 OpenClaw Documentation\nTroubleshooting\n\"qwen: command not found\"\nnpm install -g @qwen-code/qwen-code@latest\n\n\"Authentication required\"\nqwen auth login\n# Or set API key\nexport DASHSCOPE_API_KEY=\"sk-xxx\"\n\nSession stuck/waiting for input\n# Check what Qwen is asking\nprocess action:log sessionId:XXX\n\n# Send approval\nprocess action:write sessionId:XXX data:\"y\"\n\nKill stuck session\nprocess action:kill sessionId:XXX\n\n\nQwen Code Skill 🦌 - Your AI coding partner powered by Alibaba Cloud"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/UserB1ank/qwen-code-skill",
    "publisherUrl": "https://clawhub.ai/UserB1ank/qwen-code-skill",
    "owner": "UserB1ank",
    "version": "1.2.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/qwen-code-skill",
    "downloadUrl": "https://openagent3.xyz/downloads/qwen-code-skill",
    "agentUrl": "https://openagent3.xyz/skills/qwen-code-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/qwen-code-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/qwen-code-skill/agent.md"
  }
}