Agent skill
copilot-review
Perform code reviews using GitHub Copilot CLI to identify bugs, security vulnerabilities, performance issues, and code quality problems. Use when the user asks to review code, check for issues, security audit, or before committing. Requires Copilot CLI installed.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/copilot-review-dceoy-gh-actions-for-devop
SKILL.md
Copilot Review Skill
Use GitHub Copilot CLI to perform automated code reviews that identify issues and suggest improvements. This is a read-only analysis skill.
When to Use
- User asks to review code
- User wants to check for bugs or issues
- User mentions security, performance, or quality
- Before committing code
- During pull request review
- User asks "what's wrong with this code?"
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: Determine Scope
Decide what to review:
- Uncommitted changes
- Specific files
- Last commit
- Pull request
- Entire codebase
Step 2: Check Current State
git status
git diff --stat
git diff
Step 3: Launch Copilot CLI
cd /path/to/project
copilot
Step 4: Execute Review
Use a structured prompt:
Perform a comprehensive code review of [SCOPE].
Check for:
1. Critical issues (must fix): security vulnerabilities, runtime errors, data loss risks
2. Important issues (should fix): logic bugs, performance problems, type safety gaps
3. Suggestions (nice to have): refactors, better patterns, documentation
For each issue:
- Severity (Critical/Important/Suggestion)
- File path and line number
- Why it matters
- How to fix it
Do NOT make any changes - this is review only.
Step 5: Present Findings
Organize results by severity.
Tips
- Use
@path/to/fileto focus on specific files. - 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 output is too high-level, narrow scope and include file paths.
Related Skills
copilot-askfor read-only questionscopilot-execfor code modifications
Limitations
- Read-only analysis
- Interactive mode only
- Limited by current codebase context
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?