ask-copilot · git:20260930.dc782d4 · 2026-09-30 · sha256 c048a6a0746e5c11
ask-copilot git:20260930.dc782d4A
Immutable. This exact content never changes and is served at /api/v1/blob/c048a6a0746e5c11.
--- name: ask-copilot description: Asks Copilot CLI for coding assistance. Use for getting a second opinion, code generation, debugging, or delegating coding tasks. allowed-tools: Bash(copilot *) --- # Ask Copilot Executes the local `copilot` CLI to get coding assistance. **Note:** This skill requires the `copilot` CLI to be installed and available in your system's PATH. ## Quick start Run a single query with `-p` (prompt mode): ```bash copilot -p "Your question or task here" --allow-all-tools ``` ## Common options | Option | Description | |--------|-------------| | `-p` | Non-interactive prompt mode (required for scripting) | | `--model MODEL` | Specify model (run `copilot --help` for accepted IDs) | | `--allow-all-tools` | Auto-approve all tool executions (required for -p) | | `--continue` | Resume the most recent session | > For all available options, run `copilot --help` ## Examples **Ask a coding question:** ```bash copilot -p "How do I implement a binary search in Python?" --allow-all-tools ``` **Use a specific model:** ```bash copilot -p "Review this code for potential issues" --model <model> --allow-all-tools ``` **Let Copilot make changes automatically:** ```bash copilot -p "Refactor this function to use async/await" --allow-all-tools ``` **Continue a previous session:** ```bash copilot -p "Now add error handling to that function" --continue --allow-all-tools ``` ## Notes - The `-p` flag runs Copilot non-interactively and requires `--allow-all-tools` - Use `--model` to override the default model - The command inherits the current working directory