← All skills
Tencent SkillHub · Developer Tools

Copilot CLI AI 代码分析

通过 GitHub Copilot CLI 分析代码、探索项目结构、生成文档和自动化开发任务,提高开发效率。

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

通过 GitHub Copilot CLI 分析代码、探索项目结构、生成文档和自动化开发任务,提高开发效率。

⬇ 0 downloads ★ 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

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.

Upgrade existing

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.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.1

Documentation

ClawHub primary doc Primary doc: SKILL.md 11 sections Open source page

功能

使用 GitHub Copilot CLI 分析代码、探索项目、生成代码和自动化开发任务。

前置条件

安装 Copilot CLI brew install copilot-cli 设置 GitHub Personal Access Token 访问 https://github.com/settings/personal-access-tokens/new 创建 fine-grained token,权限:Copilot Requests Token 保存到 ~/.copilot/github_token.txt

基本命令

# 进入项目目录 cd /path/to/project # 使用 Copilot CLI(使用保存的 token) COPILOT_GITHUB_TOKEN=$(cat ~/.copilot/github_token.txt) copilot -p "你的问题"

常用探索问题

项目概览: "这个项目是做什么的?请简要说明。" 架构分析: "分析这个项目的架构和主要模块。" 技术栈: "这个项目使用了哪些主要技术栈和依赖?" 代码查找: "找到处理用户认证的代码。" 文档生成: "为这个模块生成文档。" 代码审查: "审查这个文件,找出潜在问题。"

高级用法

指定文件: copilot -p "解释 @src/main.js 的功能" 交互式会话: COPILOT_GITHUB_TOKEN=$(cat ~/.copilot/github_token.txt) copilot 自动执行(需要权限): copilot --yolo -p "为这个功能编写单元测试"

注意事项

Copilot CLI 使用 GitHub Copilot API 分析代码 代码存储位置不影响分析(可以是 GitLab、GitHub 等) 一次性查询使用 -p 参数 复杂任务使用交互式会话

配置文件

Token 存储:~/.copilot/github_token.txt 配置目录:~/.copilot/ 日志目录:~/.copilot/logs/

策略限制错误

如果遇到 "Access denied by policy settings": 检查 https://github.com/settings/copilot 确认 Copilot CLI 功能已启用 确认组织策略允许第三方 MCP 服务器

Token 过期

创建新的 Personal Access Token 并更新: echo "新 token" > ~/.copilot/github_token.txt

示例使用

# 分析 base-auto 项目 cd /Users/agent/workspace/base-auto # 快速提问 COPILOT_GITHUB_TOKEN=$(cat ~/.copilot/github_token.txt) copilot -p "这个项目有什么核心功能?" # 深度分析 COPILOT_GITHUB_TOKEN=$(cat ~/.copilot/github_token.txt) copilot -p "分析项目的数据库设计,列出主要的表和关系。"

资源

官方文档:https://docs.github.com/en/copilot 命令参考:https://docs.github.com/en/copilot/reference/cli-command-reference

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
1 Docs
  • SKILL.md Primary doc