{
  "schemaVersion": "1.0",
  "item": {
    "slug": "copilot-cli",
    "name": "Copilot CLI AI 代码分析",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/biuyx/copilot-cli",
    "canonicalUrl": "https://clawhub.ai/biuyx/copilot-cli",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/copilot-cli",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=copilot-cli",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "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",
      "slug": "copilot-cli",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-02T03:15:18.838Z",
      "expiresAt": "2026-05-09T03:15:18.838Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=copilot-cli",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=copilot-cli",
        "contentDisposition": "attachment; filename=\"copilot-cli-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "copilot-cli"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/copilot-cli"
    },
    "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/copilot-cli",
    "agentPageUrl": "https://openagent3.xyz/skills/copilot-cli/agent",
    "manifestUrl": "https://openagent3.xyz/skills/copilot-cli/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/copilot-cli/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": "使用 GitHub Copilot CLI 分析代码、探索项目、生成代码和自动化开发任务。"
      },
      {
        "title": "前置条件",
        "body": "安装 Copilot CLI\nbrew install copilot-cli\n\n\n\n设置 GitHub Personal Access Token\n\n访问 https://github.com/settings/personal-access-tokens/new\n创建 fine-grained token，权限：Copilot Requests\nToken 保存到 ~/.copilot/github_token.txt"
      },
      {
        "title": "基本命令",
        "body": "# 进入项目目录\ncd /path/to/project\n\n# 使用 Copilot CLI（使用保存的 token）\nCOPILOT_GITHUB_TOKEN=$(cat ~/.copilot/github_token.txt) copilot -p \"你的问题\""
      },
      {
        "title": "常用探索问题",
        "body": "项目概览：\n\n\"这个项目是做什么的？请简要说明。\"\n\n架构分析：\n\n\"分析这个项目的架构和主要模块。\"\n\n技术栈：\n\n\"这个项目使用了哪些主要技术栈和依赖？\"\n\n代码查找：\n\n\"找到处理用户认证的代码。\"\n\n文档生成：\n\n\"为这个模块生成文档。\"\n\n代码审查：\n\n\"审查这个文件，找出潜在问题。\""
      },
      {
        "title": "高级用法",
        "body": "指定文件：\n\ncopilot -p \"解释 @src/main.js 的功能\"\n\n交互式会话：\n\nCOPILOT_GITHUB_TOKEN=$(cat ~/.copilot/github_token.txt) copilot\n\n自动执行（需要权限）：\n\ncopilot --yolo -p \"为这个功能编写单元测试\""
      },
      {
        "title": "注意事项",
        "body": "Copilot CLI 使用 GitHub Copilot API 分析代码\n代码存储位置不影响分析（可以是 GitLab、GitHub 等）\n一次性查询使用 -p 参数\n复杂任务使用交互式会话"
      },
      {
        "title": "配置文件",
        "body": "Token 存储：~/.copilot/github_token.txt\n配置目录：~/.copilot/\n日志目录：~/.copilot/logs/"
      },
      {
        "title": "策略限制错误",
        "body": "如果遇到 \"Access denied by policy settings\"：\n\n检查 https://github.com/settings/copilot\n确认 Copilot CLI 功能已启用\n确认组织策略允许第三方 MCP 服务器"
      },
      {
        "title": "Token 过期",
        "body": "创建新的 Personal Access Token 并更新：\n\necho \"新 token\" > ~/.copilot/github_token.txt"
      },
      {
        "title": "示例使用",
        "body": "# 分析 base-auto 项目\ncd /Users/agent/workspace/base-auto\n\n# 快速提问\nCOPILOT_GITHUB_TOKEN=$(cat ~/.copilot/github_token.txt) copilot -p \"这个项目有什么核心功能？\"\n\n# 深度分析\nCOPILOT_GITHUB_TOKEN=$(cat ~/.copilot/github_token.txt) copilot -p \"分析项目的数据库设计，列出主要的表和关系。\""
      },
      {
        "title": "资源",
        "body": "官方文档：https://docs.github.com/en/copilot\n命令参考：https://docs.github.com/en/copilot/reference/cli-command-reference"
      }
    ],
    "body": "Copilot CLI - AI 代码分析助手\n功能\n\n使用 GitHub Copilot CLI 分析代码、探索项目、生成代码和自动化开发任务。\n\n前置条件\n\n安装 Copilot CLI\n\nbrew install copilot-cli\n\n\n设置 GitHub Personal Access Token\n\n访问 https://github.com/settings/personal-access-tokens/new\n创建 fine-grained token，权限：Copilot Requests\nToken 保存到 ~/.copilot/github_token.txt\n使用方法\n基本命令\n# 进入项目目录\ncd /path/to/project\n\n# 使用 Copilot CLI（使用保存的 token）\nCOPILOT_GITHUB_TOKEN=$(cat ~/.copilot/github_token.txt) copilot -p \"你的问题\"\n\n常用探索问题\n\n项目概览：\n\n\"这个项目是做什么的？请简要说明。\"\n\n\n架构分析：\n\n\"分析这个项目的架构和主要模块。\"\n\n\n技术栈：\n\n\"这个项目使用了哪些主要技术栈和依赖？\"\n\n\n代码查找：\n\n\"找到处理用户认证的代码。\"\n\n\n文档生成：\n\n\"为这个模块生成文档。\"\n\n\n代码审查：\n\n\"审查这个文件，找出潜在问题。\"\n\n高级用法\n\n指定文件：\n\ncopilot -p \"解释 @src/main.js 的功能\"\n\n\n交互式会话：\n\nCOPILOT_GITHUB_TOKEN=$(cat ~/.copilot/github_token.txt) copilot\n\n\n自动执行（需要权限）：\n\ncopilot --yolo -p \"为这个功能编写单元测试\"\n\n注意事项\nCopilot CLI 使用 GitHub Copilot API 分析代码\n代码存储位置不影响分析（可以是 GitLab、GitHub 等）\n一次性查询使用 -p 参数\n复杂任务使用交互式会话\n配置文件\nToken 存储：~/.copilot/github_token.txt\n配置目录：~/.copilot/\n日志目录：~/.copilot/logs/\n故障排查\n策略限制错误\n\n如果遇到 \"Access denied by policy settings\"：\n\n检查 https://github.com/settings/copilot\n确认 Copilot CLI 功能已启用\n确认组织策略允许第三方 MCP 服务器\nToken 过期\n\n创建新的 Personal Access Token 并更新：\n\necho \"新 token\" > ~/.copilot/github_token.txt\n\n示例使用\n# 分析 base-auto 项目\ncd /Users/agent/workspace/base-auto\n\n# 快速提问\nCOPILOT_GITHUB_TOKEN=$(cat ~/.copilot/github_token.txt) copilot -p \"这个项目有什么核心功能？\"\n\n# 深度分析\nCOPILOT_GITHUB_TOKEN=$(cat ~/.copilot/github_token.txt) copilot -p \"分析项目的数据库设计，列出主要的表和关系。\"\n\n资源\n官方文档：https://docs.github.com/en/copilot\n命令参考：https://docs.github.com/en/copilot/reference/cli-command-reference"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/biuyx/copilot-cli",
    "publisherUrl": "https://clawhub.ai/biuyx/copilot-cli",
    "owner": "biuyx",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/copilot-cli",
    "downloadUrl": "https://openagent3.xyz/downloads/copilot-cli",
    "agentUrl": "https://openagent3.xyz/skills/copilot-cli/agent",
    "manifestUrl": "https://openagent3.xyz/skills/copilot-cli/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/copilot-cli/agent.md"
  }
}