use-gemini

Automate code analysis and editing via Gemini through the Copilot CLI.

2|Updated Dec 20, 2020
One-click install
npx skills add https://github.com/buvis/home --skill use-gemini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-gemini
Source: https://github.com/buvis/home/tree/main/.claude/skills/use-gemini
Command: npx skills add https://github.com/buvis/home --skill use-gemini

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires copilot, mise, and includes scripts (resource) components.

What problem does it solve?

Gemini is accessed via the Copilot CLI to perform code analysis, refactoring, and automated editing, enabling you to work with Gemini in your code tasks with controlled prompts.

Core Features & Use Cases

  • Auto-detects the latest gemini-N-pro model from copilot --help (falls back to gemini-3-pro-preview).
  • Supports permission modes, non-interactive and interactive prompts, session resume/continue, and directory access controls.
  • After every copilot command, prompts for next steps and provides guidance on how to proceed.

Quick Start

Run Gemini on a code task by supplying a prompt to the gemini-run.sh script and describing the desired outcome.

Frequently Asked Questions about use-gemini

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Gemini for code refactoring tasks using Copilot CLI?

Run Gemini for code refactoring via Copilot CLI by supplying a prompt to the gemini-run helper script, which automates model detection and applies controlled edits across your codebase.

Can I resume an interactive Gemini code analysis session in Copilot?

Yes, you can resume an interactive Gemini code analysis session using Copilot CLI's session management controls, which support resume and continue operations for ongoing code tasks.

Do I need Copilot installed to automate code edits with Gemini?

Yes, you need Copilot installed to automate code edits with Gemini, as the script invokes Gemini through the Copilot CLI and requires a compatible Gemini model to be detected.

How does automated code analysis with Gemini handle directory permissions?

Automated code analysis with Gemini manages directory permissions via Copilot CLI's permission modes, allowing you to control directory access and restrict edits during scripted runs.

What is the best way to apply non-interactive Gemini prompts to a codebase?

The best way to apply non-interactive Gemini prompts is through the gemini-run helper, which executes automated edits and code analysis without requiring manual input during the run.

Why does my Gemini model fail to load when running code tasks in Copilot?

Gemini model loading fails if Copilot does not detect a valid model, causing the script to fall back to gemini-3-pro-preview or requiring you to verify your Copilot CLI configuration.