testing-cli-compatibility
БесплатноБез исполняемых скриптовНе проверенValidate that Copilot CLI can see all repo skills, MCP servers, and custom instructions. Use when setting up CLI for the first time, after adding skills, or…
от microsoft-foundry★ 137 звёзд на GitHubОб этом скилле
Testing CLI Compatibility
Validates that the standalone Copilot CLI works correctly with this repo's skills and MCP servers.
Quick Start
# Run all tests (including MCP)
./deployment/scripts/test-cli-compatibility.ps1
# Skip MCP server tests (faster, no tool approval needed)
./deployment/scripts/test-cli-compatibility.ps1 -SkipMcp
What It Tests
| # | Test | What It Checks |
|---|---|---|
| 1 | CLI Version | copilot command is installed and responds |
| 2 | Custom Instructions | .github/copilot-instructions.md is loaded (identifies project name) |
| 3 | Skills | All .github/skills/*/SKILL.md files are visible (count auto-detected) |
| 4 | MCP Servers | playwright and microsoftdocs servers are connected |
Prerequisites
- Copilot CLI installed:
npm install -g @anthropic-ai/copilot-clior via GitHub - Authenticated: Run
copilot loginif not already logged in - MCP servers synced: Run the
syncing-mcp-serversskill first if MCP tests fail
How It Works
The script uses copilot -p "<prompt>" -s --no-auto-update to invoke the CLI in non-interactive mode:
-p— Single prompt, exits after response-s— Silent mode, output only the agent response (no stats)--no-auto-update— Skip update check for faster execution--allow-all-tools— Used only for MCP test (needs tool access)
Each test sends a prompt asking the CLI to list what it can see, then validates the response against expected values.
When to Run
- After adding or modifying skills in
.github/skills/ - After syncing MCP servers with the
syncing-mcp-serversskill - When a user reports CLI issues (missing agents, skills, or tools)
- As a smoke test after CLI updates (
copilot update)
Manual Testing
If the script isn't available, you can test manually:
# Check version
copilot --version
# Test custom instructions
copilot -p "What project is this repo for?" -s
# Test skills
copilot -p "List all custom skills" -s
# Test MCP (needs --allow-all-tools)
copilot -p "List all MCP servers" -s --allow-all-tools
Troubleshooting
| Issue | Fix |
|---|---|
copilot not found |
Install CLI or add to PATH |
| Custom instructions not loaded | Ensure you're in the repo directory |
| Agents missing | No custom agents expected — this repo uses skills + copilot-instructions only |
| Skills missing | Check .github/skills/*/SKILL.md files exist with valid frontmatter |
| MCP servers not connected | Run syncing-mcp-servers skill to sync .vscode/mcp.json → ~/.copilot/mcp-config.json |
Установить testing-cli-compatibility в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл testing-cli-compatibility?
Validate that Copilot CLI can see all repo skills, MCP servers, and custom instructions. Use when setting up CLI for the first time, after adding skills, or to diagnose CLI issues.
Как установить скилл testing-cli-compatibility?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл testing-cli-compatibility запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic