/ask-copilot
Use GitHub Copilot CLI in non-interactive mode to ask questions, review code, or generate snippets without manual interaction.
$ npx -y skills add sickn33/antigravity-awesome-skills --skill ask-copilot --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/ask-copilot
Context preview
The summary Claude sees to decide when to auto-load this skill.
Use GitHub Copilot CLI in non-interactive mode to ask questions, review code, or generate snippets without manual interaction.
SKILL.md
ask-copilot.SKILL.mdname: ask-copilot
description: "Use GitHub Copilot CLI in non-interactive mode to ask questions, review code, or generate snippets without manual interaction."
category: development
risk: critical
source: self
source_repo: cshara1/antigravity-awesome-skills
source_type: self
date_added: "2026-07-08"
author: cshara1
tags: [copilot, github, cli, review, prompt]
tools: [claude, cursor, gemini]
Ask Copilot
Overview
This skill allows the agent to interact with GitHub Copilot CLI (`copilot`) in a non-interactive (headless) mode. Use this skill when the user explicitly wants secondary advice, code reviews, explanations, or code generation from GitHub Copilot's models.
Use `source: self` and `source_type: self` when the skill is original to this repository and does not require README external-source credit.
Copilot is an external service. Treat prompts, file paths, snippets, repository content, command output, and generated suggestions as data that may leave the local environment.
When to Use This Skill
- **User Request Only**: Use this skill **ONLY** when the user explicitly asks to "consult Copilot", "ask Copilot", "review with Copilot", or explicitly requests a second opinion using Copilot.
- **Do NOT Invoke Automatically**: To comply with privacy policies, the agent must not invoke this skill automatically for its own second opinions or checks without explicit user consent.
How It Works
Step 1: Request Explicit User Consent
Before executing any command that references local files, repository paths, snippets, command output, secrets-adjacent config, or private project context, you **MUST** obtain explicit user consent to send that material to GitHub Copilot.
Ask for separate approval before allowing Copilot to run tools, execute shell commands, edit files, install packages, or mutate the workspace.
Step 2: Execute with Minimal Permitted Flags
To prevent TUI lockups, execute the `copilot` command with headless flags. Do not use blanket bypasses such as `--yolo`, `--allow-all-tools`, or `--allow-all-paths` for routine Q&A or review.
- **For Read-Only / General Q&A**: Send only the user-approved, redacted text in the prompt. Do not grant Copilot broad local-path access; it is not needed when the prompt already contains the approved context.
- **For Trusted Mutation Tasks**: Prefer a scoped permission flag if the CLI supports one. Use blanket mutation bypasses only after the user explicitly authorizes Copilot to execute tools and mutate the workspace for the specific task.
Step 3: Use Session Management (Optional)
To maintain conversation context, use `--name` and `--resume` flags, or pass a `--session-id` on subsequent calls.
Examples
Example 1: General Question (Read-Only)
Does not require repository path access or mutation permissions.
copilot -p "Explain how to implement a debounce function in TypeScript" -s
Example 2: Code Review (Approved File Excerpt)
Always confirm the exact file and excerpt with the user before executing. Keep the path in a quoted variable; build the prompt from a static instruction plus the approved excerpt. Shell does not re-evaluate command-substitution output, so metacharacters inside the reviewed file remain prompt text rather than shell syntax:
review_file="path/to/file.ts"
test -f "$review_file" || { echo "File not found: $review_file" >&2; exit 1; }
copilot -p "$(printf '%s\n\n' 'Review this approved excerpt for potential memory leaks:'; sed -n '1,220p' -- "$review_file")" -sNever construct a shell command by interpolating user-controlled prompt text, paths, issue content, or filenames into shell source. Use fixed command structure, quoted variables, and approved file content only.
Example 3: Named Session Management
copilot -p "Remember this session label for follow-up questions." -s --name "my-session-name"
copilot -p "Summarize the prior advice in this session." -s --resume "my-session-name"
Best Practices
- ✅ **Do:** Ask for user consent before uploading any project files to third-party endpoints.
- ✅ **Do:** Send only the approved, redacted excerpt; keep Copilot out of the broader workspace.
- ✅ **Do:** Keep untrusted values in quoted variables or command input, never in shell source.
- ✅ **Do:** Use `-s` (silent) to suppress metadata and statistics, leaving only clean output.
- ❌ **Don't:** Automatically trigger this skill for background second opinions without the user's explicit ask.
- ❌ **Don't:** Send files, logs, environment details, or private repository context to Copilot without explicit approval.
- ❌ **Don't:** use `--allow-all-paths` for a review, or interpolate untrusted text inside `copilot -p "..."`.
- ❌ **Don't:** Run `copilot` without permission-bypass flags in background tasks, as it will hang waiting for interactive input.
Limitations
- This skill does not replace environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, or safety boundaries are missing.
- Copilot responses may be incomplete, outdated, or wrong; verify any proposed code locally before using it.
Security & Safety Notes
- The `--yolo` flag bypasses all permission prompts and allows Copilot CLI to run arbitrary shell commands and mutate workspace files. It must be treated as a high-risk option and never used by default.
- Always check that the code/files being sent do not contain sensitive credentials, API keys, or private environment variables.
- Prefer redacted snippets over whole files when only a small context sample is needed.
- `--allow-all-paths` grants Copilot broader local visibility than a narrow review requires; it is not a read-only least-privilege flag.
Common Pitfalls
- **Problem:** The terminal hangs or the command times out.
**Solution:** Ensure both `-p` (or `--prompt`) and the narrowest required non-interactive permission flag are present in the command arguments. W
Read more
name: ask-copilot description: "Use GitHub Copilot CLI in non-interactive mode to ask questions, review code, or generate snippets without manual interaction." category: development risk: critical source: self source_repo: cshara1/antigravity-awesome-skills source_type: self date_added: "2026-07-08" author: cshara1 tags: [copilot, github, cli, review, prompt] tools: [claude, cursor, gemini]
Ask Copilot
Overview
This skill allows the agent to interact with GitHub Copilot CLI (`copilot`) in a non-interactive (headless) mode. Use this skill when the user explicitly wants secondary advice, code reviews, explanations, or code generation from GitHub Copilot's models.
Use `source: self` and `source_type: self` when the skill is original to this repository and does not require README external-source credit.
Copilot is an external service. Treat prompts, file paths, snippets, repository content, command output, and generated suggestions as data that may leave the local environment.
When to Use This Skill
- **User Request Only**: Use this skill **ONLY** when the user explicitly asks to "consult Copilot", "ask Copilot", "review with Copilot", or explicitly requests a second opinion using Copilot.
- **Do NOT Invoke Automatically**: To comply with privacy policies, the agent must not invoke this skill automatically for its own second opinions or checks without explicit user consent.
How It Works
Step 1: Request Explicit User Consent
Before executing any command that references local files, repository paths, snippets, command output, secrets-adjacent config, or private project context, you **MUST** obtain explicit user consent to send that material to GitHub Copilot.
Ask for separate approval before allowing Copilot to run tools, execute shell commands, edit files, install packages, or mutate the workspace.
Step 2: Execute with Minimal Permitted Flags
To prevent TUI lockups, execute the `copilot` command with headless flags. Do not use blanket bypasses such as `--yolo`, `--allow-all-tools`, or `--allow-all-paths` for routine Q&A or review.
- **For Read-Only / General Q&A**: Send only the user-approved, redacted text in the prompt. Do not grant Copilot broad local-path access; it is not needed when the prompt already contains the approved context.
- **For Trusted Mutation Tasks**: Prefer a scoped permission flag if the CLI supports one. Use blanket mutation bypasses only after the user explicitly authorizes Copilot to execute tools and mutate the workspace for the specific task.
Step 3: Use Session Management (Optional)
To maintain conversation context, use `--name` and `--resume` flags, or pass a `--session-id` on subsequent calls.
Examples
Example 1: General Question (Read-Only)
Does not require repository path access or mutation permissions.
copilot -p "Explain how to implement a debounce function in TypeScript" -s
Example 2: Code Review (Approved File Excerpt)
Always confirm the exact file and excerpt with the user before executing. Keep the path in a quoted variable; build the prompt from a static instruction plus the approved excerpt. Shell does not re-evaluate command-substitution output, so metacharacters inside the reviewed file remain prompt text rather than shell syntax:
review_file="path/to/file.ts"
test -f "$review_file" || { echo "File not found: $review_file" >&2; exit 1; }
copilot -p "$(printf '%s\n\n' 'Review this approved excerpt for potential memory leaks:'; sed -n '1,220p' -- "$review_file")" -sNever construct a shell command by interpolating user-controlled prompt text, paths, issue content, or filenames into shell source. Use fixed command structure, quoted variables, and approved file content only.
Example 3: Named Session Management
copilot -p "Remember this session label for follow-up questions." -s --name "my-session-name" copilot -p "Summarize the prior advice in this session." -s --resume "my-session-name"
Best Practices
- ✅ **Do:** Ask for user consent before uploading any project files to third-party endpoints.
- ✅ **Do:** Send only the approved, redacted excerpt; keep Copilot out of the broader workspace.
- ✅ **Do:** Keep untrusted values in quoted variables or command input, never in shell source.
- ✅ **Do:** Use `-s` (silent) to suppress metadata and statistics, leaving only clean output.
- ❌ **Don't:** Automatically trigger this skill for background second opinions without the user's explicit ask.
- ❌ **Don't:** Send files, logs, environment details, or private repository context to Copilot without explicit approval.
- ❌ **Don't:** use `--allow-all-paths` for a review, or interpolate untrusted text inside `copilot -p "..."`.
- ❌ **Don't:** Run `copilot` without permission-bypass flags in background tasks, as it will hang waiting for interactive input.
Limitations
- This skill does not replace environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, or safety boundaries are missing.
- Copilot responses may be incomplete, outdated, or wrong; verify any proposed code locally before using it.
Security & Safety Notes
- The `--yolo` flag bypasses all permission prompts and allows Copilot CLI to run arbitrary shell commands and mutate workspace files. It must be treated as a high-risk option and never used by default.
- Always check that the code/files being sent do not contain sensitive credentials, API keys, or private environment variables.
- Prefer redacted snippets over whole files when only a small context sample is needed.
- `--allow-all-paths` grants Copilot broader local visibility than a narrow review requires; it is not a read-only least-privilege flag.
Common Pitfalls
- **Problem:** The terminal hangs or the command times out.
**Solution:** Ensure both `-p` (or `--prompt`) and the narrowest required non-interactive permission flag are present in the command arguments. W
Local, agent-owned skill stacks for coding agents—from complete catalog access to a reproducible, reviewable plan. Codex or Claude inspects your project and chooses exact skills from the complete local AAS catalog.
Other skills on agentic-awesome-skills.
- /00-andruia-consultant
Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.
Open skill - /007
Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.
Open skill - /10-andruia-skill-smith
Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.
Open skill - /20-andruia-niche-intelligence
Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.
Open skill - /2slides-ppt-generator
AI-powered presentation generation via the 2slides API — create slides from text, match a reference image style, summarize documents into decks, add AI voice narration, and export pages/audio. Use for any \"make slides\", \"create a deck\", or \"slides from this document\"
Open skill - /3d-web-experience
Expert in building 3D experiences for the web - Three.js, React
Open skill

