Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

github-copilot

FreeNo executable scriptsNot checked

GitHub Copilot is an AI coding assistant for VS Code and the terminal that suggests code inline, answers questions in chat, and runs agent tasks across a…

TerminalSkillsby TerminalSkills★ 221 GitHub stars

About this skill

GitHub Copilot — AI Pair Programming

Overview

GitHub Copilot sits in your editor and writes code alongside you. It reads your current file, open tabs, and surrounding context to suggest completions that range from finishing a single line to generating entire functions. Beyond completions, Copilot Chat lets you ask questions, explain code, generate tests, and refactor — all without leaving your editor.

This skill covers setting up Copilot in VS Code and the CLI, working effectively with inline suggestions, leveraging chat and slash commands, and using workspace agents for codebase-wide tasks.

Instructions

Setting Up Copilot in VS Code

Copilot needs a GitHub Copilot plan (Free, Pro, Business or Enterprise). Once you have access, setup takes seconds.

Open VS Code and sign in through the Copilot entry in the status bar or the Accounts menu. Without a plan, signing in enrolls an eligible account in Copilot Free; organization accounts follow the organization's policies. Extension installation is handled by that setup flow in current VS Code, so no manual code --install-extension step is needed.

After signing in, run /init in a chat session to generate starter project instructions from the codebase.

Inline suggestions can be switched per language with the documented github.copilot.enable setting (the default already turns off plaintext and markdown):

// .vscode/settings.json — enable Copilot suggestions per language
{
  "github.copilot.enable": {
    "*": true,
    "plaintext": false,
    "markdown": true,
    "yaml": true
  }
}

Working with Inline Suggestions

Inline suggestions appear as grayed-out ghost text as you type. Copilot predicts what you want to write based on your current file, function names, comments, and surrounding code.

The most effective way to guide Copilot is through clear function signatures and comments. When you write a descriptive function name and type signature, Copilot understands your intent and generates accurate implementations.

// src/utils/validation.ts — Copilot generates implementations from descriptive signatures

// Type a function signature and pause — Copilot suggests the body
function validateEmailAddress(email: string): boolean {
  // Copilot completes this based on the function name and parameter
  const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
  return emailRegex.test(email);
}

// A comment describing the function triggers high-quality suggestions
// Parse a CSV string into an array of objects using the first row as headers
function parseCSV(csv: string): Record<string, string>[] {
  const lines = csv.trim().split('\n');
  const headers = lines[0].split(',').map(h => h.trim());

  return lines.slice(1).map(line => {
    const values = line.split(',').map(v => v.trim());
    return Object.fromEntries(headers.map((h, i) => [h, values[i]]));
  });
}

Keyboard shortcuts control how you interact with suggestions:

  • Tab — Accept the suggestion
  • Esc — Dismiss the suggestion

Beyond line completion, "next edit suggestions" propose the next change elsewhere in the file; their editor behavior is controlled by the inlineSuggest.edits.* settings.

Copilot Chat

The chat panel is where Copilot moves beyond autocompletion into genuine pair programming. You can ask it to explain code, find bugs, suggest refactors, or generate entirely new code based on natural language descriptions.

Open the Chat view with Ctrl+Alt+I (Ctrl+Cmd+I on macOS), start a new chat with Ctrl+N, and use Ctrl+I for inline chat in the editor or terminal. You can also select code in the editor, right-click, and choose a Copilot action from the context menu.

Effective chat prompts are specific and provide context. Instead of asking "fix this code," describe what's wrong and what behavior you expect.

# Example chat prompts that produce high-quality responses

"This function throws when the input array is empty. Add a guard clause
that returns an empty array instead of throwing."

"Refactor this Express route handler to use async/await instead of
.then() chains, and add proper error handling with a try/catch."

"Generate unit tests for the UserService class. Cover the happy path,
invalid input, and database connection failures."

"Explain what this regex does step by step: /^(?=.*[A-Z])(?=.*\d).{8,}$/"

Slash Commands

Slash commands are shortcuts for common operations. Type / in the chat panel to see the full list. These commands streamline repetitive tasks.

Type / to see the commands available in the current session. The ones in the VS Code reference are:

  • /explain, /fix, /tests — explain code, suggest a fix, generate tests
  • /doc — generate documentation comments (from editor inline chat)
  • /plan — research and propose an implementation plan
  • /new, /newNotebook — scaffold a workspace, file or notebook
  • /init — generate or update workspace instructions
Full SKILL.md on GitHub

Install github-copilot in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

_scores.json

FAQ

What does the github-copilot skill do?

GitHub Copilot is an AI coding assistant for VS Code and the terminal that suggests code inline, answers questions in chat, and runs agent tasks across a project. Use it when a user asks to set up Copilot, write better prompts for Copilot Chat, use slash commands or #codebase context, generate tests with /tests, or move from the retired gh copilot extension to the GitHub Copilot CLI.

How do I install the github-copilot skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the github-copilot skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare github-copilot with