Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

copilot-cli-agentGitHub Copilot CLI Agent 搜索

Agent Skill

copilot-cli-agent 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

523

周安装

22

GitHub Stars

2

下载量

183
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:copilot-cli-agent(GitHub Copilot CLI Agent 搜索)
来源仓库:https://github.com/richfrem/agent-plugins-skills
仓库路径:skills/copilot-cli-agent
安装命令:
npx skills add https://github.com/richfrem/agent-plugins-skills --skill copilot-cli-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/richfrem/agent-plugins-skills --skill copilot-cli-agent

简介

用于查找、检索和筛选相关信息。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 适合根据关键词、任务场景或来源线索快速定位候选结果。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否会触发联网或文件读写。
  • copilot-cli-agent 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Dependencies

This skill requires Python 3.8+ and standard library only. No external packages needed.

To install this skill's dependencies:

pip-compile ./requirements.in
pip install -r ./requirements.txt

See ./requirements.txt for the dependency lockfile (currently empty — standard library only).


Ecosystem Role: Inner Loop Specialist

This skill provides specialized Inner Loop Execution for the dual-loop skill.

  • Orchestrated by: the agent-orchestrator skill (see the dual-loop plugin)
  • Use Case: When "generic coding" is insufficient and specialized expertise (Security, QA, Architecture) is required.
  • Why: The CLI context is naturally isolated (no git, no tools), making it the perfect "Safe Inner Loop".

Identity: The Sub-Agent Dispatcher 🎭

You, the Antigravity agent, dispatch specialized analysis tasks to Copilot CLI sub-agents.

🛠️ Core Pattern

copilot -p "$(cat <PERSONA_PROMPT>)

---SOURCE DOCUMENT---
$(cat <INPUT>)

---INSTRUCTION---
<INSTRUCTION>" > <OUTPUT>

*Note: Copilot uses -p or --prompt for non-interactive scripting runs.*

⚠️ CLI Best Practices

1. Prompt Construction — Embed Source Material When Using -p

copilot -p is the authoritative prompt channel. If you rely on stdin at the same time, the CLI can prioritize the prompt text and ignore or underweight the piped document.

Bad — prompt in -p, source document on stdin:

cat session-brief.md | copilot -p "Mode: problem-framing" > problem-framing.md

Good — embed the source document directly into the prompt:

copilot -p "$(cat agent.md)

---SESSION BRIEF---
$(cat session-brief.md)

---INSTRUCTION---
Mode: problem-framing. Capture the problem statement, user groups, goals, and initial scope hypotheses from the session brief above." > problem-framing.md

For multi-pass workflows, keep each pass as a single invocation and grow the embedded context cumulatively.

Pass sequence:

  • Pass 1: embed session-brief.md
  • Pass 2: embed session-brief.md + problem-framing.md
  • Pass 3: embed session-brief.md + problem-framing.md + brd-draft.md
  • Pass 4: embed session-brief.md + problem-framing.md + brd-draft.md
  • Handoff: embed all four capture files

2. Self-Contained Prompts

The CLI runs in a separate context — no access to agent tools or memory.

  • Add: "Do NOT use tools. Do NOT search filesystem."
  • Ensure the prompt contains 100% of necessary context.
  • Security Check: Copilot CLI has explicit permission flags (e.g. --allow-all-tools, --allow-all-paths). For isolated sub-agents, do not provide these flags to ensure safe headless execution.

3. Output to File

Always redirect output to a file (> output.md), then review with view_file.

4. Severity-Stratified Constraints

When dispatching code-review, architecture, or security analysis, explicitly instruct the CLI sub-agent to use the Severity-Stratified Output Schema. This ensures the Outer Loop can parse the results deterministically:

"Format all findings using the strict Severity taxonomy: 🔴 CRITICAL, 🟡 MODERATE, 🟢 MINOR."

✅ Smoke Test (Copilot CLI)

Use this minimal command to verify the CLI is callable and returns output:

copilot -p "Reply with exactly: COPILOT_CLI_OK"

Expected result:

  • CLI prints COPILOT_CLI_OK (or very close equivalent) and exits successfully.

If the test fails:

  • Confirm copilot is on PATH.
  • Ensure you are authenticated in the Copilot CLI session.
  • Retry without any permission flags; keep the test minimal and isolated.
  • Model Support Warning: If you specify a model (e.g., --model gpt-5.3-codex) and receive CAPIError: 400 The requested model is not supported, the model is not authorized for your Copilot tier. Run without the --model flag to use the default router instead.

Authentication and Token Precedence (Important)

In non-interactive runs, Copilot CLI can fail even after successful copilot login if shell env tokens override the session.

Recommended recovery flow:

  1. Run interactive auth:

- copilot login

  1. If copilot -p... still fails with authentication errors, check for overriding env vars:

- GITHUB_TOKEN - GH_TOKEN - COPILOT_GITHUB_TOKEN

  1. Re-run commands with those vars unset for the command invocation:

- env -u GITHUB_TOKEN -u GH_TOKEN -u COPILOT_GITHUB_TOKEN copilot -p "Reply with exactly: COPILOT_OK" --model gpt-5-mini --allow-all-tools

For benchmark loops that call Copilot as the improvement backend, apply the same env -u... wrapper to avoid token precedence collisions.

5. Why The Embedded Pattern Works

  • -p sets the main instruction context, so source material embedded there is reliably seen by the model.
  • Inline $(cat file.md) substitution happens in the shell before the CLI runs, which avoids competing stdin vs prompt channels.
  • This preserves cumulative-context workflows without needing temporary concatenation files.

🎭 Persona Categories

CategoryPersonasUse For
Securitysecurity-auditorRed team, vulnerability scanning
Development14 personasBackend, frontend, React, Python, Go, etc.
Qualityarchitect-review, code-reviewer, qa-expert, test-automator, debuggerDesign validation, test planning
Data/AI8 personasML, data engineering, DB optimization
Infrastructure5 personasCloud, CI/CD, incident response
Businessproduct-managerProduct strategy
Specializationapi-documenter, documentation-expertTechnical writing

All personas are documented in the table above. Load the persona prompt file from your CLI plugin's agents/ directory.

🔄 Recommended Audit Loop

  1. Red Team (Security Auditor) → find exploits
  2. Architect → validate design didn't add complexity
  3. QA Expert → find untested edge cases

Run architect AFTER red team to catch security-fix side effects.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.29%
按下载量换算66

Claude

29.4%
按下载量换算54

Cursor

18.96%
按下载量换算35

Gemini CLI

11.02%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/richfrem/agent-plugins-skills --skill copilot-cli-agent 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills