name: code-mate-github-copilot
description: Runs GitHub Copilot CLI programmatically for repository analysis and coding tasks. Use when the user asks to delegate work to Copilot CLI or obtain a Copilot coding-agent result.
GitHub Copilot CLI
Run
- Set the Bash working directory to the exact project the user named and set a finite timeout, normally 10 minutes.
- Check availability with
command -v copilot. If it is missing, stop and ask the user to install GitHub Copilot CLI in Code Mate.
- Run one non-interactive task:
copilot -p "<prompt>" -s --output-format json --no-ask-user