{
  "schemaVersion": "1.0",
  "item": {
    "slug": "async-programming",
    "name": "Async Programming",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/broommonk/async-programming",
    "canonicalUrl": "https://clawhub.ai/broommonk/async-programming",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/async-programming",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=async-programming",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "gep_manifest.json",
      "skill.yaml"
    ],
    "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. 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. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.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/async-programming"
    },
    "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/async-programming",
    "agentPageUrl": "https://openagent3.xyz/skills/async-programming/agent",
    "manifestUrl": "https://openagent3.xyz/skills/async-programming/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/async-programming/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. 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. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "触发条件",
        "body": "当用户请求涉及以下内容时，激活此技能：\n\n✅ 编写/修改代码\n✅ 添加新功能\n✅ 修复 bug\n✅ 重构代码\n✅ 创建脚本\n✅ 项目配置\n✅ 依赖安装"
      },
      {
        "title": "核心原则",
        "body": "收到编程任务 → 立即调用子 agent + 立即回复确认 = 可以继续聊天"
      },
      {
        "title": "1. 调用子 agent",
        "body": "sessions_spawn({\n  task: \"{具体任务描述，包含项目路径和具体要求}\",\n  label: \"{项目名} - {任务类型}\",\n  model: \"bailian/qwen3-coder-plus\",\n  mode: \"run\",\n  runTimeoutSeconds: 900\n})\n\n参数说明：\n\n参数说明示例task明确的任务描述\"给 Stock-Analysis 添加 Excel 导出功能\"label任务标识，格式 项目名 - 任务类型Stock-Analysis - 功能开发model编程任务统一用 coder 模型bailian/qwen3-coder-plusrunTimeoutSeconds超时时间（秒）900 (15 分钟)"
      },
      {
        "title": "2. 立即回复确认（关键！）",
        "body": "调用子 agent 后，立即回复用户，不要等待完成！\n\n回复模板：\n\n✅ 任务已接收\n\n**正在处理：**\n- 项目：{项目名}\n- 任务：{任务简述}\n- 执行者：子 agent（编程助手）\n- 预计时间：2-5 分钟\n\n你可以在等待期间继续问我其他问题，完成后我会通知你。"
      },
      {
        "title": "3. 完成后汇报",
        "body": "子 agent 完成后会自动发送结果，转发给用户：\n\n✅ {任务名} 完成了！\n\n**完成内容：**\n- {改动 1}\n- {改动 2}\n\n**文件变更：**\n- {文件路径 1}\n- {文件路径 2}\n\n需要调整或继续开发吗？"
      },
      {
        "title": "多任务并发",
        "body": "用户可以连续下达多个编程任务，子 agent 并行执行：\n\n用户：\"给项目 A 加个功能\"\n  → 调用子 agent #1\n  → 立即回复确认\n\n用户：\"帮项目 B 修复 bug\"\n  → 调用子 agent #2\n  → 立即回复确认\n\n用户：\"项目 C 也帮我看看\"\n  → 调用子 agent #3\n  → 立即回复确认\n\n并发限制： 最多 8 个子 agent 同时运行（agents.defaults.subagents.maxConcurrent）"
      },
      {
        "title": "任务追踪",
        "body": "当用户询问进度时，使用：\n\nsubagents(action=\"list\")\n\n回复格式：\n\n**当前任务进度：**\n\n✅ 已完成 (2)\n- Stock-Analysis - 功能开发\n- Amazon-Analyzer - 数据抓取\n\n⏳ 进行中 (1)\n- Skills-Bank - 文档整理 (预计还需 1 分钟)\n\n❌ 失败 (0)"
      },
      {
        "title": "示例 1：单个任务",
        "body": "用户：给 Stock-Analysis 加个导出 Excel 的功能\n\n助手：\n✅ 任务已接收\n\n**正在处理：**\n- 项目：Stock-Analysis\n- 任务：添加 Excel 导出功能\n- 执行者：子 agent（编程助手）\n- 预计时间：2-5 分钟\n\n你可以在等待期间继续问我其他问题，完成后我会通知你。\n\n---（2 分钟后，子 agent 完成）---\n\n✅ Excel 导出功能完成了！\n\n**完成内容：**\n- 新增 `export_to_excel()` 函数\n- 支持导出 CSV 和 JSON 结果\n- 添加 openpyxl 依赖\n\n**文件变更：**\n- /root/Stock-Analysis/stock_analyzer.py (新增 35 行)\n- /root/Stock-Analysis/requirements.txt (新增 openpyxl)\n\n需要测试或继续开发吗？"
      },
      {
        "title": "示例 2：多任务并发",
        "body": "用户：帮我给三个项目都加个 README\n\n助手：\n✅ 收到！正在并行处理三个项目：\n\n**任务队列：**\n1. Stock-Analysis - 完善 README\n2. Amazon-Analyzer - 完善 README\n3. Skills-Bank - 完善 README\n\n预计 5-8 分钟完成，你可以继续问我其他问题。\n\n---（5 分钟后）---\n\n✅ 三个项目的 README 都完成了！\n\n**完成情况：**\n- ✅ Stock-Analysis - 已添加安装和使用说明\n- ✅ Amazon-Analyzer - 已添加 API 配置说明\n- ✅ Skills-Bank - 已添加技能分类说明\n\n需要调整吗？"
      },
      {
        "title": "注意事项",
        "body": "不要等待子 agent 完成才回复 - 这是核心原则\n任务描述要清晰 - 子 agent 需要明确的指令\nlabel 要规范 - 方便追踪和管理\n超时处理 - 15 分钟未完成，主动告知用户\n错误处理 - 子 agent 失败时，解释原因并提供解决方案"
      },
      {
        "title": "相关配置",
        "body": "子 agent 配置位于 openclaw.json：\n\n{\n  \"agents\": {\n    \"defaults\": {\n      \"subagents\": {\n        \"maxConcurrent\": 8,\n        \"maxSpawnDepth\": 2,\n        \"model\": \"bailian/qwen3.5-plus\",\n        \"runTimeoutSeconds\": 600,\n        \"archiveAfterMinutes\": 60\n      }\n    }\n  }\n}\n\n此技能确保贾维斯可以并行处理多个编程任务，同时保持与用户的即时沟通"
      }
    ],
    "body": "异步编程任务处理技能\n触发条件\n\n当用户请求涉及以下内容时，激活此技能：\n\n✅ 编写/修改代码\n✅ 添加新功能\n✅ 修复 bug\n✅ 重构代码\n✅ 创建脚本\n✅ 项目配置\n✅ 依赖安装\n核心原则\n\n收到编程任务 → 立即调用子 agent + 立即回复确认 = 可以继续聊天\n\n执行流程\n1. 调用子 agent\nsessions_spawn({\n  task: \"{具体任务描述，包含项目路径和具体要求}\",\n  label: \"{项目名} - {任务类型}\",\n  model: \"bailian/qwen3-coder-plus\",\n  mode: \"run\",\n  runTimeoutSeconds: 900\n})\n\n\n参数说明：\n\n参数\t说明\t示例\ntask\t明确的任务描述\t\"给 Stock-Analysis 添加 Excel 导出功能\"\nlabel\t任务标识，格式 项目名 - 任务类型\tStock-Analysis - 功能开发\nmodel\t编程任务统一用 coder 模型\tbailian/qwen3-coder-plus\nrunTimeoutSeconds\t超时时间（秒）\t900 (15 分钟)\n2. 立即回复确认（关键！）\n\n调用子 agent 后，立即回复用户，不要等待完成！\n\n回复模板：\n\n✅ 任务已接收\n\n**正在处理：**\n- 项目：{项目名}\n- 任务：{任务简述}\n- 执行者：子 agent（编程助手）\n- 预计时间：2-5 分钟\n\n你可以在等待期间继续问我其他问题，完成后我会通知你。\n\n3. 完成后汇报\n\n子 agent 完成后会自动发送结果，转发给用户：\n\n✅ {任务名} 完成了！\n\n**完成内容：**\n- {改动 1}\n- {改动 2}\n\n**文件变更：**\n- {文件路径 1}\n- {文件路径 2}\n\n需要调整或继续开发吗？\n\n多任务并发\n\n用户可以连续下达多个编程任务，子 agent 并行执行：\n\n用户：\"给项目 A 加个功能\"\n  → 调用子 agent #1\n  → 立即回复确认\n\n用户：\"帮项目 B 修复 bug\"\n  → 调用子 agent #2\n  → 立即回复确认\n\n用户：\"项目 C 也帮我看看\"\n  → 调用子 agent #3\n  → 立即回复确认\n\n\n并发限制： 最多 8 个子 agent 同时运行（agents.defaults.subagents.maxConcurrent）\n\n任务追踪\n\n当用户询问进度时，使用：\n\nsubagents(action=\"list\")\n\n\n回复格式：\n\n**当前任务进度：**\n\n✅ 已完成 (2)\n- Stock-Analysis - 功能开发\n- Amazon-Analyzer - 数据抓取\n\n⏳ 进行中 (1)\n- Skills-Bank - 文档整理 (预计还需 1 分钟)\n\n❌ 失败 (0)\n\n示例对话\n示例 1：单个任务\n用户：给 Stock-Analysis 加个导出 Excel 的功能\n\n助手：\n✅ 任务已接收\n\n**正在处理：**\n- 项目：Stock-Analysis\n- 任务：添加 Excel 导出功能\n- 执行者：子 agent（编程助手）\n- 预计时间：2-5 分钟\n\n你可以在等待期间继续问我其他问题，完成后我会通知你。\n\n---（2 分钟后，子 agent 完成）---\n\n✅ Excel 导出功能完成了！\n\n**完成内容：**\n- 新增 `export_to_excel()` 函数\n- 支持导出 CSV 和 JSON 结果\n- 添加 openpyxl 依赖\n\n**文件变更：**\n- /root/Stock-Analysis/stock_analyzer.py (新增 35 行)\n- /root/Stock-Analysis/requirements.txt (新增 openpyxl)\n\n需要测试或继续开发吗？\n\n示例 2：多任务并发\n用户：帮我给三个项目都加个 README\n\n助手：\n✅ 收到！正在并行处理三个项目：\n\n**任务队列：**\n1. Stock-Analysis - 完善 README\n2. Amazon-Analyzer - 完善 README\n3. Skills-Bank - 完善 README\n\n预计 5-8 分钟完成，你可以继续问我其他问题。\n\n---（5 分钟后）---\n\n✅ 三个项目的 README 都完成了！\n\n**完成情况：**\n- ✅ Stock-Analysis - 已添加安装和使用说明\n- ✅ Amazon-Analyzer - 已添加 API 配置说明\n- ✅ Skills-Bank - 已添加技能分类说明\n\n需要调整吗？\n\n注意事项\n不要等待子 agent 完成才回复 - 这是核心原则\n任务描述要清晰 - 子 agent 需要明确的指令\nlabel 要规范 - 方便追踪和管理\n超时处理 - 15 分钟未完成，主动告知用户\n错误处理 - 子 agent 失败时，解释原因并提供解决方案\n相关配置\n\n子 agent 配置位于 openclaw.json：\n\n{\n  \"agents\": {\n    \"defaults\": {\n      \"subagents\": {\n        \"maxConcurrent\": 8,\n        \"maxSpawnDepth\": 2,\n        \"model\": \"bailian/qwen3.5-plus\",\n        \"runTimeoutSeconds\": 600,\n        \"archiveAfterMinutes\": 60\n      }\n    }\n  }\n}\n\n\n此技能确保贾维斯可以并行处理多个编程任务，同时保持与用户的即时沟通"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/broommonk/async-programming",
    "publisherUrl": "https://clawhub.ai/broommonk/async-programming",
    "owner": "broommonk",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/async-programming",
    "downloadUrl": "https://openagent3.xyz/downloads/async-programming",
    "agentUrl": "https://openagent3.xyz/skills/async-programming/agent",
    "manifestUrl": "https://openagent3.xyz/skills/async-programming/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/async-programming/agent.md"
  }
}