Copilot CLI AI 代码分析

AdvisoryAudited by Static analysis on Apr 30, 2026.

Overview

No suspicious patterns detected.

Findings (0)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

Anyone who can read that file may be able to use the token for Copilot requests under the user's GitHub account.

Why it was flagged

The skill requires a GitHub personal access token for Copilot requests and stores it in a local file.

Skill content
创建 fine-grained token,权限:Copilot Requests ... Token 保存到 `~/.copilot/github_token.txt`
Recommendation

Use the narrowest fine-grained token, keep the file private with restrictive permissions, and rotate or revoke the token when it is no longer needed.

What this means

Project code, prompts, or related context may be sent to GitHub Copilot for analysis.

Why it was flagged

The skill discloses that Copilot CLI uses GitHub's API to analyze code, including code from projects not hosted on GitHub.

Skill content
Copilot CLI 使用 GitHub Copilot API 分析代码 ... 代码存储位置不影响分析(可以是 GitLab、GitHub 等)
Recommendation

Use this only on repositories whose confidentiality and compliance rules allow Copilot/GitHub processing, and avoid including secrets in prompts or files.

What this means

If used carelessly, automatic mode could make unintended changes in the project workspace.

Why it was flagged

The skill documents an automatic execution mode; it is disclosed as needing permission, but it can reduce review before development actions.

Skill content
自动执行(需要权限):
`copilot --yolo -p "为这个功能编写单元测试"`
Recommendation

Use `--yolo` only with explicit user approval, preferably in version-controlled workspaces, and review diffs and test results before keeping changes.

What this means

The user is trusting the installed package and its update channel.

Why it was flagged

The skill relies on installing an external CLI through Homebrew; this is central to the purpose but should still be verified by the user.

Skill content
brew install copilot-cli
Recommendation

Install only from official or trusted Homebrew sources and confirm the package identity before use.