Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add dceoy/ai-coding-agent-skills --skill "copilot-ask"
Install specific skill from multi-skill repository
# Description
Ask GitHub Copilot CLI questions about code to understand implementations, architecture, patterns, and debugging. Use when the user asks how code works, where something is implemented, what patterns are used, or needs read-only understanding. Requires Copilot CLI installed.
# SKILL.md
name: copilot-ask
description: Ask GitHub Copilot CLI questions about code to understand implementations, architecture, patterns, and debugging. Use when the user asks how code works, where something is implemented, what patterns are used, or needs read-only understanding. Requires Copilot CLI installed.
allowed-tools: Bash, Read, Grep, Glob
Copilot Ask Skill
Use GitHub Copilot CLI to answer questions about code without making modifications. This is a read-only analysis skill.
When to Use
- User asks "how does X work?"
- User wants to find where something is implemented
- User needs to understand architecture or patterns
- User is debugging and needs to understand code flow
- User asks "what does this code do?"
Prerequisites
Verify GitHub Copilot CLI is available:
copilot --version
Note: Copilot will ask you to trust the files in the current folder before it can read them.
Basic Usage
Step 1: Parse the Question
Extract what the user wants to know and the scope (files, feature, component).
Step 2: Launch Copilot CLI
cd /path/to/project
copilot
Step 3: Ask the Question
Provide a clear prompt:
Explain how [FEATURE/COMPONENT] works in this codebase.
Please provide:
1. Direct answer to the question
2. Specific file paths and line numbers
3. Code examples from the actual codebase
4. Related concepts or dependencies
Do NOT make any changes - this is read-only analysis.
Step 4: Present the Answer
Format with:
- Summary (1-2 sentences)
- Details (explanation)
- File references (paths + line numbers)
- Code examples
- Related info (dependencies, gotchas)
Tips
- Use
@path/to/fileto include a specific file in the prompt. - Use
/usageto view session usage details. - Use
/modelto pick another model if needed. - Use
?orcopilot helpto see available commands.
Use Custom Instructions
Copilot CLI automatically loads repository instructions if present:
.github/copilot-instructions.md.github/copilot-instructions/**/*.instructions.mdAGENTS.md(agent instructions)
Error Handling
- If Copilot is not found, ensure it is installed per the prerequisites in README.md and available in PATH.
- If authentication fails, run
/loginand follow prompts. - If the answer is unclear, narrow the question and include file paths.
Related Skills
copilot-execfor code modificationscopilot-reviewfor code reviews
Limitations
- Read-only analysis
- Interactive mode only
- Limited by current codebase context
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.